~ubuntu-branches/ubuntu/trusty/judy/trusty

« back to all changes in this revision

Viewing changes to autom4te.cache/output.1

  • Committer: Bazaar Package Importer
  • Author(s): Troy Heber
  • Date: 2005-03-22 06:55:53 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050322065553-syjpkd48r4re18dn
Tags: 1.0.1-5

* Moving LGPL link in copyright back to LGPL-2.1
* Cleanup of debian/rules: removed explicit refs to 32-bit archs, removed
  unnecessary nostrip, using --man dir to install man pages, moving from
  dh_movefiles to dh_install.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
@%:@! /bin/sh
 
2
@%:@ Guess values for system-dependent variables and create Makefiles.
 
3
@%:@ Generated by GNU Autoconf 2.59 for Judy 1.0.0.
 
4
@%:@
 
5
@%:@ Report bugs to <doug@sourcejudy.com>.
 
6
@%:@ 
 
7
@%:@ Copyright (C) 2003 Free Software Foundation, Inc.
 
8
@%:@ This configure script is free software; the Free Software Foundation
 
9
@%:@ gives unlimited permission to copy, distribute and modify it.
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
 
 
247
# Check that we are running under the correct shell.
 
248
SHELL=${CONFIG_SHELL-/bin/sh}
 
249
 
 
250
case X$ECHO in
 
251
X*--fallback-echo)
 
252
  # Remove one level of quotation (which was required for Make).
 
253
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
254
  ;;
 
255
esac
 
256
 
 
257
echo=${ECHO-echo}
 
258
if test "X$1" = X--no-reexec; then
 
259
  # Discard the --no-reexec flag, and continue.
 
260
  shift
 
261
elif test "X$1" = X--fallback-echo; then
 
262
  # Avoid inline document here, it may be left over
 
263
  :
 
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
265
  # Yippee, $echo works!
 
266
  :
 
267
else
 
268
  # Restart under the correct shell.
 
269
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
270
fi
 
271
 
 
272
if test "X$1" = X--fallback-echo; then
 
273
  # used as fallback echo
 
274
  shift
 
275
  cat <<EOF
 
276
$*
 
277
EOF
 
278
  exit 0
 
279
fi
 
280
 
 
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
282
# if CDPATH is set.
 
283
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
284
 
 
285
if test -z "$ECHO"; then
 
286
if test "X${echo_test_string+set}" != Xset; then
 
287
# find a string as large as possible, as long as the shell can cope with it
 
288
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
289
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
290
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
291
       echo_test_string="`eval $cmd`" &&
 
292
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
293
    then
 
294
      break
 
295
    fi
 
296
  done
 
297
fi
 
298
 
 
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
300
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
301
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
302
  :
 
303
else
 
304
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
305
  # backslashes.  This makes it impossible to quote backslashes using
 
306
  #   echo "$something" | sed 's/\\/\\\\/g'
 
307
  #
 
308
  # So, first we look for a working echo in the user's PATH.
 
309
 
 
310
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
311
  for dir in $PATH /usr/ucb; do
 
312
    IFS="$lt_save_ifs"
 
313
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
314
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
315
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
316
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
317
      echo="$dir/echo"
 
318
      break
 
319
    fi
 
320
  done
 
321
  IFS="$lt_save_ifs"
 
322
 
 
323
  if test "X$echo" = Xecho; then
 
324
    # We didn't find a better echo, so look for alternatives.
 
325
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
326
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
327
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
328
      # This shell has a builtin print -r that does the trick.
 
329
      echo='print -r'
 
330
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
331
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
332
      # If we have ksh, try running configure again with it.
 
333
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
334
      export ORIGINAL_CONFIG_SHELL
 
335
      CONFIG_SHELL=/bin/ksh
 
336
      export CONFIG_SHELL
 
337
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
338
    else
 
339
      # Try using printf.
 
340
      echo='printf %s\n'
 
341
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
342
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
343
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
344
        # Cool, printf works
 
345
        :
 
346
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = 'X\t' &&
 
348
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
349
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
350
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
351
        export CONFIG_SHELL
 
352
        SHELL="$CONFIG_SHELL"
 
353
        export SHELL
 
354
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
355
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = 'X\t' &&
 
357
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
358
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
359
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
360
      else
 
361
        # maybe with a smaller string...
 
362
        prev=:
 
363
 
 
364
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
365
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
366
          then
 
367
            break
 
368
          fi
 
369
          prev="$cmd"
 
370
        done
 
371
 
 
372
        if test "$prev" != 'sed 50q "$0"'; then
 
373
          echo_test_string=`eval $prev`
 
374
          export echo_test_string
 
375
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
376
        else
 
377
          # Oops.  We lost completely, so just stick with echo.
 
378
          echo=echo
 
379
        fi
 
380
      fi
 
381
    fi
 
382
  fi
 
383
fi
 
384
fi
 
385
 
 
386
# Copy echo and quote the copy suitably for passing to libtool from
 
387
# the Makefile, instead of quoting the original, which is used later.
 
388
ECHO=$echo
 
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
390
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
391
fi
 
392
 
 
393
 
 
394
 
 
395
 
 
396
tagnames=${tagnames+${tagnames},}CXX
 
397
 
 
398
tagnames=${tagnames+${tagnames},}F77
 
399
 
 
400
# Name of the host.
 
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
402
# so uname gets run too.
 
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
404
 
 
405
exec 6>&1
 
406
 
 
407
#
 
408
# Initializations.
 
409
#
 
410
ac_default_prefix=/usr/local
 
411
ac_config_libobj_dir=.
 
412
cross_compiling=no
 
413
subdirs=
 
414
MFLAGS=
 
415
MAKEFLAGS=
 
416
SHELL=${CONFIG_SHELL-/bin/sh}
 
417
 
 
418
# Maximum number of lines to put in a shell here document.
 
419
# This variable seems obsolete.  It should probably be removed, and
 
420
# only ac_max_sed_lines should be used.
 
421
: ${ac_max_here_lines=38}
 
422
 
 
423
# Identity of this package.
 
424
PACKAGE_NAME='Judy'
 
425
PACKAGE_TARNAME='judy'
 
426
PACKAGE_VERSION='1.0.0'
 
427
PACKAGE_STRING='Judy 1.0.0'
 
428
PACKAGE_BUGREPORT='doug@sourcejudy.com'
 
429
 
 
430
# Factoring default headers for most tests.
 
431
ac_includes_default="\
 
432
#include <stdio.h>
 
433
#if HAVE_SYS_TYPES_H
 
434
# include <sys/types.h>
 
435
#endif
 
436
#if HAVE_SYS_STAT_H
 
437
# include <sys/stat.h>
 
438
#endif
 
439
#if STDC_HEADERS
 
440
# include <stdlib.h>
 
441
# include <stddef.h>
 
442
#else
 
443
# if HAVE_STDLIB_H
 
444
#  include <stdlib.h>
 
445
# endif
 
446
#endif
 
447
#if HAVE_STRING_H
 
448
# if !STDC_HEADERS && HAVE_MEMORY_H
 
449
#  include <memory.h>
 
450
# endif
 
451
# include <string.h>
 
452
#endif
 
453
#if HAVE_STRINGS_H
 
454
# include <strings.h>
 
455
#endif
 
456
#if HAVE_INTTYPES_H
 
457
# include <inttypes.h>
 
458
#else
 
459
# if HAVE_STDINT_H
 
460
#  include <stdint.h>
 
461
# endif
 
462
#endif
 
463
#if HAVE_UNISTD_H
 
464
# include <unistd.h>
 
465
#endif"
 
466
 
 
467
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar VERSION_INFO FLAVOR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP LN_S EGREP LIB@&t@OBJS AR ac_ct_AR LD ac_ct_LD RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os ECHO CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL WARN_CFLAGS 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 Judy 1.0.0 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
_ACEOF
 
1018
fi
 
1019
 
 
1020
if test -n "$ac_init_help"; then
 
1021
  case $ac_init_help in
 
1022
     short | recursive ) echo "Configuration of Judy 1.0.0:";;
 
1023
   esac
 
1024
  cat <<\_ACEOF
 
1025
 
 
1026
Optional Features:
 
1027
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1028
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1029
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1030
                          (and sometimes confusing) to the casual installer
 
1031
  --enable-debug          enable debugging features
 
1032
  --enable-ccover         enable use of ccover code coverage tools
 
1033
  --disable-dependency-tracking  speeds up one-time build
 
1034
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1035
 --enable-32-bit          Generate code for a 32-bit environment
 
1036
 --enable-64-bit          Generate code for a 64-bit environment
 
1037
  --enable-shared@<:@=PKGS@:>@ 
 
1038
                          build shared libraries @<:@default=yes@:>@
 
1039
  --enable-static@<:@=PKGS@:>@ 
 
1040
                          build static libraries @<:@default=yes@:>@
 
1041
  --enable-fast-install@<:@=PKGS@:>@ 
 
1042
                          optimize for fast installation @<:@default=yes@:>@
 
1043
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1044
  --enable-build-warnings    Enable build-time compiler warnings for gcc
 
1045
 
 
1046
Optional Packages:
 
1047
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1048
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1049
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
 
1050
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
 
1051
                          both@:>@
 
1052
  --with-tags@<:@=TAGS@:>@ 
 
1053
                          include additional configurations @<:@automatic@:>@
 
1054
 
 
1055
Some influential environment variables:
 
1056
  CC          C compiler command
 
1057
  CFLAGS      C compiler flags
 
1058
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1059
              nonstandard directory <lib dir>
 
1060
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1061
              headers in a nonstandard directory <include dir>
 
1062
  CPP         C preprocessor
 
1063
  CXX         C++ compiler command
 
1064
  CXXFLAGS    C++ compiler flags
 
1065
  CXXCPP      C++ preprocessor
 
1066
  F77         Fortran 77 compiler command
 
1067
  FFLAGS      Fortran 77 compiler flags
 
1068
 
 
1069
Use these variables to override the choices made by `configure' or to help
 
1070
it to find libraries and programs with nonstandard names/locations.
 
1071
 
 
1072
Report bugs to <doug@sourcejudy.com>.
 
1073
_ACEOF
 
1074
fi
 
1075
 
 
1076
if test "$ac_init_help" = "recursive"; then
 
1077
  # If there are subdirs, report their specific --help.
 
1078
  ac_popdir=`pwd`
 
1079
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1080
    test -d $ac_dir || continue
 
1081
    ac_builddir=.
 
1082
 
 
1083
if test "$ac_dir" != .; then
 
1084
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1085
  # A "../" for each directory in $ac_dir_suffix.
 
1086
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1087
else
 
1088
  ac_dir_suffix= ac_top_builddir=
 
1089
fi
 
1090
 
 
1091
case $srcdir in
 
1092
  .)  # No --srcdir option.  We are building in place.
 
1093
    ac_srcdir=.
 
1094
    if test -z "$ac_top_builddir"; then
 
1095
       ac_top_srcdir=.
 
1096
    else
 
1097
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1098
    fi ;;
 
1099
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1100
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1101
    ac_top_srcdir=$srcdir ;;
 
1102
  *) # Relative path.
 
1103
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1104
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1105
esac
 
1106
 
 
1107
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1108
# the directories may not exist.
 
1109
case `pwd` in
 
1110
.) ac_abs_builddir="$ac_dir";;
 
1111
*)
 
1112
  case "$ac_dir" in
 
1113
  .) ac_abs_builddir=`pwd`;;
 
1114
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1115
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1116
  esac;;
 
1117
esac
 
1118
case $ac_abs_builddir in
 
1119
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1120
*)
 
1121
  case ${ac_top_builddir}. in
 
1122
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1123
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1124
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1125
  esac;;
 
1126
esac
 
1127
case $ac_abs_builddir in
 
1128
.) ac_abs_srcdir=$ac_srcdir;;
 
1129
*)
 
1130
  case $ac_srcdir in
 
1131
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1132
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1133
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1134
  esac;;
 
1135
esac
 
1136
case $ac_abs_builddir in
 
1137
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1138
*)
 
1139
  case $ac_top_srcdir in
 
1140
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1141
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1142
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1143
  esac;;
 
1144
esac
 
1145
 
 
1146
    cd $ac_dir
 
1147
    # Check for guested configure; otherwise get Cygnus style configure.
 
1148
    if test -f $ac_srcdir/configure.gnu; then
 
1149
      echo
 
1150
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1151
    elif test -f $ac_srcdir/configure; then
 
1152
      echo
 
1153
      $SHELL $ac_srcdir/configure  --help=recursive
 
1154
    elif test -f $ac_srcdir/configure.ac ||
 
1155
           test -f $ac_srcdir/configure.in; then
 
1156
      echo
 
1157
      $ac_configure --help
 
1158
    else
 
1159
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1160
    fi
 
1161
    cd "$ac_popdir"
 
1162
  done
 
1163
fi
 
1164
 
 
1165
test -n "$ac_init_help" && exit 0
 
1166
if $ac_init_version; then
 
1167
  cat <<\_ACEOF
 
1168
Judy configure 1.0.0
 
1169
generated by GNU Autoconf 2.59
 
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 Judy $as_me 1.0.0, 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
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1520
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
1521
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
1522
if test "${enable_maintainer_mode+set}" = set; then
 
1523
  enableval="$enable_maintainer_mode"
 
1524
  USE_MAINTAINER_MODE=$enableval
 
1525
else
 
1526
  USE_MAINTAINER_MODE=no
 
1527
fi; 
 
1528
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
1529
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
1530
   
 
1531
 
 
1532
if test $USE_MAINTAINER_MODE = yes; then
 
1533
  MAINTAINER_MODE_TRUE=
 
1534
  MAINTAINER_MODE_FALSE='#'
 
1535
else
 
1536
  MAINTAINER_MODE_TRUE='#'
 
1537
  MAINTAINER_MODE_FALSE=
 
1538
fi
 
1539
 
 
1540
  MAINT=$MAINTAINER_MODE_TRUE
 
1541
  
 
1542
 
 
1543
 
 
1544
am__api_version="1.9"
 
1545
ac_aux_dir=
 
1546
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1547
  if test -f $ac_dir/install-sh; then
 
1548
    ac_aux_dir=$ac_dir
 
1549
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1550
    break
 
1551
  elif test -f $ac_dir/install.sh; then
 
1552
    ac_aux_dir=$ac_dir
 
1553
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1554
    break
 
1555
  elif test -f $ac_dir/shtool; then
 
1556
    ac_aux_dir=$ac_dir
 
1557
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1558
    break
 
1559
  fi
 
1560
done
 
1561
if test -z "$ac_aux_dir"; then
 
1562
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1563
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1564
   { (exit 1); exit 1; }; }
 
1565
fi
 
1566
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1567
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1568
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1569
 
 
1570
# Find a good install program.  We prefer a C program (faster),
 
1571
# so one script is as good as another.  But avoid the broken or
 
1572
# incompatible versions:
 
1573
# SysV /etc/install, /usr/sbin/install
 
1574
# SunOS /usr/etc/install
 
1575
# IRIX /sbin/install
 
1576
# AIX /bin/install
 
1577
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1578
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1579
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1580
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1581
# OS/2's system install, which has a completely different semantic
 
1582
# ./install, which can be erroneously created by make from ./install.sh.
 
1583
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1584
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1585
if test -z "$INSTALL"; then
 
1586
if test "${ac_cv_path_install+set}" = set; then
 
1587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1588
else
 
1589
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1590
for as_dir in $PATH
 
1591
do
 
1592
  IFS=$as_save_IFS
 
1593
  test -z "$as_dir" && as_dir=.
 
1594
  # Account for people who put trailing slashes in PATH elements.
 
1595
case $as_dir/ in
 
1596
  ./ | .// | /cC/* | \
 
1597
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1598
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1599
  /usr/ucb/* ) ;;
 
1600
  *)
 
1601
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1602
    # Don't use installbsd from OSF since it installs stuff as root
 
1603
    # by default.
 
1604
    for ac_prog in ginstall scoinst install; do
 
1605
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1606
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1607
          if test $ac_prog = install &&
 
1608
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1609
            # AIX install.  It has an incompatible calling convention.
 
1610
            :
 
1611
          elif test $ac_prog = install &&
 
1612
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1613
            # program-specific install script used by HP pwplus--don't use.
 
1614
            :
 
1615
          else
 
1616
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1617
            break 3
 
1618
          fi
 
1619
        fi
 
1620
      done
 
1621
    done
 
1622
    ;;
 
1623
esac
 
1624
done
 
1625
 
 
1626
 
 
1627
fi
 
1628
  if test "${ac_cv_path_install+set}" = set; then
 
1629
    INSTALL=$ac_cv_path_install
 
1630
  else
 
1631
    # As a last resort, use the slow shell script.  We don't cache a
 
1632
    # path for INSTALL within a source directory, because that will
 
1633
    # break other packages using the cache if that directory is
 
1634
    # removed, or if the path is relative.
 
1635
    INSTALL=$ac_install_sh
 
1636
  fi
 
1637
fi
 
1638
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1639
echo "${ECHO_T}$INSTALL" >&6
 
1640
 
 
1641
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1642
# It thinks the first close brace ends the variable substitution.
 
1643
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1644
 
 
1645
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1646
 
 
1647
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1648
 
 
1649
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1650
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1651
# Just in case
 
1652
sleep 1
 
1653
echo timestamp > conftest.file
 
1654
# Do `set' in a subshell so we don't clobber the current shell's
 
1655
# arguments.  Must try -L first in case configure is actually a
 
1656
# symlink; some systems play weird games with the mod time of symlinks
 
1657
# (eg FreeBSD returns the mod time of the symlink's containing
 
1658
# directory).
 
1659
if (
 
1660
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1661
   if test "$*" = "X"; then
 
1662
      # -L didn't work.
 
1663
      set X `ls -t $srcdir/configure conftest.file`
 
1664
   fi
 
1665
   rm -f conftest.file
 
1666
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1667
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1668
 
 
1669
      # If neither matched, then we have a broken ls.  This can happen
 
1670
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1671
      # broken ls alias from the environment.  This has actually
 
1672
      # happened.  Such a system could not be considered "sane".
 
1673
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1674
alias in your environment" >&5
 
1675
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1676
alias in your environment" >&2;}
 
1677
   { (exit 1); exit 1; }; }
 
1678
   fi
 
1679
 
 
1680
   test "$2" = conftest.file
 
1681
   )
 
1682
then
 
1683
   # Ok.
 
1684
   :
 
1685
else
 
1686
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1687
Check your system clock" >&5
 
1688
echo "$as_me: error: newly created file is older than distributed files!
 
1689
Check your system clock" >&2;}
 
1690
   { (exit 1); exit 1; }; }
 
1691
fi
 
1692
echo "$as_me:$LINENO: result: yes" >&5
 
1693
echo "${ECHO_T}yes" >&6
 
1694
test "$program_prefix" != NONE &&
 
1695
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1696
# Use a double $ so make ignores it.
 
1697
test "$program_suffix" != NONE &&
 
1698
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1699
# Double any \ or $.  echo might interpret backslashes.
 
1700
# By default was `s,x,x', remove it if useless.
 
1701
cat <<\_ACEOF >conftest.sed
 
1702
s/[\\$]/&&/g;s/;s,x,x,$//
 
1703
_ACEOF
 
1704
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1705
rm conftest.sed
 
1706
 
 
1707
# expand $ac_aux_dir to an absolute path
 
1708
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1709
 
 
1710
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1711
# Use eval to expand $SHELL
 
1712
if eval "$MISSING --run true"; then
 
1713
  am_missing_run="$MISSING --run "
 
1714
else
 
1715
  am_missing_run=
 
1716
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1717
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1718
fi
 
1719
 
 
1720
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1721
  # We used to keeping the `.' as first argument, in order to
 
1722
  # allow $(mkdir_p) to be used without argument.  As in
 
1723
  #   $(mkdir_p) $(somedir)
 
1724
  # where $(somedir) is conditionally defined.  However this is wrong
 
1725
  # for two reasons:
 
1726
  #  1. if the package is installed by a user who cannot write `.'
 
1727
  #     make install will fail,
 
1728
  #  2. the above comment should most certainly read
 
1729
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1730
  #     so it does not work when $(somedir) is undefined and
 
1731
  #     $(DESTDIR) is not.
 
1732
  #  To support the latter case, we have to write
 
1733
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1734
  #  so the `.' trick is pointless.
 
1735
  mkdir_p='mkdir -p --'
 
1736
else
 
1737
  # On NextStep and OpenStep, the `mkdir' command does not
 
1738
  # recognize any option.  It will interpret all options as
 
1739
  # directories to create, and then abort because `.' already
 
1740
  # exists.
 
1741
  for d in ./-p ./--version;
 
1742
  do
 
1743
    test -d $d && rmdir $d
 
1744
  done
 
1745
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1746
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1747
    mkdir_p='$(mkinstalldirs)'
 
1748
  else
 
1749
    mkdir_p='$(install_sh) -d'
 
1750
  fi
 
1751
fi
 
1752
 
 
1753
for ac_prog in gawk mawk nawk awk
 
1754
do
 
1755
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1756
set dummy $ac_prog; ac_word=$2
 
1757
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1758
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1759
if test "${ac_cv_prog_AWK+set}" = set; then
 
1760
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1761
else
 
1762
  if test -n "$AWK"; then
 
1763
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1764
else
 
1765
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1766
for as_dir in $PATH
 
1767
do
 
1768
  IFS=$as_save_IFS
 
1769
  test -z "$as_dir" && as_dir=.
 
1770
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1771
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1772
    ac_cv_prog_AWK="$ac_prog"
 
1773
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1774
    break 2
 
1775
  fi
 
1776
done
 
1777
done
 
1778
 
 
1779
fi
 
1780
fi
 
1781
AWK=$ac_cv_prog_AWK
 
1782
if test -n "$AWK"; then
 
1783
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1784
echo "${ECHO_T}$AWK" >&6
 
1785
else
 
1786
  echo "$as_me:$LINENO: result: no" >&5
 
1787
echo "${ECHO_T}no" >&6
 
1788
fi
 
1789
 
 
1790
  test -n "$AWK" && break
 
1791
done
 
1792
 
 
1793
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1794
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1795
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1796
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1797
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1798
else
 
1799
  cat >conftest.make <<\_ACEOF
 
1800
all:
 
1801
        @echo 'ac_maketemp="$(MAKE)"'
 
1802
_ACEOF
 
1803
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1804
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1805
if test -n "$ac_maketemp"; then
 
1806
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1807
else
 
1808
  eval ac_cv_prog_make_${ac_make}_set=no
 
1809
fi
 
1810
rm -f conftest.make
 
1811
fi
 
1812
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1813
  echo "$as_me:$LINENO: result: yes" >&5
 
1814
echo "${ECHO_T}yes" >&6
 
1815
  SET_MAKE=
 
1816
else
 
1817
  echo "$as_me:$LINENO: result: no" >&5
 
1818
echo "${ECHO_T}no" >&6
 
1819
  SET_MAKE="MAKE=${MAKE-make}"
 
1820
fi
 
1821
 
 
1822
rm -rf .tst 2>/dev/null
 
1823
mkdir .tst 2>/dev/null
 
1824
if test -d .tst; then
 
1825
  am__leading_dot=.
 
1826
else
 
1827
  am__leading_dot=_
 
1828
fi
 
1829
rmdir .tst 2>/dev/null
 
1830
 
 
1831
# test to see if srcdir already configured
 
1832
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1833
   test -f $srcdir/config.status; then
 
1834
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1835
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1836
   { (exit 1); exit 1; }; }
 
1837
fi
 
1838
 
 
1839
# test whether we have cygpath
 
1840
if test -z "$CYGPATH_W"; then
 
1841
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1842
    CYGPATH_W='cygpath -w'
 
1843
  else
 
1844
    CYGPATH_W=echo
 
1845
  fi
 
1846
fi
 
1847
 
 
1848
 
 
1849
# Define the identity of the package.
 
1850
 PACKAGE=$PACKAGE_NAME
 
1851
 VERSION=$PACKAGE_VERSION
 
1852
 
 
1853
 
 
1854
cat >>confdefs.h <<_ACEOF
 
1855
@%:@define PACKAGE "$PACKAGE"
 
1856
_ACEOF
 
1857
 
 
1858
 
 
1859
cat >>confdefs.h <<_ACEOF
 
1860
@%:@define VERSION "$VERSION"
 
1861
_ACEOF
 
1862
 
 
1863
# Some tools Automake needs.
 
1864
 
 
1865
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1866
 
 
1867
 
 
1868
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1869
 
 
1870
 
 
1871
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1872
 
 
1873
 
 
1874
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1875
 
 
1876
 
 
1877
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
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
# Always define AMTAR for backward compatibility.
 
1972
 
 
1973
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1974
 
 
1975
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1976
 
 
1977
 
 
1978
 
 
1979
 
 
1980
 
 
1981
 
 
1982
          ac_config_headers="$ac_config_headers config.h"
 
1983
 
 
1984
 
 
1985
 
 
1986
VERSION_INFO="-version-info 1:1:0"
 
1987
 
 
1988
 
 
1989
 
 
1990
echo "$as_me:$LINENO: checking which flavor to build" >&5
 
1991
echo $ECHO_N "checking which flavor to build... $ECHO_C" >&6
 
1992
 
 
1993
# Check whether --enable-debug or --disable-debug was given.
 
1994
if test "${enable_debug+set}" = set; then
 
1995
  enableval="$enable_debug"
 
1996
  
 
1997
else
 
1998
  enable_debug=no
 
1999
fi; 
 
2000
if test "x$enable_debug" != xyes -a "x$enable_debug" != xno; then
 
2001
   { { echo "$as_me:$LINENO: error: You may not pass an argument to --enable-debug" >&5
 
2002
echo "$as_me: error: You may not pass an argument to --enable-debug" >&2;}
 
2003
   { (exit 1); exit 1; }; }
 
2004
fi
 
2005
 
 
2006
# Check whether --enable-ccover or --disable-ccover was given.
 
2007
if test "${enable_ccover+set}" = set; then
 
2008
  enableval="$enable_ccover"
 
2009
  
 
2010
else
 
2011
  enable_ccover=no
 
2012
fi; 
 
2013
if test "x$enable_ccover" != xyes -a "x$enable_ccover" != xno; then
 
2014
   { { echo "$as_me:$LINENO: error: You may not pass an argument to --enable-ccover" >&5
 
2015
echo "$as_me: error: You may not pass an argument to --enable-ccover" >&2;}
 
2016
   { (exit 1); exit 1; }; }
 
2017
fi
 
2018
 
 
2019
if test "x$enable_debug" = xyes -a "x$enable_ccover" = xyes; then
 
2020
   { { echo "$as_me:$LINENO: error: You may not use --enable-debug and --enable-ccover together" >&5
 
2021
echo "$as_me: error: You may not use --enable-debug and --enable-ccover together" >&2;}
 
2022
   { (exit 1); exit 1; }; }
 
2023
elif test "x$enable_debug" = xyes; then
 
2024
   FLAVOR=debug
 
2025
elif test "x$enable_ccover" = xyes; then
 
2026
   FLAVOR=cov
 
2027
else
 
2028
   FLAVOR=product
 
2029
fi
 
2030
 
 
2031
 
 
2032
 
 
2033
echo "$as_me:$LINENO: result: $FLAVOR" >&5
 
2034
echo "${ECHO_T}$FLAVOR" >&6
 
2035
 
 
2036
 
 
2037
ac_ext=c
 
2038
ac_cpp='$CPP $CPPFLAGS'
 
2039
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2040
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2041
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2042
if test -n "$ac_tool_prefix"; then
 
2043
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2044
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2045
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2046
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2047
if test "${ac_cv_prog_CC+set}" = set; then
 
2048
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2049
else
 
2050
  if test -n "$CC"; then
 
2051
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2052
else
 
2053
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2054
for as_dir in $PATH
 
2055
do
 
2056
  IFS=$as_save_IFS
 
2057
  test -z "$as_dir" && as_dir=.
 
2058
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2059
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2060
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2061
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2062
    break 2
 
2063
  fi
 
2064
done
 
2065
done
 
2066
 
 
2067
fi
 
2068
fi
 
2069
CC=$ac_cv_prog_CC
 
2070
if test -n "$CC"; then
 
2071
  echo "$as_me:$LINENO: result: $CC" >&5
 
2072
echo "${ECHO_T}$CC" >&6
 
2073
else
 
2074
  echo "$as_me:$LINENO: result: no" >&5
 
2075
echo "${ECHO_T}no" >&6
 
2076
fi
 
2077
 
 
2078
fi
 
2079
if test -z "$ac_cv_prog_CC"; then
 
2080
  ac_ct_CC=$CC
 
2081
  # Extract the first word of "gcc", so it can be a program name with args.
 
2082
set dummy gcc; ac_word=$2
 
2083
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2084
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2085
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2086
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2087
else
 
2088
  if test -n "$ac_ct_CC"; then
 
2089
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2090
else
 
2091
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2092
for as_dir in $PATH
 
2093
do
 
2094
  IFS=$as_save_IFS
 
2095
  test -z "$as_dir" && as_dir=.
 
2096
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2097
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2098
    ac_cv_prog_ac_ct_CC="gcc"
 
2099
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2100
    break 2
 
2101
  fi
 
2102
done
 
2103
done
 
2104
 
 
2105
fi
 
2106
fi
 
2107
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2108
if test -n "$ac_ct_CC"; then
 
2109
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2110
echo "${ECHO_T}$ac_ct_CC" >&6
 
2111
else
 
2112
  echo "$as_me:$LINENO: result: no" >&5
 
2113
echo "${ECHO_T}no" >&6
 
2114
fi
 
2115
 
 
2116
  CC=$ac_ct_CC
 
2117
else
 
2118
  CC="$ac_cv_prog_CC"
 
2119
fi
 
2120
 
 
2121
if test -z "$CC"; then
 
2122
  if test -n "$ac_tool_prefix"; then
 
2123
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2124
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2125
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2126
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2127
if test "${ac_cv_prog_CC+set}" = set; then
 
2128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2129
else
 
2130
  if test -n "$CC"; then
 
2131
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2132
else
 
2133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2134
for as_dir in $PATH
 
2135
do
 
2136
  IFS=$as_save_IFS
 
2137
  test -z "$as_dir" && as_dir=.
 
2138
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2139
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2140
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2141
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2142
    break 2
 
2143
  fi
 
2144
done
 
2145
done
 
2146
 
 
2147
fi
 
2148
fi
 
2149
CC=$ac_cv_prog_CC
 
2150
if test -n "$CC"; then
 
2151
  echo "$as_me:$LINENO: result: $CC" >&5
 
2152
echo "${ECHO_T}$CC" >&6
 
2153
else
 
2154
  echo "$as_me:$LINENO: result: no" >&5
 
2155
echo "${ECHO_T}no" >&6
 
2156
fi
 
2157
 
 
2158
fi
 
2159
if test -z "$ac_cv_prog_CC"; then
 
2160
  ac_ct_CC=$CC
 
2161
  # Extract the first word of "cc", so it can be a program name with args.
 
2162
set dummy cc; ac_word=$2
 
2163
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2164
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2165
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2166
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2167
else
 
2168
  if test -n "$ac_ct_CC"; then
 
2169
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2170
else
 
2171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2172
for as_dir in $PATH
 
2173
do
 
2174
  IFS=$as_save_IFS
 
2175
  test -z "$as_dir" && as_dir=.
 
2176
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2177
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2178
    ac_cv_prog_ac_ct_CC="cc"
 
2179
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2180
    break 2
 
2181
  fi
 
2182
done
 
2183
done
 
2184
 
 
2185
fi
 
2186
fi
 
2187
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2188
if test -n "$ac_ct_CC"; then
 
2189
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2190
echo "${ECHO_T}$ac_ct_CC" >&6
 
2191
else
 
2192
  echo "$as_me:$LINENO: result: no" >&5
 
2193
echo "${ECHO_T}no" >&6
 
2194
fi
 
2195
 
 
2196
  CC=$ac_ct_CC
 
2197
else
 
2198
  CC="$ac_cv_prog_CC"
 
2199
fi
 
2200
 
 
2201
fi
 
2202
if test -z "$CC"; then
 
2203
  # Extract the first word of "cc", so it can be a program name with args.
 
2204
set dummy cc; ac_word=$2
 
2205
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2206
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2207
if test "${ac_cv_prog_CC+set}" = set; then
 
2208
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2209
else
 
2210
  if test -n "$CC"; then
 
2211
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2212
else
 
2213
  ac_prog_rejected=no
 
2214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2215
for as_dir in $PATH
 
2216
do
 
2217
  IFS=$as_save_IFS
 
2218
  test -z "$as_dir" && as_dir=.
 
2219
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2220
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2221
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2222
       ac_prog_rejected=yes
 
2223
       continue
 
2224
     fi
 
2225
    ac_cv_prog_CC="cc"
 
2226
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2227
    break 2
 
2228
  fi
 
2229
done
 
2230
done
 
2231
 
 
2232
if test $ac_prog_rejected = yes; then
 
2233
  # We found a bogon in the path, so make sure we never use it.
 
2234
  set dummy $ac_cv_prog_CC
 
2235
  shift
 
2236
  if test $@%:@ != 0; then
 
2237
    # We chose a different compiler from the bogus one.
 
2238
    # However, it has the same basename, so the bogon will be chosen
 
2239
    # first if we set CC to just the basename; use the full file name.
 
2240
    shift
 
2241
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2242
  fi
 
2243
fi
 
2244
fi
 
2245
fi
 
2246
CC=$ac_cv_prog_CC
 
2247
if test -n "$CC"; then
 
2248
  echo "$as_me:$LINENO: result: $CC" >&5
 
2249
echo "${ECHO_T}$CC" >&6
 
2250
else
 
2251
  echo "$as_me:$LINENO: result: no" >&5
 
2252
echo "${ECHO_T}no" >&6
 
2253
fi
 
2254
 
 
2255
fi
 
2256
if test -z "$CC"; then
 
2257
  if test -n "$ac_tool_prefix"; then
 
2258
  for ac_prog in cl
 
2259
  do
 
2260
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2261
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2262
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2263
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2264
if test "${ac_cv_prog_CC+set}" = set; then
 
2265
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2266
else
 
2267
  if test -n "$CC"; then
 
2268
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2269
else
 
2270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2271
for as_dir in $PATH
 
2272
do
 
2273
  IFS=$as_save_IFS
 
2274
  test -z "$as_dir" && as_dir=.
 
2275
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2276
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2277
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2278
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2279
    break 2
 
2280
  fi
 
2281
done
 
2282
done
 
2283
 
 
2284
fi
 
2285
fi
 
2286
CC=$ac_cv_prog_CC
 
2287
if test -n "$CC"; then
 
2288
  echo "$as_me:$LINENO: result: $CC" >&5
 
2289
echo "${ECHO_T}$CC" >&6
 
2290
else
 
2291
  echo "$as_me:$LINENO: result: no" >&5
 
2292
echo "${ECHO_T}no" >&6
 
2293
fi
 
2294
 
 
2295
    test -n "$CC" && break
 
2296
  done
 
2297
fi
 
2298
if test -z "$CC"; then
 
2299
  ac_ct_CC=$CC
 
2300
  for ac_prog in cl
 
2301
do
 
2302
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2303
set dummy $ac_prog; ac_word=$2
 
2304
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2305
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2306
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2307
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2308
else
 
2309
  if test -n "$ac_ct_CC"; then
 
2310
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2311
else
 
2312
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2313
for as_dir in $PATH
 
2314
do
 
2315
  IFS=$as_save_IFS
 
2316
  test -z "$as_dir" && as_dir=.
 
2317
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2318
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2319
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2320
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2321
    break 2
 
2322
  fi
 
2323
done
 
2324
done
 
2325
 
 
2326
fi
 
2327
fi
 
2328
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2329
if test -n "$ac_ct_CC"; then
 
2330
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2331
echo "${ECHO_T}$ac_ct_CC" >&6
 
2332
else
 
2333
  echo "$as_me:$LINENO: result: no" >&5
 
2334
echo "${ECHO_T}no" >&6
 
2335
fi
 
2336
 
 
2337
  test -n "$ac_ct_CC" && break
 
2338
done
 
2339
 
 
2340
  CC=$ac_ct_CC
 
2341
fi
 
2342
 
 
2343
fi
 
2344
 
 
2345
 
 
2346
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2347
See \`config.log' for more details." >&5
 
2348
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2349
See \`config.log' for more details." >&2;}
 
2350
   { (exit 1); exit 1; }; }
 
2351
 
 
2352
# Provide some information about the compiler.
 
2353
echo "$as_me:$LINENO:" \
 
2354
     "checking for C compiler version" >&5
 
2355
ac_compiler=`set X $ac_compile; echo $2`
 
2356
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2357
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2358
  ac_status=$?
 
2359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2360
  (exit $ac_status); }
 
2361
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2362
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2363
  ac_status=$?
 
2364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2365
  (exit $ac_status); }
 
2366
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2367
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2368
  ac_status=$?
 
2369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2370
  (exit $ac_status); }
 
2371
 
 
2372
cat >conftest.$ac_ext <<_ACEOF
 
2373
/* confdefs.h.  */
 
2374
_ACEOF
 
2375
cat confdefs.h >>conftest.$ac_ext
 
2376
cat >>conftest.$ac_ext <<_ACEOF
 
2377
/* end confdefs.h.  */
 
2378
 
 
2379
int
 
2380
main ()
 
2381
{
 
2382
 
 
2383
  ;
 
2384
  return 0;
 
2385
}
 
2386
_ACEOF
 
2387
ac_clean_files_save=$ac_clean_files
 
2388
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2389
# Try to create an executable without -o first, disregard a.out.
 
2390
# It will help us diagnose broken compilers, and finding out an intuition
 
2391
# of exeext.
 
2392
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2393
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2394
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2395
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2396
  (eval $ac_link_default) 2>&5
 
2397
  ac_status=$?
 
2398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2399
  (exit $ac_status); }; then
 
2400
  # Find the output, starting from the most likely.  This scheme is
 
2401
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2402
# resort.
 
2403
 
 
2404
# Be careful to initialize this variable, since it used to be cached.
 
2405
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2406
ac_cv_exeext=
 
2407
# b.out is created by i960 compilers.
 
2408
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2409
do
 
2410
  test -f "$ac_file" || continue
 
2411
  case $ac_file in
 
2412
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2413
        ;;
 
2414
    conftest.$ac_ext )
 
2415
        # This is the source file.
 
2416
        ;;
 
2417
    [ab].out )
 
2418
        # We found the default executable, but exeext='' is most
 
2419
        # certainly right.
 
2420
        break;;
 
2421
    *.* )
 
2422
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2423
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2424
        # but it would be cool to find out if it's true.  Does anybody
 
2425
        # maintain Libtool? --akim.
 
2426
        export ac_cv_exeext
 
2427
        break;;
 
2428
    * )
 
2429
        break;;
 
2430
  esac
 
2431
done
 
2432
else
 
2433
  echo "$as_me: failed program was:" >&5
 
2434
sed 's/^/| /' conftest.$ac_ext >&5
 
2435
 
 
2436
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2437
See \`config.log' for more details." >&5
 
2438
echo "$as_me: error: C compiler cannot create executables
 
2439
See \`config.log' for more details." >&2;}
 
2440
   { (exit 77); exit 77; }; }
 
2441
fi
 
2442
 
 
2443
ac_exeext=$ac_cv_exeext
 
2444
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2445
echo "${ECHO_T}$ac_file" >&6
 
2446
 
 
2447
# Check the compiler produces executables we can run.  If not, either
 
2448
# the compiler is broken, or we cross compile.
 
2449
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2450
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2451
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2452
# If not cross compiling, check that we can run a simple program.
 
2453
if test "$cross_compiling" != yes; then
 
2454
  if { ac_try='./$ac_file'
 
2455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2456
  (eval $ac_try) 2>&5
 
2457
  ac_status=$?
 
2458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2459
  (exit $ac_status); }; }; then
 
2460
    cross_compiling=no
 
2461
  else
 
2462
    if test "$cross_compiling" = maybe; then
 
2463
        cross_compiling=yes
 
2464
    else
 
2465
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2466
If you meant to cross compile, use \`--host'.
 
2467
See \`config.log' for more details." >&5
 
2468
echo "$as_me: error: cannot run C compiled programs.
 
2469
If you meant to cross compile, use \`--host'.
 
2470
See \`config.log' for more details." >&2;}
 
2471
   { (exit 1); exit 1; }; }
 
2472
    fi
 
2473
  fi
 
2474
fi
 
2475
echo "$as_me:$LINENO: result: yes" >&5
 
2476
echo "${ECHO_T}yes" >&6
 
2477
 
 
2478
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2479
ac_clean_files=$ac_clean_files_save
 
2480
# Check the compiler produces executables we can run.  If not, either
 
2481
# the compiler is broken, or we cross compile.
 
2482
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2483
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2484
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2485
echo "${ECHO_T}$cross_compiling" >&6
 
2486
 
 
2487
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2488
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2489
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2490
  (eval $ac_link) 2>&5
 
2491
  ac_status=$?
 
2492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2493
  (exit $ac_status); }; then
 
2494
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2495
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2496
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2497
# `rm'.
 
2498
for ac_file in conftest.exe conftest conftest.*; do
 
2499
  test -f "$ac_file" || continue
 
2500
  case $ac_file in
 
2501
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2502
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2503
          export ac_cv_exeext
 
2504
          break;;
 
2505
    * ) break;;
 
2506
  esac
 
2507
done
 
2508
else
 
2509
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2510
See \`config.log' for more details." >&5
 
2511
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2512
See \`config.log' for more details." >&2;}
 
2513
   { (exit 1); exit 1; }; }
 
2514
fi
 
2515
 
 
2516
rm -f conftest$ac_cv_exeext
 
2517
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2518
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2519
 
 
2520
rm -f conftest.$ac_ext
 
2521
EXEEXT=$ac_cv_exeext
 
2522
ac_exeext=$EXEEXT
 
2523
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2524
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2525
if test "${ac_cv_objext+set}" = set; then
 
2526
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2527
else
 
2528
  cat >conftest.$ac_ext <<_ACEOF
 
2529
/* confdefs.h.  */
 
2530
_ACEOF
 
2531
cat confdefs.h >>conftest.$ac_ext
 
2532
cat >>conftest.$ac_ext <<_ACEOF
 
2533
/* end confdefs.h.  */
 
2534
 
 
2535
int
 
2536
main ()
 
2537
{
 
2538
 
 
2539
  ;
 
2540
  return 0;
 
2541
}
 
2542
_ACEOF
 
2543
rm -f conftest.o conftest.obj
 
2544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2545
  (eval $ac_compile) 2>&5
 
2546
  ac_status=$?
 
2547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2548
  (exit $ac_status); }; then
 
2549
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2550
  case $ac_file in
 
2551
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2552
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2553
       break;;
 
2554
  esac
 
2555
done
 
2556
else
 
2557
  echo "$as_me: failed program was:" >&5
 
2558
sed 's/^/| /' conftest.$ac_ext >&5
 
2559
 
 
2560
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2561
See \`config.log' for more details." >&5
 
2562
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2563
See \`config.log' for more details." >&2;}
 
2564
   { (exit 1); exit 1; }; }
 
2565
fi
 
2566
 
 
2567
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2568
fi
 
2569
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2570
echo "${ECHO_T}$ac_cv_objext" >&6
 
2571
OBJEXT=$ac_cv_objext
 
2572
ac_objext=$OBJEXT
 
2573
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2574
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2575
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2576
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2577
else
 
2578
  cat >conftest.$ac_ext <<_ACEOF
 
2579
/* confdefs.h.  */
 
2580
_ACEOF
 
2581
cat confdefs.h >>conftest.$ac_ext
 
2582
cat >>conftest.$ac_ext <<_ACEOF
 
2583
/* end confdefs.h.  */
 
2584
 
 
2585
int
 
2586
main ()
 
2587
{
 
2588
#ifndef __GNUC__
 
2589
       choke me
 
2590
#endif
 
2591
 
 
2592
  ;
 
2593
  return 0;
 
2594
}
 
2595
_ACEOF
 
2596
rm -f conftest.$ac_objext
 
2597
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2598
  (eval $ac_compile) 2>conftest.er1
 
2599
  ac_status=$?
 
2600
  grep -v '^ *+' conftest.er1 >conftest.err
 
2601
  rm -f conftest.er1
 
2602
  cat conftest.err >&5
 
2603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2604
  (exit $ac_status); } &&
 
2605
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2606
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2607
  (eval $ac_try) 2>&5
 
2608
  ac_status=$?
 
2609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2610
  (exit $ac_status); }; } &&
 
2611
         { ac_try='test -s conftest.$ac_objext'
 
2612
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2613
  (eval $ac_try) 2>&5
 
2614
  ac_status=$?
 
2615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2616
  (exit $ac_status); }; }; then
 
2617
  ac_compiler_gnu=yes
 
2618
else
 
2619
  echo "$as_me: failed program was:" >&5
 
2620
sed 's/^/| /' conftest.$ac_ext >&5
 
2621
 
 
2622
ac_compiler_gnu=no
 
2623
fi
 
2624
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2625
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2626
 
 
2627
fi
 
2628
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2629
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2630
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2631
ac_test_CFLAGS=${CFLAGS+set}
 
2632
ac_save_CFLAGS=$CFLAGS
 
2633
CFLAGS="-g"
 
2634
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2635
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2636
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2637
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2638
else
 
2639
  cat >conftest.$ac_ext <<_ACEOF
 
2640
/* confdefs.h.  */
 
2641
_ACEOF
 
2642
cat confdefs.h >>conftest.$ac_ext
 
2643
cat >>conftest.$ac_ext <<_ACEOF
 
2644
/* end confdefs.h.  */
 
2645
 
 
2646
int
 
2647
main ()
 
2648
{
 
2649
 
 
2650
  ;
 
2651
  return 0;
 
2652
}
 
2653
_ACEOF
 
2654
rm -f conftest.$ac_objext
 
2655
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2656
  (eval $ac_compile) 2>conftest.er1
 
2657
  ac_status=$?
 
2658
  grep -v '^ *+' conftest.er1 >conftest.err
 
2659
  rm -f conftest.er1
 
2660
  cat conftest.err >&5
 
2661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2662
  (exit $ac_status); } &&
 
2663
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2664
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2665
  (eval $ac_try) 2>&5
 
2666
  ac_status=$?
 
2667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2668
  (exit $ac_status); }; } &&
 
2669
         { ac_try='test -s conftest.$ac_objext'
 
2670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2671
  (eval $ac_try) 2>&5
 
2672
  ac_status=$?
 
2673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2674
  (exit $ac_status); }; }; then
 
2675
  ac_cv_prog_cc_g=yes
 
2676
else
 
2677
  echo "$as_me: failed program was:" >&5
 
2678
sed 's/^/| /' conftest.$ac_ext >&5
 
2679
 
 
2680
ac_cv_prog_cc_g=no
 
2681
fi
 
2682
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2683
fi
 
2684
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2685
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2686
if test "$ac_test_CFLAGS" = set; then
 
2687
  CFLAGS=$ac_save_CFLAGS
 
2688
elif test $ac_cv_prog_cc_g = yes; then
 
2689
  if test "$GCC" = yes; then
 
2690
    CFLAGS="-g -O2"
 
2691
  else
 
2692
    CFLAGS="-g"
 
2693
  fi
 
2694
else
 
2695
  if test "$GCC" = yes; then
 
2696
    CFLAGS="-O2"
 
2697
  else
 
2698
    CFLAGS=
 
2699
  fi
 
2700
fi
 
2701
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2702
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2703
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2704
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2705
else
 
2706
  ac_cv_prog_cc_stdc=no
 
2707
ac_save_CC=$CC
 
2708
cat >conftest.$ac_ext <<_ACEOF
 
2709
/* confdefs.h.  */
 
2710
_ACEOF
 
2711
cat confdefs.h >>conftest.$ac_ext
 
2712
cat >>conftest.$ac_ext <<_ACEOF
 
2713
/* end confdefs.h.  */
 
2714
#include <stdarg.h>
 
2715
#include <stdio.h>
 
2716
#include <sys/types.h>
 
2717
#include <sys/stat.h>
 
2718
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2719
struct buf { int x; };
 
2720
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2721
static char *e (p, i)
 
2722
     char **p;
 
2723
     int i;
 
2724
{
 
2725
  return p[i];
 
2726
}
 
2727
static char *f (char * (*g) (char **, int), char **p, ...)
 
2728
{
 
2729
  char *s;
 
2730
  va_list v;
 
2731
  va_start (v,p);
 
2732
  s = g (p, va_arg (v,int));
 
2733
  va_end (v);
 
2734
  return s;
 
2735
}
 
2736
 
 
2737
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2738
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2739
   These don't provoke an error unfortunately, instead are silently treated
 
2740
   as 'x'.  The following induces an error, until -std1 is added to get
 
2741
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2742
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2743
   that's true only with -std1.  */
 
2744
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2745
 
 
2746
int test (int i, double x);
 
2747
struct s1 {int (*f) (int a);};
 
2748
struct s2 {int (*f) (double a);};
 
2749
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2750
int argc;
 
2751
char **argv;
 
2752
int
 
2753
main ()
 
2754
{
 
2755
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2756
  ;
 
2757
  return 0;
 
2758
}
 
2759
_ACEOF
 
2760
# Don't try gcc -ansi; that turns off useful extensions and
 
2761
# breaks some systems' header files.
 
2762
# AIX                   -qlanglvl=ansi
 
2763
# Ultrix and OSF/1      -std1
 
2764
# HP-UX 10.20 and later -Ae
 
2765
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2766
# SVR4                  -Xc -D__EXTENSIONS__
 
2767
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2768
do
 
2769
  CC="$ac_save_CC $ac_arg"
 
2770
  rm -f conftest.$ac_objext
 
2771
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2772
  (eval $ac_compile) 2>conftest.er1
 
2773
  ac_status=$?
 
2774
  grep -v '^ *+' conftest.er1 >conftest.err
 
2775
  rm -f conftest.er1
 
2776
  cat conftest.err >&5
 
2777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2778
  (exit $ac_status); } &&
 
2779
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2780
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2781
  (eval $ac_try) 2>&5
 
2782
  ac_status=$?
 
2783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2784
  (exit $ac_status); }; } &&
 
2785
         { ac_try='test -s conftest.$ac_objext'
 
2786
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2787
  (eval $ac_try) 2>&5
 
2788
  ac_status=$?
 
2789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2790
  (exit $ac_status); }; }; then
 
2791
  ac_cv_prog_cc_stdc=$ac_arg
 
2792
break
 
2793
else
 
2794
  echo "$as_me: failed program was:" >&5
 
2795
sed 's/^/| /' conftest.$ac_ext >&5
 
2796
 
 
2797
fi
 
2798
rm -f conftest.err conftest.$ac_objext 
 
2799
done
 
2800
rm -f conftest.$ac_ext conftest.$ac_objext
 
2801
CC=$ac_save_CC
 
2802
 
 
2803
fi
 
2804
 
 
2805
case "x$ac_cv_prog_cc_stdc" in
 
2806
  x|xno)
 
2807
    echo "$as_me:$LINENO: result: none needed" >&5
 
2808
echo "${ECHO_T}none needed" >&6 ;;
 
2809
  *)
 
2810
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2811
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2812
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2813
esac
 
2814
 
 
2815
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2816
# in C++ we need to declare it.  In case someone uses the same compiler
 
2817
# for both compiling C and C++ we need to have the C++ compiler decide
 
2818
# the declaration of exit, since it's the most demanding environment.
 
2819
cat >conftest.$ac_ext <<_ACEOF
 
2820
@%:@ifndef __cplusplus
 
2821
  choke me
 
2822
@%:@endif
 
2823
_ACEOF
 
2824
rm -f conftest.$ac_objext
 
2825
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2826
  (eval $ac_compile) 2>conftest.er1
 
2827
  ac_status=$?
 
2828
  grep -v '^ *+' conftest.er1 >conftest.err
 
2829
  rm -f conftest.er1
 
2830
  cat conftest.err >&5
 
2831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2832
  (exit $ac_status); } &&
 
2833
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2835
  (eval $ac_try) 2>&5
 
2836
  ac_status=$?
 
2837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2838
  (exit $ac_status); }; } &&
 
2839
         { ac_try='test -s conftest.$ac_objext'
 
2840
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2841
  (eval $ac_try) 2>&5
 
2842
  ac_status=$?
 
2843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2844
  (exit $ac_status); }; }; then
 
2845
  for ac_declaration in \
 
2846
   '' \
 
2847
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2848
   'extern "C" void std::exit (int); using std::exit;' \
 
2849
   'extern "C" void exit (int) throw ();' \
 
2850
   'extern "C" void exit (int);' \
 
2851
   'void exit (int);'
 
2852
do
 
2853
  cat >conftest.$ac_ext <<_ACEOF
 
2854
/* confdefs.h.  */
 
2855
_ACEOF
 
2856
cat confdefs.h >>conftest.$ac_ext
 
2857
cat >>conftest.$ac_ext <<_ACEOF
 
2858
/* end confdefs.h.  */
 
2859
$ac_declaration
 
2860
@%:@include <stdlib.h>
 
2861
int
 
2862
main ()
 
2863
{
 
2864
exit (42);
 
2865
  ;
 
2866
  return 0;
 
2867
}
 
2868
_ACEOF
 
2869
rm -f conftest.$ac_objext
 
2870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2871
  (eval $ac_compile) 2>conftest.er1
 
2872
  ac_status=$?
 
2873
  grep -v '^ *+' conftest.er1 >conftest.err
 
2874
  rm -f conftest.er1
 
2875
  cat conftest.err >&5
 
2876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2877
  (exit $ac_status); } &&
 
2878
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2879
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2880
  (eval $ac_try) 2>&5
 
2881
  ac_status=$?
 
2882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2883
  (exit $ac_status); }; } &&
 
2884
         { ac_try='test -s conftest.$ac_objext'
 
2885
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2886
  (eval $ac_try) 2>&5
 
2887
  ac_status=$?
 
2888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2889
  (exit $ac_status); }; }; then
 
2890
  :
 
2891
else
 
2892
  echo "$as_me: failed program was:" >&5
 
2893
sed 's/^/| /' conftest.$ac_ext >&5
 
2894
 
 
2895
continue
 
2896
fi
 
2897
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2898
  cat >conftest.$ac_ext <<_ACEOF
 
2899
/* confdefs.h.  */
 
2900
_ACEOF
 
2901
cat confdefs.h >>conftest.$ac_ext
 
2902
cat >>conftest.$ac_ext <<_ACEOF
 
2903
/* end confdefs.h.  */
 
2904
$ac_declaration
 
2905
int
 
2906
main ()
 
2907
{
 
2908
exit (42);
 
2909
  ;
 
2910
  return 0;
 
2911
}
 
2912
_ACEOF
 
2913
rm -f conftest.$ac_objext
 
2914
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2915
  (eval $ac_compile) 2>conftest.er1
 
2916
  ac_status=$?
 
2917
  grep -v '^ *+' conftest.er1 >conftest.err
 
2918
  rm -f conftest.er1
 
2919
  cat conftest.err >&5
 
2920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2921
  (exit $ac_status); } &&
 
2922
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2923
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2924
  (eval $ac_try) 2>&5
 
2925
  ac_status=$?
 
2926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2927
  (exit $ac_status); }; } &&
 
2928
         { ac_try='test -s conftest.$ac_objext'
 
2929
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2930
  (eval $ac_try) 2>&5
 
2931
  ac_status=$?
 
2932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2933
  (exit $ac_status); }; }; then
 
2934
  break
 
2935
else
 
2936
  echo "$as_me: failed program was:" >&5
 
2937
sed 's/^/| /' conftest.$ac_ext >&5
 
2938
 
 
2939
fi
 
2940
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2941
done
 
2942
rm -f conftest*
 
2943
if test -n "$ac_declaration"; then
 
2944
  echo '#ifdef __cplusplus' >>confdefs.h
 
2945
  echo $ac_declaration      >>confdefs.h
 
2946
  echo '#endif'             >>confdefs.h
 
2947
fi
 
2948
 
 
2949
else
 
2950
  echo "$as_me: failed program was:" >&5
 
2951
sed 's/^/| /' conftest.$ac_ext >&5
 
2952
 
 
2953
fi
 
2954
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2955
ac_ext=c
 
2956
ac_cpp='$CPP $CPPFLAGS'
 
2957
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2958
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2959
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2960
DEPDIR="${am__leading_dot}deps"
 
2961
 
 
2962
          ac_config_commands="$ac_config_commands depfiles"
 
2963
 
 
2964
 
 
2965
am_make=${MAKE-make}
 
2966
cat > confinc << 'END'
 
2967
am__doit:
 
2968
        @echo done
 
2969
.PHONY: am__doit
 
2970
END
 
2971
# If we don't find an include directive, just comment out the code.
 
2972
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2973
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2974
am__include="#"
 
2975
am__quote=
 
2976
_am_result=none
 
2977
# First try GNU make style include.
 
2978
echo "include confinc" > confmf
 
2979
# We grep out `Entering directory' and `Leaving directory'
 
2980
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2981
# In particular we don't look at `^make:' because GNU make might
 
2982
# be invoked under some other name (usually "gmake"), in which
 
2983
# case it prints its new name instead of `make'.
 
2984
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2985
   am__include=include
 
2986
   am__quote=
 
2987
   _am_result=GNU
 
2988
fi
 
2989
# Now try BSD make style include.
 
2990
if test "$am__include" = "#"; then
 
2991
   echo '.include "confinc"' > confmf
 
2992
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2993
      am__include=.include
 
2994
      am__quote="\""
 
2995
      _am_result=BSD
 
2996
   fi
 
2997
fi
 
2998
 
 
2999
 
 
3000
echo "$as_me:$LINENO: result: $_am_result" >&5
 
3001
echo "${ECHO_T}$_am_result" >&6
 
3002
rm -f confinc confmf
 
3003
 
 
3004
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
3005
if test "${enable_dependency_tracking+set}" = set; then
 
3006
  enableval="$enable_dependency_tracking"
 
3007
  
 
3008
fi; 
 
3009
if test "x$enable_dependency_tracking" != xno; then
 
3010
  am_depcomp="$ac_aux_dir/depcomp"
 
3011
  AMDEPBACKSLASH='\'
 
3012
fi
 
3013
 
 
3014
 
 
3015
if test "x$enable_dependency_tracking" != xno; then
 
3016
  AMDEP_TRUE=
 
3017
  AMDEP_FALSE='#'
 
3018
else
 
3019
  AMDEP_TRUE='#'
 
3020
  AMDEP_FALSE=
 
3021
fi
 
3022
 
 
3023
 
 
3024
 
 
3025
 
 
3026
depcc="$CC"   am_compiler_list=
 
3027
 
 
3028
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3029
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3030
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3031
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3032
else
 
3033
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3034
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3035
  # making bogus files that we don't know about and never remove.  For
 
3036
  # instance it was reported that on HP-UX the gcc test will end up
 
3037
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3038
  # in D'.
 
3039
  mkdir conftest.dir
 
3040
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3041
  # using a relative directory.
 
3042
  cp "$am_depcomp" conftest.dir
 
3043
  cd conftest.dir
 
3044
  # We will build objects and dependencies in a subdirectory because
 
3045
  # it helps to detect inapplicable dependency modes.  For instance
 
3046
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3047
  # side effect of compilation, but ICC will put the dependencies in
 
3048
  # the current directory while Tru64 will put them in the object
 
3049
  # directory.
 
3050
  mkdir sub
 
3051
 
 
3052
  am_cv_CC_dependencies_compiler_type=none
 
3053
  if test "$am_compiler_list" = ""; then
 
3054
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3055
  fi
 
3056
  for depmode in $am_compiler_list; do
 
3057
    # Setup a source with many dependencies, because some compilers
 
3058
    # like to wrap large dependency lists on column 80 (with \), and
 
3059
    # we should not choose a depcomp mode which is confused by this.
 
3060
    #
 
3061
    # We need to recreate these files for each test, as the compiler may
 
3062
    # overwrite some of them when testing with obscure command lines.
 
3063
    # This happens at least with the AIX C compiler.
 
3064
    : > sub/conftest.c
 
3065
    for i in 1 2 3 4 5 6; do
 
3066
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3067
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3068
      # Solaris 8's {/usr,}/bin/sh.
 
3069
      touch sub/conftst$i.h
 
3070
    done
 
3071
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3072
 
 
3073
    case $depmode in
 
3074
    nosideeffect)
 
3075
      # after this tag, mechanisms are not by side-effect, so they'll
 
3076
      # only be used when explicitly requested
 
3077
      if test "x$enable_dependency_tracking" = xyes; then
 
3078
        continue
 
3079
      else
 
3080
        break
 
3081
      fi
 
3082
      ;;
 
3083
    none) break ;;
 
3084
    esac
 
3085
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3086
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3087
    # handle `-M -o', and we need to detect this.
 
3088
    if depmode=$depmode \
 
3089
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3090
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3091
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3092
         >/dev/null 2>conftest.err &&
 
3093
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3094
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3095
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3096
      # icc doesn't choke on unknown options, it will just issue warnings
 
3097
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3098
      # that says an option was ignored or not supported.
 
3099
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3100
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3101
      # The diagnosis changed in icc 8.0:
 
3102
      #   icc: Command line remark: option '-MP' not supported
 
3103
      if (grep 'ignoring option' conftest.err ||
 
3104
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3105
        am_cv_CC_dependencies_compiler_type=$depmode
 
3106
        break
 
3107
      fi
 
3108
    fi
 
3109
  done
 
3110
 
 
3111
  cd ..
 
3112
  rm -rf conftest.dir
 
3113
else
 
3114
  am_cv_CC_dependencies_compiler_type=none
 
3115
fi
 
3116
 
 
3117
fi
 
3118
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3119
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3120
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3121
 
 
3122
 
 
3123
 
 
3124
if 
 
3125
  test "x$enable_dependency_tracking" != xno \
 
3126
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3127
  am__fastdepCC_TRUE=
 
3128
  am__fastdepCC_FALSE='#'
 
3129
else
 
3130
  am__fastdepCC_TRUE='#'
 
3131
  am__fastdepCC_FALSE=
 
3132
fi
 
3133
 
 
3134
 
 
3135
ac_ext=c
 
3136
ac_cpp='$CPP $CPPFLAGS'
 
3137
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3138
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3139
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3140
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3141
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3142
# On Suns, sometimes $CPP names a directory.
 
3143
if test -n "$CPP" && test -d "$CPP"; then
 
3144
  CPP=
 
3145
fi
 
3146
if test -z "$CPP"; then
 
3147
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3148
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3149
else
 
3150
      # Double quotes because CPP needs to be expanded
 
3151
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3152
    do
 
3153
      ac_preproc_ok=false
 
3154
for ac_c_preproc_warn_flag in '' yes
 
3155
do
 
3156
  # Use a header file that comes with gcc, so configuring glibc
 
3157
  # with a fresh cross-compiler works.
 
3158
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3159
  # <limits.h> exists even on freestanding compilers.
 
3160
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3161
  # not just through cpp. "Syntax error" is here to catch this case.
 
3162
  cat >conftest.$ac_ext <<_ACEOF
 
3163
/* confdefs.h.  */
 
3164
_ACEOF
 
3165
cat confdefs.h >>conftest.$ac_ext
 
3166
cat >>conftest.$ac_ext <<_ACEOF
 
3167
/* end confdefs.h.  */
 
3168
@%:@ifdef __STDC__
 
3169
@%:@ include <limits.h>
 
3170
@%:@else
 
3171
@%:@ include <assert.h>
 
3172
@%:@endif
 
3173
                     Syntax error
 
3174
_ACEOF
 
3175
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3176
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3177
  ac_status=$?
 
3178
  grep -v '^ *+' conftest.er1 >conftest.err
 
3179
  rm -f conftest.er1
 
3180
  cat conftest.err >&5
 
3181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3182
  (exit $ac_status); } >/dev/null; then
 
3183
  if test -s conftest.err; then
 
3184
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3185
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3186
  else
 
3187
    ac_cpp_err=
 
3188
  fi
 
3189
else
 
3190
  ac_cpp_err=yes
 
3191
fi
 
3192
if test -z "$ac_cpp_err"; then
 
3193
  :
 
3194
else
 
3195
  echo "$as_me: failed program was:" >&5
 
3196
sed 's/^/| /' conftest.$ac_ext >&5
 
3197
 
 
3198
  # Broken: fails on valid input.
 
3199
continue
 
3200
fi
 
3201
rm -f conftest.err conftest.$ac_ext
 
3202
 
 
3203
  # OK, works on sane cases.  Now check whether non-existent headers
 
3204
  # can be detected and how.
 
3205
  cat >conftest.$ac_ext <<_ACEOF
 
3206
/* confdefs.h.  */
 
3207
_ACEOF
 
3208
cat confdefs.h >>conftest.$ac_ext
 
3209
cat >>conftest.$ac_ext <<_ACEOF
 
3210
/* end confdefs.h.  */
 
3211
@%:@include <ac_nonexistent.h>
 
3212
_ACEOF
 
3213
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3214
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3215
  ac_status=$?
 
3216
  grep -v '^ *+' conftest.er1 >conftest.err
 
3217
  rm -f conftest.er1
 
3218
  cat conftest.err >&5
 
3219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3220
  (exit $ac_status); } >/dev/null; then
 
3221
  if test -s conftest.err; then
 
3222
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3223
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3224
  else
 
3225
    ac_cpp_err=
 
3226
  fi
 
3227
else
 
3228
  ac_cpp_err=yes
 
3229
fi
 
3230
if test -z "$ac_cpp_err"; then
 
3231
  # Broken: success on invalid input.
 
3232
continue
 
3233
else
 
3234
  echo "$as_me: failed program was:" >&5
 
3235
sed 's/^/| /' conftest.$ac_ext >&5
 
3236
 
 
3237
  # Passes both tests.
 
3238
ac_preproc_ok=:
 
3239
break
 
3240
fi
 
3241
rm -f conftest.err conftest.$ac_ext
 
3242
 
 
3243
done
 
3244
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3245
rm -f conftest.err conftest.$ac_ext
 
3246
if $ac_preproc_ok; then
 
3247
  break
 
3248
fi
 
3249
 
 
3250
    done
 
3251
    ac_cv_prog_CPP=$CPP
 
3252
  
 
3253
fi
 
3254
  CPP=$ac_cv_prog_CPP
 
3255
else
 
3256
  ac_cv_prog_CPP=$CPP
 
3257
fi
 
3258
echo "$as_me:$LINENO: result: $CPP" >&5
 
3259
echo "${ECHO_T}$CPP" >&6
 
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
  :
 
3355
else
 
3356
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3357
See \`config.log' for more details." >&5
 
3358
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3359
See \`config.log' for more details." >&2;}
 
3360
   { (exit 1); exit 1; }; }
 
3361
fi
 
3362
 
 
3363
ac_ext=c
 
3364
ac_cpp='$CPP $CPPFLAGS'
 
3365
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3366
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3367
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3368
 
 
3369
# Find a good install program.  We prefer a C program (faster),
 
3370
# so one script is as good as another.  But avoid the broken or
 
3371
# incompatible versions:
 
3372
# SysV /etc/install, /usr/sbin/install
 
3373
# SunOS /usr/etc/install
 
3374
# IRIX /sbin/install
 
3375
# AIX /bin/install
 
3376
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3377
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3378
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3379
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3380
# OS/2's system install, which has a completely different semantic
 
3381
# ./install, which can be erroneously created by make from ./install.sh.
 
3382
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3383
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
3384
if test -z "$INSTALL"; then
 
3385
if test "${ac_cv_path_install+set}" = set; then
 
3386
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3387
else
 
3388
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3389
for as_dir in $PATH
 
3390
do
 
3391
  IFS=$as_save_IFS
 
3392
  test -z "$as_dir" && as_dir=.
 
3393
  # Account for people who put trailing slashes in PATH elements.
 
3394
case $as_dir/ in
 
3395
  ./ | .// | /cC/* | \
 
3396
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3397
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3398
  /usr/ucb/* ) ;;
 
3399
  *)
 
3400
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3401
    # Don't use installbsd from OSF since it installs stuff as root
 
3402
    # by default.
 
3403
    for ac_prog in ginstall scoinst install; do
 
3404
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3405
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3406
          if test $ac_prog = install &&
 
3407
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3408
            # AIX install.  It has an incompatible calling convention.
 
3409
            :
 
3410
          elif test $ac_prog = install &&
 
3411
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3412
            # program-specific install script used by HP pwplus--don't use.
 
3413
            :
 
3414
          else
 
3415
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3416
            break 3
 
3417
          fi
 
3418
        fi
 
3419
      done
 
3420
    done
 
3421
    ;;
 
3422
esac
 
3423
done
 
3424
 
 
3425
 
 
3426
fi
 
3427
  if test "${ac_cv_path_install+set}" = set; then
 
3428
    INSTALL=$ac_cv_path_install
 
3429
  else
 
3430
    # As a last resort, use the slow shell script.  We don't cache a
 
3431
    # path for INSTALL within a source directory, because that will
 
3432
    # break other packages using the cache if that directory is
 
3433
    # removed, or if the path is relative.
 
3434
    INSTALL=$ac_install_sh
 
3435
  fi
 
3436
fi
 
3437
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3438
echo "${ECHO_T}$INSTALL" >&6
 
3439
 
 
3440
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3441
# It thinks the first close brace ends the variable substitution.
 
3442
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3443
 
 
3444
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3445
 
 
3446
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3447
 
 
3448
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3449
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3450
LN_S=$as_ln_s
 
3451
if test "$LN_S" = "ln -s"; then
 
3452
  echo "$as_me:$LINENO: result: yes" >&5
 
3453
echo "${ECHO_T}yes" >&6
 
3454
else
 
3455
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3456
echo "${ECHO_T}no, using $LN_S" >&6
 
3457
fi
 
3458
 
 
3459
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3460
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
3461
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
3462
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
3463
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3464
else
 
3465
  cat >conftest.make <<\_ACEOF
 
3466
all:
 
3467
        @echo 'ac_maketemp="$(MAKE)"'
 
3468
_ACEOF
 
3469
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3470
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
3471
if test -n "$ac_maketemp"; then
 
3472
  eval ac_cv_prog_make_${ac_make}_set=yes
 
3473
else
 
3474
  eval ac_cv_prog_make_${ac_make}_set=no
 
3475
fi
 
3476
rm -f conftest.make
 
3477
fi
 
3478
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
3479
  echo "$as_me:$LINENO: result: yes" >&5
 
3480
echo "${ECHO_T}yes" >&6
 
3481
  SET_MAKE=
 
3482
else
 
3483
  echo "$as_me:$LINENO: result: no" >&5
 
3484
echo "${ECHO_T}no" >&6
 
3485
  SET_MAKE="MAKE=${MAKE-make}"
 
3486
fi
 
3487
 
 
3488
 
 
3489
 
 
3490
 
 
3491
echo "$as_me:$LINENO: checking for egrep" >&5
 
3492
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3493
if test "${ac_cv_prog_egrep+set}" = set; then
 
3494
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3495
else
 
3496
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3497
    then ac_cv_prog_egrep='grep -E'
 
3498
    else ac_cv_prog_egrep='egrep'
 
3499
    fi
 
3500
fi
 
3501
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3502
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3503
 EGREP=$ac_cv_prog_egrep
 
3504
 
 
3505
 
 
3506
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3507
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3508
if test "${ac_cv_header_stdc+set}" = set; then
 
3509
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3510
else
 
3511
  cat >conftest.$ac_ext <<_ACEOF
 
3512
/* confdefs.h.  */
 
3513
_ACEOF
 
3514
cat confdefs.h >>conftest.$ac_ext
 
3515
cat >>conftest.$ac_ext <<_ACEOF
 
3516
/* end confdefs.h.  */
 
3517
#include <stdlib.h>
 
3518
#include <stdarg.h>
 
3519
#include <string.h>
 
3520
#include <float.h>
 
3521
 
 
3522
int
 
3523
main ()
 
3524
{
 
3525
 
 
3526
  ;
 
3527
  return 0;
 
3528
}
 
3529
_ACEOF
 
3530
rm -f conftest.$ac_objext
 
3531
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3532
  (eval $ac_compile) 2>conftest.er1
 
3533
  ac_status=$?
 
3534
  grep -v '^ *+' conftest.er1 >conftest.err
 
3535
  rm -f conftest.er1
 
3536
  cat conftest.err >&5
 
3537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3538
  (exit $ac_status); } &&
 
3539
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3540
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3541
  (eval $ac_try) 2>&5
 
3542
  ac_status=$?
 
3543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3544
  (exit $ac_status); }; } &&
 
3545
         { ac_try='test -s conftest.$ac_objext'
 
3546
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3547
  (eval $ac_try) 2>&5
 
3548
  ac_status=$?
 
3549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3550
  (exit $ac_status); }; }; then
 
3551
  ac_cv_header_stdc=yes
 
3552
else
 
3553
  echo "$as_me: failed program was:" >&5
 
3554
sed 's/^/| /' conftest.$ac_ext >&5
 
3555
 
 
3556
ac_cv_header_stdc=no
 
3557
fi
 
3558
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3559
 
 
3560
if test $ac_cv_header_stdc = yes; then
 
3561
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3562
  cat >conftest.$ac_ext <<_ACEOF
 
3563
/* confdefs.h.  */
 
3564
_ACEOF
 
3565
cat confdefs.h >>conftest.$ac_ext
 
3566
cat >>conftest.$ac_ext <<_ACEOF
 
3567
/* end confdefs.h.  */
 
3568
#include <string.h>
 
3569
 
 
3570
_ACEOF
 
3571
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3572
  $EGREP "memchr" >/dev/null 2>&1; then
 
3573
  :
 
3574
else
 
3575
  ac_cv_header_stdc=no
 
3576
fi
 
3577
rm -f conftest*
 
3578
 
 
3579
fi
 
3580
 
 
3581
if test $ac_cv_header_stdc = yes; then
 
3582
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3583
  cat >conftest.$ac_ext <<_ACEOF
 
3584
/* confdefs.h.  */
 
3585
_ACEOF
 
3586
cat confdefs.h >>conftest.$ac_ext
 
3587
cat >>conftest.$ac_ext <<_ACEOF
 
3588
/* end confdefs.h.  */
 
3589
#include <stdlib.h>
 
3590
 
 
3591
_ACEOF
 
3592
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3593
  $EGREP "free" >/dev/null 2>&1; then
 
3594
  :
 
3595
else
 
3596
  ac_cv_header_stdc=no
 
3597
fi
 
3598
rm -f conftest*
 
3599
 
 
3600
fi
 
3601
 
 
3602
if test $ac_cv_header_stdc = yes; then
 
3603
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3604
  if test "$cross_compiling" = yes; then
 
3605
  :
 
3606
else
 
3607
  cat >conftest.$ac_ext <<_ACEOF
 
3608
/* confdefs.h.  */
 
3609
_ACEOF
 
3610
cat confdefs.h >>conftest.$ac_ext
 
3611
cat >>conftest.$ac_ext <<_ACEOF
 
3612
/* end confdefs.h.  */
 
3613
#include <ctype.h>
 
3614
#if ((' ' & 0x0FF) == 0x020)
 
3615
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3616
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3617
#else
 
3618
# define ISLOWER(c) \
 
3619
                   (('a' <= (c) && (c) <= 'i') \
 
3620
                     || ('j' <= (c) && (c) <= 'r') \
 
3621
                     || ('s' <= (c) && (c) <= 'z'))
 
3622
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3623
#endif
 
3624
 
 
3625
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3626
int
 
3627
main ()
 
3628
{
 
3629
  int i;
 
3630
  for (i = 0; i < 256; i++)
 
3631
    if (XOR (islower (i), ISLOWER (i))
 
3632
        || toupper (i) != TOUPPER (i))
 
3633
      exit(2);
 
3634
  exit (0);
 
3635
}
 
3636
_ACEOF
 
3637
rm -f conftest$ac_exeext
 
3638
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3639
  (eval $ac_link) 2>&5
 
3640
  ac_status=$?
 
3641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3642
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3643
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3644
  (eval $ac_try) 2>&5
 
3645
  ac_status=$?
 
3646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3647
  (exit $ac_status); }; }; then
 
3648
  :
 
3649
else
 
3650
  echo "$as_me: program exited with status $ac_status" >&5
 
3651
echo "$as_me: failed program was:" >&5
 
3652
sed 's/^/| /' conftest.$ac_ext >&5
 
3653
 
 
3654
( exit $ac_status )
 
3655
ac_cv_header_stdc=no
 
3656
fi
 
3657
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3658
fi
 
3659
fi
 
3660
fi
 
3661
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3662
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3663
if test $ac_cv_header_stdc = yes; then
 
3664
  
 
3665
cat >>confdefs.h <<\_ACEOF
 
3666
@%:@define STDC_HEADERS 1
 
3667
_ACEOF
 
3668
 
 
3669
fi
 
3670
 
 
3671
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3672
 
 
3673
 
 
3674
 
 
3675
 
 
3676
 
 
3677
 
 
3678
 
 
3679
 
 
3680
 
 
3681
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3682
                  inttypes.h stdint.h unistd.h
 
3683
do
 
3684
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3685
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3686
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3687
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3688
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3689
else
 
3690
  cat >conftest.$ac_ext <<_ACEOF
 
3691
/* confdefs.h.  */
 
3692
_ACEOF
 
3693
cat confdefs.h >>conftest.$ac_ext
 
3694
cat >>conftest.$ac_ext <<_ACEOF
 
3695
/* end confdefs.h.  */
 
3696
$ac_includes_default
 
3697
 
 
3698
@%:@include <$ac_header>
 
3699
_ACEOF
 
3700
rm -f conftest.$ac_objext
 
3701
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3702
  (eval $ac_compile) 2>conftest.er1
 
3703
  ac_status=$?
 
3704
  grep -v '^ *+' conftest.er1 >conftest.err
 
3705
  rm -f conftest.er1
 
3706
  cat conftest.err >&5
 
3707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3708
  (exit $ac_status); } &&
 
3709
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3710
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3711
  (eval $ac_try) 2>&5
 
3712
  ac_status=$?
 
3713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3714
  (exit $ac_status); }; } &&
 
3715
         { ac_try='test -s conftest.$ac_objext'
 
3716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3717
  (eval $ac_try) 2>&5
 
3718
  ac_status=$?
 
3719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3720
  (exit $ac_status); }; }; then
 
3721
  eval "$as_ac_Header=yes"
 
3722
else
 
3723
  echo "$as_me: failed program was:" >&5
 
3724
sed 's/^/| /' conftest.$ac_ext >&5
 
3725
 
 
3726
eval "$as_ac_Header=no"
 
3727
fi
 
3728
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3729
fi
 
3730
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3731
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3732
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3733
  cat >>confdefs.h <<_ACEOF
 
3734
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3735
_ACEOF
 
3736
 
 
3737
fi
 
3738
 
 
3739
done
 
3740
 
 
3741
 
 
3742
 
 
3743
 
 
3744
 
 
3745
 
 
3746
 
 
3747
 
 
3748
 
 
3749
 
 
3750
 
 
3751
 
 
3752
 
 
3753
 
 
3754
for ac_header in fcntl.h inttypes.h limits.h malloc.h stddef.h stdint.h stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h
 
3755
do
 
3756
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3757
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3758
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3759
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3760
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3761
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3762
fi
 
3763
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3764
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3765
else
 
3766
  # Is the header compilable?
 
3767
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
3768
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
3769
cat >conftest.$ac_ext <<_ACEOF
 
3770
/* confdefs.h.  */
 
3771
_ACEOF
 
3772
cat confdefs.h >>conftest.$ac_ext
 
3773
cat >>conftest.$ac_ext <<_ACEOF
 
3774
/* end confdefs.h.  */
 
3775
$ac_includes_default
 
3776
@%:@include <$ac_header>
 
3777
_ACEOF
 
3778
rm -f conftest.$ac_objext
 
3779
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3780
  (eval $ac_compile) 2>conftest.er1
 
3781
  ac_status=$?
 
3782
  grep -v '^ *+' conftest.er1 >conftest.err
 
3783
  rm -f conftest.er1
 
3784
  cat conftest.err >&5
 
3785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3786
  (exit $ac_status); } &&
 
3787
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3789
  (eval $ac_try) 2>&5
 
3790
  ac_status=$?
 
3791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3792
  (exit $ac_status); }; } &&
 
3793
         { ac_try='test -s conftest.$ac_objext'
 
3794
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3795
  (eval $ac_try) 2>&5
 
3796
  ac_status=$?
 
3797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3798
  (exit $ac_status); }; }; then
 
3799
  ac_header_compiler=yes
 
3800
else
 
3801
  echo "$as_me: failed program was:" >&5
 
3802
sed 's/^/| /' conftest.$ac_ext >&5
 
3803
 
 
3804
ac_header_compiler=no
 
3805
fi
 
3806
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3807
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3808
echo "${ECHO_T}$ac_header_compiler" >&6
 
3809
 
 
3810
# Is the header present?
 
3811
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
3812
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
3813
cat >conftest.$ac_ext <<_ACEOF
 
3814
/* confdefs.h.  */
 
3815
_ACEOF
 
3816
cat confdefs.h >>conftest.$ac_ext
 
3817
cat >>conftest.$ac_ext <<_ACEOF
 
3818
/* end confdefs.h.  */
 
3819
@%:@include <$ac_header>
 
3820
_ACEOF
 
3821
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3822
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3823
  ac_status=$?
 
3824
  grep -v '^ *+' conftest.er1 >conftest.err
 
3825
  rm -f conftest.er1
 
3826
  cat conftest.err >&5
 
3827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3828
  (exit $ac_status); } >/dev/null; then
 
3829
  if test -s conftest.err; then
 
3830
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3831
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3832
  else
 
3833
    ac_cpp_err=
 
3834
  fi
 
3835
else
 
3836
  ac_cpp_err=yes
 
3837
fi
 
3838
if test -z "$ac_cpp_err"; then
 
3839
  ac_header_preproc=yes
 
3840
else
 
3841
  echo "$as_me: failed program was:" >&5
 
3842
sed 's/^/| /' conftest.$ac_ext >&5
 
3843
 
 
3844
  ac_header_preproc=no
 
3845
fi
 
3846
rm -f conftest.err conftest.$ac_ext
 
3847
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3848
echo "${ECHO_T}$ac_header_preproc" >&6
 
3849
 
 
3850
# So?  What about this header?
 
3851
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3852
  yes:no: )
 
3853
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
3854
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3855
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
3856
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
3857
    ac_header_preproc=yes
 
3858
    ;;
 
3859
  no:yes:* )
 
3860
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
3861
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
3862
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
3863
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
3864
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
3865
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
3866
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
3867
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3868
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
3869
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
3870
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
3871
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
3872
    (
 
3873
      cat <<\_ASBOX
 
3874
@%:@@%:@ ---------------------------------- @%:@@%:@
 
3875
@%:@@%:@ Report this to doug@sourcejudy.com @%:@@%:@
 
3876
@%:@@%:@ ---------------------------------- @%:@@%:@
 
3877
_ASBOX
 
3878
    ) |
 
3879
      sed "s/^/$as_me: WARNING:     /" >&2
 
3880
    ;;
 
3881
esac
 
3882
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3883
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3884
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3885
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3886
else
 
3887
  eval "$as_ac_Header=\$ac_header_preproc"
 
3888
fi
 
3889
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3890
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3891
 
 
3892
fi
 
3893
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3894
  cat >>confdefs.h <<_ACEOF
 
3895
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3896
_ACEOF
 
3897
 
 
3898
fi
 
3899
 
 
3900
done
 
3901
 
 
3902
 
 
3903
 
 
3904
echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
 
3905
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
 
3906
if test "${ac_cv_header_stdbool_h+set}" = set; then
 
3907
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3908
else
 
3909
  cat >conftest.$ac_ext <<_ACEOF
 
3910
/* confdefs.h.  */
 
3911
_ACEOF
 
3912
cat confdefs.h >>conftest.$ac_ext
 
3913
cat >>conftest.$ac_ext <<_ACEOF
 
3914
/* end confdefs.h.  */
 
3915
 
 
3916
#include <stdbool.h>
 
3917
#ifndef bool
 
3918
# error bool is not defined
 
3919
#endif
 
3920
#ifndef false
 
3921
# error false is not defined
 
3922
#endif
 
3923
#if false
 
3924
# error false is not 0
 
3925
#endif
 
3926
#ifndef true
 
3927
# error true is not defined
 
3928
#endif
 
3929
#if true != 1
 
3930
# error true is not 1
 
3931
#endif
 
3932
#ifndef __bool_true_false_are_defined
 
3933
# error __bool_true_false_are_defined is not defined
 
3934
#endif
 
3935
 
 
3936
        struct s { _Bool s: 1; _Bool t; } s;
 
3937
 
 
3938
        char a[true == 1 ? 1 : -1];
 
3939
        char b[false == 0 ? 1 : -1];
 
3940
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
3941
        char d[(bool) -0.5 == true ? 1 : -1];
 
3942
        bool e = &s;
 
3943
        char f[(_Bool) -0.0 == false ? 1 : -1];
 
3944
        char g[true];
 
3945
        char h[sizeof (_Bool)];
 
3946
        char i[sizeof s.t];
 
3947
      
 
3948
int
 
3949
main ()
 
3950
{
 
3951
 return !a + !b + !c + !d + !e + !f + !g + !h + !i; 
 
3952
  ;
 
3953
  return 0;
 
3954
}
 
3955
_ACEOF
 
3956
rm -f conftest.$ac_objext
 
3957
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3958
  (eval $ac_compile) 2>conftest.er1
 
3959
  ac_status=$?
 
3960
  grep -v '^ *+' conftest.er1 >conftest.err
 
3961
  rm -f conftest.er1
 
3962
  cat conftest.err >&5
 
3963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3964
  (exit $ac_status); } &&
 
3965
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3966
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3967
  (eval $ac_try) 2>&5
 
3968
  ac_status=$?
 
3969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3970
  (exit $ac_status); }; } &&
 
3971
         { ac_try='test -s conftest.$ac_objext'
 
3972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3973
  (eval $ac_try) 2>&5
 
3974
  ac_status=$?
 
3975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3976
  (exit $ac_status); }; }; then
 
3977
  ac_cv_header_stdbool_h=yes
 
3978
else
 
3979
  echo "$as_me: failed program was:" >&5
 
3980
sed 's/^/| /' conftest.$ac_ext >&5
 
3981
 
 
3982
ac_cv_header_stdbool_h=no
 
3983
fi
 
3984
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3985
fi
 
3986
echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
 
3987
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
 
3988
echo "$as_me:$LINENO: checking for _Bool" >&5
 
3989
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
 
3990
if test "${ac_cv_type__Bool+set}" = set; then
 
3991
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3992
else
 
3993
  cat >conftest.$ac_ext <<_ACEOF
 
3994
/* confdefs.h.  */
 
3995
_ACEOF
 
3996
cat confdefs.h >>conftest.$ac_ext
 
3997
cat >>conftest.$ac_ext <<_ACEOF
 
3998
/* end confdefs.h.  */
 
3999
$ac_includes_default
 
4000
int
 
4001
main ()
 
4002
{
 
4003
if ((_Bool *) 0)
 
4004
  return 0;
 
4005
if (sizeof (_Bool))
 
4006
  return 0;
 
4007
  ;
 
4008
  return 0;
 
4009
}
 
4010
_ACEOF
 
4011
rm -f conftest.$ac_objext
 
4012
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4013
  (eval $ac_compile) 2>conftest.er1
 
4014
  ac_status=$?
 
4015
  grep -v '^ *+' conftest.er1 >conftest.err
 
4016
  rm -f conftest.er1
 
4017
  cat conftest.err >&5
 
4018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4019
  (exit $ac_status); } &&
 
4020
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4022
  (eval $ac_try) 2>&5
 
4023
  ac_status=$?
 
4024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4025
  (exit $ac_status); }; } &&
 
4026
         { ac_try='test -s conftest.$ac_objext'
 
4027
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4028
  (eval $ac_try) 2>&5
 
4029
  ac_status=$?
 
4030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4031
  (exit $ac_status); }; }; then
 
4032
  ac_cv_type__Bool=yes
 
4033
else
 
4034
  echo "$as_me: failed program was:" >&5
 
4035
sed 's/^/| /' conftest.$ac_ext >&5
 
4036
 
 
4037
ac_cv_type__Bool=no
 
4038
fi
 
4039
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4040
fi
 
4041
echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
 
4042
echo "${ECHO_T}$ac_cv_type__Bool" >&6
 
4043
if test $ac_cv_type__Bool = yes; then
 
4044
  
 
4045
cat >>confdefs.h <<_ACEOF
 
4046
@%:@define HAVE__BOOL 1
 
4047
_ACEOF
 
4048
 
 
4049
 
 
4050
fi
 
4051
 
 
4052
if test $ac_cv_header_stdbool_h = yes; then
 
4053
  
 
4054
cat >>confdefs.h <<\_ACEOF
 
4055
@%:@define HAVE_STDBOOL_H 1
 
4056
_ACEOF
 
4057
 
 
4058
fi
 
4059
 
 
4060
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
4061
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
4062
if test "${ac_cv_c_const+set}" = set; then
 
4063
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4064
else
 
4065
  cat >conftest.$ac_ext <<_ACEOF
 
4066
/* confdefs.h.  */
 
4067
_ACEOF
 
4068
cat confdefs.h >>conftest.$ac_ext
 
4069
cat >>conftest.$ac_ext <<_ACEOF
 
4070
/* end confdefs.h.  */
 
4071
 
 
4072
int
 
4073
main ()
 
4074
{
 
4075
/* FIXME: Include the comments suggested by Paul. */
 
4076
#ifndef __cplusplus
 
4077
  /* Ultrix mips cc rejects this.  */
 
4078
  typedef int charset[2];
 
4079
  const charset x;
 
4080
  /* SunOS 4.1.1 cc rejects this.  */
 
4081
  char const *const *ccp;
 
4082
  char **p;
 
4083
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
4084
  struct point {int x, y;};
 
4085
  static struct point const zero = {0,0};
 
4086
  /* AIX XL C 1.02.0.0 rejects this.
 
4087
     It does not let you subtract one const X* pointer from another in
 
4088
     an arm of an if-expression whose if-part is not a constant
 
4089
     expression */
 
4090
  const char *g = "string";
 
4091
  ccp = &g + (g ? g-g : 0);
 
4092
  /* HPUX 7.0 cc rejects these. */
 
4093
  ++ccp;
 
4094
  p = (char**) ccp;
 
4095
  ccp = (char const *const *) p;
 
4096
  { /* SCO 3.2v4 cc rejects this.  */
 
4097
    char *t;
 
4098
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
4099
 
 
4100
    *t++ = 0;
 
4101
  }
 
4102
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
4103
    int x[] = {25, 17};
 
4104
    const int *foo = &x[0];
 
4105
    ++foo;
 
4106
  }
 
4107
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
4108
    typedef const int *iptr;
 
4109
    iptr p = 0;
 
4110
    ++p;
 
4111
  }
 
4112
  { /* AIX XL C 1.02.0.0 rejects this saying
 
4113
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
4114
    struct s { int j; const int *ap[3]; };
 
4115
    struct s *b; b->j = 5;
 
4116
  }
 
4117
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
4118
    const int foo = 10;
 
4119
  }
 
4120
#endif
 
4121
 
 
4122
  ;
 
4123
  return 0;
 
4124
}
 
4125
_ACEOF
 
4126
rm -f conftest.$ac_objext
 
4127
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4128
  (eval $ac_compile) 2>conftest.er1
 
4129
  ac_status=$?
 
4130
  grep -v '^ *+' conftest.er1 >conftest.err
 
4131
  rm -f conftest.er1
 
4132
  cat conftest.err >&5
 
4133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4134
  (exit $ac_status); } &&
 
4135
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4137
  (eval $ac_try) 2>&5
 
4138
  ac_status=$?
 
4139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4140
  (exit $ac_status); }; } &&
 
4141
         { ac_try='test -s conftest.$ac_objext'
 
4142
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4143
  (eval $ac_try) 2>&5
 
4144
  ac_status=$?
 
4145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4146
  (exit $ac_status); }; }; then
 
4147
  ac_cv_c_const=yes
 
4148
else
 
4149
  echo "$as_me: failed program was:" >&5
 
4150
sed 's/^/| /' conftest.$ac_ext >&5
 
4151
 
 
4152
ac_cv_c_const=no
 
4153
fi
 
4154
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4155
fi
 
4156
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
4157
echo "${ECHO_T}$ac_cv_c_const" >&6
 
4158
if test $ac_cv_c_const = no; then
 
4159
  
 
4160
cat >>confdefs.h <<\_ACEOF
 
4161
@%:@define const 
 
4162
_ACEOF
 
4163
 
 
4164
fi
 
4165
 
 
4166
echo "$as_me:$LINENO: checking for inline" >&5
 
4167
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
4168
if test "${ac_cv_c_inline+set}" = set; then
 
4169
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4170
else
 
4171
  ac_cv_c_inline=no
 
4172
for ac_kw in inline __inline__ __inline; do
 
4173
  cat >conftest.$ac_ext <<_ACEOF
 
4174
/* confdefs.h.  */
 
4175
_ACEOF
 
4176
cat confdefs.h >>conftest.$ac_ext
 
4177
cat >>conftest.$ac_ext <<_ACEOF
 
4178
/* end confdefs.h.  */
 
4179
#ifndef __cplusplus
 
4180
typedef int foo_t;
 
4181
static $ac_kw foo_t static_foo () {return 0; }
 
4182
$ac_kw foo_t foo () {return 0; }
 
4183
#endif
 
4184
 
 
4185
_ACEOF
 
4186
rm -f conftest.$ac_objext
 
4187
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4188
  (eval $ac_compile) 2>conftest.er1
 
4189
  ac_status=$?
 
4190
  grep -v '^ *+' conftest.er1 >conftest.err
 
4191
  rm -f conftest.er1
 
4192
  cat conftest.err >&5
 
4193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4194
  (exit $ac_status); } &&
 
4195
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4197
  (eval $ac_try) 2>&5
 
4198
  ac_status=$?
 
4199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4200
  (exit $ac_status); }; } &&
 
4201
         { ac_try='test -s conftest.$ac_objext'
 
4202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4203
  (eval $ac_try) 2>&5
 
4204
  ac_status=$?
 
4205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4206
  (exit $ac_status); }; }; then
 
4207
  ac_cv_c_inline=$ac_kw; break
 
4208
else
 
4209
  echo "$as_me: failed program was:" >&5
 
4210
sed 's/^/| /' conftest.$ac_ext >&5
 
4211
 
 
4212
fi
 
4213
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4214
done
 
4215
 
 
4216
fi
 
4217
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
4218
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
4219
 
 
4220
 
 
4221
case $ac_cv_c_inline in
 
4222
  inline | yes) ;;
 
4223
  *)
 
4224
    case $ac_cv_c_inline in
 
4225
      no) ac_val=;;
 
4226
      *) ac_val=$ac_cv_c_inline;;
 
4227
    esac
 
4228
    cat >>confdefs.h <<_ACEOF
 
4229
#ifndef __cplusplus
 
4230
#define inline $ac_val
 
4231
#endif
 
4232
_ACEOF
 
4233
    ;;
 
4234
esac
 
4235
 
 
4236
echo "$as_me:$LINENO: checking for size_t" >&5
 
4237
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
4238
if test "${ac_cv_type_size_t+set}" = set; then
 
4239
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4240
else
 
4241
  cat >conftest.$ac_ext <<_ACEOF
 
4242
/* confdefs.h.  */
 
4243
_ACEOF
 
4244
cat confdefs.h >>conftest.$ac_ext
 
4245
cat >>conftest.$ac_ext <<_ACEOF
 
4246
/* end confdefs.h.  */
 
4247
$ac_includes_default
 
4248
int
 
4249
main ()
 
4250
{
 
4251
if ((size_t *) 0)
 
4252
  return 0;
 
4253
if (sizeof (size_t))
 
4254
  return 0;
 
4255
  ;
 
4256
  return 0;
 
4257
}
 
4258
_ACEOF
 
4259
rm -f conftest.$ac_objext
 
4260
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4261
  (eval $ac_compile) 2>conftest.er1
 
4262
  ac_status=$?
 
4263
  grep -v '^ *+' conftest.er1 >conftest.err
 
4264
  rm -f conftest.er1
 
4265
  cat conftest.err >&5
 
4266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4267
  (exit $ac_status); } &&
 
4268
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4269
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4270
  (eval $ac_try) 2>&5
 
4271
  ac_status=$?
 
4272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4273
  (exit $ac_status); }; } &&
 
4274
         { ac_try='test -s conftest.$ac_objext'
 
4275
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4276
  (eval $ac_try) 2>&5
 
4277
  ac_status=$?
 
4278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4279
  (exit $ac_status); }; }; then
 
4280
  ac_cv_type_size_t=yes
 
4281
else
 
4282
  echo "$as_me: failed program was:" >&5
 
4283
sed 's/^/| /' conftest.$ac_ext >&5
 
4284
 
 
4285
ac_cv_type_size_t=no
 
4286
fi
 
4287
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4288
fi
 
4289
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
4290
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
4291
if test $ac_cv_type_size_t = yes; then
 
4292
  :
 
4293
else
 
4294
  
 
4295
cat >>confdefs.h <<_ACEOF
 
4296
@%:@define size_t unsigned
 
4297
_ACEOF
 
4298
 
 
4299
fi
 
4300
 
 
4301
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
4302
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
4303
if test "${ac_cv_header_time+set}" = set; then
 
4304
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4305
else
 
4306
  cat >conftest.$ac_ext <<_ACEOF
 
4307
/* confdefs.h.  */
 
4308
_ACEOF
 
4309
cat confdefs.h >>conftest.$ac_ext
 
4310
cat >>conftest.$ac_ext <<_ACEOF
 
4311
/* end confdefs.h.  */
 
4312
#include <sys/types.h>
 
4313
#include <sys/time.h>
 
4314
#include <time.h>
 
4315
 
 
4316
int
 
4317
main ()
 
4318
{
 
4319
if ((struct tm *) 0)
 
4320
return 0;
 
4321
  ;
 
4322
  return 0;
 
4323
}
 
4324
_ACEOF
 
4325
rm -f conftest.$ac_objext
 
4326
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4327
  (eval $ac_compile) 2>conftest.er1
 
4328
  ac_status=$?
 
4329
  grep -v '^ *+' conftest.er1 >conftest.err
 
4330
  rm -f conftest.er1
 
4331
  cat conftest.err >&5
 
4332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4333
  (exit $ac_status); } &&
 
4334
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4335
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4336
  (eval $ac_try) 2>&5
 
4337
  ac_status=$?
 
4338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4339
  (exit $ac_status); }; } &&
 
4340
         { ac_try='test -s conftest.$ac_objext'
 
4341
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4342
  (eval $ac_try) 2>&5
 
4343
  ac_status=$?
 
4344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4345
  (exit $ac_status); }; }; then
 
4346
  ac_cv_header_time=yes
 
4347
else
 
4348
  echo "$as_me: failed program was:" >&5
 
4349
sed 's/^/| /' conftest.$ac_ext >&5
 
4350
 
 
4351
ac_cv_header_time=no
 
4352
fi
 
4353
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4354
fi
 
4355
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
4356
echo "${ECHO_T}$ac_cv_header_time" >&6
 
4357
if test $ac_cv_header_time = yes; then
 
4358
  
 
4359
cat >>confdefs.h <<\_ACEOF
 
4360
@%:@define TIME_WITH_SYS_TIME 1
 
4361
_ACEOF
 
4362
 
 
4363
fi
 
4364
 
 
4365
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
4366
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
 
4367
if test "${ac_cv_struct_tm+set}" = set; then
 
4368
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4369
else
 
4370
  cat >conftest.$ac_ext <<_ACEOF
 
4371
/* confdefs.h.  */
 
4372
_ACEOF
 
4373
cat confdefs.h >>conftest.$ac_ext
 
4374
cat >>conftest.$ac_ext <<_ACEOF
 
4375
/* end confdefs.h.  */
 
4376
#include <sys/types.h>
 
4377
#include <time.h>
 
4378
 
 
4379
int
 
4380
main ()
 
4381
{
 
4382
struct tm *tp; tp->tm_sec;
 
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
  ac_cv_struct_tm=time.h
 
4409
else
 
4410
  echo "$as_me: failed program was:" >&5
 
4411
sed 's/^/| /' conftest.$ac_ext >&5
 
4412
 
 
4413
ac_cv_struct_tm=sys/time.h
 
4414
fi
 
4415
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4416
fi
 
4417
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
4418
echo "${ECHO_T}$ac_cv_struct_tm" >&6
 
4419
if test $ac_cv_struct_tm = sys/time.h; then
 
4420
  
 
4421
cat >>confdefs.h <<\_ACEOF
 
4422
@%:@define TM_IN_SYS_TIME 1
 
4423
_ACEOF
 
4424
 
 
4425
fi
 
4426
 
 
4427
echo "$as_me:$LINENO: checking for working volatile" >&5
 
4428
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
 
4429
if test "${ac_cv_c_volatile+set}" = set; then
 
4430
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4431
else
 
4432
  cat >conftest.$ac_ext <<_ACEOF
 
4433
/* confdefs.h.  */
 
4434
_ACEOF
 
4435
cat confdefs.h >>conftest.$ac_ext
 
4436
cat >>conftest.$ac_ext <<_ACEOF
 
4437
/* end confdefs.h.  */
 
4438
 
 
4439
int
 
4440
main ()
 
4441
{
 
4442
 
 
4443
volatile int x;
 
4444
int * volatile y;
 
4445
  ;
 
4446
  return 0;
 
4447
}
 
4448
_ACEOF
 
4449
rm -f conftest.$ac_objext
 
4450
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4451
  (eval $ac_compile) 2>conftest.er1
 
4452
  ac_status=$?
 
4453
  grep -v '^ *+' conftest.er1 >conftest.err
 
4454
  rm -f conftest.er1
 
4455
  cat conftest.err >&5
 
4456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4457
  (exit $ac_status); } &&
 
4458
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4460
  (eval $ac_try) 2>&5
 
4461
  ac_status=$?
 
4462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4463
  (exit $ac_status); }; } &&
 
4464
         { ac_try='test -s conftest.$ac_objext'
 
4465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4466
  (eval $ac_try) 2>&5
 
4467
  ac_status=$?
 
4468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4469
  (exit $ac_status); }; }; then
 
4470
  ac_cv_c_volatile=yes
 
4471
else
 
4472
  echo "$as_me: failed program was:" >&5
 
4473
sed 's/^/| /' conftest.$ac_ext >&5
 
4474
 
 
4475
ac_cv_c_volatile=no
 
4476
fi
 
4477
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4478
fi
 
4479
echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
 
4480
echo "${ECHO_T}$ac_cv_c_volatile" >&6
 
4481
if test $ac_cv_c_volatile = no; then
 
4482
  
 
4483
cat >>confdefs.h <<\_ACEOF
 
4484
@%:@define volatile 
 
4485
_ACEOF
 
4486
 
 
4487
fi
 
4488
 
 
4489
echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
 
4490
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
 
4491
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
 
4492
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4493
else
 
4494
  cat >conftest.$ac_ext <<_ACEOF
 
4495
/* confdefs.h.  */
 
4496
_ACEOF
 
4497
cat confdefs.h >>conftest.$ac_ext
 
4498
cat >>conftest.$ac_ext <<_ACEOF
 
4499
/* end confdefs.h.  */
 
4500
$ac_includes_default
 
4501
int
 
4502
main ()
 
4503
{
 
4504
if ((ptrdiff_t *) 0)
 
4505
  return 0;
 
4506
if (sizeof (ptrdiff_t))
 
4507
  return 0;
 
4508
  ;
 
4509
  return 0;
 
4510
}
 
4511
_ACEOF
 
4512
rm -f conftest.$ac_objext
 
4513
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4514
  (eval $ac_compile) 2>conftest.er1
 
4515
  ac_status=$?
 
4516
  grep -v '^ *+' conftest.er1 >conftest.err
 
4517
  rm -f conftest.er1
 
4518
  cat conftest.err >&5
 
4519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4520
  (exit $ac_status); } &&
 
4521
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4523
  (eval $ac_try) 2>&5
 
4524
  ac_status=$?
 
4525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4526
  (exit $ac_status); }; } &&
 
4527
         { ac_try='test -s conftest.$ac_objext'
 
4528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4529
  (eval $ac_try) 2>&5
 
4530
  ac_status=$?
 
4531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4532
  (exit $ac_status); }; }; then
 
4533
  ac_cv_type_ptrdiff_t=yes
 
4534
else
 
4535
  echo "$as_me: failed program was:" >&5
 
4536
sed 's/^/| /' conftest.$ac_ext >&5
 
4537
 
 
4538
ac_cv_type_ptrdiff_t=no
 
4539
fi
 
4540
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4541
fi
 
4542
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
 
4543
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
 
4544
if test $ac_cv_type_ptrdiff_t = yes; then
 
4545
  
 
4546
cat >>confdefs.h <<_ACEOF
 
4547
@%:@define HAVE_PTRDIFF_T 1
 
4548
_ACEOF
 
4549
 
 
4550
 
 
4551
fi
 
4552
 
 
4553
 
 
4554
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
4555
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
4556
if test "${ac_cv_c_bigendian+set}" = set; then
 
4557
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4558
else
 
4559
  # See if sys/param.h defines the BYTE_ORDER macro.
 
4560
cat >conftest.$ac_ext <<_ACEOF
 
4561
/* confdefs.h.  */
 
4562
_ACEOF
 
4563
cat confdefs.h >>conftest.$ac_ext
 
4564
cat >>conftest.$ac_ext <<_ACEOF
 
4565
/* end confdefs.h.  */
 
4566
#include <sys/types.h>
 
4567
#include <sys/param.h>
 
4568
 
 
4569
int
 
4570
main ()
 
4571
{
 
4572
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
4573
 bogus endian macros
 
4574
#endif
 
4575
 
 
4576
  ;
 
4577
  return 0;
 
4578
}
 
4579
_ACEOF
 
4580
rm -f conftest.$ac_objext
 
4581
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4582
  (eval $ac_compile) 2>conftest.er1
 
4583
  ac_status=$?
 
4584
  grep -v '^ *+' conftest.er1 >conftest.err
 
4585
  rm -f conftest.er1
 
4586
  cat conftest.err >&5
 
4587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4588
  (exit $ac_status); } &&
 
4589
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4591
  (eval $ac_try) 2>&5
 
4592
  ac_status=$?
 
4593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4594
  (exit $ac_status); }; } &&
 
4595
         { ac_try='test -s conftest.$ac_objext'
 
4596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4597
  (eval $ac_try) 2>&5
 
4598
  ac_status=$?
 
4599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4600
  (exit $ac_status); }; }; then
 
4601
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
4602
cat >conftest.$ac_ext <<_ACEOF
 
4603
/* confdefs.h.  */
 
4604
_ACEOF
 
4605
cat confdefs.h >>conftest.$ac_ext
 
4606
cat >>conftest.$ac_ext <<_ACEOF
 
4607
/* end confdefs.h.  */
 
4608
#include <sys/types.h>
 
4609
#include <sys/param.h>
 
4610
 
 
4611
int
 
4612
main ()
 
4613
{
 
4614
#if BYTE_ORDER != BIG_ENDIAN
 
4615
 not big endian
 
4616
#endif
 
4617
 
 
4618
  ;
 
4619
  return 0;
 
4620
}
 
4621
_ACEOF
 
4622
rm -f conftest.$ac_objext
 
4623
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4624
  (eval $ac_compile) 2>conftest.er1
 
4625
  ac_status=$?
 
4626
  grep -v '^ *+' conftest.er1 >conftest.err
 
4627
  rm -f conftest.er1
 
4628
  cat conftest.err >&5
 
4629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4630
  (exit $ac_status); } &&
 
4631
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4633
  (eval $ac_try) 2>&5
 
4634
  ac_status=$?
 
4635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4636
  (exit $ac_status); }; } &&
 
4637
         { ac_try='test -s conftest.$ac_objext'
 
4638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4639
  (eval $ac_try) 2>&5
 
4640
  ac_status=$?
 
4641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4642
  (exit $ac_status); }; }; then
 
4643
  ac_cv_c_bigendian=yes
 
4644
else
 
4645
  echo "$as_me: failed program was:" >&5
 
4646
sed 's/^/| /' conftest.$ac_ext >&5
 
4647
 
 
4648
ac_cv_c_bigendian=no
 
4649
fi
 
4650
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4651
else
 
4652
  echo "$as_me: failed program was:" >&5
 
4653
sed 's/^/| /' conftest.$ac_ext >&5
 
4654
 
 
4655
# It does not; compile a test program.
 
4656
if test "$cross_compiling" = yes; then
 
4657
  # try to guess the endianness by grepping values into an object file
 
4658
  ac_cv_c_bigendian=unknown
 
4659
  cat >conftest.$ac_ext <<_ACEOF
 
4660
/* confdefs.h.  */
 
4661
_ACEOF
 
4662
cat confdefs.h >>conftest.$ac_ext
 
4663
cat >>conftest.$ac_ext <<_ACEOF
 
4664
/* end confdefs.h.  */
 
4665
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
4666
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
4667
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
4668
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
4669
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
4670
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
4671
int
 
4672
main ()
 
4673
{
 
4674
 _ascii (); _ebcdic (); 
 
4675
  ;
 
4676
  return 0;
 
4677
}
 
4678
_ACEOF
 
4679
rm -f conftest.$ac_objext
 
4680
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4681
  (eval $ac_compile) 2>conftest.er1
 
4682
  ac_status=$?
 
4683
  grep -v '^ *+' conftest.er1 >conftest.err
 
4684
  rm -f conftest.er1
 
4685
  cat conftest.err >&5
 
4686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4687
  (exit $ac_status); } &&
 
4688
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4690
  (eval $ac_try) 2>&5
 
4691
  ac_status=$?
 
4692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4693
  (exit $ac_status); }; } &&
 
4694
         { ac_try='test -s conftest.$ac_objext'
 
4695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4696
  (eval $ac_try) 2>&5
 
4697
  ac_status=$?
 
4698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4699
  (exit $ac_status); }; }; then
 
4700
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
4701
  ac_cv_c_bigendian=yes
 
4702
fi
 
4703
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
4704
  if test "$ac_cv_c_bigendian" = unknown; then
 
4705
    ac_cv_c_bigendian=no
 
4706
  else
 
4707
    # finding both strings is unlikely to happen, but who knows?
 
4708
    ac_cv_c_bigendian=unknown
 
4709
  fi
 
4710
fi
 
4711
else
 
4712
  echo "$as_me: failed program was:" >&5
 
4713
sed 's/^/| /' conftest.$ac_ext >&5
 
4714
 
 
4715
fi
 
4716
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4717
else
 
4718
  cat >conftest.$ac_ext <<_ACEOF
 
4719
/* confdefs.h.  */
 
4720
_ACEOF
 
4721
cat confdefs.h >>conftest.$ac_ext
 
4722
cat >>conftest.$ac_ext <<_ACEOF
 
4723
/* end confdefs.h.  */
 
4724
int
 
4725
main ()
 
4726
{
 
4727
  /* Are we little or big endian?  From Harbison&Steele.  */
 
4728
  union
 
4729
  {
 
4730
    long l;
 
4731
    char c[sizeof (long)];
 
4732
  } u;
 
4733
  u.l = 1;
 
4734
  exit (u.c[sizeof (long) - 1] == 1);
 
4735
}
 
4736
_ACEOF
 
4737
rm -f conftest$ac_exeext
 
4738
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4739
  (eval $ac_link) 2>&5
 
4740
  ac_status=$?
 
4741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4742
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4744
  (eval $ac_try) 2>&5
 
4745
  ac_status=$?
 
4746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4747
  (exit $ac_status); }; }; then
 
4748
  ac_cv_c_bigendian=no
 
4749
else
 
4750
  echo "$as_me: program exited with status $ac_status" >&5
 
4751
echo "$as_me: failed program was:" >&5
 
4752
sed 's/^/| /' conftest.$ac_ext >&5
 
4753
 
 
4754
( exit $ac_status )
 
4755
ac_cv_c_bigendian=yes
 
4756
fi
 
4757
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4758
fi
 
4759
fi
 
4760
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4761
fi
 
4762
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
4763
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
4764
case $ac_cv_c_bigendian in
 
4765
  yes)
 
4766
    
 
4767
cat >>confdefs.h <<\_ACEOF
 
4768
@%:@define WORDS_BIGENDIAN 1
 
4769
_ACEOF
 
4770
 ;;
 
4771
  no)
 
4772
    
 
4773
cat >>confdefs.h <<\_ACEOF
 
4774
@%:@define JU_LITTLE_ENDIAN 1
 
4775
_ACEOF
 
4776
 ;;
 
4777
  *)
 
4778
    { { echo "$as_me:$LINENO: error: unknown endianness
 
4779
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
4780
echo "$as_me: error: unknown endianness
 
4781
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
4782
   { (exit 1); exit 1; }; } ;;
 
4783
esac
 
4784
 
 
4785
 
 
4786
 
 
4787
# Check whether --enable-32-bit or --disable-32-bit was given.
 
4788
if test "${enable_32_bit+set}" = set; then
 
4789
  enableval="$enable_32_bit"
 
4790
  b32="$enableval"
 
4791
else
 
4792
  b32="no"
 
4793
fi; 
 
4794
if test x"$b32" != "xno"; then
 
4795
    echo "$as_me:$LINENO: result: Building 32-bit" >&5
 
4796
echo "${ECHO_T}Building 32-bit" >&6
 
4797
    CFLAGS="-UJU_64BIT $CFLAGS"
 
4798
fi
 
4799
 
 
4800
# Check whether --enable-64-bit or --disable-64-bit was given.
 
4801
if test "${enable_64_bit+set}" = set; then
 
4802
  enableval="$enable_64_bit"
 
4803
  b64="$enableval"
 
4804
else
 
4805
  b64="no"
 
4806
fi; 
 
4807
if test x"$b64" != "xno"; then
 
4808
    echo "$as_me:$LINENO: result: Building 64-bit" >&5
 
4809
echo "${ECHO_T}Building 64-bit" >&6
 
4810
    CFLAGS="-DJU_64BIT $CFLAGS"
 
4811
fi
 
4812
 
 
4813
if test x"$b32" = "xno"; then 
 
4814
    if test x"$b64" = "xno"; then
 
4815
        { { echo "$as_me:$LINENO: error: You must run configure with either: 
 
4816
                      --enable-32-bit 
 
4817
                      --enable-64-bit" >&5
 
4818
echo "$as_me: error: You must run configure with either: 
 
4819
                      --enable-32-bit 
 
4820
                      --enable-64-bit" >&2;}
 
4821
   { (exit 1); exit 1; }; };
 
4822
    fi
 
4823
fi
 
4824
 
 
4825
#  dnl Determine whether or not we're compiling for a 64-bit system by looking
 
4826
#  dnl at the size of a 'long'.  This will define SIZEOF_LONG in config.h.  We
 
4827
#  dnl append some text to the bottom of config.h to set JU_64BIT appropriately.
 
4828
#  dnl we try to do the correct thing if the user doesn't chose for us. 
 
4829
#  AC_CHECK_SIZEOF(long)
 
4830
#  AH_BOTTOM([/* Define JU_64BIT to 1 if we're on a 64-bit system. */
 
4831
#  if SIZEOF_LONG == 8
 
4832
#    define JU_64BIT 1
 
4833
#  endif])
 
4834
#fi
 
4835
 
 
4836
 
 
4837
echo "$as_me:$LINENO: checking for error_at_line" >&5
 
4838
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
 
4839
if test "${ac_cv_lib_error_at_line+set}" = set; then
 
4840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4841
else
 
4842
  cat >conftest.$ac_ext <<_ACEOF
 
4843
/* confdefs.h.  */
 
4844
_ACEOF
 
4845
cat confdefs.h >>conftest.$ac_ext
 
4846
cat >>conftest.$ac_ext <<_ACEOF
 
4847
/* end confdefs.h.  */
 
4848
$ac_includes_default
 
4849
int
 
4850
main ()
 
4851
{
 
4852
error_at_line (0, 0, "", 0, "");
 
4853
  ;
 
4854
  return 0;
 
4855
}
 
4856
_ACEOF
 
4857
rm -f conftest.$ac_objext conftest$ac_exeext
 
4858
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4859
  (eval $ac_link) 2>conftest.er1
 
4860
  ac_status=$?
 
4861
  grep -v '^ *+' conftest.er1 >conftest.err
 
4862
  rm -f conftest.er1
 
4863
  cat conftest.err >&5
 
4864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4865
  (exit $ac_status); } &&
 
4866
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4868
  (eval $ac_try) 2>&5
 
4869
  ac_status=$?
 
4870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4871
  (exit $ac_status); }; } &&
 
4872
         { ac_try='test -s conftest$ac_exeext'
 
4873
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4874
  (eval $ac_try) 2>&5
 
4875
  ac_status=$?
 
4876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4877
  (exit $ac_status); }; }; then
 
4878
  ac_cv_lib_error_at_line=yes
 
4879
else
 
4880
  echo "$as_me: failed program was:" >&5
 
4881
sed 's/^/| /' conftest.$ac_ext >&5
 
4882
 
 
4883
ac_cv_lib_error_at_line=no
 
4884
fi
 
4885
rm -f conftest.err conftest.$ac_objext \
 
4886
      conftest$ac_exeext conftest.$ac_ext
 
4887
fi
 
4888
echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
 
4889
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
 
4890
if test $ac_cv_lib_error_at_line = no; then
 
4891
  case $LIB@&t@OBJS in
 
4892
    "error.$ac_objext"   | \
 
4893
  *" error.$ac_objext"   | \
 
4894
    "error.$ac_objext "* | \
 
4895
  *" error.$ac_objext "* ) ;;
 
4896
  *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext" ;;
 
4897
esac
 
4898
 
 
4899
fi
 
4900
 
 
4901
 
 
4902
for ac_header in stdlib.h
 
4903
do
 
4904
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4905
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4906
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4907
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4908
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4909
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4910
fi
 
4911
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4912
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4913
else
 
4914
  # Is the header compilable?
 
4915
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4916
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4917
cat >conftest.$ac_ext <<_ACEOF
 
4918
/* confdefs.h.  */
 
4919
_ACEOF
 
4920
cat confdefs.h >>conftest.$ac_ext
 
4921
cat >>conftest.$ac_ext <<_ACEOF
 
4922
/* end confdefs.h.  */
 
4923
$ac_includes_default
 
4924
@%:@include <$ac_header>
 
4925
_ACEOF
 
4926
rm -f conftest.$ac_objext
 
4927
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4928
  (eval $ac_compile) 2>conftest.er1
 
4929
  ac_status=$?
 
4930
  grep -v '^ *+' conftest.er1 >conftest.err
 
4931
  rm -f conftest.er1
 
4932
  cat conftest.err >&5
 
4933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4934
  (exit $ac_status); } &&
 
4935
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4937
  (eval $ac_try) 2>&5
 
4938
  ac_status=$?
 
4939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4940
  (exit $ac_status); }; } &&
 
4941
         { ac_try='test -s conftest.$ac_objext'
 
4942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4943
  (eval $ac_try) 2>&5
 
4944
  ac_status=$?
 
4945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4946
  (exit $ac_status); }; }; then
 
4947
  ac_header_compiler=yes
 
4948
else
 
4949
  echo "$as_me: failed program was:" >&5
 
4950
sed 's/^/| /' conftest.$ac_ext >&5
 
4951
 
 
4952
ac_header_compiler=no
 
4953
fi
 
4954
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4955
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4956
echo "${ECHO_T}$ac_header_compiler" >&6
 
4957
 
 
4958
# Is the header present?
 
4959
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4960
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4961
cat >conftest.$ac_ext <<_ACEOF
 
4962
/* confdefs.h.  */
 
4963
_ACEOF
 
4964
cat confdefs.h >>conftest.$ac_ext
 
4965
cat >>conftest.$ac_ext <<_ACEOF
 
4966
/* end confdefs.h.  */
 
4967
@%:@include <$ac_header>
 
4968
_ACEOF
 
4969
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4970
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4971
  ac_status=$?
 
4972
  grep -v '^ *+' conftest.er1 >conftest.err
 
4973
  rm -f conftest.er1
 
4974
  cat conftest.err >&5
 
4975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4976
  (exit $ac_status); } >/dev/null; then
 
4977
  if test -s conftest.err; then
 
4978
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4979
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4980
  else
 
4981
    ac_cpp_err=
 
4982
  fi
 
4983
else
 
4984
  ac_cpp_err=yes
 
4985
fi
 
4986
if test -z "$ac_cpp_err"; then
 
4987
  ac_header_preproc=yes
 
4988
else
 
4989
  echo "$as_me: failed program was:" >&5
 
4990
sed 's/^/| /' conftest.$ac_ext >&5
 
4991
 
 
4992
  ac_header_preproc=no
 
4993
fi
 
4994
rm -f conftest.err conftest.$ac_ext
 
4995
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4996
echo "${ECHO_T}$ac_header_preproc" >&6
 
4997
 
 
4998
# So?  What about this header?
 
4999
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5000
  yes:no: )
 
5001
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5002
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5003
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5004
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5005
    ac_header_preproc=yes
 
5006
    ;;
 
5007
  no:yes:* )
 
5008
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5009
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5010
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5011
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5012
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5013
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5014
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5015
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5016
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5017
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5018
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5019
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5020
    (
 
5021
      cat <<\_ASBOX
 
5022
@%:@@%:@ ---------------------------------- @%:@@%:@
 
5023
@%:@@%:@ Report this to doug@sourcejudy.com @%:@@%:@
 
5024
@%:@@%:@ ---------------------------------- @%:@@%:@
 
5025
_ASBOX
 
5026
    ) |
 
5027
      sed "s/^/$as_me: WARNING:     /" >&2
 
5028
    ;;
 
5029
esac
 
5030
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5031
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5032
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5034
else
 
5035
  eval "$as_ac_Header=\$ac_header_preproc"
 
5036
fi
 
5037
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5038
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5039
 
 
5040
fi
 
5041
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5042
  cat >>confdefs.h <<_ACEOF
 
5043
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5044
_ACEOF
 
5045
 
 
5046
fi
 
5047
 
 
5048
done
 
5049
 
 
5050
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
5051
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
 
5052
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
 
5053
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5054
else
 
5055
  if test "$cross_compiling" = yes; then
 
5056
  ac_cv_func_malloc_0_nonnull=no
 
5057
else
 
5058
  cat >conftest.$ac_ext <<_ACEOF
 
5059
/* confdefs.h.  */
 
5060
_ACEOF
 
5061
cat confdefs.h >>conftest.$ac_ext
 
5062
cat >>conftest.$ac_ext <<_ACEOF
 
5063
/* end confdefs.h.  */
 
5064
#if STDC_HEADERS || HAVE_STDLIB_H
 
5065
# include <stdlib.h>
 
5066
#else
 
5067
char *malloc ();
 
5068
#endif
 
5069
 
 
5070
int
 
5071
main ()
 
5072
{
 
5073
exit (malloc (0) ? 0 : 1);
 
5074
  ;
 
5075
  return 0;
 
5076
}
 
5077
_ACEOF
 
5078
rm -f conftest$ac_exeext
 
5079
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5080
  (eval $ac_link) 2>&5
 
5081
  ac_status=$?
 
5082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5083
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5085
  (eval $ac_try) 2>&5
 
5086
  ac_status=$?
 
5087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5088
  (exit $ac_status); }; }; then
 
5089
  ac_cv_func_malloc_0_nonnull=yes
 
5090
else
 
5091
  echo "$as_me: program exited with status $ac_status" >&5
 
5092
echo "$as_me: failed program was:" >&5
 
5093
sed 's/^/| /' conftest.$ac_ext >&5
 
5094
 
 
5095
( exit $ac_status )
 
5096
ac_cv_func_malloc_0_nonnull=no
 
5097
fi
 
5098
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5099
fi
 
5100
fi
 
5101
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
5102
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
 
5103
if test $ac_cv_func_malloc_0_nonnull = yes; then
 
5104
  
 
5105
cat >>confdefs.h <<\_ACEOF
 
5106
@%:@define HAVE_MALLOC 1
 
5107
_ACEOF
 
5108
 
 
5109
else
 
5110
  cat >>confdefs.h <<\_ACEOF
 
5111
@%:@define HAVE_MALLOC 0
 
5112
_ACEOF
 
5113
 
 
5114
   case $LIB@&t@OBJS in
 
5115
    "malloc.$ac_objext"   | \
 
5116
  *" malloc.$ac_objext"   | \
 
5117
    "malloc.$ac_objext "* | \
 
5118
  *" malloc.$ac_objext "* ) ;;
 
5119
  *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext" ;;
 
5120
esac
 
5121
 
 
5122
   
 
5123
cat >>confdefs.h <<\_ACEOF
 
5124
@%:@define malloc rpl_malloc
 
5125
_ACEOF
 
5126
 
 
5127
fi
 
5128
 
 
5129
 
 
5130
 
 
5131
echo "$as_me:$LINENO: checking for working memcmp" >&5
 
5132
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
 
5133
if test "${ac_cv_func_memcmp_working+set}" = set; then
 
5134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5135
else
 
5136
  if test "$cross_compiling" = yes; then
 
5137
  ac_cv_func_memcmp_working=no
 
5138
else
 
5139
  cat >conftest.$ac_ext <<_ACEOF
 
5140
/* confdefs.h.  */
 
5141
_ACEOF
 
5142
cat confdefs.h >>conftest.$ac_ext
 
5143
cat >>conftest.$ac_ext <<_ACEOF
 
5144
/* end confdefs.h.  */
 
5145
$ac_includes_default
 
5146
int
 
5147
main ()
 
5148
{
 
5149
 
 
5150
  /* Some versions of memcmp are not 8-bit clean.  */
 
5151
  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
 
5152
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
 
5153
    exit (1);
 
5154
 
 
5155
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
 
5156
     or more and with at least one buffer not starting on a 4-byte boundary.
 
5157
     William Lewis provided this test program.   */
 
5158
  {
 
5159
    char foo[21];
 
5160
    char bar[21];
 
5161
    int i;
 
5162
    for (i = 0; i < 4; i++)
 
5163
      {
 
5164
        char *a = foo + i;
 
5165
        char *b = bar + i;
 
5166
        strcpy (a, "--------01111111");
 
5167
        strcpy (b, "--------10000000");
 
5168
        if (memcmp (a, b, 16) >= 0)
 
5169
          exit (1);
 
5170
      }
 
5171
    exit (0);
 
5172
  }
 
5173
 
 
5174
  ;
 
5175
  return 0;
 
5176
}
 
5177
_ACEOF
 
5178
rm -f conftest$ac_exeext
 
5179
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5180
  (eval $ac_link) 2>&5
 
5181
  ac_status=$?
 
5182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5183
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5184
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5185
  (eval $ac_try) 2>&5
 
5186
  ac_status=$?
 
5187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5188
  (exit $ac_status); }; }; then
 
5189
  ac_cv_func_memcmp_working=yes
 
5190
else
 
5191
  echo "$as_me: program exited with status $ac_status" >&5
 
5192
echo "$as_me: failed program was:" >&5
 
5193
sed 's/^/| /' conftest.$ac_ext >&5
 
5194
 
 
5195
( exit $ac_status )
 
5196
ac_cv_func_memcmp_working=no
 
5197
fi
 
5198
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5199
fi
 
5200
fi
 
5201
echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
 
5202
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
 
5203
test $ac_cv_func_memcmp_working = no && case $LIB@&t@OBJS in
 
5204
    "memcmp.$ac_objext"   | \
 
5205
  *" memcmp.$ac_objext"   | \
 
5206
    "memcmp.$ac_objext "* | \
 
5207
  *" memcmp.$ac_objext "* ) ;;
 
5208
  *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext" ;;
 
5209
esac
 
5210
 
 
5211
 
 
5212
 
 
5213
 
 
5214
for ac_header in stdlib.h unistd.h
 
5215
do
 
5216
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5217
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5218
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5219
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5220
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5221
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5222
fi
 
5223
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5224
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5225
else
 
5226
  # Is the header compilable?
 
5227
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5228
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5229
cat >conftest.$ac_ext <<_ACEOF
 
5230
/* confdefs.h.  */
 
5231
_ACEOF
 
5232
cat confdefs.h >>conftest.$ac_ext
 
5233
cat >>conftest.$ac_ext <<_ACEOF
 
5234
/* end confdefs.h.  */
 
5235
$ac_includes_default
 
5236
@%:@include <$ac_header>
 
5237
_ACEOF
 
5238
rm -f conftest.$ac_objext
 
5239
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5240
  (eval $ac_compile) 2>conftest.er1
 
5241
  ac_status=$?
 
5242
  grep -v '^ *+' conftest.er1 >conftest.err
 
5243
  rm -f conftest.er1
 
5244
  cat conftest.err >&5
 
5245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5246
  (exit $ac_status); } &&
 
5247
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5249
  (eval $ac_try) 2>&5
 
5250
  ac_status=$?
 
5251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5252
  (exit $ac_status); }; } &&
 
5253
         { ac_try='test -s conftest.$ac_objext'
 
5254
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5255
  (eval $ac_try) 2>&5
 
5256
  ac_status=$?
 
5257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5258
  (exit $ac_status); }; }; then
 
5259
  ac_header_compiler=yes
 
5260
else
 
5261
  echo "$as_me: failed program was:" >&5
 
5262
sed 's/^/| /' conftest.$ac_ext >&5
 
5263
 
 
5264
ac_header_compiler=no
 
5265
fi
 
5266
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5267
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5268
echo "${ECHO_T}$ac_header_compiler" >&6
 
5269
 
 
5270
# Is the header present?
 
5271
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5272
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5273
cat >conftest.$ac_ext <<_ACEOF
 
5274
/* confdefs.h.  */
 
5275
_ACEOF
 
5276
cat confdefs.h >>conftest.$ac_ext
 
5277
cat >>conftest.$ac_ext <<_ACEOF
 
5278
/* end confdefs.h.  */
 
5279
@%:@include <$ac_header>
 
5280
_ACEOF
 
5281
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5282
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5283
  ac_status=$?
 
5284
  grep -v '^ *+' conftest.er1 >conftest.err
 
5285
  rm -f conftest.er1
 
5286
  cat conftest.err >&5
 
5287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5288
  (exit $ac_status); } >/dev/null; then
 
5289
  if test -s conftest.err; then
 
5290
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5291
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5292
  else
 
5293
    ac_cpp_err=
 
5294
  fi
 
5295
else
 
5296
  ac_cpp_err=yes
 
5297
fi
 
5298
if test -z "$ac_cpp_err"; then
 
5299
  ac_header_preproc=yes
 
5300
else
 
5301
  echo "$as_me: failed program was:" >&5
 
5302
sed 's/^/| /' conftest.$ac_ext >&5
 
5303
 
 
5304
  ac_header_preproc=no
 
5305
fi
 
5306
rm -f conftest.err conftest.$ac_ext
 
5307
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5308
echo "${ECHO_T}$ac_header_preproc" >&6
 
5309
 
 
5310
# So?  What about this header?
 
5311
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5312
  yes:no: )
 
5313
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5314
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5315
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5316
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5317
    ac_header_preproc=yes
 
5318
    ;;
 
5319
  no:yes:* )
 
5320
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5321
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5322
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5323
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5324
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5325
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5326
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5327
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5328
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5329
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5330
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5331
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5332
    (
 
5333
      cat <<\_ASBOX
 
5334
@%:@@%:@ ---------------------------------- @%:@@%:@
 
5335
@%:@@%:@ Report this to doug@sourcejudy.com @%:@@%:@
 
5336
@%:@@%:@ ---------------------------------- @%:@@%:@
 
5337
_ASBOX
 
5338
    ) |
 
5339
      sed "s/^/$as_me: WARNING:     /" >&2
 
5340
    ;;
 
5341
esac
 
5342
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5343
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5344
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5345
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5346
else
 
5347
  eval "$as_ac_Header=\$ac_header_preproc"
 
5348
fi
 
5349
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5350
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5351
 
 
5352
fi
 
5353
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5354
  cat >>confdefs.h <<_ACEOF
 
5355
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5356
_ACEOF
 
5357
 
 
5358
fi
 
5359
 
 
5360
done
 
5361
 
 
5362
 
 
5363
for ac_func in getpagesize
 
5364
do
 
5365
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5366
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5367
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5368
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5369
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5370
else
 
5371
  cat >conftest.$ac_ext <<_ACEOF
 
5372
/* confdefs.h.  */
 
5373
_ACEOF
 
5374
cat confdefs.h >>conftest.$ac_ext
 
5375
cat >>conftest.$ac_ext <<_ACEOF
 
5376
/* end confdefs.h.  */
 
5377
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5378
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5379
#define $ac_func innocuous_$ac_func
 
5380
 
 
5381
/* System header to define __stub macros and hopefully few prototypes,
 
5382
    which can conflict with char $ac_func (); below.
 
5383
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5384
    <limits.h> exists even on freestanding compilers.  */
 
5385
 
 
5386
#ifdef __STDC__
 
5387
# include <limits.h>
 
5388
#else
 
5389
# include <assert.h>
 
5390
#endif
 
5391
 
 
5392
#undef $ac_func
 
5393
 
 
5394
/* Override any gcc2 internal prototype to avoid an error.  */
 
5395
#ifdef __cplusplus
 
5396
extern "C"
 
5397
{
 
5398
#endif
 
5399
/* We use char because int might match the return type of a gcc2
 
5400
   builtin and then its argument prototype would still apply.  */
 
5401
char $ac_func ();
 
5402
/* The GNU C library defines this for functions which it implements
 
5403
    to always fail with ENOSYS.  Some functions are actually named
 
5404
    something starting with __ and the normal name is an alias.  */
 
5405
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5406
choke me
 
5407
#else
 
5408
char (*f) () = $ac_func;
 
5409
#endif
 
5410
#ifdef __cplusplus
 
5411
}
 
5412
#endif
 
5413
 
 
5414
int
 
5415
main ()
 
5416
{
 
5417
return f != $ac_func;
 
5418
  ;
 
5419
  return 0;
 
5420
}
 
5421
_ACEOF
 
5422
rm -f conftest.$ac_objext conftest$ac_exeext
 
5423
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5424
  (eval $ac_link) 2>conftest.er1
 
5425
  ac_status=$?
 
5426
  grep -v '^ *+' conftest.er1 >conftest.err
 
5427
  rm -f conftest.er1
 
5428
  cat conftest.err >&5
 
5429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5430
  (exit $ac_status); } &&
 
5431
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5433
  (eval $ac_try) 2>&5
 
5434
  ac_status=$?
 
5435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5436
  (exit $ac_status); }; } &&
 
5437
         { ac_try='test -s conftest$ac_exeext'
 
5438
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5439
  (eval $ac_try) 2>&5
 
5440
  ac_status=$?
 
5441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5442
  (exit $ac_status); }; }; then
 
5443
  eval "$as_ac_var=yes"
 
5444
else
 
5445
  echo "$as_me: failed program was:" >&5
 
5446
sed 's/^/| /' conftest.$ac_ext >&5
 
5447
 
 
5448
eval "$as_ac_var=no"
 
5449
fi
 
5450
rm -f conftest.err conftest.$ac_objext \
 
5451
      conftest$ac_exeext conftest.$ac_ext
 
5452
fi
 
5453
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5454
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5455
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5456
  cat >>confdefs.h <<_ACEOF
 
5457
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5458
_ACEOF
 
5459
 
 
5460
fi
 
5461
done
 
5462
 
 
5463
echo "$as_me:$LINENO: checking for working mmap" >&5
 
5464
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
 
5465
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
 
5466
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5467
else
 
5468
  if test "$cross_compiling" = yes; then
 
5469
  ac_cv_func_mmap_fixed_mapped=no
 
5470
else
 
5471
  cat >conftest.$ac_ext <<_ACEOF
 
5472
/* confdefs.h.  */
 
5473
_ACEOF
 
5474
cat confdefs.h >>conftest.$ac_ext
 
5475
cat >>conftest.$ac_ext <<_ACEOF
 
5476
/* end confdefs.h.  */
 
5477
$ac_includes_default
 
5478
/* malloc might have been renamed as rpl_malloc. */
 
5479
#undef malloc
 
5480
 
 
5481
/* Thanks to Mike Haertel and Jim Avera for this test.
 
5482
   Here is a matrix of mmap possibilities:
 
5483
        mmap private not fixed
 
5484
        mmap private fixed at somewhere currently unmapped
 
5485
        mmap private fixed at somewhere already mapped
 
5486
        mmap shared not fixed
 
5487
        mmap shared fixed at somewhere currently unmapped
 
5488
        mmap shared fixed at somewhere already mapped
 
5489
   For private mappings, we should verify that changes cannot be read()
 
5490
   back from the file, nor mmap's back from the file at a different
 
5491
   address.  (There have been systems where private was not correctly
 
5492
   implemented like the infamous i386 svr4.0, and systems where the
 
5493
   VM page cache was not coherent with the file system buffer cache
 
5494
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
5495
   For shared mappings, we should conversely verify that changes get
 
5496
   propagated back to all the places they're supposed to be.
 
5497
 
 
5498
   Grep wants private fixed already mapped.
 
5499
   The main things grep needs to know about mmap are:
 
5500
   * does it exist and is it safe to write into the mmap'd area
 
5501
   * how to use it (BSD variants)  */
 
5502
 
 
5503
#include <fcntl.h>
 
5504
#include <sys/mman.h>
 
5505
 
 
5506
#if !STDC_HEADERS && !HAVE_STDLIB_H
 
5507
char *malloc ();
 
5508
#endif
 
5509
 
 
5510
/* This mess was copied from the GNU getpagesize.h.  */
 
5511
#if !HAVE_GETPAGESIZE
 
5512
/* Assume that all systems that can run configure have sys/param.h.  */
 
5513
# if !HAVE_SYS_PARAM_H
 
5514
#  define HAVE_SYS_PARAM_H 1
 
5515
# endif
 
5516
 
 
5517
# ifdef _SC_PAGESIZE
 
5518
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
5519
# else /* no _SC_PAGESIZE */
 
5520
#  if HAVE_SYS_PARAM_H
 
5521
#   include <sys/param.h>
 
5522
#   ifdef EXEC_PAGESIZE
 
5523
#    define getpagesize() EXEC_PAGESIZE
 
5524
#   else /* no EXEC_PAGESIZE */
 
5525
#    ifdef NBPG
 
5526
#     define getpagesize() NBPG * CLSIZE
 
5527
#     ifndef CLSIZE
 
5528
#      define CLSIZE 1
 
5529
#     endif /* no CLSIZE */
 
5530
#    else /* no NBPG */
 
5531
#     ifdef NBPC
 
5532
#      define getpagesize() NBPC
 
5533
#     else /* no NBPC */
 
5534
#      ifdef PAGESIZE
 
5535
#       define getpagesize() PAGESIZE
 
5536
#      endif /* PAGESIZE */
 
5537
#     endif /* no NBPC */
 
5538
#    endif /* no NBPG */
 
5539
#   endif /* no EXEC_PAGESIZE */
 
5540
#  else /* no HAVE_SYS_PARAM_H */
 
5541
#   define getpagesize() 8192   /* punt totally */
 
5542
#  endif /* no HAVE_SYS_PARAM_H */
 
5543
# endif /* no _SC_PAGESIZE */
 
5544
 
 
5545
#endif /* no HAVE_GETPAGESIZE */
 
5546
 
 
5547
int
 
5548
main ()
 
5549
{
 
5550
  char *data, *data2, *data3;
 
5551
  int i, pagesize;
 
5552
  int fd;
 
5553
 
 
5554
  pagesize = getpagesize ();
 
5555
 
 
5556
  /* First, make a file with some known garbage in it. */
 
5557
  data = (char *) malloc (pagesize);
 
5558
  if (!data)
 
5559
    exit (1);
 
5560
  for (i = 0; i < pagesize; ++i)
 
5561
    *(data + i) = rand ();
 
5562
  umask (0);
 
5563
  fd = creat ("conftest.mmap", 0600);
 
5564
  if (fd < 0)
 
5565
    exit (1);
 
5566
  if (write (fd, data, pagesize) != pagesize)
 
5567
    exit (1);
 
5568
  close (fd);
 
5569
 
 
5570
  /* Next, try to mmap the file at a fixed address which already has
 
5571
     something else allocated at it.  If we can, also make sure that
 
5572
     we see the same garbage.  */
 
5573
  fd = open ("conftest.mmap", O_RDWR);
 
5574
  if (fd < 0)
 
5575
    exit (1);
 
5576
  data2 = (char *) malloc (2 * pagesize);
 
5577
  if (!data2)
 
5578
    exit (1);
 
5579
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
 
5580
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 
5581
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
5582
    exit (1);
 
5583
  for (i = 0; i < pagesize; ++i)
 
5584
    if (*(data + i) != *(data2 + i))
 
5585
      exit (1);
 
5586
 
 
5587
  /* Finally, make sure that changes to the mapped area do not
 
5588
     percolate back to the file as seen by read().  (This is a bug on
 
5589
     some variants of i386 svr4.0.)  */
 
5590
  for (i = 0; i < pagesize; ++i)
 
5591
    *(data2 + i) = *(data2 + i) + 1;
 
5592
  data3 = (char *) malloc (pagesize);
 
5593
  if (!data3)
 
5594
    exit (1);
 
5595
  if (read (fd, data3, pagesize) != pagesize)
 
5596
    exit (1);
 
5597
  for (i = 0; i < pagesize; ++i)
 
5598
    if (*(data + i) != *(data3 + i))
 
5599
      exit (1);
 
5600
  close (fd);
 
5601
  exit (0);
 
5602
}
 
5603
_ACEOF
 
5604
rm -f conftest$ac_exeext
 
5605
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5606
  (eval $ac_link) 2>&5
 
5607
  ac_status=$?
 
5608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5609
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5611
  (eval $ac_try) 2>&5
 
5612
  ac_status=$?
 
5613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5614
  (exit $ac_status); }; }; then
 
5615
  ac_cv_func_mmap_fixed_mapped=yes
 
5616
else
 
5617
  echo "$as_me: program exited with status $ac_status" >&5
 
5618
echo "$as_me: failed program was:" >&5
 
5619
sed 's/^/| /' conftest.$ac_ext >&5
 
5620
 
 
5621
( exit $ac_status )
 
5622
ac_cv_func_mmap_fixed_mapped=no
 
5623
fi
 
5624
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5625
fi
 
5626
fi
 
5627
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
5628
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
 
5629
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
5630
  
 
5631
cat >>confdefs.h <<\_ACEOF
 
5632
@%:@define HAVE_MMAP 1
 
5633
_ACEOF
 
5634
 
 
5635
fi
 
5636
rm -f conftest.mmap
 
5637
 
 
5638
echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
 
5639
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
 
5640
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
 
5641
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5642
else
 
5643
  rm -f conftest.sym conftest.file
 
5644
echo >conftest.file
 
5645
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
 
5646
  if test "$cross_compiling" = yes; then
 
5647
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
5648
else
 
5649
  cat >conftest.$ac_ext <<_ACEOF
 
5650
/* confdefs.h.  */
 
5651
_ACEOF
 
5652
cat confdefs.h >>conftest.$ac_ext
 
5653
cat >>conftest.$ac_ext <<_ACEOF
 
5654
/* end confdefs.h.  */
 
5655
$ac_includes_default
 
5656
int
 
5657
main ()
 
5658
{
 
5659
struct stat sbuf;
 
5660
     /* Linux will dereference the symlink and fail.
 
5661
        That is better in the sense that it means we will not
 
5662
        have to compile and use the lstat wrapper.  */
 
5663
     exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
 
5664
  ;
 
5665
  return 0;
 
5666
}
 
5667
_ACEOF
 
5668
rm -f conftest$ac_exeext
 
5669
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5670
  (eval $ac_link) 2>&5
 
5671
  ac_status=$?
 
5672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5673
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5674
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5675
  (eval $ac_try) 2>&5
 
5676
  ac_status=$?
 
5677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5678
  (exit $ac_status); }; }; then
 
5679
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
 
5680
else
 
5681
  echo "$as_me: program exited with status $ac_status" >&5
 
5682
echo "$as_me: failed program was:" >&5
 
5683
sed 's/^/| /' conftest.$ac_ext >&5
 
5684
 
 
5685
( exit $ac_status )
 
5686
ac_cv_func_lstat_dereferences_slashed_symlink=no
 
5687
fi
 
5688
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5689
fi
 
5690
else
 
5691
  # If the `ln -s' command failed, then we probably don't even
 
5692
  # have an lstat function.
 
5693
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
5694
fi
 
5695
rm -f conftest.sym conftest.file
 
5696
 
 
5697
fi
 
5698
echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
 
5699
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
 
5700
 
 
5701
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
 
5702
  
 
5703
cat >>confdefs.h <<_ACEOF
 
5704
@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
 
5705
_ACEOF
 
5706
 
 
5707
 
 
5708
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
 
5709
  case $LIB@&t@OBJS in
 
5710
    "lstat.$ac_objext"   | \
 
5711
  *" lstat.$ac_objext"   | \
 
5712
    "lstat.$ac_objext "* | \
 
5713
  *" lstat.$ac_objext "* ) ;;
 
5714
  *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext" ;;
 
5715
esac
 
5716
 
 
5717
fi
 
5718
 
 
5719
echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
 
5720
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
 
5721
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
 
5722
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5723
else
 
5724
  if test "$cross_compiling" = yes; then
 
5725
  ac_cv_func_stat_empty_string_bug=yes
 
5726
else
 
5727
  cat >conftest.$ac_ext <<_ACEOF
 
5728
/* confdefs.h.  */
 
5729
_ACEOF
 
5730
cat confdefs.h >>conftest.$ac_ext
 
5731
cat >>conftest.$ac_ext <<_ACEOF
 
5732
/* end confdefs.h.  */
 
5733
$ac_includes_default
 
5734
int
 
5735
main ()
 
5736
{
 
5737
struct stat sbuf;
 
5738
  exit (stat ("", &sbuf) ? 1 : 0);
 
5739
  ;
 
5740
  return 0;
 
5741
}
 
5742
_ACEOF
 
5743
rm -f conftest$ac_exeext
 
5744
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5745
  (eval $ac_link) 2>&5
 
5746
  ac_status=$?
 
5747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5748
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5750
  (eval $ac_try) 2>&5
 
5751
  ac_status=$?
 
5752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5753
  (exit $ac_status); }; }; then
 
5754
  ac_cv_func_stat_empty_string_bug=yes
 
5755
else
 
5756
  echo "$as_me: program exited with status $ac_status" >&5
 
5757
echo "$as_me: failed program was:" >&5
 
5758
sed 's/^/| /' conftest.$ac_ext >&5
 
5759
 
 
5760
( exit $ac_status )
 
5761
ac_cv_func_stat_empty_string_bug=no
 
5762
fi
 
5763
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5764
fi
 
5765
fi
 
5766
echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
 
5767
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
 
5768
if test $ac_cv_func_stat_empty_string_bug = yes; then
 
5769
  case $LIB@&t@OBJS in
 
5770
    "stat.$ac_objext"   | \
 
5771
  *" stat.$ac_objext"   | \
 
5772
    "stat.$ac_objext "* | \
 
5773
  *" stat.$ac_objext "* ) ;;
 
5774
  *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext" ;;
 
5775
esac
 
5776
 
 
5777
  
 
5778
cat >>confdefs.h <<_ACEOF
 
5779
@%:@define HAVE_STAT_EMPTY_STRING_BUG 1
 
5780
_ACEOF
 
5781
 
 
5782
fi
 
5783
 
 
5784
 
 
5785
for ac_func in vprintf
 
5786
do
 
5787
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5788
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5789
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5790
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5792
else
 
5793
  cat >conftest.$ac_ext <<_ACEOF
 
5794
/* confdefs.h.  */
 
5795
_ACEOF
 
5796
cat confdefs.h >>conftest.$ac_ext
 
5797
cat >>conftest.$ac_ext <<_ACEOF
 
5798
/* end confdefs.h.  */
 
5799
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5800
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5801
#define $ac_func innocuous_$ac_func
 
5802
 
 
5803
/* System header to define __stub macros and hopefully few prototypes,
 
5804
    which can conflict with char $ac_func (); below.
 
5805
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5806
    <limits.h> exists even on freestanding compilers.  */
 
5807
 
 
5808
#ifdef __STDC__
 
5809
# include <limits.h>
 
5810
#else
 
5811
# include <assert.h>
 
5812
#endif
 
5813
 
 
5814
#undef $ac_func
 
5815
 
 
5816
/* Override any gcc2 internal prototype to avoid an error.  */
 
5817
#ifdef __cplusplus
 
5818
extern "C"
 
5819
{
 
5820
#endif
 
5821
/* We use char because int might match the return type of a gcc2
 
5822
   builtin and then its argument prototype would still apply.  */
 
5823
char $ac_func ();
 
5824
/* The GNU C library defines this for functions which it implements
 
5825
    to always fail with ENOSYS.  Some functions are actually named
 
5826
    something starting with __ and the normal name is an alias.  */
 
5827
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5828
choke me
 
5829
#else
 
5830
char (*f) () = $ac_func;
 
5831
#endif
 
5832
#ifdef __cplusplus
 
5833
}
 
5834
#endif
 
5835
 
 
5836
int
 
5837
main ()
 
5838
{
 
5839
return f != $ac_func;
 
5840
  ;
 
5841
  return 0;
 
5842
}
 
5843
_ACEOF
 
5844
rm -f conftest.$ac_objext conftest$ac_exeext
 
5845
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5846
  (eval $ac_link) 2>conftest.er1
 
5847
  ac_status=$?
 
5848
  grep -v '^ *+' conftest.er1 >conftest.err
 
5849
  rm -f conftest.er1
 
5850
  cat conftest.err >&5
 
5851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5852
  (exit $ac_status); } &&
 
5853
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5855
  (eval $ac_try) 2>&5
 
5856
  ac_status=$?
 
5857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5858
  (exit $ac_status); }; } &&
 
5859
         { ac_try='test -s conftest$ac_exeext'
 
5860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5861
  (eval $ac_try) 2>&5
 
5862
  ac_status=$?
 
5863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5864
  (exit $ac_status); }; }; then
 
5865
  eval "$as_ac_var=yes"
 
5866
else
 
5867
  echo "$as_me: failed program was:" >&5
 
5868
sed 's/^/| /' conftest.$ac_ext >&5
 
5869
 
 
5870
eval "$as_ac_var=no"
 
5871
fi
 
5872
rm -f conftest.err conftest.$ac_objext \
 
5873
      conftest$ac_exeext conftest.$ac_ext
 
5874
fi
 
5875
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5876
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5877
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5878
  cat >>confdefs.h <<_ACEOF
 
5879
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5880
_ACEOF
 
5881
 
 
5882
echo "$as_me:$LINENO: checking for _doprnt" >&5
 
5883
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
 
5884
if test "${ac_cv_func__doprnt+set}" = set; then
 
5885
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5886
else
 
5887
  cat >conftest.$ac_ext <<_ACEOF
 
5888
/* confdefs.h.  */
 
5889
_ACEOF
 
5890
cat confdefs.h >>conftest.$ac_ext
 
5891
cat >>conftest.$ac_ext <<_ACEOF
 
5892
/* end confdefs.h.  */
 
5893
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
5894
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5895
#define _doprnt innocuous__doprnt
 
5896
 
 
5897
/* System header to define __stub macros and hopefully few prototypes,
 
5898
    which can conflict with char _doprnt (); below.
 
5899
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5900
    <limits.h> exists even on freestanding compilers.  */
 
5901
 
 
5902
#ifdef __STDC__
 
5903
# include <limits.h>
 
5904
#else
 
5905
# include <assert.h>
 
5906
#endif
 
5907
 
 
5908
#undef _doprnt
 
5909
 
 
5910
/* Override any gcc2 internal prototype to avoid an error.  */
 
5911
#ifdef __cplusplus
 
5912
extern "C"
 
5913
{
 
5914
#endif
 
5915
/* We use char because int might match the return type of a gcc2
 
5916
   builtin and then its argument prototype would still apply.  */
 
5917
char _doprnt ();
 
5918
/* The GNU C library defines this for functions which it implements
 
5919
    to always fail with ENOSYS.  Some functions are actually named
 
5920
    something starting with __ and the normal name is an alias.  */
 
5921
#if defined (__stub__doprnt) || defined (__stub____doprnt)
 
5922
choke me
 
5923
#else
 
5924
char (*f) () = _doprnt;
 
5925
#endif
 
5926
#ifdef __cplusplus
 
5927
}
 
5928
#endif
 
5929
 
 
5930
int
 
5931
main ()
 
5932
{
 
5933
return f != _doprnt;
 
5934
  ;
 
5935
  return 0;
 
5936
}
 
5937
_ACEOF
 
5938
rm -f conftest.$ac_objext conftest$ac_exeext
 
5939
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5940
  (eval $ac_link) 2>conftest.er1
 
5941
  ac_status=$?
 
5942
  grep -v '^ *+' conftest.er1 >conftest.err
 
5943
  rm -f conftest.er1
 
5944
  cat conftest.err >&5
 
5945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5946
  (exit $ac_status); } &&
 
5947
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5949
  (eval $ac_try) 2>&5
 
5950
  ac_status=$?
 
5951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5952
  (exit $ac_status); }; } &&
 
5953
         { ac_try='test -s conftest$ac_exeext'
 
5954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5955
  (eval $ac_try) 2>&5
 
5956
  ac_status=$?
 
5957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5958
  (exit $ac_status); }; }; then
 
5959
  ac_cv_func__doprnt=yes
 
5960
else
 
5961
  echo "$as_me: failed program was:" >&5
 
5962
sed 's/^/| /' conftest.$ac_ext >&5
 
5963
 
 
5964
ac_cv_func__doprnt=no
 
5965
fi
 
5966
rm -f conftest.err conftest.$ac_objext \
 
5967
      conftest$ac_exeext conftest.$ac_ext
 
5968
fi
 
5969
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
5970
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
 
5971
if test $ac_cv_func__doprnt = yes; then
 
5972
  
 
5973
cat >>confdefs.h <<\_ACEOF
 
5974
@%:@define HAVE_DOPRNT 1
 
5975
_ACEOF
 
5976
 
 
5977
fi
 
5978
 
 
5979
fi
 
5980
done
 
5981
 
 
5982
 
 
5983
 
 
5984
 
 
5985
 
 
5986
 
 
5987
 
 
5988
 
 
5989
 
 
5990
 
 
5991
 
 
5992
 
 
5993
 
 
5994
for ac_func in getpagesize gettimeofday memset munmap pow strchr strcspn strerror strstr strtoul uname
 
5995
do
 
5996
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5997
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5998
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5999
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
6000
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6001
else
 
6002
  cat >conftest.$ac_ext <<_ACEOF
 
6003
/* confdefs.h.  */
 
6004
_ACEOF
 
6005
cat confdefs.h >>conftest.$ac_ext
 
6006
cat >>conftest.$ac_ext <<_ACEOF
 
6007
/* end confdefs.h.  */
 
6008
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6009
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6010
#define $ac_func innocuous_$ac_func
 
6011
 
 
6012
/* System header to define __stub macros and hopefully few prototypes,
 
6013
    which can conflict with char $ac_func (); below.
 
6014
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6015
    <limits.h> exists even on freestanding compilers.  */
 
6016
 
 
6017
#ifdef __STDC__
 
6018
# include <limits.h>
 
6019
#else
 
6020
# include <assert.h>
 
6021
#endif
 
6022
 
 
6023
#undef $ac_func
 
6024
 
 
6025
/* Override any gcc2 internal prototype to avoid an error.  */
 
6026
#ifdef __cplusplus
 
6027
extern "C"
 
6028
{
 
6029
#endif
 
6030
/* We use char because int might match the return type of a gcc2
 
6031
   builtin and then its argument prototype would still apply.  */
 
6032
char $ac_func ();
 
6033
/* The GNU C library defines this for functions which it implements
 
6034
    to always fail with ENOSYS.  Some functions are actually named
 
6035
    something starting with __ and the normal name is an alias.  */
 
6036
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6037
choke me
 
6038
#else
 
6039
char (*f) () = $ac_func;
 
6040
#endif
 
6041
#ifdef __cplusplus
 
6042
}
 
6043
#endif
 
6044
 
 
6045
int
 
6046
main ()
 
6047
{
 
6048
return f != $ac_func;
 
6049
  ;
 
6050
  return 0;
 
6051
}
 
6052
_ACEOF
 
6053
rm -f conftest.$ac_objext conftest$ac_exeext
 
6054
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6055
  (eval $ac_link) 2>conftest.er1
 
6056
  ac_status=$?
 
6057
  grep -v '^ *+' conftest.er1 >conftest.err
 
6058
  rm -f conftest.er1
 
6059
  cat conftest.err >&5
 
6060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6061
  (exit $ac_status); } &&
 
6062
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6064
  (eval $ac_try) 2>&5
 
6065
  ac_status=$?
 
6066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6067
  (exit $ac_status); }; } &&
 
6068
         { ac_try='test -s conftest$ac_exeext'
 
6069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6070
  (eval $ac_try) 2>&5
 
6071
  ac_status=$?
 
6072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6073
  (exit $ac_status); }; }; then
 
6074
  eval "$as_ac_var=yes"
 
6075
else
 
6076
  echo "$as_me: failed program was:" >&5
 
6077
sed 's/^/| /' conftest.$ac_ext >&5
 
6078
 
 
6079
eval "$as_ac_var=no"
 
6080
fi
 
6081
rm -f conftest.err conftest.$ac_objext \
 
6082
      conftest$ac_exeext conftest.$ac_ext
 
6083
fi
 
6084
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6085
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
6086
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6087
  cat >>confdefs.h <<_ACEOF
 
6088
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6089
_ACEOF
 
6090
 
 
6091
fi
 
6092
done
 
6093
 
 
6094
 
 
6095
if test -n "$ac_tool_prefix"; then
 
6096
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6097
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6098
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6099
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6100
if test "${ac_cv_prog_AR+set}" = set; then
 
6101
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6102
else
 
6103
  if test -n "$AR"; then
 
6104
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6105
else
 
6106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6107
for as_dir in $PATH
 
6108
do
 
6109
  IFS=$as_save_IFS
 
6110
  test -z "$as_dir" && as_dir=.
 
6111
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6112
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6113
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6114
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6115
    break 2
 
6116
  fi
 
6117
done
 
6118
done
 
6119
 
 
6120
fi
 
6121
fi
 
6122
AR=$ac_cv_prog_AR
 
6123
if test -n "$AR"; then
 
6124
  echo "$as_me:$LINENO: result: $AR" >&5
 
6125
echo "${ECHO_T}$AR" >&6
 
6126
else
 
6127
  echo "$as_me:$LINENO: result: no" >&5
 
6128
echo "${ECHO_T}no" >&6
 
6129
fi
 
6130
 
 
6131
fi
 
6132
if test -z "$ac_cv_prog_AR"; then
 
6133
  ac_ct_AR=$AR
 
6134
  # Extract the first word of "ar", so it can be a program name with args.
 
6135
set dummy ar; ac_word=$2
 
6136
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6137
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6138
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6139
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6140
else
 
6141
  if test -n "$ac_ct_AR"; then
 
6142
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6143
else
 
6144
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6145
for as_dir in $PATH
 
6146
do
 
6147
  IFS=$as_save_IFS
 
6148
  test -z "$as_dir" && as_dir=.
 
6149
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6150
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6151
    ac_cv_prog_ac_ct_AR="ar"
 
6152
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6153
    break 2
 
6154
  fi
 
6155
done
 
6156
done
 
6157
 
 
6158
fi
 
6159
fi
 
6160
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6161
if test -n "$ac_ct_AR"; then
 
6162
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6163
echo "${ECHO_T}$ac_ct_AR" >&6
 
6164
else
 
6165
  echo "$as_me:$LINENO: result: no" >&5
 
6166
echo "${ECHO_T}no" >&6
 
6167
fi
 
6168
 
 
6169
  AR=$ac_ct_AR
 
6170
else
 
6171
  AR="$ac_cv_prog_AR"
 
6172
fi
 
6173
 
 
6174
if test -n "$ac_tool_prefix"; then
 
6175
  # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
 
6176
set dummy ${ac_tool_prefix}ld; ac_word=$2
 
6177
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6178
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6179
if test "${ac_cv_prog_LD+set}" = set; then
 
6180
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6181
else
 
6182
  if test -n "$LD"; then
 
6183
  ac_cv_prog_LD="$LD" # Let the user override the test.
 
6184
else
 
6185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6186
for as_dir in $PATH
 
6187
do
 
6188
  IFS=$as_save_IFS
 
6189
  test -z "$as_dir" && as_dir=.
 
6190
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6191
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6192
    ac_cv_prog_LD="${ac_tool_prefix}ld"
 
6193
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6194
    break 2
 
6195
  fi
 
6196
done
 
6197
done
 
6198
 
 
6199
fi
 
6200
fi
 
6201
LD=$ac_cv_prog_LD
 
6202
if test -n "$LD"; then
 
6203
  echo "$as_me:$LINENO: result: $LD" >&5
 
6204
echo "${ECHO_T}$LD" >&6
 
6205
else
 
6206
  echo "$as_me:$LINENO: result: no" >&5
 
6207
echo "${ECHO_T}no" >&6
 
6208
fi
 
6209
 
 
6210
fi
 
6211
if test -z "$ac_cv_prog_LD"; then
 
6212
  ac_ct_LD=$LD
 
6213
  # Extract the first word of "ld", so it can be a program name with args.
 
6214
set dummy ld; ac_word=$2
 
6215
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6216
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6217
if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
 
6218
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6219
else
 
6220
  if test -n "$ac_ct_LD"; then
 
6221
  ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
 
6222
else
 
6223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6224
for as_dir in $PATH
 
6225
do
 
6226
  IFS=$as_save_IFS
 
6227
  test -z "$as_dir" && as_dir=.
 
6228
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6229
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6230
    ac_cv_prog_ac_ct_LD="ld"
 
6231
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6232
    break 2
 
6233
  fi
 
6234
done
 
6235
done
 
6236
 
 
6237
fi
 
6238
fi
 
6239
ac_ct_LD=$ac_cv_prog_ac_ct_LD
 
6240
if test -n "$ac_ct_LD"; then
 
6241
  echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
 
6242
echo "${ECHO_T}$ac_ct_LD" >&6
 
6243
else
 
6244
  echo "$as_me:$LINENO: result: no" >&5
 
6245
echo "${ECHO_T}no" >&6
 
6246
fi
 
6247
 
 
6248
  LD=$ac_ct_LD
 
6249
else
 
6250
  LD="$ac_cv_prog_LD"
 
6251
fi
 
6252
 
 
6253
if test -n "$ac_tool_prefix"; then
 
6254
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6255
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6256
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6257
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6258
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6259
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6260
else
 
6261
  if test -n "$RANLIB"; then
 
6262
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6263
else
 
6264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6265
for as_dir in $PATH
 
6266
do
 
6267
  IFS=$as_save_IFS
 
6268
  test -z "$as_dir" && as_dir=.
 
6269
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6270
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6271
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6272
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6273
    break 2
 
6274
  fi
 
6275
done
 
6276
done
 
6277
 
 
6278
fi
 
6279
fi
 
6280
RANLIB=$ac_cv_prog_RANLIB
 
6281
if test -n "$RANLIB"; then
 
6282
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6283
echo "${ECHO_T}$RANLIB" >&6
 
6284
else
 
6285
  echo "$as_me:$LINENO: result: no" >&5
 
6286
echo "${ECHO_T}no" >&6
 
6287
fi
 
6288
 
 
6289
fi
 
6290
if test -z "$ac_cv_prog_RANLIB"; then
 
6291
  ac_ct_RANLIB=$RANLIB
 
6292
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6293
set dummy ranlib; ac_word=$2
 
6294
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6295
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6296
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6297
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6298
else
 
6299
  if test -n "$ac_ct_RANLIB"; then
 
6300
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6301
else
 
6302
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6303
for as_dir in $PATH
 
6304
do
 
6305
  IFS=$as_save_IFS
 
6306
  test -z "$as_dir" && as_dir=.
 
6307
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6308
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6309
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6310
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6311
    break 2
 
6312
  fi
 
6313
done
 
6314
done
 
6315
 
 
6316
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
6317
fi
 
6318
fi
 
6319
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6320
if test -n "$ac_ct_RANLIB"; then
 
6321
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6322
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
6323
else
 
6324
  echo "$as_me:$LINENO: result: no" >&5
 
6325
echo "${ECHO_T}no" >&6
 
6326
fi
 
6327
 
 
6328
  RANLIB=$ac_ct_RANLIB
 
6329
else
 
6330
  RANLIB="$ac_cv_prog_RANLIB"
 
6331
fi
 
6332
 
 
6333
 
 
6334
# Check whether --enable-shared or --disable-shared was given.
 
6335
if test "${enable_shared+set}" = set; then
 
6336
  enableval="$enable_shared"
 
6337
  p=${PACKAGE-default}
 
6338
    case $enableval in
 
6339
    yes) enable_shared=yes ;;
 
6340
    no) enable_shared=no ;;
 
6341
    *)
 
6342
      enable_shared=no
 
6343
      # Look at the argument we got.  We use all the common list separators.
 
6344
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6345
      for pkg in $enableval; do
 
6346
        IFS="$lt_save_ifs"
 
6347
        if test "X$pkg" = "X$p"; then
 
6348
          enable_shared=yes
 
6349
        fi
 
6350
      done
 
6351
      IFS="$lt_save_ifs"
 
6352
      ;;
 
6353
    esac
 
6354
else
 
6355
  enable_shared=yes
 
6356
fi; 
 
6357
 
 
6358
# Check whether --enable-static or --disable-static was given.
 
6359
if test "${enable_static+set}" = set; then
 
6360
  enableval="$enable_static"
 
6361
  p=${PACKAGE-default}
 
6362
    case $enableval in
 
6363
    yes) enable_static=yes ;;
 
6364
    no) enable_static=no ;;
 
6365
    *)
 
6366
     enable_static=no
 
6367
      # Look at the argument we got.  We use all the common list separators.
 
6368
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6369
      for pkg in $enableval; do
 
6370
        IFS="$lt_save_ifs"
 
6371
        if test "X$pkg" = "X$p"; then
 
6372
          enable_static=yes
 
6373
        fi
 
6374
      done
 
6375
      IFS="$lt_save_ifs"
 
6376
      ;;
 
6377
    esac
 
6378
else
 
6379
  enable_static=yes
 
6380
fi; 
 
6381
 
 
6382
# Check whether --enable-fast-install or --disable-fast-install was given.
 
6383
if test "${enable_fast_install+set}" = set; then
 
6384
  enableval="$enable_fast_install"
 
6385
  p=${PACKAGE-default}
 
6386
    case $enableval in
 
6387
    yes) enable_fast_install=yes ;;
 
6388
    no) enable_fast_install=no ;;
 
6389
    *)
 
6390
      enable_fast_install=no
 
6391
      # Look at the argument we got.  We use all the common list separators.
 
6392
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6393
      for pkg in $enableval; do
 
6394
        IFS="$lt_save_ifs"
 
6395
        if test "X$pkg" = "X$p"; then
 
6396
          enable_fast_install=yes
 
6397
        fi
 
6398
      done
 
6399
      IFS="$lt_save_ifs"
 
6400
      ;;
 
6401
    esac
 
6402
else
 
6403
  enable_fast_install=yes
 
6404
fi; 
 
6405
 
 
6406
# Make sure we can run config.sub.
 
6407
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
6408
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
6409
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
6410
   { (exit 1); exit 1; }; }
 
6411
 
 
6412
echo "$as_me:$LINENO: checking build system type" >&5
 
6413
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
6414
if test "${ac_cv_build+set}" = set; then
 
6415
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6416
else
 
6417
  ac_cv_build_alias=$build_alias
 
6418
test -z "$ac_cv_build_alias" &&
 
6419
  ac_cv_build_alias=`$ac_config_guess`
 
6420
test -z "$ac_cv_build_alias" &&
 
6421
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
6422
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
6423
   { (exit 1); exit 1; }; }
 
6424
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
6425
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
6426
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
6427
   { (exit 1); exit 1; }; }
 
6428
 
 
6429
fi
 
6430
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
6431
echo "${ECHO_T}$ac_cv_build" >&6
 
6432
build=$ac_cv_build
 
6433
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
6434
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
6435
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
6436
 
 
6437
 
 
6438
echo "$as_me:$LINENO: checking host system type" >&5
 
6439
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
6440
if test "${ac_cv_host+set}" = set; then
 
6441
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6442
else
 
6443
  ac_cv_host_alias=$host_alias
 
6444
test -z "$ac_cv_host_alias" &&
 
6445
  ac_cv_host_alias=$ac_cv_build_alias
 
6446
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
6447
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
6448
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
6449
   { (exit 1); exit 1; }; }
 
6450
 
 
6451
fi
 
6452
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
6453
echo "${ECHO_T}$ac_cv_host" >&6
 
6454
host=$ac_cv_host
 
6455
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
6456
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
6457
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
6458
 
 
6459
 
 
6460
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
6461
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
6462
if test "${lt_cv_path_SED+set}" = set; then
 
6463
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6464
else
 
6465
  # Loop through the user's path and test for sed and gsed.
 
6466
# Then use that list of sed's as ones to test for truncation.
 
6467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6468
for as_dir in $PATH
 
6469
do
 
6470
  IFS=$as_save_IFS
 
6471
  test -z "$as_dir" && as_dir=.
 
6472
  for lt_ac_prog in sed gsed; do
 
6473
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6474
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6475
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
6476
      fi
 
6477
    done
 
6478
  done
 
6479
done
 
6480
lt_ac_max=0
 
6481
lt_ac_count=0
 
6482
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
6483
# along with /bin/sed that truncates output.
 
6484
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
6485
  test ! -f $lt_ac_sed && break
 
6486
  cat /dev/null > conftest.in
 
6487
  lt_ac_count=0
 
6488
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
6489
  # Check for GNU sed and select it if it is found.
 
6490
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
6491
    lt_cv_path_SED=$lt_ac_sed
 
6492
    break
 
6493
  fi
 
6494
  while true; do
 
6495
    cat conftest.in conftest.in >conftest.tmp
 
6496
    mv conftest.tmp conftest.in
 
6497
    cp conftest.in conftest.nl
 
6498
    echo >>conftest.nl
 
6499
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
6500
    cmp -s conftest.out conftest.nl || break
 
6501
    # 10000 chars as input seems more than enough
 
6502
    test $lt_ac_count -gt 10 && break
 
6503
    lt_ac_count=`expr $lt_ac_count + 1`
 
6504
    if test $lt_ac_count -gt $lt_ac_max; then
 
6505
      lt_ac_max=$lt_ac_count
 
6506
      lt_cv_path_SED=$lt_ac_sed
 
6507
    fi
 
6508
  done
 
6509
done
 
6510
SED=$lt_cv_path_SED
 
6511
 
 
6512
fi
 
6513
 
 
6514
echo "$as_me:$LINENO: result: $SED" >&5
 
6515
echo "${ECHO_T}$SED" >&6
 
6516
 
 
6517
 
 
6518
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
6519
if test "${with_gnu_ld+set}" = set; then
 
6520
  withval="$with_gnu_ld"
 
6521
  test "$withval" = no || with_gnu_ld=yes
 
6522
else
 
6523
  with_gnu_ld=no
 
6524
fi; 
 
6525
ac_prog=ld
 
6526
if test "$GCC" = yes; then
 
6527
  # Check if gcc -print-prog-name=ld gives a path.
 
6528
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
6529
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
6530
  case $host in
 
6531
  *-*-mingw*)
 
6532
    # gcc leaves a trailing carriage return which upsets mingw
 
6533
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
6534
  *)
 
6535
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
6536
  esac
 
6537
  case $ac_prog in
 
6538
    # Accept absolute paths.
 
6539
    [\\/]* | ?:[\\/]*)
 
6540
      re_direlt='/[^/][^/]*/\.\./'
 
6541
      # Canonicalize the pathname of ld
 
6542
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
6543
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
6544
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
6545
      done
 
6546
      test -z "$LD" && LD="$ac_prog"
 
6547
      ;;
 
6548
  "")
 
6549
    # If it fails, then pretend we aren't using GCC.
 
6550
    ac_prog=ld
 
6551
    ;;
 
6552
  *)
 
6553
    # If it is relative, then search for the first ld in PATH.
 
6554
    with_gnu_ld=unknown
 
6555
    ;;
 
6556
  esac
 
6557
elif test "$with_gnu_ld" = yes; then
 
6558
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
6559
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
6560
else
 
6561
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
6562
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
6563
fi
 
6564
if test "${lt_cv_path_LD+set}" = set; then
 
6565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6566
else
 
6567
  if test -z "$LD"; then
 
6568
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6569
  for ac_dir in $PATH; do
 
6570
    IFS="$lt_save_ifs"
 
6571
    test -z "$ac_dir" && ac_dir=.
 
6572
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
6573
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
6574
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
6575
      # but apparently some GNU ld's only accept -v.
 
6576
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
6577
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
6578
      *GNU* | *'with BFD'*)
 
6579
        test "$with_gnu_ld" != no && break
 
6580
        ;;
 
6581
      *)
 
6582
        test "$with_gnu_ld" != yes && break
 
6583
        ;;
 
6584
      esac
 
6585
    fi
 
6586
  done
 
6587
  IFS="$lt_save_ifs"
 
6588
else
 
6589
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
6590
fi
 
6591
fi
 
6592
 
 
6593
LD="$lt_cv_path_LD"
 
6594
if test -n "$LD"; then
 
6595
  echo "$as_me:$LINENO: result: $LD" >&5
 
6596
echo "${ECHO_T}$LD" >&6
 
6597
else
 
6598
  echo "$as_me:$LINENO: result: no" >&5
 
6599
echo "${ECHO_T}no" >&6
 
6600
fi
 
6601
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
6602
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
6603
   { (exit 1); exit 1; }; }
 
6604
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
6605
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
6606
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
6607
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6608
else
 
6609
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
6610
case `$LD -v 2>&1 </dev/null` in
 
6611
*GNU* | *'with BFD'*)
 
6612
  lt_cv_prog_gnu_ld=yes
 
6613
  ;;
 
6614
*)
 
6615
  lt_cv_prog_gnu_ld=no
 
6616
  ;;
 
6617
esac
 
6618
fi
 
6619
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
6620
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
6621
with_gnu_ld=$lt_cv_prog_gnu_ld
 
6622
 
 
6623
 
 
6624
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
6625
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
6626
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
6627
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6628
else
 
6629
  lt_cv_ld_reload_flag='-r'
 
6630
fi
 
6631
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
6632
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
6633
reload_flag=$lt_cv_ld_reload_flag
 
6634
case $reload_flag in
 
6635
"" | " "*) ;;
 
6636
*) reload_flag=" $reload_flag" ;;
 
6637
esac
 
6638
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6639
 
 
6640
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
6641
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
6642
if test "${lt_cv_path_NM+set}" = set; then
 
6643
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6644
else
 
6645
  if test -n "$NM"; then
 
6646
  # Let the user override the test.
 
6647
  lt_cv_path_NM="$NM"
 
6648
else
 
6649
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6650
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
6651
    IFS="$lt_save_ifs"
 
6652
    test -z "$ac_dir" && ac_dir=.
 
6653
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
6654
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
6655
      # Check to see if the nm accepts a BSD-compat flag.
 
6656
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
6657
      #   nm: unknown option "B" ignored
 
6658
      # Tru64's nm complains that /dev/null is an invalid object file
 
6659
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
6660
      */dev/null* | *'Invalid file or object type'*)
 
6661
        lt_cv_path_NM="$tmp_nm -B"
 
6662
        break
 
6663
        ;;
 
6664
      *)
 
6665
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
6666
        */dev/null*)
 
6667
          lt_cv_path_NM="$tmp_nm -p"
 
6668
          break
 
6669
          ;;
 
6670
        *)
 
6671
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
6672
          continue # so that we can try to find one that supports BSD flags
 
6673
          ;;
 
6674
        esac
 
6675
      esac
 
6676
    fi
 
6677
  done
 
6678
  IFS="$lt_save_ifs"
 
6679
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
6680
fi
 
6681
fi
 
6682
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
6683
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
6684
NM="$lt_cv_path_NM"
 
6685
 
 
6686
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
6687
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
6688
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
6689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6690
else
 
6691
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
6692
lt_cv_file_magic_test_file=
 
6693
lt_cv_deplibs_check_method='unknown'
 
6694
# Need to set the preceding variable on all platforms that support
 
6695
# interlibrary dependencies.
 
6696
# 'none' -- dependencies not supported.
 
6697
# `unknown' -- same as none, but documents that we really don't know.
 
6698
# 'pass_all' -- all dependencies passed with no checks.
 
6699
# 'test_compile' -- check by making test program.
 
6700
# 'file_magic [[regex]]' -- check by looking for files in library path
 
6701
# which responds to the $file_magic_cmd with a given extended regex.
 
6702
# If you have `file' or equivalent on your system and you're not sure
 
6703
# whether `pass_all' will *always* work, you probably want this one.
 
6704
 
 
6705
case $host_os in
 
6706
aix4* | aix5*)
 
6707
  lt_cv_deplibs_check_method=pass_all
 
6708
  ;;
 
6709
 
 
6710
beos*)
 
6711
  lt_cv_deplibs_check_method=pass_all
 
6712
  ;;
 
6713
 
 
6714
bsdi4*)
 
6715
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
6716
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
6717
  lt_cv_file_magic_test_file=/shlib/libc.so
 
6718
  ;;
 
6719
 
 
6720
cygwin*)
 
6721
  # func_win32_libid is a shell function defined in ltmain.sh
 
6722
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6723
  lt_cv_file_magic_cmd='func_win32_libid'
 
6724
  ;;
 
6725
 
 
6726
mingw* | pw32*)
 
6727
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
6728
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
6729
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
6730
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6731
  ;;
 
6732
 
 
6733
darwin* | rhapsody*)
 
6734
  lt_cv_deplibs_check_method=pass_all
 
6735
  ;;
 
6736
 
 
6737
freebsd* | kfreebsd*-gnu)
 
6738
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
6739
    case $host_cpu in
 
6740
    i*86 )
 
6741
      # Not sure whether the presence of OpenBSD here was a mistake.
 
6742
      # Let's accept both of them until this is cleared up.
 
6743
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
6744
      lt_cv_file_magic_cmd=/usr/bin/file
 
6745
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
6746
      ;;
 
6747
    esac
 
6748
  else
 
6749
    lt_cv_deplibs_check_method=pass_all
 
6750
  fi
 
6751
  ;;
 
6752
 
 
6753
gnu*)
 
6754
  lt_cv_deplibs_check_method=pass_all
 
6755
  ;;
 
6756
 
 
6757
hpux10.20* | hpux11*)
 
6758
  lt_cv_file_magic_cmd=/usr/bin/file
 
6759
  case "$host_cpu" in
 
6760
  ia64*)
 
6761
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
6762
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
6763
    ;;
 
6764
  hppa*64*)
 
6765
    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]'
 
6766
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
6767
    ;;
 
6768
  *)
 
6769
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
6770
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
6771
    ;;
 
6772
  esac
 
6773
  ;;
 
6774
 
 
6775
irix5* | irix6* | nonstopux*)
 
6776
  case $LD in
 
6777
  *-32|*"-32 ") libmagic=32-bit;;
 
6778
  *-n32|*"-n32 ") libmagic=N32;;
 
6779
  *-64|*"-64 ") libmagic=64-bit;;
 
6780
  *) libmagic=never-match;;
 
6781
  esac
 
6782
  lt_cv_deplibs_check_method=pass_all
 
6783
  ;;
 
6784
 
 
6785
# This must be Linux ELF.
 
6786
linux*)
 
6787
  lt_cv_deplibs_check_method=pass_all
 
6788
  ;;
 
6789
 
 
6790
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6791
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
6792
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6793
  else
 
6794
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
6795
  fi
 
6796
  ;;
 
6797
 
 
6798
newos6*)
 
6799
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
6800
  lt_cv_file_magic_cmd=/usr/bin/file
 
6801
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
6802
  ;;
 
6803
 
 
6804
nto-qnx*)
 
6805
  lt_cv_deplibs_check_method=unknown
 
6806
  ;;
 
6807
 
 
6808
openbsd*)
 
6809
  lt_cv_file_magic_cmd=/usr/bin/file
 
6810
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
6811
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6812
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
6813
  else
 
6814
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
6815
  fi
 
6816
  ;;
 
6817
 
 
6818
osf3* | osf4* | osf5*)
 
6819
  lt_cv_deplibs_check_method=pass_all
 
6820
  ;;
 
6821
 
 
6822
sco3.2v5*)
 
6823
  lt_cv_deplibs_check_method=pass_all
 
6824
  ;;
 
6825
 
 
6826
solaris*)
 
6827
  lt_cv_deplibs_check_method=pass_all
 
6828
  ;;
 
6829
 
 
6830
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6831
  case $host_vendor in
 
6832
  motorola)
 
6833
    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]'
 
6834
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
6835
    ;;
 
6836
  ncr)
 
6837
    lt_cv_deplibs_check_method=pass_all
 
6838
    ;;
 
6839
  sequent)
 
6840
    lt_cv_file_magic_cmd='/bin/file'
 
6841
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
6842
    ;;
 
6843
  sni)
 
6844
    lt_cv_file_magic_cmd='/bin/file'
 
6845
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
6846
    lt_cv_file_magic_test_file=/lib/libc.so
 
6847
    ;;
 
6848
  siemens)
 
6849
    lt_cv_deplibs_check_method=pass_all
 
6850
    ;;
 
6851
  esac
 
6852
  ;;
 
6853
 
 
6854
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
6855
  lt_cv_deplibs_check_method=pass_all
 
6856
  ;;
 
6857
esac
 
6858
 
 
6859
fi
 
6860
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
6861
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
6862
file_magic_cmd=$lt_cv_file_magic_cmd
 
6863
deplibs_check_method=$lt_cv_deplibs_check_method
 
6864
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6865
 
 
6866
 
 
6867
 
 
6868
 
 
6869
# If no C compiler was specified, use CC.
 
6870
LTCC=${LTCC-"$CC"}
 
6871
 
 
6872
# Allow CC to be a program name with arguments.
 
6873
compiler=$CC
 
6874
 
 
6875
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6876
if test "${enable_libtool_lock+set}" = set; then
 
6877
  enableval="$enable_libtool_lock"
 
6878
  
 
6879
fi; 
 
6880
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6881
 
 
6882
# Some flags need to be propagated to the compiler or linker for good
 
6883
# libtool support.
 
6884
case $host in
 
6885
ia64-*-hpux*)
 
6886
  # Find out which ABI we are using.
 
6887
  echo 'int i;' > conftest.$ac_ext
 
6888
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6889
  (eval $ac_compile) 2>&5
 
6890
  ac_status=$?
 
6891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6892
  (exit $ac_status); }; then
 
6893
    case `/usr/bin/file conftest.$ac_objext` in
 
6894
    *ELF-32*)
 
6895
      HPUX_IA64_MODE="32"
 
6896
      ;;
 
6897
    *ELF-64*)
 
6898
      HPUX_IA64_MODE="64"
 
6899
      ;;
 
6900
    esac
 
6901
  fi
 
6902
  rm -rf conftest*
 
6903
  ;;
 
6904
*-*-irix6*)
 
6905
  # Find out which ABI we are using.
 
6906
  echo '#line __oline__ "configure"' > conftest.$ac_ext
 
6907
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6908
  (eval $ac_compile) 2>&5
 
6909
  ac_status=$?
 
6910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6911
  (exit $ac_status); }; then
 
6912
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
6913
    case `/usr/bin/file conftest.$ac_objext` in
 
6914
    *32-bit*)
 
6915
      LD="${LD-ld} -melf32bsmip"
 
6916
      ;;
 
6917
    *N32*)
 
6918
      LD="${LD-ld} -melf32bmipn32"
 
6919
      ;;
 
6920
    *64-bit*)
 
6921
      LD="${LD-ld} -melf64bmip"
 
6922
      ;;
 
6923
    esac
 
6924
   else
 
6925
    case `/usr/bin/file conftest.$ac_objext` in
 
6926
    *32-bit*)
 
6927
      LD="${LD-ld} -32"
 
6928
      ;;
 
6929
    *N32*)
 
6930
      LD="${LD-ld} -n32"
 
6931
      ;;
 
6932
    *64-bit*)
 
6933
      LD="${LD-ld} -64"
 
6934
      ;;
 
6935
    esac
 
6936
   fi
 
6937
  fi
 
6938
  rm -rf conftest*
 
6939
  ;;
 
6940
 
 
6941
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
6942
  # Find out which ABI we are using.
 
6943
  echo 'int i;' > conftest.$ac_ext
 
6944
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6945
  (eval $ac_compile) 2>&5
 
6946
  ac_status=$?
 
6947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6948
  (exit $ac_status); }; then
 
6949
    case "`/usr/bin/file conftest.o`" in
 
6950
    *32-bit*)
 
6951
      case $host in
 
6952
        x86_64-*linux*)
 
6953
          LD="${LD-ld} -m elf_i386"
 
6954
          ;;
 
6955
        ppc64-*linux*|powerpc64-*linux*)
 
6956
          LD="${LD-ld} -m elf32ppclinux"
 
6957
          ;;
 
6958
        s390x-*linux*)
 
6959
          LD="${LD-ld} -m elf_s390"
 
6960
          ;;
 
6961
        sparc64-*linux*)
 
6962
          LD="${LD-ld} -m elf32_sparc"
 
6963
          ;;
 
6964
      esac
 
6965
      ;;
 
6966
    *64-bit*)
 
6967
      case $host in
 
6968
        x86_64-*linux*)
 
6969
          LD="${LD-ld} -m elf_x86_64"
 
6970
          ;;
 
6971
        ppc*-*linux*|powerpc*-*linux*)
 
6972
          LD="${LD-ld} -m elf64ppc"
 
6973
          ;;
 
6974
        s390*-*linux*)
 
6975
          LD="${LD-ld} -m elf64_s390"
 
6976
          ;;
 
6977
        sparc*-*linux*)
 
6978
          LD="${LD-ld} -m elf64_sparc"
 
6979
          ;;
 
6980
      esac
 
6981
      ;;
 
6982
    esac
 
6983
  fi
 
6984
  rm -rf conftest*
 
6985
  ;;
 
6986
 
 
6987
*-*-sco3.2v5*)
 
6988
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6989
  SAVE_CFLAGS="$CFLAGS"
 
6990
  CFLAGS="$CFLAGS -belf"
 
6991
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
6992
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
6993
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
6994
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6995
else
 
6996
  ac_ext=c
 
6997
ac_cpp='$CPP $CPPFLAGS'
 
6998
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6999
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7000
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7001
 
 
7002
     cat >conftest.$ac_ext <<_ACEOF
 
7003
/* confdefs.h.  */
 
7004
_ACEOF
 
7005
cat confdefs.h >>conftest.$ac_ext
 
7006
cat >>conftest.$ac_ext <<_ACEOF
 
7007
/* end confdefs.h.  */
 
7008
 
 
7009
int
 
7010
main ()
 
7011
{
 
7012
 
 
7013
  ;
 
7014
  return 0;
 
7015
}
 
7016
_ACEOF
 
7017
rm -f conftest.$ac_objext conftest$ac_exeext
 
7018
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7019
  (eval $ac_link) 2>conftest.er1
 
7020
  ac_status=$?
 
7021
  grep -v '^ *+' conftest.er1 >conftest.err
 
7022
  rm -f conftest.er1
 
7023
  cat conftest.err >&5
 
7024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7025
  (exit $ac_status); } &&
 
7026
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7027
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7028
  (eval $ac_try) 2>&5
 
7029
  ac_status=$?
 
7030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7031
  (exit $ac_status); }; } &&
 
7032
         { ac_try='test -s conftest$ac_exeext'
 
7033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7034
  (eval $ac_try) 2>&5
 
7035
  ac_status=$?
 
7036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7037
  (exit $ac_status); }; }; then
 
7038
  lt_cv_cc_needs_belf=yes
 
7039
else
 
7040
  echo "$as_me: failed program was:" >&5
 
7041
sed 's/^/| /' conftest.$ac_ext >&5
 
7042
 
 
7043
lt_cv_cc_needs_belf=no
 
7044
fi
 
7045
rm -f conftest.err conftest.$ac_objext \
 
7046
      conftest$ac_exeext conftest.$ac_ext
 
7047
     ac_ext=c
 
7048
ac_cpp='$CPP $CPPFLAGS'
 
7049
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7050
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7051
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7052
 
 
7053
fi
 
7054
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
7055
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
7056
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7057
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7058
    CFLAGS="$SAVE_CFLAGS"
 
7059
  fi
 
7060
  ;;
 
7061
 
 
7062
esac
 
7063
 
 
7064
need_locks="$enable_libtool_lock"
 
7065
 
 
7066
 
 
7067
 
 
7068
for ac_header in dlfcn.h
 
7069
do
 
7070
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7071
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7072
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7073
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7074
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7075
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7076
fi
 
7077
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7078
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7079
else
 
7080
  # Is the header compilable?
 
7081
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7082
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7083
cat >conftest.$ac_ext <<_ACEOF
 
7084
/* confdefs.h.  */
 
7085
_ACEOF
 
7086
cat confdefs.h >>conftest.$ac_ext
 
7087
cat >>conftest.$ac_ext <<_ACEOF
 
7088
/* end confdefs.h.  */
 
7089
$ac_includes_default
 
7090
@%:@include <$ac_header>
 
7091
_ACEOF
 
7092
rm -f conftest.$ac_objext
 
7093
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7094
  (eval $ac_compile) 2>conftest.er1
 
7095
  ac_status=$?
 
7096
  grep -v '^ *+' conftest.er1 >conftest.err
 
7097
  rm -f conftest.er1
 
7098
  cat conftest.err >&5
 
7099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7100
  (exit $ac_status); } &&
 
7101
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7103
  (eval $ac_try) 2>&5
 
7104
  ac_status=$?
 
7105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7106
  (exit $ac_status); }; } &&
 
7107
         { ac_try='test -s conftest.$ac_objext'
 
7108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7109
  (eval $ac_try) 2>&5
 
7110
  ac_status=$?
 
7111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7112
  (exit $ac_status); }; }; then
 
7113
  ac_header_compiler=yes
 
7114
else
 
7115
  echo "$as_me: failed program was:" >&5
 
7116
sed 's/^/| /' conftest.$ac_ext >&5
 
7117
 
 
7118
ac_header_compiler=no
 
7119
fi
 
7120
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7121
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7122
echo "${ECHO_T}$ac_header_compiler" >&6
 
7123
 
 
7124
# Is the header present?
 
7125
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7126
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7127
cat >conftest.$ac_ext <<_ACEOF
 
7128
/* confdefs.h.  */
 
7129
_ACEOF
 
7130
cat confdefs.h >>conftest.$ac_ext
 
7131
cat >>conftest.$ac_ext <<_ACEOF
 
7132
/* end confdefs.h.  */
 
7133
@%:@include <$ac_header>
 
7134
_ACEOF
 
7135
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7136
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7137
  ac_status=$?
 
7138
  grep -v '^ *+' conftest.er1 >conftest.err
 
7139
  rm -f conftest.er1
 
7140
  cat conftest.err >&5
 
7141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7142
  (exit $ac_status); } >/dev/null; then
 
7143
  if test -s conftest.err; then
 
7144
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7145
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
7146
  else
 
7147
    ac_cpp_err=
 
7148
  fi
 
7149
else
 
7150
  ac_cpp_err=yes
 
7151
fi
 
7152
if test -z "$ac_cpp_err"; then
 
7153
  ac_header_preproc=yes
 
7154
else
 
7155
  echo "$as_me: failed program was:" >&5
 
7156
sed 's/^/| /' conftest.$ac_ext >&5
 
7157
 
 
7158
  ac_header_preproc=no
 
7159
fi
 
7160
rm -f conftest.err conftest.$ac_ext
 
7161
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7162
echo "${ECHO_T}$ac_header_preproc" >&6
 
7163
 
 
7164
# So?  What about this header?
 
7165
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7166
  yes:no: )
 
7167
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7168
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7169
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
7170
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7171
    ac_header_preproc=yes
 
7172
    ;;
 
7173
  no:yes:* )
 
7174
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7175
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7176
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7177
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7178
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7179
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7180
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7181
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7182
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7183
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7184
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7185
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
7186
    (
 
7187
      cat <<\_ASBOX
 
7188
@%:@@%:@ ---------------------------------- @%:@@%:@
 
7189
@%:@@%:@ Report this to doug@sourcejudy.com @%:@@%:@
 
7190
@%:@@%:@ ---------------------------------- @%:@@%:@
 
7191
_ASBOX
 
7192
    ) |
 
7193
      sed "s/^/$as_me: WARNING:     /" >&2
 
7194
    ;;
 
7195
esac
 
7196
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7197
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7198
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7199
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7200
else
 
7201
  eval "$as_ac_Header=\$ac_header_preproc"
 
7202
fi
 
7203
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7204
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7205
 
 
7206
fi
 
7207
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7208
  cat >>confdefs.h <<_ACEOF
 
7209
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7210
_ACEOF
 
7211
 
 
7212
fi
 
7213
 
 
7214
done
 
7215
 
 
7216
ac_ext=cc
 
7217
ac_cpp='$CXXCPP $CPPFLAGS'
 
7218
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7219
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7220
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7221
if test -n "$ac_tool_prefix"; then
 
7222
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
7223
  do
 
7224
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
7225
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
7226
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7227
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7228
if test "${ac_cv_prog_CXX+set}" = set; then
 
7229
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7230
else
 
7231
  if test -n "$CXX"; then
 
7232
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
7233
else
 
7234
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7235
for as_dir in $PATH
 
7236
do
 
7237
  IFS=$as_save_IFS
 
7238
  test -z "$as_dir" && as_dir=.
 
7239
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7240
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7241
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
7242
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7243
    break 2
 
7244
  fi
 
7245
done
 
7246
done
 
7247
 
 
7248
fi
 
7249
fi
 
7250
CXX=$ac_cv_prog_CXX
 
7251
if test -n "$CXX"; then
 
7252
  echo "$as_me:$LINENO: result: $CXX" >&5
 
7253
echo "${ECHO_T}$CXX" >&6
 
7254
else
 
7255
  echo "$as_me:$LINENO: result: no" >&5
 
7256
echo "${ECHO_T}no" >&6
 
7257
fi
 
7258
 
 
7259
    test -n "$CXX" && break
 
7260
  done
 
7261
fi
 
7262
if test -z "$CXX"; then
 
7263
  ac_ct_CXX=$CXX
 
7264
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
7265
do
 
7266
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7267
set dummy $ac_prog; ac_word=$2
 
7268
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7269
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7270
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
7271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7272
else
 
7273
  if test -n "$ac_ct_CXX"; then
 
7274
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
7275
else
 
7276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7277
for as_dir in $PATH
 
7278
do
 
7279
  IFS=$as_save_IFS
 
7280
  test -z "$as_dir" && as_dir=.
 
7281
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7282
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7283
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
7284
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7285
    break 2
 
7286
  fi
 
7287
done
 
7288
done
 
7289
 
 
7290
fi
 
7291
fi
 
7292
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
7293
if test -n "$ac_ct_CXX"; then
 
7294
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
7295
echo "${ECHO_T}$ac_ct_CXX" >&6
 
7296
else
 
7297
  echo "$as_me:$LINENO: result: no" >&5
 
7298
echo "${ECHO_T}no" >&6
 
7299
fi
 
7300
 
 
7301
  test -n "$ac_ct_CXX" && break
 
7302
done
 
7303
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
7304
 
 
7305
  CXX=$ac_ct_CXX
 
7306
fi
 
7307
 
 
7308
 
 
7309
# Provide some information about the compiler.
 
7310
echo "$as_me:$LINENO:" \
 
7311
     "checking for C++ compiler version" >&5
 
7312
ac_compiler=`set X $ac_compile; echo $2`
 
7313
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
7314
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
7315
  ac_status=$?
 
7316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7317
  (exit $ac_status); }
 
7318
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
7319
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
7320
  ac_status=$?
 
7321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7322
  (exit $ac_status); }
 
7323
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
7324
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
7325
  ac_status=$?
 
7326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7327
  (exit $ac_status); }
 
7328
 
 
7329
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
7330
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
7331
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
7332
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7333
else
 
7334
  cat >conftest.$ac_ext <<_ACEOF
 
7335
/* confdefs.h.  */
 
7336
_ACEOF
 
7337
cat confdefs.h >>conftest.$ac_ext
 
7338
cat >>conftest.$ac_ext <<_ACEOF
 
7339
/* end confdefs.h.  */
 
7340
 
 
7341
int
 
7342
main ()
 
7343
{
 
7344
#ifndef __GNUC__
 
7345
       choke me
 
7346
#endif
 
7347
 
 
7348
  ;
 
7349
  return 0;
 
7350
}
 
7351
_ACEOF
 
7352
rm -f conftest.$ac_objext
 
7353
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7354
  (eval $ac_compile) 2>conftest.er1
 
7355
  ac_status=$?
 
7356
  grep -v '^ *+' conftest.er1 >conftest.err
 
7357
  rm -f conftest.er1
 
7358
  cat conftest.err >&5
 
7359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7360
  (exit $ac_status); } &&
 
7361
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
7362
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7363
  (eval $ac_try) 2>&5
 
7364
  ac_status=$?
 
7365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7366
  (exit $ac_status); }; } &&
 
7367
         { ac_try='test -s conftest.$ac_objext'
 
7368
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7369
  (eval $ac_try) 2>&5
 
7370
  ac_status=$?
 
7371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7372
  (exit $ac_status); }; }; then
 
7373
  ac_compiler_gnu=yes
 
7374
else
 
7375
  echo "$as_me: failed program was:" >&5
 
7376
sed 's/^/| /' conftest.$ac_ext >&5
 
7377
 
 
7378
ac_compiler_gnu=no
 
7379
fi
 
7380
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7381
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
7382
 
 
7383
fi
 
7384
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
7385
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
7386
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
7387
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
7388
ac_save_CXXFLAGS=$CXXFLAGS
 
7389
CXXFLAGS="-g"
 
7390
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
7391
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
7392
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
7393
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7394
else
 
7395
  cat >conftest.$ac_ext <<_ACEOF
 
7396
/* confdefs.h.  */
 
7397
_ACEOF
 
7398
cat confdefs.h >>conftest.$ac_ext
 
7399
cat >>conftest.$ac_ext <<_ACEOF
 
7400
/* end confdefs.h.  */
 
7401
 
 
7402
int
 
7403
main ()
 
7404
{
 
7405
 
 
7406
  ;
 
7407
  return 0;
 
7408
}
 
7409
_ACEOF
 
7410
rm -f conftest.$ac_objext
 
7411
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7412
  (eval $ac_compile) 2>conftest.er1
 
7413
  ac_status=$?
 
7414
  grep -v '^ *+' conftest.er1 >conftest.err
 
7415
  rm -f conftest.er1
 
7416
  cat conftest.err >&5
 
7417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7418
  (exit $ac_status); } &&
 
7419
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
7420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7421
  (eval $ac_try) 2>&5
 
7422
  ac_status=$?
 
7423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7424
  (exit $ac_status); }; } &&
 
7425
         { ac_try='test -s conftest.$ac_objext'
 
7426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7427
  (eval $ac_try) 2>&5
 
7428
  ac_status=$?
 
7429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7430
  (exit $ac_status); }; }; then
 
7431
  ac_cv_prog_cxx_g=yes
 
7432
else
 
7433
  echo "$as_me: failed program was:" >&5
 
7434
sed 's/^/| /' conftest.$ac_ext >&5
 
7435
 
 
7436
ac_cv_prog_cxx_g=no
 
7437
fi
 
7438
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7439
fi
 
7440
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
7441
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
7442
if test "$ac_test_CXXFLAGS" = set; then
 
7443
  CXXFLAGS=$ac_save_CXXFLAGS
 
7444
elif test $ac_cv_prog_cxx_g = yes; then
 
7445
  if test "$GXX" = yes; then
 
7446
    CXXFLAGS="-g -O2"
 
7447
  else
 
7448
    CXXFLAGS="-g"
 
7449
  fi
 
7450
else
 
7451
  if test "$GXX" = yes; then
 
7452
    CXXFLAGS="-O2"
 
7453
  else
 
7454
    CXXFLAGS=
 
7455
  fi
 
7456
fi
 
7457
for ac_declaration in \
 
7458
   '' \
 
7459
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
7460
   'extern "C" void std::exit (int); using std::exit;' \
 
7461
   'extern "C" void exit (int) throw ();' \
 
7462
   'extern "C" void exit (int);' \
 
7463
   'void exit (int);'
 
7464
do
 
7465
  cat >conftest.$ac_ext <<_ACEOF
 
7466
/* confdefs.h.  */
 
7467
_ACEOF
 
7468
cat confdefs.h >>conftest.$ac_ext
 
7469
cat >>conftest.$ac_ext <<_ACEOF
 
7470
/* end confdefs.h.  */
 
7471
$ac_declaration
 
7472
@%:@include <stdlib.h>
 
7473
int
 
7474
main ()
 
7475
{
 
7476
exit (42);
 
7477
  ;
 
7478
  return 0;
 
7479
}
 
7480
_ACEOF
 
7481
rm -f conftest.$ac_objext
 
7482
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7483
  (eval $ac_compile) 2>conftest.er1
 
7484
  ac_status=$?
 
7485
  grep -v '^ *+' conftest.er1 >conftest.err
 
7486
  rm -f conftest.er1
 
7487
  cat conftest.err >&5
 
7488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7489
  (exit $ac_status); } &&
 
7490
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
7491
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7492
  (eval $ac_try) 2>&5
 
7493
  ac_status=$?
 
7494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7495
  (exit $ac_status); }; } &&
 
7496
         { ac_try='test -s conftest.$ac_objext'
 
7497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7498
  (eval $ac_try) 2>&5
 
7499
  ac_status=$?
 
7500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7501
  (exit $ac_status); }; }; then
 
7502
  :
 
7503
else
 
7504
  echo "$as_me: failed program was:" >&5
 
7505
sed 's/^/| /' conftest.$ac_ext >&5
 
7506
 
 
7507
continue
 
7508
fi
 
7509
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7510
  cat >conftest.$ac_ext <<_ACEOF
 
7511
/* confdefs.h.  */
 
7512
_ACEOF
 
7513
cat confdefs.h >>conftest.$ac_ext
 
7514
cat >>conftest.$ac_ext <<_ACEOF
 
7515
/* end confdefs.h.  */
 
7516
$ac_declaration
 
7517
int
 
7518
main ()
 
7519
{
 
7520
exit (42);
 
7521
  ;
 
7522
  return 0;
 
7523
}
 
7524
_ACEOF
 
7525
rm -f conftest.$ac_objext
 
7526
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7527
  (eval $ac_compile) 2>conftest.er1
 
7528
  ac_status=$?
 
7529
  grep -v '^ *+' conftest.er1 >conftest.err
 
7530
  rm -f conftest.er1
 
7531
  cat conftest.err >&5
 
7532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7533
  (exit $ac_status); } &&
 
7534
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
7535
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7536
  (eval $ac_try) 2>&5
 
7537
  ac_status=$?
 
7538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7539
  (exit $ac_status); }; } &&
 
7540
         { ac_try='test -s conftest.$ac_objext'
 
7541
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7542
  (eval $ac_try) 2>&5
 
7543
  ac_status=$?
 
7544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7545
  (exit $ac_status); }; }; then
 
7546
  break
 
7547
else
 
7548
  echo "$as_me: failed program was:" >&5
 
7549
sed 's/^/| /' conftest.$ac_ext >&5
 
7550
 
 
7551
fi
 
7552
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7553
done
 
7554
rm -f conftest*
 
7555
if test -n "$ac_declaration"; then
 
7556
  echo '#ifdef __cplusplus' >>confdefs.h
 
7557
  echo $ac_declaration      >>confdefs.h
 
7558
  echo '#endif'             >>confdefs.h
 
7559
fi
 
7560
 
 
7561
ac_ext=cc
 
7562
ac_cpp='$CXXCPP $CPPFLAGS'
 
7563
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7564
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7565
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7566
 
 
7567
depcc="$CXX"  am_compiler_list=
 
7568
 
 
7569
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
7570
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
7571
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
7572
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7573
else
 
7574
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
7575
  # We make a subdir and do the tests there.  Otherwise we can end up
 
7576
  # making bogus files that we don't know about and never remove.  For
 
7577
  # instance it was reported that on HP-UX the gcc test will end up
 
7578
  # making a dummy file named `D' -- because `-MD' means `put the output
 
7579
  # in D'.
 
7580
  mkdir conftest.dir
 
7581
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
7582
  # using a relative directory.
 
7583
  cp "$am_depcomp" conftest.dir
 
7584
  cd conftest.dir
 
7585
  # We will build objects and dependencies in a subdirectory because
 
7586
  # it helps to detect inapplicable dependency modes.  For instance
 
7587
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
7588
  # side effect of compilation, but ICC will put the dependencies in
 
7589
  # the current directory while Tru64 will put them in the object
 
7590
  # directory.
 
7591
  mkdir sub
 
7592
 
 
7593
  am_cv_CXX_dependencies_compiler_type=none
 
7594
  if test "$am_compiler_list" = ""; then
 
7595
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
7596
  fi
 
7597
  for depmode in $am_compiler_list; do
 
7598
    # Setup a source with many dependencies, because some compilers
 
7599
    # like to wrap large dependency lists on column 80 (with \), and
 
7600
    # we should not choose a depcomp mode which is confused by this.
 
7601
    #
 
7602
    # We need to recreate these files for each test, as the compiler may
 
7603
    # overwrite some of them when testing with obscure command lines.
 
7604
    # This happens at least with the AIX C compiler.
 
7605
    : > sub/conftest.c
 
7606
    for i in 1 2 3 4 5 6; do
 
7607
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
7608
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
7609
      # Solaris 8's {/usr,}/bin/sh.
 
7610
      touch sub/conftst$i.h
 
7611
    done
 
7612
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
7613
 
 
7614
    case $depmode in
 
7615
    nosideeffect)
 
7616
      # after this tag, mechanisms are not by side-effect, so they'll
 
7617
      # only be used when explicitly requested
 
7618
      if test "x$enable_dependency_tracking" = xyes; then
 
7619
        continue
 
7620
      else
 
7621
        break
 
7622
      fi
 
7623
      ;;
 
7624
    none) break ;;
 
7625
    esac
 
7626
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
7627
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
7628
    # handle `-M -o', and we need to detect this.
 
7629
    if depmode=$depmode \
 
7630
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
7631
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
7632
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
7633
         >/dev/null 2>conftest.err &&
 
7634
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
7635
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
7636
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
7637
      # icc doesn't choke on unknown options, it will just issue warnings
 
7638
      # or remarks (even with -Werror).  So we grep stderr for any message
 
7639
      # that says an option was ignored or not supported.
 
7640
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
7641
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
7642
      # The diagnosis changed in icc 8.0:
 
7643
      #   icc: Command line remark: option '-MP' not supported
 
7644
      if (grep 'ignoring option' conftest.err ||
 
7645
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
7646
        am_cv_CXX_dependencies_compiler_type=$depmode
 
7647
        break
 
7648
      fi
 
7649
    fi
 
7650
  done
 
7651
 
 
7652
  cd ..
 
7653
  rm -rf conftest.dir
 
7654
else
 
7655
  am_cv_CXX_dependencies_compiler_type=none
 
7656
fi
 
7657
 
 
7658
fi
 
7659
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
7660
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
7661
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
7662
 
 
7663
 
 
7664
 
 
7665
if 
 
7666
  test "x$enable_dependency_tracking" != xno \
 
7667
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
7668
  am__fastdepCXX_TRUE=
 
7669
  am__fastdepCXX_FALSE='#'
 
7670
else
 
7671
  am__fastdepCXX_TRUE='#'
 
7672
  am__fastdepCXX_FALSE=
 
7673
fi
 
7674
 
 
7675
 
 
7676
ac_ext=cc
 
7677
ac_cpp='$CXXCPP $CPPFLAGS'
 
7678
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7679
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7680
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7681
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
7682
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
7683
if test -z "$CXXCPP"; then
 
7684
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
7685
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7686
else
 
7687
      # Double quotes because CXXCPP needs to be expanded
 
7688
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
7689
    do
 
7690
      ac_preproc_ok=false
 
7691
for ac_cxx_preproc_warn_flag in '' yes
 
7692
do
 
7693
  # Use a header file that comes with gcc, so configuring glibc
 
7694
  # with a fresh cross-compiler works.
 
7695
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7696
  # <limits.h> exists even on freestanding compilers.
 
7697
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7698
  # not just through cpp. "Syntax error" is here to catch this case.
 
7699
  cat >conftest.$ac_ext <<_ACEOF
 
7700
/* confdefs.h.  */
 
7701
_ACEOF
 
7702
cat confdefs.h >>conftest.$ac_ext
 
7703
cat >>conftest.$ac_ext <<_ACEOF
 
7704
/* end confdefs.h.  */
 
7705
@%:@ifdef __STDC__
 
7706
@%:@ include <limits.h>
 
7707
@%:@else
 
7708
@%:@ include <assert.h>
 
7709
@%:@endif
 
7710
                     Syntax error
 
7711
_ACEOF
 
7712
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7713
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7714
  ac_status=$?
 
7715
  grep -v '^ *+' conftest.er1 >conftest.err
 
7716
  rm -f conftest.er1
 
7717
  cat conftest.err >&5
 
7718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7719
  (exit $ac_status); } >/dev/null; then
 
7720
  if test -s conftest.err; then
 
7721
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
7722
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
7723
  else
 
7724
    ac_cpp_err=
 
7725
  fi
 
7726
else
 
7727
  ac_cpp_err=yes
 
7728
fi
 
7729
if test -z "$ac_cpp_err"; then
 
7730
  :
 
7731
else
 
7732
  echo "$as_me: failed program was:" >&5
 
7733
sed 's/^/| /' conftest.$ac_ext >&5
 
7734
 
 
7735
  # Broken: fails on valid input.
 
7736
continue
 
7737
fi
 
7738
rm -f conftest.err conftest.$ac_ext
 
7739
 
 
7740
  # OK, works on sane cases.  Now check whether non-existent headers
 
7741
  # can be detected and how.
 
7742
  cat >conftest.$ac_ext <<_ACEOF
 
7743
/* confdefs.h.  */
 
7744
_ACEOF
 
7745
cat confdefs.h >>conftest.$ac_ext
 
7746
cat >>conftest.$ac_ext <<_ACEOF
 
7747
/* end confdefs.h.  */
 
7748
@%:@include <ac_nonexistent.h>
 
7749
_ACEOF
 
7750
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7751
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7752
  ac_status=$?
 
7753
  grep -v '^ *+' conftest.er1 >conftest.err
 
7754
  rm -f conftest.er1
 
7755
  cat conftest.err >&5
 
7756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7757
  (exit $ac_status); } >/dev/null; then
 
7758
  if test -s conftest.err; then
 
7759
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
7760
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
7761
  else
 
7762
    ac_cpp_err=
 
7763
  fi
 
7764
else
 
7765
  ac_cpp_err=yes
 
7766
fi
 
7767
if test -z "$ac_cpp_err"; then
 
7768
  # Broken: success on invalid input.
 
7769
continue
 
7770
else
 
7771
  echo "$as_me: failed program was:" >&5
 
7772
sed 's/^/| /' conftest.$ac_ext >&5
 
7773
 
 
7774
  # Passes both tests.
 
7775
ac_preproc_ok=:
 
7776
break
 
7777
fi
 
7778
rm -f conftest.err conftest.$ac_ext
 
7779
 
 
7780
done
 
7781
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7782
rm -f conftest.err conftest.$ac_ext
 
7783
if $ac_preproc_ok; then
 
7784
  break
 
7785
fi
 
7786
 
 
7787
    done
 
7788
    ac_cv_prog_CXXCPP=$CXXCPP
 
7789
  
 
7790
fi
 
7791
  CXXCPP=$ac_cv_prog_CXXCPP
 
7792
else
 
7793
  ac_cv_prog_CXXCPP=$CXXCPP
 
7794
fi
 
7795
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
7796
echo "${ECHO_T}$CXXCPP" >&6
 
7797
ac_preproc_ok=false
 
7798
for ac_cxx_preproc_warn_flag in '' yes
 
7799
do
 
7800
  # Use a header file that comes with gcc, so configuring glibc
 
7801
  # with a fresh cross-compiler works.
 
7802
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7803
  # <limits.h> exists even on freestanding compilers.
 
7804
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7805
  # not just through cpp. "Syntax error" is here to catch this case.
 
7806
  cat >conftest.$ac_ext <<_ACEOF
 
7807
/* confdefs.h.  */
 
7808
_ACEOF
 
7809
cat confdefs.h >>conftest.$ac_ext
 
7810
cat >>conftest.$ac_ext <<_ACEOF
 
7811
/* end confdefs.h.  */
 
7812
@%:@ifdef __STDC__
 
7813
@%:@ include <limits.h>
 
7814
@%:@else
 
7815
@%:@ include <assert.h>
 
7816
@%:@endif
 
7817
                     Syntax error
 
7818
_ACEOF
 
7819
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7820
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7821
  ac_status=$?
 
7822
  grep -v '^ *+' conftest.er1 >conftest.err
 
7823
  rm -f conftest.er1
 
7824
  cat conftest.err >&5
 
7825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7826
  (exit $ac_status); } >/dev/null; then
 
7827
  if test -s conftest.err; then
 
7828
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
7829
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
7830
  else
 
7831
    ac_cpp_err=
 
7832
  fi
 
7833
else
 
7834
  ac_cpp_err=yes
 
7835
fi
 
7836
if test -z "$ac_cpp_err"; then
 
7837
  :
 
7838
else
 
7839
  echo "$as_me: failed program was:" >&5
 
7840
sed 's/^/| /' conftest.$ac_ext >&5
 
7841
 
 
7842
  # Broken: fails on valid input.
 
7843
continue
 
7844
fi
 
7845
rm -f conftest.err conftest.$ac_ext
 
7846
 
 
7847
  # OK, works on sane cases.  Now check whether non-existent headers
 
7848
  # can be detected and how.
 
7849
  cat >conftest.$ac_ext <<_ACEOF
 
7850
/* confdefs.h.  */
 
7851
_ACEOF
 
7852
cat confdefs.h >>conftest.$ac_ext
 
7853
cat >>conftest.$ac_ext <<_ACEOF
 
7854
/* end confdefs.h.  */
 
7855
@%:@include <ac_nonexistent.h>
 
7856
_ACEOF
 
7857
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7858
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7859
  ac_status=$?
 
7860
  grep -v '^ *+' conftest.er1 >conftest.err
 
7861
  rm -f conftest.er1
 
7862
  cat conftest.err >&5
 
7863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7864
  (exit $ac_status); } >/dev/null; then
 
7865
  if test -s conftest.err; then
 
7866
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
7867
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
7868
  else
 
7869
    ac_cpp_err=
 
7870
  fi
 
7871
else
 
7872
  ac_cpp_err=yes
 
7873
fi
 
7874
if test -z "$ac_cpp_err"; then
 
7875
  # Broken: success on invalid input.
 
7876
continue
 
7877
else
 
7878
  echo "$as_me: failed program was:" >&5
 
7879
sed 's/^/| /' conftest.$ac_ext >&5
 
7880
 
 
7881
  # Passes both tests.
 
7882
ac_preproc_ok=:
 
7883
break
 
7884
fi
 
7885
rm -f conftest.err conftest.$ac_ext
 
7886
 
 
7887
done
 
7888
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7889
rm -f conftest.err conftest.$ac_ext
 
7890
if $ac_preproc_ok; then
 
7891
  :
 
7892
else
 
7893
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
7894
See \`config.log' for more details." >&5
 
7895
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
7896
See \`config.log' for more details." >&2;}
 
7897
   { (exit 1); exit 1; }; }
 
7898
fi
 
7899
 
 
7900
ac_ext=cc
 
7901
ac_cpp='$CXXCPP $CPPFLAGS'
 
7902
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7903
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7904
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7905
 
 
7906
 
 
7907
ac_ext=f
 
7908
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
7909
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7910
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
7911
if test -n "$ac_tool_prefix"; then
 
7912
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
7913
  do
 
7914
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
7915
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
7916
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7917
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7918
if test "${ac_cv_prog_F77+set}" = set; then
 
7919
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7920
else
 
7921
  if test -n "$F77"; then
 
7922
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
7923
else
 
7924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7925
for as_dir in $PATH
 
7926
do
 
7927
  IFS=$as_save_IFS
 
7928
  test -z "$as_dir" && as_dir=.
 
7929
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7930
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7931
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
7932
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7933
    break 2
 
7934
  fi
 
7935
done
 
7936
done
 
7937
 
 
7938
fi
 
7939
fi
 
7940
F77=$ac_cv_prog_F77
 
7941
if test -n "$F77"; then
 
7942
  echo "$as_me:$LINENO: result: $F77" >&5
 
7943
echo "${ECHO_T}$F77" >&6
 
7944
else
 
7945
  echo "$as_me:$LINENO: result: no" >&5
 
7946
echo "${ECHO_T}no" >&6
 
7947
fi
 
7948
 
 
7949
    test -n "$F77" && break
 
7950
  done
 
7951
fi
 
7952
if test -z "$F77"; then
 
7953
  ac_ct_F77=$F77
 
7954
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
7955
do
 
7956
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7957
set dummy $ac_prog; ac_word=$2
 
7958
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7959
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7960
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
7961
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7962
else
 
7963
  if test -n "$ac_ct_F77"; then
 
7964
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
7965
else
 
7966
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7967
for as_dir in $PATH
 
7968
do
 
7969
  IFS=$as_save_IFS
 
7970
  test -z "$as_dir" && as_dir=.
 
7971
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7972
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7973
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
7974
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7975
    break 2
 
7976
  fi
 
7977
done
 
7978
done
 
7979
 
 
7980
fi
 
7981
fi
 
7982
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
7983
if test -n "$ac_ct_F77"; then
 
7984
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
7985
echo "${ECHO_T}$ac_ct_F77" >&6
 
7986
else
 
7987
  echo "$as_me:$LINENO: result: no" >&5
 
7988
echo "${ECHO_T}no" >&6
 
7989
fi
 
7990
 
 
7991
  test -n "$ac_ct_F77" && break
 
7992
done
 
7993
 
 
7994
  F77=$ac_ct_F77
 
7995
fi
 
7996
 
 
7997
 
 
7998
# Provide some information about the compiler.
 
7999
echo "$as_me:__oline__:" \
 
8000
     "checking for Fortran 77 compiler version" >&5
 
8001
ac_compiler=`set X $ac_compile; echo $2`
 
8002
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
8003
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
8004
  ac_status=$?
 
8005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8006
  (exit $ac_status); }
 
8007
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
8008
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
8009
  ac_status=$?
 
8010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8011
  (exit $ac_status); }
 
8012
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
8013
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
8014
  ac_status=$?
 
8015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8016
  (exit $ac_status); }
 
8017
rm -f a.out
 
8018
 
 
8019
# If we don't use `.F' as extension, the preprocessor is not run on the
 
8020
# input file.  (Note that this only needs to work for GNU compilers.)
 
8021
ac_save_ext=$ac_ext
 
8022
ac_ext=F
 
8023
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
8024
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
8025
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
8026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8027
else
 
8028
  cat >conftest.$ac_ext <<_ACEOF
 
8029
      program main
 
8030
#ifndef __GNUC__
 
8031
       choke me
 
8032
#endif
 
8033
 
 
8034
      end
 
8035
_ACEOF
 
8036
rm -f conftest.$ac_objext
 
8037
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8038
  (eval $ac_compile) 2>conftest.er1
 
8039
  ac_status=$?
 
8040
  grep -v '^ *+' conftest.er1 >conftest.err
 
8041
  rm -f conftest.er1
 
8042
  cat conftest.err >&5
 
8043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8044
  (exit $ac_status); } &&
 
8045
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
8046
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8047
  (eval $ac_try) 2>&5
 
8048
  ac_status=$?
 
8049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8050
  (exit $ac_status); }; } &&
 
8051
         { ac_try='test -s conftest.$ac_objext'
 
8052
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8053
  (eval $ac_try) 2>&5
 
8054
  ac_status=$?
 
8055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8056
  (exit $ac_status); }; }; then
 
8057
  ac_compiler_gnu=yes
 
8058
else
 
8059
  echo "$as_me: failed program was:" >&5
 
8060
sed 's/^/| /' conftest.$ac_ext >&5
 
8061
 
 
8062
ac_compiler_gnu=no
 
8063
fi
 
8064
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8065
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
8066
 
 
8067
fi
 
8068
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
8069
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
8070
ac_ext=$ac_save_ext
 
8071
ac_test_FFLAGS=${FFLAGS+set}
 
8072
ac_save_FFLAGS=$FFLAGS
 
8073
FFLAGS=
 
8074
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
8075
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
8076
if test "${ac_cv_prog_f77_g+set}" = set; then
 
8077
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8078
else
 
8079
  FFLAGS=-g
 
8080
cat >conftest.$ac_ext <<_ACEOF
 
8081
      program main
 
8082
 
 
8083
      end
 
8084
_ACEOF
 
8085
rm -f conftest.$ac_objext
 
8086
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8087
  (eval $ac_compile) 2>conftest.er1
 
8088
  ac_status=$?
 
8089
  grep -v '^ *+' conftest.er1 >conftest.err
 
8090
  rm -f conftest.er1
 
8091
  cat conftest.err >&5
 
8092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8093
  (exit $ac_status); } &&
 
8094
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
8095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8096
  (eval $ac_try) 2>&5
 
8097
  ac_status=$?
 
8098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8099
  (exit $ac_status); }; } &&
 
8100
         { ac_try='test -s conftest.$ac_objext'
 
8101
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8102
  (eval $ac_try) 2>&5
 
8103
  ac_status=$?
 
8104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8105
  (exit $ac_status); }; }; then
 
8106
  ac_cv_prog_f77_g=yes
 
8107
else
 
8108
  echo "$as_me: failed program was:" >&5
 
8109
sed 's/^/| /' conftest.$ac_ext >&5
 
8110
 
 
8111
ac_cv_prog_f77_g=no
 
8112
fi
 
8113
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8114
 
 
8115
fi
 
8116
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
8117
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
8118
if test "$ac_test_FFLAGS" = set; then
 
8119
  FFLAGS=$ac_save_FFLAGS
 
8120
elif test $ac_cv_prog_f77_g = yes; then
 
8121
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
8122
    FFLAGS="-g -O2"
 
8123
  else
 
8124
    FFLAGS="-g"
 
8125
  fi
 
8126
else
 
8127
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
8128
    FFLAGS="-O2"
 
8129
  else
 
8130
    FFLAGS=
 
8131
  fi
 
8132
fi
 
8133
 
 
8134
G77=`test $ac_compiler_gnu = yes && echo yes`
 
8135
ac_ext=c
 
8136
ac_cpp='$CPP $CPPFLAGS'
 
8137
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8138
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8139
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8140
 
 
8141
 
 
8142
 
 
8143
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
8144
 
 
8145
# find the maximum length of command line arguments
 
8146
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
8147
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
8148
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
8149
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8150
else
 
8151
    i=0
 
8152
  teststring="ABCD"
 
8153
 
 
8154
  case $build_os in
 
8155
  msdosdjgpp*)
 
8156
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
8157
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
8158
    # during glob expansion).  Even if it were fixed, the result of this
 
8159
    # check would be larger than it should be.
 
8160
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
8161
    ;;
 
8162
 
 
8163
  gnu*)
 
8164
    # Under GNU Hurd, this test is not required because there is
 
8165
    # no limit to the length of command line arguments.
 
8166
    # Libtool will interpret -1 as no limit whatsoever
 
8167
    lt_cv_sys_max_cmd_len=-1;
 
8168
    ;;
 
8169
 
 
8170
  cygwin* | mingw*)
 
8171
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
8172
    # about 5 minutes as the teststring grows exponentially.
 
8173
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
8174
    # you end up with a "frozen" computer, even though with patience
 
8175
    # the test eventually succeeds (with a max line length of 256k).
 
8176
    # Instead, let's just punt: use the minimum linelength reported by
 
8177
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
8178
    lt_cv_sys_max_cmd_len=8192;
 
8179
    ;;
 
8180
 
 
8181
  amigaos*)
 
8182
    # On AmigaOS with pdksh, this test takes hours, literally.
 
8183
    # So we just punt and use a minimum line length of 8192.
 
8184
    lt_cv_sys_max_cmd_len=8192;
 
8185
    ;;
 
8186
 
 
8187
 *)
 
8188
    # If test is not a shell built-in, we'll probably end up computing a
 
8189
    # maximum length that is only half of the actual maximum length, but
 
8190
    # we can't tell.
 
8191
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
8192
               = "XX$teststring") >/dev/null 2>&1 &&
 
8193
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
8194
            lt_cv_sys_max_cmd_len=$new_result &&
 
8195
            test $i != 17 # 1/2 MB should be enough
 
8196
    do
 
8197
      i=`expr $i + 1`
 
8198
      teststring=$teststring$teststring
 
8199
    done
 
8200
    teststring=
 
8201
    # Add a significant safety factor because C++ compilers can tack on massive
 
8202
    # amounts of additional arguments before passing them to the linker.
 
8203
    # It appears as though 1/2 is a usable value.
 
8204
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
8205
    ;;
 
8206
  esac
 
8207
 
 
8208
fi
 
8209
 
 
8210
if test -n $lt_cv_sys_max_cmd_len ; then
 
8211
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
8212
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
8213
else
 
8214
  echo "$as_me:$LINENO: result: none" >&5
 
8215
echo "${ECHO_T}none" >&6
 
8216
fi
 
8217
 
 
8218
 
 
8219
 
 
8220
 
 
8221
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
8222
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
8223
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
8224
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
8225
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8226
else
 
8227
  
 
8228
# These are sane defaults that work on at least a few old systems.
 
8229
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
8230
 
 
8231
# Character class describing NM global symbol codes.
 
8232
symcode='[BCDEGRST]'
 
8233
 
 
8234
# Regexp to match symbols that can be accessed directly from C.
 
8235
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
8236
 
 
8237
# Transform the above into a raw symbol and a C symbol.
 
8238
symxfrm='\1 \2\3 \3'
 
8239
 
 
8240
# Transform an extracted symbol line into a proper C declaration
 
8241
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
8242
 
 
8243
# Transform an extracted symbol line into symbol name and symbol address
 
8244
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'"
 
8245
 
 
8246
# Define system-specific variables.
 
8247
case $host_os in
 
8248
aix*)
 
8249
  symcode='[BCDT]'
 
8250
  ;;
 
8251
cygwin* | mingw* | pw32*)
 
8252
  symcode='[ABCDGISTW]'
 
8253
  ;;
 
8254
hpux*) # Its linker distinguishes data from code symbols
 
8255
  if test "$host_cpu" = ia64; then
 
8256
    symcode='[ABCDEGRST]'
 
8257
  fi
 
8258
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
8259
  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'"
 
8260
  ;;
 
8261
irix* | nonstopux*)
 
8262
  symcode='[BCDEGRST]'
 
8263
  ;;
 
8264
osf*)
 
8265
  symcode='[BCDEGQRST]'
 
8266
  ;;
 
8267
solaris* | sysv5*)
 
8268
  symcode='[BDRT]'
 
8269
  ;;
 
8270
sysv4)
 
8271
  symcode='[DFNSTU]'
 
8272
  ;;
 
8273
esac
 
8274
 
 
8275
# Handle CRLF in mingw tool chain
 
8276
opt_cr=
 
8277
case $build_os in
 
8278
mingw*)
 
8279
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
8280
  ;;
 
8281
esac
 
8282
 
 
8283
# If we're using GNU nm, then use its standard symbol codes.
 
8284
case `$NM -V 2>&1` in
 
8285
*GNU* | *'with BFD'*)
 
8286
  symcode='[ABCDGIRSTW]' ;;
 
8287
esac
 
8288
 
 
8289
# Try without a prefix undercore, then with it.
 
8290
for ac_symprfx in "" "_"; do
 
8291
 
 
8292
  # Write the raw and C identifiers.
 
8293
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
8294
 
 
8295
  # Check to see that the pipe works correctly.
 
8296
  pipe_works=no
 
8297
 
 
8298
  rm -f conftest*
 
8299
  cat > conftest.$ac_ext <<EOF
 
8300
#ifdef __cplusplus
 
8301
extern "C" {
 
8302
#endif
 
8303
char nm_test_var;
 
8304
void nm_test_func(){}
 
8305
#ifdef __cplusplus
 
8306
}
 
8307
#endif
 
8308
int main(){nm_test_var='a';nm_test_func();return(0);}
 
8309
EOF
 
8310
 
 
8311
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8312
  (eval $ac_compile) 2>&5
 
8313
  ac_status=$?
 
8314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8315
  (exit $ac_status); }; then
 
8316
    # Now try to grab the symbols.
 
8317
    nlist=conftest.nm
 
8318
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
8319
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
8320
  ac_status=$?
 
8321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8322
  (exit $ac_status); } && test -s "$nlist"; then
 
8323
      # Try sorting and uniquifying the output.
 
8324
      if sort "$nlist" | uniq > "$nlist"T; then
 
8325
        mv -f "$nlist"T "$nlist"
 
8326
      else
 
8327
        rm -f "$nlist"T
 
8328
      fi
 
8329
 
 
8330
      # Make sure that we snagged all the symbols we need.
 
8331
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
8332
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
8333
          cat <<EOF > conftest.$ac_ext
 
8334
#ifdef __cplusplus
 
8335
extern "C" {
 
8336
#endif
 
8337
 
 
8338
EOF
 
8339
          # Now generate the symbol file.
 
8340
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
8341
 
 
8342
          cat <<EOF >> conftest.$ac_ext
 
8343
#if defined (__STDC__) && __STDC__
 
8344
# define lt_ptr_t void *
 
8345
#else
 
8346
# define lt_ptr_t char *
 
8347
# define const
 
8348
#endif
 
8349
 
 
8350
/* The mapping between symbol names and symbols. */
 
8351
const struct {
 
8352
  const char *name;
 
8353
  lt_ptr_t address;
 
8354
}
 
8355
lt_preloaded_symbols[] =
 
8356
{
 
8357
EOF
 
8358
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
8359
          cat <<\EOF >> conftest.$ac_ext
 
8360
  {0, (lt_ptr_t) 0}
 
8361
};
 
8362
 
 
8363
#ifdef __cplusplus
 
8364
}
 
8365
#endif
 
8366
EOF
 
8367
          # Now try linking the two files.
 
8368
          mv conftest.$ac_objext conftstm.$ac_objext
 
8369
          lt_save_LIBS="$LIBS"
 
8370
          lt_save_CFLAGS="$CFLAGS"
 
8371
          LIBS="conftstm.$ac_objext"
 
8372
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
8373
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8374
  (eval $ac_link) 2>&5
 
8375
  ac_status=$?
 
8376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8377
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
8378
            pipe_works=yes
 
8379
          fi
 
8380
          LIBS="$lt_save_LIBS"
 
8381
          CFLAGS="$lt_save_CFLAGS"
 
8382
        else
 
8383
          echo "cannot find nm_test_func in $nlist" >&5
 
8384
        fi
 
8385
      else
 
8386
        echo "cannot find nm_test_var in $nlist" >&5
 
8387
      fi
 
8388
    else
 
8389
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
8390
    fi
 
8391
  else
 
8392
    echo "$progname: failed program was:" >&5
 
8393
    cat conftest.$ac_ext >&5
 
8394
  fi
 
8395
  rm -f conftest* conftst*
 
8396
 
 
8397
  # Do not use the global_symbol_pipe unless it works.
 
8398
  if test "$pipe_works" = yes; then
 
8399
    break
 
8400
  else
 
8401
    lt_cv_sys_global_symbol_pipe=
 
8402
  fi
 
8403
done
 
8404
 
 
8405
fi
 
8406
 
 
8407
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
8408
  lt_cv_sys_global_symbol_to_cdecl=
 
8409
fi
 
8410
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
8411
  echo "$as_me:$LINENO: result: failed" >&5
 
8412
echo "${ECHO_T}failed" >&6
 
8413
else
 
8414
  echo "$as_me:$LINENO: result: ok" >&5
 
8415
echo "${ECHO_T}ok" >&6
 
8416
fi
 
8417
 
 
8418
echo "$as_me:$LINENO: checking for objdir" >&5
 
8419
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
8420
if test "${lt_cv_objdir+set}" = set; then
 
8421
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8422
else
 
8423
  rm -f .libs 2>/dev/null
 
8424
mkdir .libs 2>/dev/null
 
8425
if test -d .libs; then
 
8426
  lt_cv_objdir=.libs
 
8427
else
 
8428
  # MS-DOS does not allow filenames that begin with a dot.
 
8429
  lt_cv_objdir=_libs
 
8430
fi
 
8431
rmdir .libs 2>/dev/null
 
8432
fi
 
8433
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
8434
echo "${ECHO_T}$lt_cv_objdir" >&6
 
8435
objdir=$lt_cv_objdir
 
8436
 
 
8437
 
 
8438
 
 
8439
 
 
8440
 
 
8441
case $host_os in
 
8442
aix3*)
 
8443
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8444
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8445
  # vanish in a puff of smoke.
 
8446
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8447
    COLLECT_NAMES=
 
8448
    export COLLECT_NAMES
 
8449
  fi
 
8450
  ;;
 
8451
esac
 
8452
 
 
8453
# Sed substitution that helps us do robust quoting.  It backslashifies
 
8454
# metacharacters that are still active within double-quoted strings.
 
8455
Xsed='sed -e s/^X//'
 
8456
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
8457
 
 
8458
# Same as above, but do not quote variable references.
 
8459
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
8460
 
 
8461
# Sed substitution to delay expansion of an escaped shell variable in a
 
8462
# double_quote_subst'ed string.
 
8463
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
8464
 
 
8465
# Sed substitution to avoid accidental globbing in evaled expressions
 
8466
no_glob_subst='s/\*/\\\*/g'
 
8467
 
 
8468
# Constants:
 
8469
rm="rm -f"
 
8470
 
 
8471
# Global variables:
 
8472
default_ofile=libtool
 
8473
can_build_shared=yes
 
8474
 
 
8475
# All known linkers require a `.a' archive for static linking (except M$VC,
 
8476
# which needs '.lib').
 
8477
libext=a
 
8478
ltmain="$ac_aux_dir/ltmain.sh"
 
8479
ofile="$default_ofile"
 
8480
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8481
 
 
8482
if test -n "$ac_tool_prefix"; then
 
8483
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
8484
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
8485
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8486
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8487
if test "${ac_cv_prog_AR+set}" = set; then
 
8488
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8489
else
 
8490
  if test -n "$AR"; then
 
8491
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
8492
else
 
8493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8494
for as_dir in $PATH
 
8495
do
 
8496
  IFS=$as_save_IFS
 
8497
  test -z "$as_dir" && as_dir=.
 
8498
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8499
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8500
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
8501
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8502
    break 2
 
8503
  fi
 
8504
done
 
8505
done
 
8506
 
 
8507
fi
 
8508
fi
 
8509
AR=$ac_cv_prog_AR
 
8510
if test -n "$AR"; then
 
8511
  echo "$as_me:$LINENO: result: $AR" >&5
 
8512
echo "${ECHO_T}$AR" >&6
 
8513
else
 
8514
  echo "$as_me:$LINENO: result: no" >&5
 
8515
echo "${ECHO_T}no" >&6
 
8516
fi
 
8517
 
 
8518
fi
 
8519
if test -z "$ac_cv_prog_AR"; then
 
8520
  ac_ct_AR=$AR
 
8521
  # Extract the first word of "ar", so it can be a program name with args.
 
8522
set dummy ar; ac_word=$2
 
8523
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8524
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8525
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
8526
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8527
else
 
8528
  if test -n "$ac_ct_AR"; then
 
8529
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
8530
else
 
8531
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8532
for as_dir in $PATH
 
8533
do
 
8534
  IFS=$as_save_IFS
 
8535
  test -z "$as_dir" && as_dir=.
 
8536
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8537
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8538
    ac_cv_prog_ac_ct_AR="ar"
 
8539
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8540
    break 2
 
8541
  fi
 
8542
done
 
8543
done
 
8544
 
 
8545
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
8546
fi
 
8547
fi
 
8548
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
8549
if test -n "$ac_ct_AR"; then
 
8550
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
8551
echo "${ECHO_T}$ac_ct_AR" >&6
 
8552
else
 
8553
  echo "$as_me:$LINENO: result: no" >&5
 
8554
echo "${ECHO_T}no" >&6
 
8555
fi
 
8556
 
 
8557
  AR=$ac_ct_AR
 
8558
else
 
8559
  AR="$ac_cv_prog_AR"
 
8560
fi
 
8561
 
 
8562
if test -n "$ac_tool_prefix"; then
 
8563
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
8564
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
8565
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8566
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8567
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
8568
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8569
else
 
8570
  if test -n "$RANLIB"; then
 
8571
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
8572
else
 
8573
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8574
for as_dir in $PATH
 
8575
do
 
8576
  IFS=$as_save_IFS
 
8577
  test -z "$as_dir" && as_dir=.
 
8578
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8579
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8580
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
8581
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8582
    break 2
 
8583
  fi
 
8584
done
 
8585
done
 
8586
 
 
8587
fi
 
8588
fi
 
8589
RANLIB=$ac_cv_prog_RANLIB
 
8590
if test -n "$RANLIB"; then
 
8591
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
8592
echo "${ECHO_T}$RANLIB" >&6
 
8593
else
 
8594
  echo "$as_me:$LINENO: result: no" >&5
 
8595
echo "${ECHO_T}no" >&6
 
8596
fi
 
8597
 
 
8598
fi
 
8599
if test -z "$ac_cv_prog_RANLIB"; then
 
8600
  ac_ct_RANLIB=$RANLIB
 
8601
  # Extract the first word of "ranlib", so it can be a program name with args.
 
8602
set dummy ranlib; ac_word=$2
 
8603
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8604
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8605
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
8606
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8607
else
 
8608
  if test -n "$ac_ct_RANLIB"; then
 
8609
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
8610
else
 
8611
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8612
for as_dir in $PATH
 
8613
do
 
8614
  IFS=$as_save_IFS
 
8615
  test -z "$as_dir" && as_dir=.
 
8616
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8617
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8618
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
8619
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8620
    break 2
 
8621
  fi
 
8622
done
 
8623
done
 
8624
 
 
8625
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
8626
fi
 
8627
fi
 
8628
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
8629
if test -n "$ac_ct_RANLIB"; then
 
8630
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
8631
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
8632
else
 
8633
  echo "$as_me:$LINENO: result: no" >&5
 
8634
echo "${ECHO_T}no" >&6
 
8635
fi
 
8636
 
 
8637
  RANLIB=$ac_ct_RANLIB
 
8638
else
 
8639
  RANLIB="$ac_cv_prog_RANLIB"
 
8640
fi
 
8641
 
 
8642
if test -n "$ac_tool_prefix"; then
 
8643
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
8644
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
8645
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8646
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8647
if test "${ac_cv_prog_STRIP+set}" = set; then
 
8648
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8649
else
 
8650
  if test -n "$STRIP"; then
 
8651
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
8652
else
 
8653
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8654
for as_dir in $PATH
 
8655
do
 
8656
  IFS=$as_save_IFS
 
8657
  test -z "$as_dir" && as_dir=.
 
8658
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8659
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8660
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
8661
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8662
    break 2
 
8663
  fi
 
8664
done
 
8665
done
 
8666
 
 
8667
fi
 
8668
fi
 
8669
STRIP=$ac_cv_prog_STRIP
 
8670
if test -n "$STRIP"; then
 
8671
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
8672
echo "${ECHO_T}$STRIP" >&6
 
8673
else
 
8674
  echo "$as_me:$LINENO: result: no" >&5
 
8675
echo "${ECHO_T}no" >&6
 
8676
fi
 
8677
 
 
8678
fi
 
8679
if test -z "$ac_cv_prog_STRIP"; then
 
8680
  ac_ct_STRIP=$STRIP
 
8681
  # Extract the first word of "strip", so it can be a program name with args.
 
8682
set dummy strip; ac_word=$2
 
8683
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8684
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8685
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
8686
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8687
else
 
8688
  if test -n "$ac_ct_STRIP"; then
 
8689
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
8690
else
 
8691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8692
for as_dir in $PATH
 
8693
do
 
8694
  IFS=$as_save_IFS
 
8695
  test -z "$as_dir" && as_dir=.
 
8696
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8697
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8698
    ac_cv_prog_ac_ct_STRIP="strip"
 
8699
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8700
    break 2
 
8701
  fi
 
8702
done
 
8703
done
 
8704
 
 
8705
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
8706
fi
 
8707
fi
 
8708
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
8709
if test -n "$ac_ct_STRIP"; then
 
8710
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
8711
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
8712
else
 
8713
  echo "$as_me:$LINENO: result: no" >&5
 
8714
echo "${ECHO_T}no" >&6
 
8715
fi
 
8716
 
 
8717
  STRIP=$ac_ct_STRIP
 
8718
else
 
8719
  STRIP="$ac_cv_prog_STRIP"
 
8720
fi
 
8721
 
 
8722
 
 
8723
old_CC="$CC"
 
8724
old_CFLAGS="$CFLAGS"
 
8725
 
 
8726
# Set sane defaults for various variables
 
8727
test -z "$AR" && AR=ar
 
8728
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
8729
test -z "$AS" && AS=as
 
8730
test -z "$CC" && CC=cc
 
8731
test -z "$LTCC" && LTCC=$CC
 
8732
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8733
test -z "$LD" && LD=ld
 
8734
test -z "$LN_S" && LN_S="ln -s"
 
8735
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8736
test -z "$NM" && NM=nm
 
8737
test -z "$SED" && SED=sed
 
8738
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8739
test -z "$RANLIB" && RANLIB=:
 
8740
test -z "$STRIP" && STRIP=:
 
8741
test -z "$ac_objext" && ac_objext=o
 
8742
 
 
8743
# Determine commands to create old-style static archives.
 
8744
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
8745
old_postinstall_cmds='chmod 644 $oldlib'
 
8746
old_postuninstall_cmds=
 
8747
 
 
8748
if test -n "$RANLIB"; then
 
8749
  case $host_os in
 
8750
  openbsd*)
 
8751
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
8752
    ;;
 
8753
  *)
 
8754
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
8755
    ;;
 
8756
  esac
 
8757
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
8758
fi
 
8759
 
 
8760
# Only perform the check for file, if the check method requires it
 
8761
case $deplibs_check_method in
 
8762
file_magic*)
 
8763
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8764
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
8765
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
8766
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8767
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8768
else
 
8769
  case $MAGIC_CMD in
 
8770
[\\/*] |  ?:[\\/]*)
 
8771
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8772
  ;;
 
8773
*)
 
8774
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8775
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8776
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8777
  for ac_dir in $ac_dummy; do
 
8778
    IFS="$lt_save_ifs"
 
8779
    test -z "$ac_dir" && ac_dir=.
 
8780
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8781
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8782
      if test -n "$file_magic_test_file"; then
 
8783
        case $deplibs_check_method in
 
8784
        "file_magic "*)
 
8785
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
8786
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8787
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8788
            $EGREP "$file_magic_regex" > /dev/null; then
 
8789
            :
 
8790
          else
 
8791
            cat <<EOF 1>&2
 
8792
 
 
8793
*** Warning: the command libtool uses to detect shared libraries,
 
8794
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8795
*** The result is that libtool may fail to recognize shared libraries
 
8796
*** as such.  This will affect the creation of libtool libraries that
 
8797
*** depend on shared libraries, but programs linked with such libtool
 
8798
*** libraries will work regardless of this problem.  Nevertheless, you
 
8799
*** may want to report the problem to your system manager and/or to
 
8800
*** bug-libtool@gnu.org
 
8801
 
 
8802
EOF
 
8803
          fi ;;
 
8804
        esac
 
8805
      fi
 
8806
      break
 
8807
    fi
 
8808
  done
 
8809
  IFS="$lt_save_ifs"
 
8810
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8811
  ;;
 
8812
esac
 
8813
fi
 
8814
 
 
8815
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8816
if test -n "$MAGIC_CMD"; then
 
8817
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8818
echo "${ECHO_T}$MAGIC_CMD" >&6
 
8819
else
 
8820
  echo "$as_me:$LINENO: result: no" >&5
 
8821
echo "${ECHO_T}no" >&6
 
8822
fi
 
8823
 
 
8824
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8825
  if test -n "$ac_tool_prefix"; then
 
8826
    echo "$as_me:$LINENO: checking for file" >&5
 
8827
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
8828
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8829
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8830
else
 
8831
  case $MAGIC_CMD in
 
8832
[\\/*] |  ?:[\\/]*)
 
8833
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8834
  ;;
 
8835
*)
 
8836
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8837
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8838
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8839
  for ac_dir in $ac_dummy; do
 
8840
    IFS="$lt_save_ifs"
 
8841
    test -z "$ac_dir" && ac_dir=.
 
8842
    if test -f $ac_dir/file; then
 
8843
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8844
      if test -n "$file_magic_test_file"; then
 
8845
        case $deplibs_check_method in
 
8846
        "file_magic "*)
 
8847
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
8848
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8849
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8850
            $EGREP "$file_magic_regex" > /dev/null; then
 
8851
            :
 
8852
          else
 
8853
            cat <<EOF 1>&2
 
8854
 
 
8855
*** Warning: the command libtool uses to detect shared libraries,
 
8856
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8857
*** The result is that libtool may fail to recognize shared libraries
 
8858
*** as such.  This will affect the creation of libtool libraries that
 
8859
*** depend on shared libraries, but programs linked with such libtool
 
8860
*** libraries will work regardless of this problem.  Nevertheless, you
 
8861
*** may want to report the problem to your system manager and/or to
 
8862
*** bug-libtool@gnu.org
 
8863
 
 
8864
EOF
 
8865
          fi ;;
 
8866
        esac
 
8867
      fi
 
8868
      break
 
8869
    fi
 
8870
  done
 
8871
  IFS="$lt_save_ifs"
 
8872
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8873
  ;;
 
8874
esac
 
8875
fi
 
8876
 
 
8877
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8878
if test -n "$MAGIC_CMD"; then
 
8879
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8880
echo "${ECHO_T}$MAGIC_CMD" >&6
 
8881
else
 
8882
  echo "$as_me:$LINENO: result: no" >&5
 
8883
echo "${ECHO_T}no" >&6
 
8884
fi
 
8885
 
 
8886
  else
 
8887
    MAGIC_CMD=:
 
8888
  fi
 
8889
fi
 
8890
 
 
8891
  fi
 
8892
  ;;
 
8893
esac
 
8894
 
 
8895
enable_dlopen=no
 
8896
enable_win32_dll=no
 
8897
 
 
8898
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
8899
if test "${enable_libtool_lock+set}" = set; then
 
8900
  enableval="$enable_libtool_lock"
 
8901
  
 
8902
fi; 
 
8903
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
8904
 
 
8905
 
 
8906
# Check whether --with-pic or --without-pic was given.
 
8907
if test "${with_pic+set}" = set; then
 
8908
  withval="$with_pic"
 
8909
  pic_mode="$withval"
 
8910
else
 
8911
  pic_mode=default
 
8912
fi; 
 
8913
test -z "$pic_mode" && pic_mode=default
 
8914
 
 
8915
# Use C for the default configuration in the libtool script
 
8916
tagname=
 
8917
lt_save_CC="$CC"
 
8918
ac_ext=c
 
8919
ac_cpp='$CPP $CPPFLAGS'
 
8920
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8921
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8922
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8923
 
 
8924
 
 
8925
# Source file extension for C test sources.
 
8926
ac_ext=c
 
8927
 
 
8928
# Object file extension for compiled C test sources.
 
8929
objext=o
 
8930
objext=$objext
 
8931
 
 
8932
# Code to be used in simple compile tests
 
8933
lt_simple_compile_test_code="int some_variable = 0;\n"
 
8934
 
 
8935
# Code to be used in simple link tests
 
8936
lt_simple_link_test_code='int main(){return(0);}\n'
 
8937
 
 
8938
 
 
8939
# If no C compiler was specified, use CC.
 
8940
LTCC=${LTCC-"$CC"}
 
8941
 
 
8942
# Allow CC to be a program name with arguments.
 
8943
compiler=$CC
 
8944
 
 
8945
 
 
8946
#
 
8947
# Check for any special shared library compilation flags.
 
8948
#
 
8949
lt_prog_cc_shlib=
 
8950
if test "$GCC" = no; then
 
8951
  case $host_os in
 
8952
  sco3.2v5*)
 
8953
    lt_prog_cc_shlib='-belf'
 
8954
    ;;
 
8955
  esac
 
8956
fi
 
8957
if test -n "$lt_prog_cc_shlib"; then
 
8958
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
8959
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
8960
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
8961
  else
 
8962
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
8963
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
8964
    lt_cv_prog_cc_can_build_shared=no
 
8965
  fi
 
8966
fi
 
8967
 
 
8968
 
 
8969
#
 
8970
# Check to make sure the static flag actually works.
 
8971
#
 
8972
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
8973
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
8974
if test "${lt_prog_compiler_static_works+set}" = set; then
 
8975
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8976
else
 
8977
  lt_prog_compiler_static_works=no
 
8978
   save_LDFLAGS="$LDFLAGS"
 
8979
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
8980
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
8981
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8982
     # The compiler can only warn and ignore the option if not recognized
 
8983
     # So say no if there are warnings
 
8984
     if test -s conftest.err; then
 
8985
       # Append any errors to the config.log.
 
8986
       cat conftest.err 1>&5
 
8987
     else
 
8988
       lt_prog_compiler_static_works=yes
 
8989
     fi
 
8990
   fi
 
8991
   $rm conftest*
 
8992
   LDFLAGS="$save_LDFLAGS"
 
8993
 
 
8994
fi
 
8995
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
8996
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
8997
 
 
8998
if test x"$lt_prog_compiler_static_works" = xyes; then
 
8999
    :
 
9000
else
 
9001
    lt_prog_compiler_static=
 
9002
fi
 
9003
 
 
9004
 
 
9005
 
 
9006
 
 
9007
lt_prog_compiler_no_builtin_flag=
 
9008
 
 
9009
if test "$GCC" = yes; then
 
9010
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
9011
 
 
9012
  
 
9013
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
9014
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
9015
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
9016
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9017
else
 
9018
  lt_cv_prog_compiler_rtti_exceptions=no
 
9019
  ac_outfile=conftest.$ac_objext
 
9020
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9021
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
9022
   # Insert the option either (1) after the last *FLAGS variable, or
 
9023
   # (2) before a word containing "conftest.", or (3) at the end.
 
9024
   # Note that $ac_compile itself does not contain backslashes and begins
 
9025
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9026
   # The option is referenced via a variable to avoid confusing sed.
 
9027
   lt_compile=`echo "$ac_compile" | $SED \
 
9028
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9029
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9030
   -e 's:$: $lt_compiler_flag:'`
 
9031
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
9032
   (eval "$lt_compile" 2>conftest.err)
 
9033
   ac_status=$?
 
9034
   cat conftest.err >&5
 
9035
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
9036
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9037
     # The compiler can only warn and ignore the option if not recognized
 
9038
     # So say no if there are warnings
 
9039
     if test ! -s conftest.err; then
 
9040
       lt_cv_prog_compiler_rtti_exceptions=yes
 
9041
     fi
 
9042
   fi
 
9043
   $rm conftest*
 
9044
 
 
9045
fi
 
9046
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
9047
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
9048
 
 
9049
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
9050
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
9051
else
 
9052
    :
 
9053
fi
 
9054
 
 
9055
fi
 
9056
 
 
9057
lt_prog_compiler_wl=
 
9058
lt_prog_compiler_pic=
 
9059
lt_prog_compiler_static=
 
9060
 
 
9061
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
9062
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
9063
 
 
9064
  if test "$GCC" = yes; then
 
9065
    lt_prog_compiler_wl='-Wl,'
 
9066
    lt_prog_compiler_static='-static'
 
9067
 
 
9068
    case $host_os in
 
9069
      aix*)
 
9070
      # All AIX code is PIC.
 
9071
      if test "$host_cpu" = ia64; then
 
9072
        # AIX 5 now supports IA64 processor
 
9073
        lt_prog_compiler_static='-Bstatic'
 
9074
      fi
 
9075
      ;;
 
9076
 
 
9077
    amigaos*)
 
9078
      # FIXME: we need at least 68020 code to build shared libraries, but
 
9079
      # adding the `-m68020' flag to GCC prevents building anything better,
 
9080
      # like `-m68040'.
 
9081
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
9082
      ;;
 
9083
 
 
9084
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
9085
      # PIC is the default for these OSes.
 
9086
      ;;
 
9087
 
 
9088
    mingw* | pw32* | os2*)
 
9089
      # This hack is so that the source file can tell whether it is being
 
9090
      # built for inclusion in a dll (and should export symbols for example).
 
9091
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9092
      ;;
 
9093
 
 
9094
    darwin* | rhapsody*)
 
9095
      # PIC is the default on this platform
 
9096
      # Common symbols not allowed in MH_DYLIB files
 
9097
      lt_prog_compiler_pic='-fno-common'
 
9098
      ;;
 
9099
 
 
9100
    msdosdjgpp*)
 
9101
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
9102
      # on systems that don't support them.
 
9103
      lt_prog_compiler_can_build_shared=no
 
9104
      enable_shared=no
 
9105
      ;;
 
9106
 
 
9107
    sysv4*MP*)
 
9108
      if test -d /usr/nec; then
 
9109
        lt_prog_compiler_pic=-Kconform_pic
 
9110
      fi
 
9111
      ;;
 
9112
 
 
9113
    hpux*)
 
9114
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
9115
      # not for PA HP-UX.
 
9116
      case "$host_cpu" in
 
9117
      hppa*64*|ia64*)
 
9118
        # +Z the default
 
9119
        ;;
 
9120
      *)
 
9121
        lt_prog_compiler_pic='-fPIC'
 
9122
        ;;
 
9123
      esac
 
9124
      ;;
 
9125
 
 
9126
    *)
 
9127
      lt_prog_compiler_pic='-fPIC'
 
9128
      ;;
 
9129
    esac
 
9130
  else
 
9131
    # PORTME Check for flag to pass linker flags through the system compiler.
 
9132
    case $host_os in
 
9133
    aix*)
 
9134
      lt_prog_compiler_wl='-Wl,'
 
9135
      if test "$host_cpu" = ia64; then
 
9136
        # AIX 5 now supports IA64 processor
 
9137
        lt_prog_compiler_static='-Bstatic'
 
9138
      else
 
9139
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
9140
      fi
 
9141
      ;;
 
9142
 
 
9143
    mingw* | pw32* | os2*)
 
9144
      # This hack is so that the source file can tell whether it is being
 
9145
      # built for inclusion in a dll (and should export symbols for example).
 
9146
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9147
      ;;
 
9148
 
 
9149
    hpux9* | hpux10* | hpux11*)
 
9150
      lt_prog_compiler_wl='-Wl,'
 
9151
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
9152
      # not for PA HP-UX.
 
9153
      case "$host_cpu" in
 
9154
      hppa*64*|ia64*)
 
9155
        # +Z the default
 
9156
        ;;
 
9157
      *)
 
9158
        lt_prog_compiler_pic='+Z'
 
9159
        ;;
 
9160
      esac
 
9161
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
9162
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
9163
      ;;
 
9164
 
 
9165
    irix5* | irix6* | nonstopux*)
 
9166
      lt_prog_compiler_wl='-Wl,'
 
9167
      # PIC (with -KPIC) is the default.
 
9168
      lt_prog_compiler_static='-non_shared'
 
9169
      ;;
 
9170
 
 
9171
    newsos6)
 
9172
      lt_prog_compiler_pic='-KPIC'
 
9173
      lt_prog_compiler_static='-Bstatic'
 
9174
      ;;
 
9175
 
 
9176
    linux*)
 
9177
      case $CC in
 
9178
      icc* | ecc*)
 
9179
        lt_prog_compiler_wl='-Wl,'
 
9180
        lt_prog_compiler_pic='-KPIC'
 
9181
        lt_prog_compiler_static='-static'
 
9182
        ;;
 
9183
      ccc*)
 
9184
        lt_prog_compiler_wl='-Wl,'
 
9185
        # All Alpha code is PIC.
 
9186
        lt_prog_compiler_static='-non_shared'
 
9187
        ;;
 
9188
      esac
 
9189
      ;;
 
9190
 
 
9191
    osf3* | osf4* | osf5*)
 
9192
      lt_prog_compiler_wl='-Wl,'
 
9193
      # All OSF/1 code is PIC.
 
9194
      lt_prog_compiler_static='-non_shared'
 
9195
      ;;
 
9196
 
 
9197
    sco3.2v5*)
 
9198
      lt_prog_compiler_pic='-Kpic'
 
9199
      lt_prog_compiler_static='-dn'
 
9200
      ;;
 
9201
 
 
9202
    solaris*)
 
9203
      lt_prog_compiler_wl='-Wl,'
 
9204
      lt_prog_compiler_pic='-KPIC'
 
9205
      lt_prog_compiler_static='-Bstatic'
 
9206
      ;;
 
9207
 
 
9208
    sunos4*)
 
9209
      lt_prog_compiler_wl='-Qoption ld '
 
9210
      lt_prog_compiler_pic='-PIC'
 
9211
      lt_prog_compiler_static='-Bstatic'
 
9212
      ;;
 
9213
 
 
9214
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9215
      lt_prog_compiler_wl='-Wl,'
 
9216
      lt_prog_compiler_pic='-KPIC'
 
9217
      lt_prog_compiler_static='-Bstatic'
 
9218
      ;;
 
9219
 
 
9220
    sysv4*MP*)
 
9221
      if test -d /usr/nec ;then
 
9222
        lt_prog_compiler_pic='-Kconform_pic'
 
9223
        lt_prog_compiler_static='-Bstatic'
 
9224
      fi
 
9225
      ;;
 
9226
 
 
9227
    uts4*)
 
9228
      lt_prog_compiler_pic='-pic'
 
9229
      lt_prog_compiler_static='-Bstatic'
 
9230
      ;;
 
9231
 
 
9232
    *)
 
9233
      lt_prog_compiler_can_build_shared=no
 
9234
      ;;
 
9235
    esac
 
9236
  fi
 
9237
 
 
9238
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
9239
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
9240
 
 
9241
#
 
9242
# Check to make sure the PIC flag actually works.
 
9243
#
 
9244
if test -n "$lt_prog_compiler_pic"; then
 
9245
  
 
9246
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
9247
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
9248
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
9249
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9250
else
 
9251
  lt_prog_compiler_pic_works=no
 
9252
  ac_outfile=conftest.$ac_objext
 
9253
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9254
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
9255
   # Insert the option either (1) after the last *FLAGS variable, or
 
9256
   # (2) before a word containing "conftest.", or (3) at the end.
 
9257
   # Note that $ac_compile itself does not contain backslashes and begins
 
9258
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9259
   # The option is referenced via a variable to avoid confusing sed.
 
9260
   lt_compile=`echo "$ac_compile" | $SED \
 
9261
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9262
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9263
   -e 's:$: $lt_compiler_flag:'`
 
9264
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
9265
   (eval "$lt_compile" 2>conftest.err)
 
9266
   ac_status=$?
 
9267
   cat conftest.err >&5
 
9268
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
9269
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9270
     # The compiler can only warn and ignore the option if not recognized
 
9271
     # So say no if there are warnings
 
9272
     if test ! -s conftest.err; then
 
9273
       lt_prog_compiler_pic_works=yes
 
9274
     fi
 
9275
   fi
 
9276
   $rm conftest*
 
9277
 
 
9278
fi
 
9279
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
9280
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
9281
 
 
9282
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
9283
    case $lt_prog_compiler_pic in
 
9284
     "" | " "*) ;;
 
9285
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
9286
     esac
 
9287
else
 
9288
    lt_prog_compiler_pic=
 
9289
     lt_prog_compiler_can_build_shared=no
 
9290
fi
 
9291
 
 
9292
fi
 
9293
case "$host_os" in
 
9294
  # For platforms which do not support PIC, -DPIC is meaningless:
 
9295
  *djgpp*)
 
9296
    lt_prog_compiler_pic=
 
9297
    ;;
 
9298
  *)
 
9299
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
9300
    ;;
 
9301
esac
 
9302
 
 
9303
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9304
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
9305
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
9306
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9307
else
 
9308
  lt_cv_prog_compiler_c_o=no
 
9309
   $rm -r conftest 2>/dev/null
 
9310
   mkdir conftest
 
9311
   cd conftest
 
9312
   mkdir out
 
9313
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9314
 
 
9315
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9316
   # Insert the option either (1) after the last *FLAGS variable, or
 
9317
   # (2) before a word containing "conftest.", or (3) at the end.
 
9318
   # Note that $ac_compile itself does not contain backslashes and begins
 
9319
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9320
   lt_compile=`echo "$ac_compile" | $SED \
 
9321
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9322
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9323
   -e 's:$: $lt_compiler_flag:'`
 
9324
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
9325
   (eval "$lt_compile" 2>out/conftest.err)
 
9326
   ac_status=$?
 
9327
   cat out/conftest.err >&5
 
9328
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
9329
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9330
   then
 
9331
     # The compiler can only warn and ignore the option if not recognized
 
9332
     # So say no if there are warnings
 
9333
     if test ! -s out/conftest.err; then
 
9334
       lt_cv_prog_compiler_c_o=yes
 
9335
     fi
 
9336
   fi
 
9337
   chmod u+w .
 
9338
   $rm conftest*
 
9339
   # SGI C++ compiler will create directory out/ii_files/ for
 
9340
   # template instantiation
 
9341
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
9342
   $rm out/* && rmdir out
 
9343
   cd ..
 
9344
   rmdir conftest
 
9345
   $rm conftest*
 
9346
 
 
9347
fi
 
9348
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
9349
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
9350
 
 
9351
 
 
9352
hard_links="nottested"
 
9353
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
9354
  # do not overwrite the value of need_locks provided by the user
 
9355
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
9356
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
9357
  hard_links=yes
 
9358
  $rm conftest*
 
9359
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9360
  touch conftest.a
 
9361
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9362
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9363
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
9364
echo "${ECHO_T}$hard_links" >&6
 
9365
  if test "$hard_links" = no; then
 
9366
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9367
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9368
    need_locks=warn
 
9369
  fi
 
9370
else
 
9371
  need_locks=no
 
9372
fi
 
9373
 
 
9374
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9375
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
9376
 
 
9377
  runpath_var=
 
9378
  allow_undefined_flag=
 
9379
  enable_shared_with_static_runtimes=no
 
9380
  archive_cmds=
 
9381
  archive_expsym_cmds=
 
9382
  old_archive_From_new_cmds=
 
9383
  old_archive_from_expsyms_cmds=
 
9384
  export_dynamic_flag_spec=
 
9385
  whole_archive_flag_spec=
 
9386
  thread_safe_flag_spec=
 
9387
  hardcode_libdir_flag_spec=
 
9388
  hardcode_libdir_flag_spec_ld=
 
9389
  hardcode_libdir_separator=
 
9390
  hardcode_direct=no
 
9391
  hardcode_minus_L=no
 
9392
  hardcode_shlibpath_var=unsupported
 
9393
  link_all_deplibs=unknown
 
9394
  hardcode_automatic=no
 
9395
  module_cmds=
 
9396
  module_expsym_cmds=
 
9397
  always_export_symbols=no
 
9398
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9399
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9400
  # included in the symbol list
 
9401
  include_expsyms=
 
9402
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9403
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
9404
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
9405
  # as well as any symbol that contains `d'.
 
9406
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
9407
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
9408
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
9409
  # the symbol is explicitly referenced.  Since portable code cannot
 
9410
  # rely on this symbol name, it's probably fine to never include it in
 
9411
  # preloaded symbol tables.
 
9412
  extract_expsyms_cmds=
 
9413
 
 
9414
  case $host_os in
 
9415
  cygwin* | mingw* | pw32*)
 
9416
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
9417
    # When not using gcc, we currently assume that we are using
 
9418
    # Microsoft Visual C++.
 
9419
    if test "$GCC" != yes; then
 
9420
      with_gnu_ld=no
 
9421
    fi
 
9422
    ;;
 
9423
  openbsd*)
 
9424
    with_gnu_ld=no
 
9425
    ;;
 
9426
  esac
 
9427
 
 
9428
  ld_shlibs=yes
 
9429
  if test "$with_gnu_ld" = yes; then
 
9430
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9431
    wlarc='${wl}'
 
9432
 
 
9433
    # See if GNU ld supports shared libraries.
 
9434
    case $host_os in
 
9435
    aix3* | aix4* | aix5*)
 
9436
      # On AIX/PPC, the GNU linker is very broken
 
9437
      if test "$host_cpu" != ia64; then
 
9438
        ld_shlibs=no
 
9439
        cat <<EOF 1>&2
 
9440
 
 
9441
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
9442
*** to be unable to reliably create shared libraries on AIX.
 
9443
*** Therefore, libtool is disabling shared libraries support.  If you
 
9444
*** really care for shared libraries, you may want to modify your PATH
 
9445
*** so that a non-GNU linker is found, and then restart.
 
9446
 
 
9447
EOF
 
9448
      fi
 
9449
      ;;
 
9450
 
 
9451
    amigaos*)
 
9452
      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)'
 
9453
      hardcode_libdir_flag_spec='-L$libdir'
 
9454
      hardcode_minus_L=yes
 
9455
 
 
9456
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
9457
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
9458
      # to version 4, is to share data among multiple programs linked
 
9459
      # with the same dynamic library.  Since this doesn't match the
 
9460
      # behavior of shared libraries on other platforms, we can't use
 
9461
      # them.
 
9462
      ld_shlibs=no
 
9463
      ;;
 
9464
 
 
9465
    beos*)
 
9466
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9467
        allow_undefined_flag=unsupported
 
9468
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9469
        # support --undefined.  This deserves some investigation.  FIXME
 
9470
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9471
      else
 
9472
        ld_shlibs=no
 
9473
      fi
 
9474
      ;;
 
9475
 
 
9476
    cygwin* | mingw* | pw32*)
 
9477
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9478
      # as there is no search path for DLLs.
 
9479
      hardcode_libdir_flag_spec='-L$libdir'
 
9480
      allow_undefined_flag=unsupported
 
9481
      always_export_symbols=no
 
9482
      enable_shared_with_static_runtimes=yes
 
9483
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
9484
 
 
9485
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
9486
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
9487
        # If the export-symbols file already is a .def file (1st line
 
9488
        # is EXPORTS), use it as is; otherwise, prepend...
 
9489
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9490
          cp $export_symbols $output_objdir/$soname.def;
 
9491
        else
 
9492
          echo EXPORTS > $output_objdir/$soname.def;
 
9493
          cat $export_symbols >> $output_objdir/$soname.def;
 
9494
        fi~
 
9495
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
9496
      else
 
9497
        ld_shlibs=no
 
9498
      fi
 
9499
      ;;
 
9500
 
 
9501
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
9502
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9503
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9504
        wlarc=
 
9505
      else
 
9506
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9507
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9508
      fi
 
9509
      ;;
 
9510
 
 
9511
    solaris* | sysv5*)
 
9512
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
9513
        ld_shlibs=no
 
9514
        cat <<EOF 1>&2
 
9515
 
 
9516
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9517
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9518
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9519
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9520
*** your PATH or compiler configuration so that the native linker is
 
9521
*** used, and then restart.
 
9522
 
 
9523
EOF
 
9524
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9525
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9526
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9527
      else
 
9528
        ld_shlibs=no
 
9529
      fi
 
9530
      ;;
 
9531
 
 
9532
    sunos4*)
 
9533
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9534
      wlarc=
 
9535
      hardcode_direct=yes
 
9536
      hardcode_shlibpath_var=no
 
9537
      ;;
 
9538
 
 
9539
  linux*)
 
9540
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9541
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9542
        archive_cmds="$tmp_archive_cmds"
 
9543
      supports_anon_versioning=no
 
9544
      case `$LD -v 2>/dev/null` in
 
9545
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
9546
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
9547
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
9548
        *\ 2.11.*) ;; # other 2.11 versions
 
9549
        *) supports_anon_versioning=yes ;;
 
9550
      esac
 
9551
      if test $supports_anon_versioning = yes; then
 
9552
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
9553
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9554
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
9555
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9556
      else
 
9557
        archive_expsym_cmds="$tmp_archive_cmds"
 
9558
      fi
 
9559
      link_all_deplibs=no
 
9560
    else
 
9561
      ld_shlibs=no
 
9562
    fi
 
9563
    ;;
 
9564
 
 
9565
    *)
 
9566
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9567
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9568
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9569
      else
 
9570
        ld_shlibs=no
 
9571
      fi
 
9572
      ;;
 
9573
    esac
 
9574
 
 
9575
    if test "$ld_shlibs" = yes; then
 
9576
      runpath_var=LD_RUN_PATH
 
9577
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
9578
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
9579
      # ancient GNU ld didn't support --whole-archive et. al.
 
9580
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
9581
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9582
      else
 
9583
        whole_archive_flag_spec=
 
9584
      fi
 
9585
    fi
 
9586
  else
 
9587
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9588
    case $host_os in
 
9589
    aix3*)
 
9590
      allow_undefined_flag=unsupported
 
9591
      always_export_symbols=yes
 
9592
      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'
 
9593
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9594
      # are no directories specified by -L.
 
9595
      hardcode_minus_L=yes
 
9596
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
9597
        # Neither direct hardcoding nor static linking is supported with a
 
9598
        # broken collect2.
 
9599
        hardcode_direct=unsupported
 
9600
      fi
 
9601
      ;;
 
9602
 
 
9603
    aix4* | aix5*)
 
9604
      if test "$host_cpu" = ia64; then
 
9605
        # On IA64, the linker does run time linking by default, so we don't
 
9606
        # have to do anything special.
 
9607
        aix_use_runtimelinking=no
 
9608
        exp_sym_flag='-Bexport'
 
9609
        no_entry_flag=""
 
9610
      else
 
9611
        # If we're using GNU nm, then we don't want the "-C" option.
 
9612
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9613
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
9614
          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'
 
9615
        else
 
9616
          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'
 
9617
        fi
 
9618
        aix_use_runtimelinking=no
 
9619
 
 
9620
        # Test if we are trying to use run time linking or normal
 
9621
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9622
        # need to do runtime linking.
 
9623
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
9624
          for ld_flag in $LDFLAGS; do
 
9625
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9626
            aix_use_runtimelinking=yes
 
9627
            break
 
9628
          fi
 
9629
          done
 
9630
        esac
 
9631
 
 
9632
        exp_sym_flag='-bexport'
 
9633
        no_entry_flag='-bnoentry'
 
9634
      fi
 
9635
 
 
9636
      # When large executables or shared objects are built, AIX ld can
 
9637
      # have problems creating the table of contents.  If linking a library
 
9638
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9639
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9640
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9641
 
 
9642
      archive_cmds=''
 
9643
      hardcode_direct=yes
 
9644
      hardcode_libdir_separator=':'
 
9645
      link_all_deplibs=yes
 
9646
 
 
9647
      if test "$GCC" = yes; then
 
9648
        case $host_os in aix4.012|aix4.012.*)
 
9649
        # We only want to do this on AIX 4.2 and lower, the check
 
9650
        # below for broken collect2 doesn't work under 4.3+
 
9651
          collect2name=`${CC} -print-prog-name=collect2`
 
9652
          if test -f "$collect2name" && \
 
9653
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9654
          then
 
9655
          # We have reworked collect2
 
9656
          hardcode_direct=yes
 
9657
          else
 
9658
          # We have old collect2
 
9659
          hardcode_direct=unsupported
 
9660
          # It fails to find uninstalled libraries when the uninstalled
 
9661
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9662
          # to unsupported forces relinking
 
9663
          hardcode_minus_L=yes
 
9664
          hardcode_libdir_flag_spec='-L$libdir'
 
9665
          hardcode_libdir_separator=
 
9666
          fi
 
9667
        esac
 
9668
        shared_flag='-shared'
 
9669
      else
 
9670
        # not using gcc
 
9671
        if test "$host_cpu" = ia64; then
 
9672
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9673
        # chokes on -Wl,-G. The following line is correct:
 
9674
          shared_flag='-G'
 
9675
        else
 
9676
        if test "$aix_use_runtimelinking" = yes; then
 
9677
            shared_flag='${wl}-G'
 
9678
          else
 
9679
            shared_flag='${wl}-bM:SRE'
 
9680
        fi
 
9681
        fi
 
9682
      fi
 
9683
 
 
9684
      # It seems that -bexpall does not export symbols beginning with
 
9685
      # underscore (_), so it is better to generate a list of symbols to export.
 
9686
      always_export_symbols=yes
 
9687
      if test "$aix_use_runtimelinking" = yes; then
 
9688
        # Warning - without using the other runtime loading flags (-brtl),
 
9689
        # -berok will link without error, but may produce a broken library.
 
9690
        allow_undefined_flag='-berok'
 
9691
       # Determine the default libpath from the value encoded in an empty executable.
 
9692
       cat >conftest.$ac_ext <<_ACEOF
 
9693
/* confdefs.h.  */
 
9694
_ACEOF
 
9695
cat confdefs.h >>conftest.$ac_ext
 
9696
cat >>conftest.$ac_ext <<_ACEOF
 
9697
/* end confdefs.h.  */
 
9698
 
 
9699
int
 
9700
main ()
 
9701
{
 
9702
 
 
9703
  ;
 
9704
  return 0;
 
9705
}
 
9706
_ACEOF
 
9707
rm -f conftest.$ac_objext conftest$ac_exeext
 
9708
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9709
  (eval $ac_link) 2>conftest.er1
 
9710
  ac_status=$?
 
9711
  grep -v '^ *+' conftest.er1 >conftest.err
 
9712
  rm -f conftest.er1
 
9713
  cat conftest.err >&5
 
9714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9715
  (exit $ac_status); } &&
 
9716
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9717
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9718
  (eval $ac_try) 2>&5
 
9719
  ac_status=$?
 
9720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9721
  (exit $ac_status); }; } &&
 
9722
         { ac_try='test -s conftest$ac_exeext'
 
9723
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9724
  (eval $ac_try) 2>&5
 
9725
  ac_status=$?
 
9726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9727
  (exit $ac_status); }; }; then
 
9728
  
 
9729
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9730
}'`
 
9731
# Check for a 64-bit object if we didn't find anything.
 
9732
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; }
 
9733
}'`; fi
 
9734
else
 
9735
  echo "$as_me: failed program was:" >&5
 
9736
sed 's/^/| /' conftest.$ac_ext >&5
 
9737
 
 
9738
fi
 
9739
rm -f conftest.err conftest.$ac_objext \
 
9740
      conftest$ac_exeext conftest.$ac_ext
 
9741
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9742
 
 
9743
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9744
        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"
 
9745
       else
 
9746
        if test "$host_cpu" = ia64; then
 
9747
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9748
          allow_undefined_flag="-z nodefs"
 
9749
          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"
 
9750
        else
 
9751
         # Determine the default libpath from the value encoded in an empty executable.
 
9752
         cat >conftest.$ac_ext <<_ACEOF
 
9753
/* confdefs.h.  */
 
9754
_ACEOF
 
9755
cat confdefs.h >>conftest.$ac_ext
 
9756
cat >>conftest.$ac_ext <<_ACEOF
 
9757
/* end confdefs.h.  */
 
9758
 
 
9759
int
 
9760
main ()
 
9761
{
 
9762
 
 
9763
  ;
 
9764
  return 0;
 
9765
}
 
9766
_ACEOF
 
9767
rm -f conftest.$ac_objext conftest$ac_exeext
 
9768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9769
  (eval $ac_link) 2>conftest.er1
 
9770
  ac_status=$?
 
9771
  grep -v '^ *+' conftest.er1 >conftest.err
 
9772
  rm -f conftest.er1
 
9773
  cat conftest.err >&5
 
9774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9775
  (exit $ac_status); } &&
 
9776
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9778
  (eval $ac_try) 2>&5
 
9779
  ac_status=$?
 
9780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9781
  (exit $ac_status); }; } &&
 
9782
         { ac_try='test -s conftest$ac_exeext'
 
9783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9784
  (eval $ac_try) 2>&5
 
9785
  ac_status=$?
 
9786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9787
  (exit $ac_status); }; }; then
 
9788
  
 
9789
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9790
}'`
 
9791
# Check for a 64-bit object if we didn't find anything.
 
9792
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; }
 
9793
}'`; fi
 
9794
else
 
9795
  echo "$as_me: failed program was:" >&5
 
9796
sed 's/^/| /' conftest.$ac_ext >&5
 
9797
 
 
9798
fi
 
9799
rm -f conftest.err conftest.$ac_objext \
 
9800
      conftest$ac_exeext conftest.$ac_ext
 
9801
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9802
 
 
9803
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9804
          # Warning - without using the other run time loading flags,
 
9805
          # -berok will link without error, but may produce a broken library.
 
9806
          no_undefined_flag=' ${wl}-bernotok'
 
9807
          allow_undefined_flag=' ${wl}-berok'
 
9808
          # -bexpall does not export symbols beginning with underscore (_)
 
9809
          always_export_symbols=yes
 
9810
          # Exported symbols can be pulled into shared objects from archives
 
9811
          whole_archive_flag_spec=' '
 
9812
          archive_cmds_need_lc=yes
 
9813
          # This is similar to how AIX traditionally builds it's shared libraries.
 
9814
          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'
 
9815
        fi
 
9816
      fi
 
9817
      ;;
 
9818
 
 
9819
    amigaos*)
 
9820
      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)'
 
9821
      hardcode_libdir_flag_spec='-L$libdir'
 
9822
      hardcode_minus_L=yes
 
9823
      # see comment about different semantics on the GNU ld section
 
9824
      ld_shlibs=no
 
9825
      ;;
 
9826
 
 
9827
    bsdi4*)
 
9828
      export_dynamic_flag_spec=-rdynamic
 
9829
      ;;
 
9830
 
 
9831
    cygwin* | mingw* | pw32*)
 
9832
      # When not using gcc, we currently assume that we are using
 
9833
      # Microsoft Visual C++.
 
9834
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9835
      # no search path for DLLs.
 
9836
      hardcode_libdir_flag_spec=' '
 
9837
      allow_undefined_flag=unsupported
 
9838
      # Tell ltmain to make .lib files, not .a files.
 
9839
      libext=lib
 
9840
      # Tell ltmain to make .dll files, not .so files.
 
9841
      shrext_cmds=".dll"
 
9842
      # FIXME: Setting linknames here is a bad hack.
 
9843
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9844
      # The linker will automatically build a .lib file if we build a DLL.
 
9845
      old_archive_From_new_cmds='true'
 
9846
      # FIXME: Should let the user specify the lib program.
 
9847
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
9848
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
9849
      enable_shared_with_static_runtimes=yes
 
9850
      ;;
 
9851
 
 
9852
    darwin* | rhapsody*)
 
9853
    if test "$GXX" = yes ; then
 
9854
      archive_cmds_need_lc=no
 
9855
      case "$host_os" in
 
9856
      rhapsody* | darwin1.[012])
 
9857
        allow_undefined_flag='-undefined suppress'
 
9858
        ;;
 
9859
      *) # Darwin 1.3 on
 
9860
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9861
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
9862
      else
 
9863
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
9864
          10.[012])
 
9865
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
9866
            ;;
 
9867
          10.*)
 
9868
            allow_undefined_flag='-undefined dynamic_lookup'
 
9869
            ;;
 
9870
        esac
 
9871
      fi
 
9872
        ;;
 
9873
      esac
 
9874
        lt_int_apple_cc_single_mod=no
 
9875
        output_verbose_link_cmd='echo'
 
9876
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
9877
          lt_int_apple_cc_single_mod=yes
 
9878
        fi
 
9879
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9880
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9881
        else
 
9882
        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'
 
9883
      fi
 
9884
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9885
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9886
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9887
          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}'
 
9888
        else
 
9889
          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}'
 
9890
        fi
 
9891
          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}'
 
9892
      hardcode_direct=no
 
9893
      hardcode_automatic=yes
 
9894
      hardcode_shlibpath_var=unsupported
 
9895
      whole_archive_flag_spec='-all_load $convenience'
 
9896
      link_all_deplibs=yes
 
9897
    else
 
9898
      ld_shlibs=no
 
9899
    fi
 
9900
      ;;
 
9901
 
 
9902
    dgux*)
 
9903
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9904
      hardcode_libdir_flag_spec='-L$libdir'
 
9905
      hardcode_shlibpath_var=no
 
9906
      ;;
 
9907
 
 
9908
    freebsd1*)
 
9909
      ld_shlibs=no
 
9910
      ;;
 
9911
 
 
9912
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9913
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9914
    # does not break anything, and helps significantly (at the cost of a little
 
9915
    # extra space).
 
9916
    freebsd2.2*)
 
9917
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9918
      hardcode_libdir_flag_spec='-R$libdir'
 
9919
      hardcode_direct=yes
 
9920
      hardcode_shlibpath_var=no
 
9921
      ;;
 
9922
 
 
9923
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9924
    freebsd2*)
 
9925
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9926
      hardcode_direct=yes
 
9927
      hardcode_minus_L=yes
 
9928
      hardcode_shlibpath_var=no
 
9929
      ;;
 
9930
 
 
9931
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9932
    freebsd* | kfreebsd*-gnu)
 
9933
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9934
      hardcode_libdir_flag_spec='-R$libdir'
 
9935
      hardcode_direct=yes
 
9936
      hardcode_shlibpath_var=no
 
9937
      ;;
 
9938
 
 
9939
    hpux9*)
 
9940
      if test "$GCC" = yes; then
 
9941
        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'
 
9942
      else
 
9943
        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'
 
9944
      fi
 
9945
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9946
      hardcode_libdir_separator=:
 
9947
      hardcode_direct=yes
 
9948
 
 
9949
      # hardcode_minus_L: Not really in the search PATH,
 
9950
      # but as the default location of the library.
 
9951
      hardcode_minus_L=yes
 
9952
      export_dynamic_flag_spec='${wl}-E'
 
9953
      ;;
 
9954
 
 
9955
    hpux10* | hpux11*)
 
9956
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9957
        case "$host_cpu" in
 
9958
        hppa*64*|ia64*)
 
9959
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9960
          ;;
 
9961
        *)
 
9962
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9963
          ;;
 
9964
        esac
 
9965
      else
 
9966
        case "$host_cpu" in
 
9967
        hppa*64*|ia64*)
 
9968
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9969
          ;;
 
9970
        *)
 
9971
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9972
          ;;
 
9973
        esac
 
9974
      fi
 
9975
      if test "$with_gnu_ld" = no; then
 
9976
        case "$host_cpu" in
 
9977
        hppa*64*)
 
9978
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9979
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
9980
          hardcode_libdir_separator=:
 
9981
          hardcode_direct=no
 
9982
          hardcode_shlibpath_var=no
 
9983
          ;;
 
9984
        ia64*)
 
9985
          hardcode_libdir_flag_spec='-L$libdir'
 
9986
          hardcode_direct=no
 
9987
          hardcode_shlibpath_var=no
 
9988
 
 
9989
          # hardcode_minus_L: Not really in the search PATH,
 
9990
          # but as the default location of the library.
 
9991
          hardcode_minus_L=yes
 
9992
          ;;
 
9993
        *)
 
9994
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9995
          hardcode_libdir_separator=:
 
9996
          hardcode_direct=yes
 
9997
          export_dynamic_flag_spec='${wl}-E'
 
9998
 
 
9999
          # hardcode_minus_L: Not really in the search PATH,
 
10000
          # but as the default location of the library.
 
10001
          hardcode_minus_L=yes
 
10002
          ;;
 
10003
        esac
 
10004
      fi
 
10005
      ;;
 
10006
 
 
10007
    irix5* | irix6* | nonstopux*)
 
10008
      if test "$GCC" = yes; then
 
10009
        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'
 
10010
      else
 
10011
        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'
 
10012
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
10013
      fi
 
10014
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10015
      hardcode_libdir_separator=:
 
10016
      link_all_deplibs=yes
 
10017
      ;;
 
10018
 
 
10019
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10020
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10021
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
10022
      else
 
10023
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
10024
      fi
 
10025
      hardcode_libdir_flag_spec='-R$libdir'
 
10026
      hardcode_direct=yes
 
10027
      hardcode_shlibpath_var=no
 
10028
      ;;
 
10029
 
 
10030
    newsos6)
 
10031
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10032
      hardcode_direct=yes
 
10033
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10034
      hardcode_libdir_separator=:
 
10035
      hardcode_shlibpath_var=no
 
10036
      ;;
 
10037
 
 
10038
    openbsd*)
 
10039
      hardcode_direct=yes
 
10040
      hardcode_shlibpath_var=no
 
10041
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10042
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10043
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10044
        export_dynamic_flag_spec='${wl}-E'
 
10045
      else
 
10046
       case $host_os in
 
10047
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
10048
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10049
           hardcode_libdir_flag_spec='-R$libdir'
 
10050
           ;;
 
10051
         *)
 
10052
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10053
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10054
           ;;
 
10055
       esac
 
10056
      fi
 
10057
      ;;
 
10058
 
 
10059
    os2*)
 
10060
      hardcode_libdir_flag_spec='-L$libdir'
 
10061
      hardcode_minus_L=yes
 
10062
      allow_undefined_flag=unsupported
 
10063
      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'
 
10064
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
10065
      ;;
 
10066
 
 
10067
    osf3*)
 
10068
      if test "$GCC" = yes; then
 
10069
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10070
        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'
 
10071
      else
 
10072
        allow_undefined_flag=' -expect_unresolved \*'
 
10073
        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'
 
10074
      fi
 
10075
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10076
      hardcode_libdir_separator=:
 
10077
      ;;
 
10078
 
 
10079
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
10080
      if test "$GCC" = yes; then
 
10081
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10082
        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'
 
10083
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10084
      else
 
10085
        allow_undefined_flag=' -expect_unresolved \*'
 
10086
        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'
 
10087
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
10088
        $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'
 
10089
 
 
10090
        # Both c and cxx compiler support -rpath directly
 
10091
        hardcode_libdir_flag_spec='-rpath $libdir'
 
10092
      fi
 
10093
      hardcode_libdir_separator=:
 
10094
      ;;
 
10095
 
 
10096
    sco3.2v5*)
 
10097
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10098
      hardcode_shlibpath_var=no
 
10099
      export_dynamic_flag_spec='${wl}-Bexport'
 
10100
      runpath_var=LD_RUN_PATH
 
10101
      hardcode_runpath_var=yes
 
10102
      ;;
 
10103
 
 
10104
    solaris*)
 
10105
      no_undefined_flag=' -z text'
 
10106
      if test "$GCC" = yes; then
 
10107
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10108
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10109
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
10110
      else
 
10111
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10112
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10113
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
10114
      fi
 
10115
      hardcode_libdir_flag_spec='-R$libdir'
 
10116
      hardcode_shlibpath_var=no
 
10117
      case $host_os in
 
10118
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10119
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10120
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
10121
      esac
 
10122
      link_all_deplibs=yes
 
10123
      ;;
 
10124
 
 
10125
    sunos4*)
 
10126
      if test "x$host_vendor" = xsequent; then
 
10127
        # Use $CC to link under sequent, because it throws in some extra .o
 
10128
        # files that make .init and .fini sections work.
 
10129
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10130
      else
 
10131
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
10132
      fi
 
10133
      hardcode_libdir_flag_spec='-L$libdir'
 
10134
      hardcode_direct=yes
 
10135
      hardcode_minus_L=yes
 
10136
      hardcode_shlibpath_var=no
 
10137
      ;;
 
10138
 
 
10139
    sysv4)
 
10140
      case $host_vendor in
 
10141
        sni)
 
10142
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10143
          hardcode_direct=yes # is this really true???
 
10144
        ;;
 
10145
        siemens)
 
10146
          ## LD is ld it makes a PLAMLIB
 
10147
          ## CC just makes a GrossModule.
 
10148
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10149
          reload_cmds='$CC -r -o $output$reload_objs'
 
10150
          hardcode_direct=no
 
10151
        ;;
 
10152
        motorola)
 
10153
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10154
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
10155
        ;;
 
10156
      esac
 
10157
      runpath_var='LD_RUN_PATH'
 
10158
      hardcode_shlibpath_var=no
 
10159
      ;;
 
10160
 
 
10161
    sysv4.3*)
 
10162
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10163
      hardcode_shlibpath_var=no
 
10164
      export_dynamic_flag_spec='-Bexport'
 
10165
      ;;
 
10166
 
 
10167
    sysv4*MP*)
 
10168
      if test -d /usr/nec; then
 
10169
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10170
        hardcode_shlibpath_var=no
 
10171
        runpath_var=LD_RUN_PATH
 
10172
        hardcode_runpath_var=yes
 
10173
        ld_shlibs=yes
 
10174
      fi
 
10175
      ;;
 
10176
 
 
10177
    sysv4.2uw2*)
 
10178
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10179
      hardcode_direct=yes
 
10180
      hardcode_minus_L=no
 
10181
      hardcode_shlibpath_var=no
 
10182
      hardcode_runpath_var=yes
 
10183
      runpath_var=LD_RUN_PATH
 
10184
      ;;
 
10185
 
 
10186
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
10187
      no_undefined_flag='${wl}-z ${wl}text'
 
10188
      if test "$GCC" = yes; then
 
10189
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10190
      else
 
10191
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10192
      fi
 
10193
      runpath_var='LD_RUN_PATH'
 
10194
      hardcode_shlibpath_var=no
 
10195
      ;;
 
10196
 
 
10197
    sysv5*)
 
10198
      no_undefined_flag=' -z text'
 
10199
      # $CC -shared without GNU ld will not create a library from C++
 
10200
      # object files and a static libstdc++, better avoid it by now
 
10201
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10202
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10203
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
10204
      hardcode_libdir_flag_spec=
 
10205
      hardcode_shlibpath_var=no
 
10206
      runpath_var='LD_RUN_PATH'
 
10207
      ;;
 
10208
 
 
10209
    uts4*)
 
10210
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10211
      hardcode_libdir_flag_spec='-L$libdir'
 
10212
      hardcode_shlibpath_var=no
 
10213
      ;;
 
10214
 
 
10215
    *)
 
10216
      ld_shlibs=no
 
10217
      ;;
 
10218
    esac
 
10219
  fi
 
10220
 
 
10221
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
10222
echo "${ECHO_T}$ld_shlibs" >&6
 
10223
test "$ld_shlibs" = no && can_build_shared=no
 
10224
 
 
10225
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10226
if test "$GCC" = yes; then
 
10227
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10228
fi
 
10229
 
 
10230
#
 
10231
# Do we need to explicitly link libc?
 
10232
#
 
10233
case "x$archive_cmds_need_lc" in
 
10234
x|xyes)
 
10235
  # Assume -lc should be added
 
10236
  archive_cmds_need_lc=yes
 
10237
 
 
10238
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10239
    case $archive_cmds in
 
10240
    *'~'*)
 
10241
      # FIXME: we may have to deal with multi-command sequences.
 
10242
      ;;
 
10243
    '$CC '*)
 
10244
      # Test whether the compiler implicitly links with -lc since on some
 
10245
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10246
      # to ld, don't add -lc before -lgcc.
 
10247
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
10248
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
10249
      $rm conftest*
 
10250
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10251
 
 
10252
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10253
  (eval $ac_compile) 2>&5
 
10254
  ac_status=$?
 
10255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10256
  (exit $ac_status); } 2>conftest.err; then
 
10257
        soname=conftest
 
10258
        lib=conftest
 
10259
        libobjs=conftest.$ac_objext
 
10260
        deplibs=
 
10261
        wl=$lt_prog_compiler_wl
 
10262
        compiler_flags=-v
 
10263
        linker_flags=-v
 
10264
        verstring=
 
10265
        output_objdir=.
 
10266
        libname=conftest
 
10267
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
10268
        allow_undefined_flag=
 
10269
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
10270
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10271
  ac_status=$?
 
10272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10273
  (exit $ac_status); }
 
10274
        then
 
10275
          archive_cmds_need_lc=no
 
10276
        else
 
10277
          archive_cmds_need_lc=yes
 
10278
        fi
 
10279
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
10280
      else
 
10281
        cat conftest.err 1>&5
 
10282
      fi
 
10283
      $rm conftest*
 
10284
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
10285
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
10286
      ;;
 
10287
    esac
 
10288
  fi
 
10289
  ;;
 
10290
esac
 
10291
 
 
10292
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
10293
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
10294
library_names_spec=
 
10295
libname_spec='lib$name'
 
10296
soname_spec=
 
10297
shrext_cmds=".so"
 
10298
postinstall_cmds=
 
10299
postuninstall_cmds=
 
10300
finish_cmds=
 
10301
finish_eval=
 
10302
shlibpath_var=
 
10303
shlibpath_overrides_runpath=unknown
 
10304
version_type=none
 
10305
dynamic_linker="$host_os ld.so"
 
10306
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10307
if test "$GCC" = yes; then
 
10308
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10309
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
10310
    # if the path contains ";" then we assume it to be the separator
 
10311
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10312
    # assumed that no part of a normal pathname contains ";" but that should
 
10313
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10314
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10315
  else
 
10316
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10317
  fi
 
10318
else
 
10319
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10320
fi
 
10321
need_lib_prefix=unknown
 
10322
hardcode_into_libs=no
 
10323
 
 
10324
# when you set need_version to no, make sure it does not cause -set_version
 
10325
# flags to be left without arguments
 
10326
need_version=unknown
 
10327
 
 
10328
case $host_os in
 
10329
aix3*)
 
10330
  version_type=linux
 
10331
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10332
  shlibpath_var=LIBPATH
 
10333
 
 
10334
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10335
  soname_spec='${libname}${release}${shared_ext}$major'
 
10336
  ;;
 
10337
 
 
10338
aix4* | aix5*)
 
10339
  version_type=linux
 
10340
  need_lib_prefix=no
 
10341
  need_version=no
 
10342
  hardcode_into_libs=yes
 
10343
  if test "$host_cpu" = ia64; then
 
10344
    # AIX 5 supports IA64
 
10345
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10346
    shlibpath_var=LD_LIBRARY_PATH
 
10347
  else
 
10348
    # With GCC up to 2.95.x, collect2 would create an import file
 
10349
    # for dependence libraries.  The import file would start with
 
10350
    # the line `#! .'.  This would cause the generated library to
 
10351
    # depend on `.', always an invalid library.  This was fixed in
 
10352
    # development snapshots of GCC prior to 3.0.
 
10353
    case $host_os in
 
10354
      aix4 | aix4.[01] | aix4.[01].*)
 
10355
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10356
           echo ' yes '
 
10357
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
10358
        :
 
10359
      else
 
10360
        can_build_shared=no
 
10361
      fi
 
10362
      ;;
 
10363
    esac
 
10364
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10365
    # soname into executable. Probably we can add versioning support to
 
10366
    # collect2, so additional links can be useful in future.
 
10367
    if test "$aix_use_runtimelinking" = yes; then
 
10368
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10369
      # instead of lib<name>.a to let people know that these are not
 
10370
      # typical AIX shared libraries.
 
10371
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10372
    else
 
10373
      # We preserve .a as extension for shared libraries through AIX4.2
 
10374
      # and later when we are not doing run time linking.
 
10375
      library_names_spec='${libname}${release}.a $libname.a'
 
10376
      soname_spec='${libname}${release}${shared_ext}$major'
 
10377
    fi
 
10378
    shlibpath_var=LIBPATH
 
10379
  fi
 
10380
  ;;
 
10381
 
 
10382
amigaos*)
 
10383
  library_names_spec='$libname.ixlibrary $libname.a'
 
10384
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10385
  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'
 
10386
  ;;
 
10387
 
 
10388
beos*)
 
10389
  library_names_spec='${libname}${shared_ext}'
 
10390
  dynamic_linker="$host_os ld.so"
 
10391
  shlibpath_var=LIBRARY_PATH
 
10392
  ;;
 
10393
 
 
10394
bsdi4*)
 
10395
  version_type=linux
 
10396
  need_version=no
 
10397
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10398
  soname_spec='${libname}${release}${shared_ext}$major'
 
10399
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10400
  shlibpath_var=LD_LIBRARY_PATH
 
10401
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10402
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10403
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10404
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10405
  # libtool to hard-code these into programs
 
10406
  ;;
 
10407
 
 
10408
cygwin* | mingw* | pw32*)
 
10409
  version_type=windows
 
10410
  shrext_cmds=".dll"
 
10411
  need_version=no
 
10412
  need_lib_prefix=no
 
10413
 
 
10414
  case $GCC,$host_os in
 
10415
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
10416
    library_names_spec='$libname.dll.a'
 
10417
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10418
    postinstall_cmds='base_file=`basename \${file}`~
 
10419
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
10420
      dldir=$destdir/`dirname \$dlpath`~
 
10421
      test -d \$dldir || mkdir -p \$dldir~
 
10422
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10423
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10424
      dlpath=$dir/\$dldll~
 
10425
       $rm \$dlpath'
 
10426
    shlibpath_overrides_runpath=yes
 
10427
 
 
10428
    case $host_os in
 
10429
    cygwin*)
 
10430
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10431
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10432
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
10433
      ;;
 
10434
    mingw*)
 
10435
      # MinGW DLLs use traditional 'lib' prefix
 
10436
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10437
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10438
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
10439
        # It is most probably a Windows format PATH printed by
 
10440
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
10441
        # path with ; separators, and with drive letters. We can handle the
 
10442
        # drive letters (cygwin fileutils understands them), so leave them,
 
10443
        # especially as we might pass files found there to a mingw objdump,
 
10444
        # which wouldn't understand a cygwinified path. Ahh.
 
10445
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10446
      else
 
10447
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10448
      fi
 
10449
      ;;
 
10450
    pw32*)
 
10451
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10452
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
10453
      ;;
 
10454
    esac
 
10455
    ;;
 
10456
 
 
10457
  *)
 
10458
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10459
    ;;
 
10460
  esac
 
10461
  dynamic_linker='Win32 ld.exe'
 
10462
  # FIXME: first we should search . and the directory the executable is in
 
10463
  shlibpath_var=PATH
 
10464
  ;;
 
10465
 
 
10466
darwin* | rhapsody*)
 
10467
  dynamic_linker="$host_os dyld"
 
10468
  version_type=darwin
 
10469
  need_lib_prefix=no
 
10470
  need_version=no
 
10471
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10472
  soname_spec='${libname}${release}${major}$shared_ext'
 
10473
  shlibpath_overrides_runpath=yes
 
10474
  shlibpath_var=DYLD_LIBRARY_PATH
 
10475
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
10476
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
10477
  if test "$GCC" = yes; then
 
10478
    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"`
 
10479
  else
 
10480
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
10481
  fi
 
10482
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10483
  ;;
 
10484
 
 
10485
dgux*)
 
10486
  version_type=linux
 
10487
  need_lib_prefix=no
 
10488
  need_version=no
 
10489
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10490
  soname_spec='${libname}${release}${shared_ext}$major'
 
10491
  shlibpath_var=LD_LIBRARY_PATH
 
10492
  ;;
 
10493
 
 
10494
freebsd1*)
 
10495
  dynamic_linker=no
 
10496
  ;;
 
10497
 
 
10498
kfreebsd*-gnu)
 
10499
  version_type=linux
 
10500
  need_lib_prefix=no
 
10501
  need_version=no
 
10502
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10503
  soname_spec='${libname}${release}${shared_ext}$major'
 
10504
  shlibpath_var=LD_LIBRARY_PATH
 
10505
  shlibpath_overrides_runpath=no
 
10506
  hardcode_into_libs=yes
 
10507
  dynamic_linker='GNU ld.so'
 
10508
  ;;
 
10509
 
 
10510
freebsd*)
 
10511
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
10512
  version_type=freebsd-$objformat
 
10513
  case $version_type in
 
10514
    freebsd-elf*)
 
10515
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10516
      need_version=no
 
10517
      need_lib_prefix=no
 
10518
      ;;
 
10519
    freebsd-*)
 
10520
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10521
      need_version=yes
 
10522
      ;;
 
10523
  esac
 
10524
  shlibpath_var=LD_LIBRARY_PATH
 
10525
  case $host_os in
 
10526
  freebsd2*)
 
10527
    shlibpath_overrides_runpath=yes
 
10528
    ;;
 
10529
  freebsd3.01* | freebsdelf3.01*)
 
10530
    shlibpath_overrides_runpath=yes
 
10531
    hardcode_into_libs=yes
 
10532
    ;;
 
10533
  *) # from 3.2 on
 
10534
    shlibpath_overrides_runpath=no
 
10535
    hardcode_into_libs=yes
 
10536
    ;;
 
10537
  esac
 
10538
  ;;
 
10539
 
 
10540
gnu*)
 
10541
  version_type=linux
 
10542
  need_lib_prefix=no
 
10543
  need_version=no
 
10544
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10545
  soname_spec='${libname}${release}${shared_ext}$major'
 
10546
  shlibpath_var=LD_LIBRARY_PATH
 
10547
  hardcode_into_libs=yes
 
10548
  ;;
 
10549
 
 
10550
hpux9* | hpux10* | hpux11*)
 
10551
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10552
  # link against other versions.
 
10553
  version_type=sunos
 
10554
  need_lib_prefix=no
 
10555
  need_version=no
 
10556
  case "$host_cpu" in
 
10557
  ia64*)
 
10558
    shrext_cmds='.so'
 
10559
    hardcode_into_libs=yes
 
10560
    dynamic_linker="$host_os dld.so"
 
10561
    shlibpath_var=LD_LIBRARY_PATH
 
10562
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10563
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10564
    soname_spec='${libname}${release}${shared_ext}$major'
 
10565
    if test "X$HPUX_IA64_MODE" = X32; then
 
10566
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10567
    else
 
10568
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10569
    fi
 
10570
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10571
    ;;
 
10572
   hppa*64*)
 
10573
     shrext_cmds='.sl'
 
10574
     hardcode_into_libs=yes
 
10575
     dynamic_linker="$host_os dld.sl"
 
10576
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10577
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10578
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10579
     soname_spec='${libname}${release}${shared_ext}$major'
 
10580
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10581
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10582
     ;;
 
10583
   *)
 
10584
    shrext_cmds='.sl'
 
10585
    dynamic_linker="$host_os dld.sl"
 
10586
    shlibpath_var=SHLIB_PATH
 
10587
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10588
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10589
    soname_spec='${libname}${release}${shared_ext}$major'
 
10590
    ;;
 
10591
  esac
 
10592
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
10593
  postinstall_cmds='chmod 555 $lib'
 
10594
  ;;
 
10595
 
 
10596
irix5* | irix6* | nonstopux*)
 
10597
  case $host_os in
 
10598
    nonstopux*) version_type=nonstopux ;;
 
10599
    *)
 
10600
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10601
                version_type=linux
 
10602
        else
 
10603
                version_type=irix
 
10604
        fi ;;
 
10605
  esac
 
10606
  need_lib_prefix=no
 
10607
  need_version=no
 
10608
  soname_spec='${libname}${release}${shared_ext}$major'
 
10609
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10610
  case $host_os in
 
10611
  irix5* | nonstopux*)
 
10612
    libsuff= shlibsuff=
 
10613
    ;;
 
10614
  *)
 
10615
    case $LD in # libtool.m4 will add one of these switches to LD
 
10616
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10617
      libsuff= shlibsuff= libmagic=32-bit;;
 
10618
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10619
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10620
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10621
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10622
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10623
    esac
 
10624
    ;;
 
10625
  esac
 
10626
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10627
  shlibpath_overrides_runpath=no
 
10628
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10629
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10630
  hardcode_into_libs=yes
 
10631
  ;;
 
10632
 
 
10633
# No shared lib support for Linux oldld, aout, or coff.
 
10634
linux*oldld* | linux*aout* | linux*coff*)
 
10635
  dynamic_linker=no
 
10636
  ;;
 
10637
 
 
10638
# This must be Linux ELF.
 
10639
linux*)
 
10640
  version_type=linux
 
10641
  need_lib_prefix=no
 
10642
  need_version=no
 
10643
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10644
  soname_spec='${libname}${release}${shared_ext}$major'
 
10645
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10646
  shlibpath_var=LD_LIBRARY_PATH
 
10647
  shlibpath_overrides_runpath=no
 
10648
  # This implies no fast_install, which is unacceptable.
 
10649
  # Some rework will be needed to allow for fast_install
 
10650
  # before this can be enabled.
 
10651
  hardcode_into_libs=yes
 
10652
 
 
10653
  # Append ld.so.conf contents to the search path
 
10654
  if test -f /etc/ld.so.conf; then
 
10655
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
10656
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10657
  fi
 
10658
 
 
10659
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10660
  # powerpc, because MkLinux only supported shared libraries with the
 
10661
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10662
  # most powerpc-linux boxes support dynamic linking these days and
 
10663
  # people can always --disable-shared, the test was removed, and we
 
10664
  # assume the GNU/Linux dynamic linker is in use.
 
10665
  dynamic_linker='GNU/Linux ld.so'
 
10666
  ;;
 
10667
 
 
10668
netbsdelf*-gnu)
 
10669
  version_type=linux
 
10670
  need_lib_prefix=no
 
10671
  need_version=no
 
10672
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10673
  soname_spec='${libname}${release}${shared_ext}$major'
 
10674
  shlibpath_var=LD_LIBRARY_PATH
 
10675
  shlibpath_overrides_runpath=no
 
10676
  hardcode_into_libs=yes
 
10677
  dynamic_linker='NetBSD ld.elf_so'
 
10678
  ;;
 
10679
 
 
10680
knetbsd*-gnu)
 
10681
  version_type=linux
 
10682
  need_lib_prefix=no
 
10683
  need_version=no
 
10684
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10685
  soname_spec='${libname}${release}${shared_ext}$major'
 
10686
  shlibpath_var=LD_LIBRARY_PATH
 
10687
  shlibpath_overrides_runpath=no
 
10688
  hardcode_into_libs=yes
 
10689
  dynamic_linker='GNU ld.so'
 
10690
  ;;
 
10691
 
 
10692
netbsd*)
 
10693
  version_type=sunos
 
10694
  need_lib_prefix=no
 
10695
  need_version=no
 
10696
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10697
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10698
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10699
    dynamic_linker='NetBSD (a.out) ld.so'
 
10700
  else
 
10701
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10702
    soname_spec='${libname}${release}${shared_ext}$major'
 
10703
    dynamic_linker='NetBSD ld.elf_so'
 
10704
  fi
 
10705
  shlibpath_var=LD_LIBRARY_PATH
 
10706
  shlibpath_overrides_runpath=yes
 
10707
  hardcode_into_libs=yes
 
10708
  ;;
 
10709
 
 
10710
newsos6)
 
10711
  version_type=linux
 
10712
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10713
  shlibpath_var=LD_LIBRARY_PATH
 
10714
  shlibpath_overrides_runpath=yes
 
10715
  ;;
 
10716
 
 
10717
nto-qnx*)
 
10718
  version_type=linux
 
10719
  need_lib_prefix=no
 
10720
  need_version=no
 
10721
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10722
  soname_spec='${libname}${release}${shared_ext}$major'
 
10723
  shlibpath_var=LD_LIBRARY_PATH
 
10724
  shlibpath_overrides_runpath=yes
 
10725
  ;;
 
10726
 
 
10727
openbsd*)
 
10728
  version_type=sunos
 
10729
  need_lib_prefix=no
 
10730
  need_version=yes
 
10731
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10732
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10733
  shlibpath_var=LD_LIBRARY_PATH
 
10734
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10735
    case $host_os in
 
10736
      openbsd2.[89] | openbsd2.[89].*)
 
10737
        shlibpath_overrides_runpath=no
 
10738
        ;;
 
10739
      *)
 
10740
        shlibpath_overrides_runpath=yes
 
10741
        ;;
 
10742
      esac
 
10743
  else
 
10744
    shlibpath_overrides_runpath=yes
 
10745
  fi
 
10746
  ;;
 
10747
 
 
10748
os2*)
 
10749
  libname_spec='$name'
 
10750
  shrext_cmds=".dll"
 
10751
  need_lib_prefix=no
 
10752
  library_names_spec='$libname${shared_ext} $libname.a'
 
10753
  dynamic_linker='OS/2 ld.exe'
 
10754
  shlibpath_var=LIBPATH
 
10755
  ;;
 
10756
 
 
10757
osf3* | osf4* | osf5*)
 
10758
  version_type=osf
 
10759
  need_lib_prefix=no
 
10760
  need_version=no
 
10761
  soname_spec='${libname}${release}${shared_ext}$major'
 
10762
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10763
  shlibpath_var=LD_LIBRARY_PATH
 
10764
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10765
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10766
  ;;
 
10767
 
 
10768
sco3.2v5*)
 
10769
  version_type=osf
 
10770
  soname_spec='${libname}${release}${shared_ext}$major'
 
10771
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10772
  shlibpath_var=LD_LIBRARY_PATH
 
10773
  ;;
 
10774
 
 
10775
solaris*)
 
10776
  version_type=linux
 
10777
  need_lib_prefix=no
 
10778
  need_version=no
 
10779
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10780
  soname_spec='${libname}${release}${shared_ext}$major'
 
10781
  shlibpath_var=LD_LIBRARY_PATH
 
10782
  shlibpath_overrides_runpath=yes
 
10783
  hardcode_into_libs=yes
 
10784
  # ldd complains unless libraries are executable
 
10785
  postinstall_cmds='chmod +x $lib'
 
10786
  ;;
 
10787
 
 
10788
sunos4*)
 
10789
  version_type=sunos
 
10790
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10791
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10792
  shlibpath_var=LD_LIBRARY_PATH
 
10793
  shlibpath_overrides_runpath=yes
 
10794
  if test "$with_gnu_ld" = yes; then
 
10795
    need_lib_prefix=no
 
10796
  fi
 
10797
  need_version=yes
 
10798
  ;;
 
10799
 
 
10800
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10801
  version_type=linux
 
10802
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10803
  soname_spec='${libname}${release}${shared_ext}$major'
 
10804
  shlibpath_var=LD_LIBRARY_PATH
 
10805
  case $host_vendor in
 
10806
    sni)
 
10807
      shlibpath_overrides_runpath=no
 
10808
      need_lib_prefix=no
 
10809
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10810
      runpath_var=LD_RUN_PATH
 
10811
      ;;
 
10812
    siemens)
 
10813
      need_lib_prefix=no
 
10814
      ;;
 
10815
    motorola)
 
10816
      need_lib_prefix=no
 
10817
      need_version=no
 
10818
      shlibpath_overrides_runpath=no
 
10819
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10820
      ;;
 
10821
  esac
 
10822
  ;;
 
10823
 
 
10824
sysv4*MP*)
 
10825
  if test -d /usr/nec ;then
 
10826
    version_type=linux
 
10827
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10828
    soname_spec='$libname${shared_ext}.$major'
 
10829
    shlibpath_var=LD_LIBRARY_PATH
 
10830
  fi
 
10831
  ;;
 
10832
 
 
10833
uts4*)
 
10834
  version_type=linux
 
10835
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10836
  soname_spec='${libname}${release}${shared_ext}$major'
 
10837
  shlibpath_var=LD_LIBRARY_PATH
 
10838
  ;;
 
10839
 
 
10840
*)
 
10841
  dynamic_linker=no
 
10842
  ;;
 
10843
esac
 
10844
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10845
echo "${ECHO_T}$dynamic_linker" >&6
 
10846
test "$dynamic_linker" = no && can_build_shared=no
 
10847
 
 
10848
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10849
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
10850
hardcode_action=
 
10851
if test -n "$hardcode_libdir_flag_spec" || \
 
10852
   test -n "$runpath_var " || \
 
10853
   test "X$hardcode_automatic"="Xyes" ; then
 
10854
 
 
10855
  # We can hardcode non-existant directories.
 
10856
  if test "$hardcode_direct" != no &&
 
10857
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10858
     # have to relink, otherwise we might link with an installed library
 
10859
     # when we should be linking with a yet-to-be-installed one
 
10860
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10861
     test "$hardcode_minus_L" != no; then
 
10862
    # Linking always hardcodes the temporary library directory.
 
10863
    hardcode_action=relink
 
10864
  else
 
10865
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10866
    hardcode_action=immediate
 
10867
  fi
 
10868
else
 
10869
  # We cannot hardcode anything, or else we can only hardcode existing
 
10870
  # directories.
 
10871
  hardcode_action=unsupported
 
10872
fi
 
10873
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
10874
echo "${ECHO_T}$hardcode_action" >&6
 
10875
 
 
10876
if test "$hardcode_action" = relink; then
 
10877
  # Fast installation is not supported
 
10878
  enable_fast_install=no
 
10879
elif test "$shlibpath_overrides_runpath" = yes ||
 
10880
     test "$enable_shared" = no; then
 
10881
  # Fast installation is not necessary
 
10882
  enable_fast_install=needless
 
10883
fi
 
10884
 
 
10885
striplib=
 
10886
old_striplib=
 
10887
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
10888
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
10889
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
10890
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10891
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10892
  echo "$as_me:$LINENO: result: yes" >&5
 
10893
echo "${ECHO_T}yes" >&6
 
10894
else
 
10895
# FIXME - insert some real tests, host_os isn't really good enough
 
10896
  case $host_os in
 
10897
   darwin*)
 
10898
       if test -n "$STRIP" ; then
 
10899
         striplib="$STRIP -x"
 
10900
         echo "$as_me:$LINENO: result: yes" >&5
 
10901
echo "${ECHO_T}yes" >&6
 
10902
       else
 
10903
  echo "$as_me:$LINENO: result: no" >&5
 
10904
echo "${ECHO_T}no" >&6
 
10905
fi
 
10906
       ;;
 
10907
   *)
 
10908
  echo "$as_me:$LINENO: result: no" >&5
 
10909
echo "${ECHO_T}no" >&6
 
10910
    ;;
 
10911
  esac
 
10912
fi
 
10913
 
 
10914
if test "x$enable_dlopen" != xyes; then
 
10915
  enable_dlopen=unknown
 
10916
  enable_dlopen_self=unknown
 
10917
  enable_dlopen_self_static=unknown
 
10918
else
 
10919
  lt_cv_dlopen=no
 
10920
  lt_cv_dlopen_libs=
 
10921
 
 
10922
  case $host_os in
 
10923
  beos*)
 
10924
    lt_cv_dlopen="load_add_on"
 
10925
    lt_cv_dlopen_libs=
 
10926
    lt_cv_dlopen_self=yes
 
10927
    ;;
 
10928
 
 
10929
  mingw* | pw32*)
 
10930
    lt_cv_dlopen="LoadLibrary"
 
10931
    lt_cv_dlopen_libs=
 
10932
   ;;
 
10933
 
 
10934
  cygwin*)
 
10935
    lt_cv_dlopen="dlopen"
 
10936
    lt_cv_dlopen_libs=
 
10937
   ;;
 
10938
 
 
10939
  darwin*)
 
10940
  # if libdl is installed we need to link against it
 
10941
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10942
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
10943
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10944
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10945
else
 
10946
  ac_check_lib_save_LIBS=$LIBS
 
10947
LIBS="-ldl  $LIBS"
 
10948
cat >conftest.$ac_ext <<_ACEOF
 
10949
/* confdefs.h.  */
 
10950
_ACEOF
 
10951
cat confdefs.h >>conftest.$ac_ext
 
10952
cat >>conftest.$ac_ext <<_ACEOF
 
10953
/* end confdefs.h.  */
 
10954
 
 
10955
/* Override any gcc2 internal prototype to avoid an error.  */
 
10956
#ifdef __cplusplus
 
10957
extern "C"
 
10958
#endif
 
10959
/* We use char because int might match the return type of a gcc2
 
10960
   builtin and then its argument prototype would still apply.  */
 
10961
char dlopen ();
 
10962
int
 
10963
main ()
 
10964
{
 
10965
dlopen ();
 
10966
  ;
 
10967
  return 0;
 
10968
}
 
10969
_ACEOF
 
10970
rm -f conftest.$ac_objext conftest$ac_exeext
 
10971
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10972
  (eval $ac_link) 2>conftest.er1
 
10973
  ac_status=$?
 
10974
  grep -v '^ *+' conftest.er1 >conftest.err
 
10975
  rm -f conftest.er1
 
10976
  cat conftest.err >&5
 
10977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10978
  (exit $ac_status); } &&
 
10979
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10980
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10981
  (eval $ac_try) 2>&5
 
10982
  ac_status=$?
 
10983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10984
  (exit $ac_status); }; } &&
 
10985
         { ac_try='test -s conftest$ac_exeext'
 
10986
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10987
  (eval $ac_try) 2>&5
 
10988
  ac_status=$?
 
10989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10990
  (exit $ac_status); }; }; then
 
10991
  ac_cv_lib_dl_dlopen=yes
 
10992
else
 
10993
  echo "$as_me: failed program was:" >&5
 
10994
sed 's/^/| /' conftest.$ac_ext >&5
 
10995
 
 
10996
ac_cv_lib_dl_dlopen=no
 
10997
fi
 
10998
rm -f conftest.err conftest.$ac_objext \
 
10999
      conftest$ac_exeext conftest.$ac_ext
 
11000
LIBS=$ac_check_lib_save_LIBS
 
11001
fi
 
11002
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11003
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11004
if test $ac_cv_lib_dl_dlopen = yes; then
 
11005
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11006
else
 
11007
  
 
11008
    lt_cv_dlopen="dyld"
 
11009
    lt_cv_dlopen_libs=
 
11010
    lt_cv_dlopen_self=yes
 
11011
    
 
11012
fi
 
11013
 
 
11014
   ;;
 
11015
 
 
11016
  *)
 
11017
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
11018
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
11019
if test "${ac_cv_func_shl_load+set}" = set; then
 
11020
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11021
else
 
11022
  cat >conftest.$ac_ext <<_ACEOF
 
11023
/* confdefs.h.  */
 
11024
_ACEOF
 
11025
cat confdefs.h >>conftest.$ac_ext
 
11026
cat >>conftest.$ac_ext <<_ACEOF
 
11027
/* end confdefs.h.  */
 
11028
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
11029
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11030
#define shl_load innocuous_shl_load
 
11031
 
 
11032
/* System header to define __stub macros and hopefully few prototypes,
 
11033
    which can conflict with char shl_load (); below.
 
11034
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11035
    <limits.h> exists even on freestanding compilers.  */
 
11036
 
 
11037
#ifdef __STDC__
 
11038
# include <limits.h>
 
11039
#else
 
11040
# include <assert.h>
 
11041
#endif
 
11042
 
 
11043
#undef shl_load
 
11044
 
 
11045
/* Override any gcc2 internal prototype to avoid an error.  */
 
11046
#ifdef __cplusplus
 
11047
extern "C"
 
11048
{
 
11049
#endif
 
11050
/* We use char because int might match the return type of a gcc2
 
11051
   builtin and then its argument prototype would still apply.  */
 
11052
char shl_load ();
 
11053
/* The GNU C library defines this for functions which it implements
 
11054
    to always fail with ENOSYS.  Some functions are actually named
 
11055
    something starting with __ and the normal name is an alias.  */
 
11056
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
11057
choke me
 
11058
#else
 
11059
char (*f) () = shl_load;
 
11060
#endif
 
11061
#ifdef __cplusplus
 
11062
}
 
11063
#endif
 
11064
 
 
11065
int
 
11066
main ()
 
11067
{
 
11068
return f != shl_load;
 
11069
  ;
 
11070
  return 0;
 
11071
}
 
11072
_ACEOF
 
11073
rm -f conftest.$ac_objext conftest$ac_exeext
 
11074
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11075
  (eval $ac_link) 2>conftest.er1
 
11076
  ac_status=$?
 
11077
  grep -v '^ *+' conftest.er1 >conftest.err
 
11078
  rm -f conftest.er1
 
11079
  cat conftest.err >&5
 
11080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11081
  (exit $ac_status); } &&
 
11082
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11083
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11084
  (eval $ac_try) 2>&5
 
11085
  ac_status=$?
 
11086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11087
  (exit $ac_status); }; } &&
 
11088
         { ac_try='test -s conftest$ac_exeext'
 
11089
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11090
  (eval $ac_try) 2>&5
 
11091
  ac_status=$?
 
11092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11093
  (exit $ac_status); }; }; then
 
11094
  ac_cv_func_shl_load=yes
 
11095
else
 
11096
  echo "$as_me: failed program was:" >&5
 
11097
sed 's/^/| /' conftest.$ac_ext >&5
 
11098
 
 
11099
ac_cv_func_shl_load=no
 
11100
fi
 
11101
rm -f conftest.err conftest.$ac_objext \
 
11102
      conftest$ac_exeext conftest.$ac_ext
 
11103
fi
 
11104
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
11105
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
11106
if test $ac_cv_func_shl_load = yes; then
 
11107
  lt_cv_dlopen="shl_load"
 
11108
else
 
11109
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
11110
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
11111
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
11112
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11113
else
 
11114
  ac_check_lib_save_LIBS=$LIBS
 
11115
LIBS="-ldld  $LIBS"
 
11116
cat >conftest.$ac_ext <<_ACEOF
 
11117
/* confdefs.h.  */
 
11118
_ACEOF
 
11119
cat confdefs.h >>conftest.$ac_ext
 
11120
cat >>conftest.$ac_ext <<_ACEOF
 
11121
/* end confdefs.h.  */
 
11122
 
 
11123
/* Override any gcc2 internal prototype to avoid an error.  */
 
11124
#ifdef __cplusplus
 
11125
extern "C"
 
11126
#endif
 
11127
/* We use char because int might match the return type of a gcc2
 
11128
   builtin and then its argument prototype would still apply.  */
 
11129
char shl_load ();
 
11130
int
 
11131
main ()
 
11132
{
 
11133
shl_load ();
 
11134
  ;
 
11135
  return 0;
 
11136
}
 
11137
_ACEOF
 
11138
rm -f conftest.$ac_objext conftest$ac_exeext
 
11139
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11140
  (eval $ac_link) 2>conftest.er1
 
11141
  ac_status=$?
 
11142
  grep -v '^ *+' conftest.er1 >conftest.err
 
11143
  rm -f conftest.er1
 
11144
  cat conftest.err >&5
 
11145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11146
  (exit $ac_status); } &&
 
11147
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11148
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11149
  (eval $ac_try) 2>&5
 
11150
  ac_status=$?
 
11151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11152
  (exit $ac_status); }; } &&
 
11153
         { ac_try='test -s conftest$ac_exeext'
 
11154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11155
  (eval $ac_try) 2>&5
 
11156
  ac_status=$?
 
11157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11158
  (exit $ac_status); }; }; then
 
11159
  ac_cv_lib_dld_shl_load=yes
 
11160
else
 
11161
  echo "$as_me: failed program was:" >&5
 
11162
sed 's/^/| /' conftest.$ac_ext >&5
 
11163
 
 
11164
ac_cv_lib_dld_shl_load=no
 
11165
fi
 
11166
rm -f conftest.err conftest.$ac_objext \
 
11167
      conftest$ac_exeext conftest.$ac_ext
 
11168
LIBS=$ac_check_lib_save_LIBS
 
11169
fi
 
11170
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
11171
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
11172
if test $ac_cv_lib_dld_shl_load = yes; then
 
11173
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
11174
else
 
11175
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
11176
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
11177
if test "${ac_cv_func_dlopen+set}" = set; then
 
11178
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11179
else
 
11180
  cat >conftest.$ac_ext <<_ACEOF
 
11181
/* confdefs.h.  */
 
11182
_ACEOF
 
11183
cat confdefs.h >>conftest.$ac_ext
 
11184
cat >>conftest.$ac_ext <<_ACEOF
 
11185
/* end confdefs.h.  */
 
11186
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
11187
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11188
#define dlopen innocuous_dlopen
 
11189
 
 
11190
/* System header to define __stub macros and hopefully few prototypes,
 
11191
    which can conflict with char dlopen (); below.
 
11192
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11193
    <limits.h> exists even on freestanding compilers.  */
 
11194
 
 
11195
#ifdef __STDC__
 
11196
# include <limits.h>
 
11197
#else
 
11198
# include <assert.h>
 
11199
#endif
 
11200
 
 
11201
#undef dlopen
 
11202
 
 
11203
/* Override any gcc2 internal prototype to avoid an error.  */
 
11204
#ifdef __cplusplus
 
11205
extern "C"
 
11206
{
 
11207
#endif
 
11208
/* We use char because int might match the return type of a gcc2
 
11209
   builtin and then its argument prototype would still apply.  */
 
11210
char dlopen ();
 
11211
/* The GNU C library defines this for functions which it implements
 
11212
    to always fail with ENOSYS.  Some functions are actually named
 
11213
    something starting with __ and the normal name is an alias.  */
 
11214
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
11215
choke me
 
11216
#else
 
11217
char (*f) () = dlopen;
 
11218
#endif
 
11219
#ifdef __cplusplus
 
11220
}
 
11221
#endif
 
11222
 
 
11223
int
 
11224
main ()
 
11225
{
 
11226
return f != dlopen;
 
11227
  ;
 
11228
  return 0;
 
11229
}
 
11230
_ACEOF
 
11231
rm -f conftest.$ac_objext conftest$ac_exeext
 
11232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11233
  (eval $ac_link) 2>conftest.er1
 
11234
  ac_status=$?
 
11235
  grep -v '^ *+' conftest.er1 >conftest.err
 
11236
  rm -f conftest.er1
 
11237
  cat conftest.err >&5
 
11238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11239
  (exit $ac_status); } &&
 
11240
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11241
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11242
  (eval $ac_try) 2>&5
 
11243
  ac_status=$?
 
11244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11245
  (exit $ac_status); }; } &&
 
11246
         { ac_try='test -s conftest$ac_exeext'
 
11247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11248
  (eval $ac_try) 2>&5
 
11249
  ac_status=$?
 
11250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11251
  (exit $ac_status); }; }; then
 
11252
  ac_cv_func_dlopen=yes
 
11253
else
 
11254
  echo "$as_me: failed program was:" >&5
 
11255
sed 's/^/| /' conftest.$ac_ext >&5
 
11256
 
 
11257
ac_cv_func_dlopen=no
 
11258
fi
 
11259
rm -f conftest.err conftest.$ac_objext \
 
11260
      conftest$ac_exeext conftest.$ac_ext
 
11261
fi
 
11262
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
11263
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
11264
if test $ac_cv_func_dlopen = yes; then
 
11265
  lt_cv_dlopen="dlopen"
 
11266
else
 
11267
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11268
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11269
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11270
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11271
else
 
11272
  ac_check_lib_save_LIBS=$LIBS
 
11273
LIBS="-ldl  $LIBS"
 
11274
cat >conftest.$ac_ext <<_ACEOF
 
11275
/* confdefs.h.  */
 
11276
_ACEOF
 
11277
cat confdefs.h >>conftest.$ac_ext
 
11278
cat >>conftest.$ac_ext <<_ACEOF
 
11279
/* end confdefs.h.  */
 
11280
 
 
11281
/* Override any gcc2 internal prototype to avoid an error.  */
 
11282
#ifdef __cplusplus
 
11283
extern "C"
 
11284
#endif
 
11285
/* We use char because int might match the return type of a gcc2
 
11286
   builtin and then its argument prototype would still apply.  */
 
11287
char dlopen ();
 
11288
int
 
11289
main ()
 
11290
{
 
11291
dlopen ();
 
11292
  ;
 
11293
  return 0;
 
11294
}
 
11295
_ACEOF
 
11296
rm -f conftest.$ac_objext conftest$ac_exeext
 
11297
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11298
  (eval $ac_link) 2>conftest.er1
 
11299
  ac_status=$?
 
11300
  grep -v '^ *+' conftest.er1 >conftest.err
 
11301
  rm -f conftest.er1
 
11302
  cat conftest.err >&5
 
11303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11304
  (exit $ac_status); } &&
 
11305
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11306
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11307
  (eval $ac_try) 2>&5
 
11308
  ac_status=$?
 
11309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11310
  (exit $ac_status); }; } &&
 
11311
         { ac_try='test -s conftest$ac_exeext'
 
11312
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11313
  (eval $ac_try) 2>&5
 
11314
  ac_status=$?
 
11315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11316
  (exit $ac_status); }; }; then
 
11317
  ac_cv_lib_dl_dlopen=yes
 
11318
else
 
11319
  echo "$as_me: failed program was:" >&5
 
11320
sed 's/^/| /' conftest.$ac_ext >&5
 
11321
 
 
11322
ac_cv_lib_dl_dlopen=no
 
11323
fi
 
11324
rm -f conftest.err conftest.$ac_objext \
 
11325
      conftest$ac_exeext conftest.$ac_ext
 
11326
LIBS=$ac_check_lib_save_LIBS
 
11327
fi
 
11328
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11329
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11330
if test $ac_cv_lib_dl_dlopen = yes; then
 
11331
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11332
else
 
11333
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
11334
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
11335
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
11336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11337
else
 
11338
  ac_check_lib_save_LIBS=$LIBS
 
11339
LIBS="-lsvld  $LIBS"
 
11340
cat >conftest.$ac_ext <<_ACEOF
 
11341
/* confdefs.h.  */
 
11342
_ACEOF
 
11343
cat confdefs.h >>conftest.$ac_ext
 
11344
cat >>conftest.$ac_ext <<_ACEOF
 
11345
/* end confdefs.h.  */
 
11346
 
 
11347
/* Override any gcc2 internal prototype to avoid an error.  */
 
11348
#ifdef __cplusplus
 
11349
extern "C"
 
11350
#endif
 
11351
/* We use char because int might match the return type of a gcc2
 
11352
   builtin and then its argument prototype would still apply.  */
 
11353
char dlopen ();
 
11354
int
 
11355
main ()
 
11356
{
 
11357
dlopen ();
 
11358
  ;
 
11359
  return 0;
 
11360
}
 
11361
_ACEOF
 
11362
rm -f conftest.$ac_objext conftest$ac_exeext
 
11363
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11364
  (eval $ac_link) 2>conftest.er1
 
11365
  ac_status=$?
 
11366
  grep -v '^ *+' conftest.er1 >conftest.err
 
11367
  rm -f conftest.er1
 
11368
  cat conftest.err >&5
 
11369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11370
  (exit $ac_status); } &&
 
11371
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11372
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11373
  (eval $ac_try) 2>&5
 
11374
  ac_status=$?
 
11375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11376
  (exit $ac_status); }; } &&
 
11377
         { ac_try='test -s conftest$ac_exeext'
 
11378
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11379
  (eval $ac_try) 2>&5
 
11380
  ac_status=$?
 
11381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11382
  (exit $ac_status); }; }; then
 
11383
  ac_cv_lib_svld_dlopen=yes
 
11384
else
 
11385
  echo "$as_me: failed program was:" >&5
 
11386
sed 's/^/| /' conftest.$ac_ext >&5
 
11387
 
 
11388
ac_cv_lib_svld_dlopen=no
 
11389
fi
 
11390
rm -f conftest.err conftest.$ac_objext \
 
11391
      conftest$ac_exeext conftest.$ac_ext
 
11392
LIBS=$ac_check_lib_save_LIBS
 
11393
fi
 
11394
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
11395
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
11396
if test $ac_cv_lib_svld_dlopen = yes; then
 
11397
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11398
else
 
11399
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
11400
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
11401
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
11402
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11403
else
 
11404
  ac_check_lib_save_LIBS=$LIBS
 
11405
LIBS="-ldld  $LIBS"
 
11406
cat >conftest.$ac_ext <<_ACEOF
 
11407
/* confdefs.h.  */
 
11408
_ACEOF
 
11409
cat confdefs.h >>conftest.$ac_ext
 
11410
cat >>conftest.$ac_ext <<_ACEOF
 
11411
/* end confdefs.h.  */
 
11412
 
 
11413
/* Override any gcc2 internal prototype to avoid an error.  */
 
11414
#ifdef __cplusplus
 
11415
extern "C"
 
11416
#endif
 
11417
/* We use char because int might match the return type of a gcc2
 
11418
   builtin and then its argument prototype would still apply.  */
 
11419
char dld_link ();
 
11420
int
 
11421
main ()
 
11422
{
 
11423
dld_link ();
 
11424
  ;
 
11425
  return 0;
 
11426
}
 
11427
_ACEOF
 
11428
rm -f conftest.$ac_objext conftest$ac_exeext
 
11429
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11430
  (eval $ac_link) 2>conftest.er1
 
11431
  ac_status=$?
 
11432
  grep -v '^ *+' conftest.er1 >conftest.err
 
11433
  rm -f conftest.er1
 
11434
  cat conftest.err >&5
 
11435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11436
  (exit $ac_status); } &&
 
11437
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11438
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11439
  (eval $ac_try) 2>&5
 
11440
  ac_status=$?
 
11441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11442
  (exit $ac_status); }; } &&
 
11443
         { ac_try='test -s conftest$ac_exeext'
 
11444
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11445
  (eval $ac_try) 2>&5
 
11446
  ac_status=$?
 
11447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11448
  (exit $ac_status); }; }; then
 
11449
  ac_cv_lib_dld_dld_link=yes
 
11450
else
 
11451
  echo "$as_me: failed program was:" >&5
 
11452
sed 's/^/| /' conftest.$ac_ext >&5
 
11453
 
 
11454
ac_cv_lib_dld_dld_link=no
 
11455
fi
 
11456
rm -f conftest.err conftest.$ac_objext \
 
11457
      conftest$ac_exeext conftest.$ac_ext
 
11458
LIBS=$ac_check_lib_save_LIBS
 
11459
fi
 
11460
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
11461
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
11462
if test $ac_cv_lib_dld_dld_link = yes; then
 
11463
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
11464
fi
 
11465
 
 
11466
              
 
11467
fi
 
11468
 
 
11469
            
 
11470
fi
 
11471
 
 
11472
          
 
11473
fi
 
11474
 
 
11475
        
 
11476
fi
 
11477
 
 
11478
      
 
11479
fi
 
11480
 
 
11481
    ;;
 
11482
  esac
 
11483
 
 
11484
  if test "x$lt_cv_dlopen" != xno; then
 
11485
    enable_dlopen=yes
 
11486
  else
 
11487
    enable_dlopen=no
 
11488
  fi
 
11489
 
 
11490
  case $lt_cv_dlopen in
 
11491
  dlopen)
 
11492
    save_CPPFLAGS="$CPPFLAGS"
 
11493
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11494
 
 
11495
    save_LDFLAGS="$LDFLAGS"
 
11496
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11497
 
 
11498
    save_LIBS="$LIBS"
 
11499
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11500
 
 
11501
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
11502
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
11503
if test "${lt_cv_dlopen_self+set}" = set; then
 
11504
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11505
else
 
11506
          if test "$cross_compiling" = yes; then :
 
11507
  lt_cv_dlopen_self=cross
 
11508
else
 
11509
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11510
  lt_status=$lt_dlunknown
 
11511
  cat > conftest.$ac_ext <<EOF
 
11512
#line __oline__ "configure"
 
11513
#include "confdefs.h"
 
11514
 
 
11515
#if HAVE_DLFCN_H
 
11516
#include <dlfcn.h>
 
11517
#endif
 
11518
 
 
11519
#include <stdio.h>
 
11520
 
 
11521
#ifdef RTLD_GLOBAL
 
11522
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11523
#else
 
11524
#  ifdef DL_GLOBAL
 
11525
#    define LT_DLGLOBAL         DL_GLOBAL
 
11526
#  else
 
11527
#    define LT_DLGLOBAL         0
 
11528
#  endif
 
11529
#endif
 
11530
 
 
11531
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11532
   find out it does not work in some platform. */
 
11533
#ifndef LT_DLLAZY_OR_NOW
 
11534
#  ifdef RTLD_LAZY
 
11535
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11536
#  else
 
11537
#    ifdef DL_LAZY
 
11538
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11539
#    else
 
11540
#      ifdef RTLD_NOW
 
11541
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11542
#      else
 
11543
#        ifdef DL_NOW
 
11544
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11545
#        else
 
11546
#          define LT_DLLAZY_OR_NOW      0
 
11547
#        endif
 
11548
#      endif
 
11549
#    endif
 
11550
#  endif
 
11551
#endif
 
11552
 
 
11553
#ifdef __cplusplus
 
11554
extern "C" void exit (int);
 
11555
#endif
 
11556
 
 
11557
void fnord() { int i=42;}
 
11558
int main ()
 
11559
{
 
11560
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11561
  int status = $lt_dlunknown;
 
11562
 
 
11563
  if (self)
 
11564
    {
 
11565
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11566
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11567
      /* dlclose (self); */
 
11568
    }
 
11569
 
 
11570
    exit (status);
 
11571
}
 
11572
EOF
 
11573
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11574
  (eval $ac_link) 2>&5
 
11575
  ac_status=$?
 
11576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11577
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11578
    (./conftest; exit; ) 2>/dev/null
 
11579
    lt_status=$?
 
11580
    case x$lt_status in
 
11581
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11582
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11583
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
11584
    esac
 
11585
  else :
 
11586
    # compilation failed
 
11587
    lt_cv_dlopen_self=no
 
11588
  fi
 
11589
fi
 
11590
rm -fr conftest*
 
11591
 
 
11592
    
 
11593
fi
 
11594
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
11595
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
11596
 
 
11597
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11598
      LDFLAGS="$LDFLAGS $link_static_flag"
 
11599
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
11600
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
11601
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
11602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11603
else
 
11604
          if test "$cross_compiling" = yes; then :
 
11605
  lt_cv_dlopen_self_static=cross
 
11606
else
 
11607
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11608
  lt_status=$lt_dlunknown
 
11609
  cat > conftest.$ac_ext <<EOF
 
11610
#line __oline__ "configure"
 
11611
#include "confdefs.h"
 
11612
 
 
11613
#if HAVE_DLFCN_H
 
11614
#include <dlfcn.h>
 
11615
#endif
 
11616
 
 
11617
#include <stdio.h>
 
11618
 
 
11619
#ifdef RTLD_GLOBAL
 
11620
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11621
#else
 
11622
#  ifdef DL_GLOBAL
 
11623
#    define LT_DLGLOBAL         DL_GLOBAL
 
11624
#  else
 
11625
#    define LT_DLGLOBAL         0
 
11626
#  endif
 
11627
#endif
 
11628
 
 
11629
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11630
   find out it does not work in some platform. */
 
11631
#ifndef LT_DLLAZY_OR_NOW
 
11632
#  ifdef RTLD_LAZY
 
11633
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11634
#  else
 
11635
#    ifdef DL_LAZY
 
11636
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11637
#    else
 
11638
#      ifdef RTLD_NOW
 
11639
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11640
#      else
 
11641
#        ifdef DL_NOW
 
11642
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11643
#        else
 
11644
#          define LT_DLLAZY_OR_NOW      0
 
11645
#        endif
 
11646
#      endif
 
11647
#    endif
 
11648
#  endif
 
11649
#endif
 
11650
 
 
11651
#ifdef __cplusplus
 
11652
extern "C" void exit (int);
 
11653
#endif
 
11654
 
 
11655
void fnord() { int i=42;}
 
11656
int main ()
 
11657
{
 
11658
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11659
  int status = $lt_dlunknown;
 
11660
 
 
11661
  if (self)
 
11662
    {
 
11663
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11664
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11665
      /* dlclose (self); */
 
11666
    }
 
11667
 
 
11668
    exit (status);
 
11669
}
 
11670
EOF
 
11671
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11672
  (eval $ac_link) 2>&5
 
11673
  ac_status=$?
 
11674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11675
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11676
    (./conftest; exit; ) 2>/dev/null
 
11677
    lt_status=$?
 
11678
    case x$lt_status in
 
11679
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11680
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11681
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
11682
    esac
 
11683
  else :
 
11684
    # compilation failed
 
11685
    lt_cv_dlopen_self_static=no
 
11686
  fi
 
11687
fi
 
11688
rm -fr conftest*
 
11689
 
 
11690
      
 
11691
fi
 
11692
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
11693
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
11694
    fi
 
11695
 
 
11696
    CPPFLAGS="$save_CPPFLAGS"
 
11697
    LDFLAGS="$save_LDFLAGS"
 
11698
    LIBS="$save_LIBS"
 
11699
    ;;
 
11700
  esac
 
11701
 
 
11702
  case $lt_cv_dlopen_self in
 
11703
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11704
  *) enable_dlopen_self=unknown ;;
 
11705
  esac
 
11706
 
 
11707
  case $lt_cv_dlopen_self_static in
 
11708
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11709
  *) enable_dlopen_self_static=unknown ;;
 
11710
  esac
 
11711
fi
 
11712
 
 
11713
 
 
11714
# Report which librarie types wil actually be built
 
11715
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
11716
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
11717
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
11718
echo "${ECHO_T}$can_build_shared" >&6
 
11719
 
 
11720
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
11721
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
11722
test "$can_build_shared" = "no" && enable_shared=no
 
11723
 
 
11724
# On AIX, shared libraries and static libraries use the same namespace, and
 
11725
# are all built from PIC.
 
11726
case "$host_os" in
 
11727
aix3*)
 
11728
  test "$enable_shared" = yes && enable_static=no
 
11729
  if test -n "$RANLIB"; then
 
11730
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11731
    postinstall_cmds='$RANLIB $lib'
 
11732
  fi
 
11733
  ;;
 
11734
 
 
11735
aix4* | aix5*)
 
11736
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11737
    test "$enable_shared" = yes && enable_static=no
 
11738
  fi
 
11739
  ;;
 
11740
  darwin* | rhapsody*)
 
11741
  if test "$GCC" = yes; then
 
11742
    archive_cmds_need_lc=no
 
11743
    case "$host_os" in
 
11744
    rhapsody* | darwin1.[012])
 
11745
      allow_undefined_flag='-undefined suppress'
 
11746
      ;;
 
11747
    *) # Darwin 1.3 on
 
11748
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11749
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
11750
      else
 
11751
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
11752
          10.[012])
 
11753
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
11754
            ;;
 
11755
          10.*)
 
11756
            allow_undefined_flag='-undefined dynamic_lookup'
 
11757
            ;;
 
11758
        esac
 
11759
      fi
 
11760
      ;;
 
11761
    esac
 
11762
    output_verbose_link_cmd='echo'
 
11763
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
11764
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11765
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
11766
    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}'
 
11767
    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}'
 
11768
    hardcode_direct=no
 
11769
    hardcode_automatic=yes
 
11770
    hardcode_shlibpath_var=unsupported
 
11771
    whole_archive_flag_spec='-all_load $convenience'
 
11772
    link_all_deplibs=yes
 
11773
  else
 
11774
    ld_shlibs=no
 
11775
  fi
 
11776
    ;;
 
11777
esac
 
11778
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
11779
echo "${ECHO_T}$enable_shared" >&6
 
11780
 
 
11781
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
11782
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
11783
# Make sure either enable_shared or enable_static is yes.
 
11784
test "$enable_shared" = yes || enable_static=yes
 
11785
echo "$as_me:$LINENO: result: $enable_static" >&5
 
11786
echo "${ECHO_T}$enable_static" >&6
 
11787
 
 
11788
# The else clause should only fire when bootstrapping the
 
11789
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
11790
# with your package, and you will get complaints that there are
 
11791
# no rules to generate ltmain.sh.
 
11792
if test -f "$ltmain"; then
 
11793
  # See if we are running on zsh, and set the options which allow our commands through
 
11794
  # without removal of \ escapes.
 
11795
  if test -n "${ZSH_VERSION+set}" ; then
 
11796
    setopt NO_GLOB_SUBST
 
11797
  fi
 
11798
  # Now quote all the things that may contain metacharacters while being
 
11799
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
11800
  # variables and quote the copies for generation of the libtool script.
 
11801
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
11802
    SED SHELL STRIP \
 
11803
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
11804
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
11805
    deplibs_check_method reload_flag reload_cmds need_locks \
 
11806
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
11807
    lt_cv_sys_global_symbol_to_c_name_address \
 
11808
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
11809
    old_postinstall_cmds old_postuninstall_cmds \
 
11810
    compiler \
 
11811
    CC \
 
11812
    LD \
 
11813
    lt_prog_compiler_wl \
 
11814
    lt_prog_compiler_pic \
 
11815
    lt_prog_compiler_static \
 
11816
    lt_prog_compiler_no_builtin_flag \
 
11817
    export_dynamic_flag_spec \
 
11818
    thread_safe_flag_spec \
 
11819
    whole_archive_flag_spec \
 
11820
    enable_shared_with_static_runtimes \
 
11821
    old_archive_cmds \
 
11822
    old_archive_from_new_cmds \
 
11823
    predep_objects \
 
11824
    postdep_objects \
 
11825
    predeps \
 
11826
    postdeps \
 
11827
    compiler_lib_search_path \
 
11828
    archive_cmds \
 
11829
    archive_expsym_cmds \
 
11830
    postinstall_cmds \
 
11831
    postuninstall_cmds \
 
11832
    old_archive_from_expsyms_cmds \
 
11833
    allow_undefined_flag \
 
11834
    no_undefined_flag \
 
11835
    export_symbols_cmds \
 
11836
    hardcode_libdir_flag_spec \
 
11837
    hardcode_libdir_flag_spec_ld \
 
11838
    hardcode_libdir_separator \
 
11839
    hardcode_automatic \
 
11840
    module_cmds \
 
11841
    module_expsym_cmds \
 
11842
    lt_cv_prog_compiler_c_o \
 
11843
    exclude_expsyms \
 
11844
    include_expsyms; do
 
11845
 
 
11846
    case $var in
 
11847
    old_archive_cmds | \
 
11848
    old_archive_from_new_cmds | \
 
11849
    archive_cmds | \
 
11850
    archive_expsym_cmds | \
 
11851
    module_cmds | \
 
11852
    module_expsym_cmds | \
 
11853
    old_archive_from_expsyms_cmds | \
 
11854
    export_symbols_cmds | \
 
11855
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
11856
    postinstall_cmds | postuninstall_cmds | \
 
11857
    old_postinstall_cmds | old_postuninstall_cmds | \
 
11858
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
11859
      # Double-quote double-evaled strings.
 
11860
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
11861
      ;;
 
11862
    *)
 
11863
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
11864
      ;;
 
11865
    esac
 
11866
  done
 
11867
 
 
11868
  case $lt_echo in
 
11869
  *'\$0 --fallback-echo"')
 
11870
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
11871
    ;;
 
11872
  esac
 
11873
 
 
11874
cfgfile="${ofile}T"
 
11875
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
11876
  $rm -f "$cfgfile"
 
11877
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
11878
echo "$as_me: creating $ofile" >&6;}
 
11879
 
 
11880
  cat <<__EOF__ >> "$cfgfile"
 
11881
#! $SHELL
 
11882
 
 
11883
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
11884
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
11885
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
11886
#
 
11887
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
11888
# Free Software Foundation, Inc.
 
11889
#
 
11890
# This file is part of GNU Libtool:
 
11891
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
11892
#
 
11893
# This program is free software; you can redistribute it and/or modify
 
11894
# it under the terms of the GNU General Public License as published by
 
11895
# the Free Software Foundation; either version 2 of the License, or
 
11896
# (at your option) any later version.
 
11897
#
 
11898
# This program is distributed in the hope that it will be useful, but
 
11899
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
11900
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11901
# General Public License for more details.
 
11902
#
 
11903
# You should have received a copy of the GNU General Public License
 
11904
# along with this program; if not, write to the Free Software
 
11905
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
11906
#
 
11907
# As a special exception to the GNU General Public License, if you
 
11908
# distribute this file as part of a program that contains a
 
11909
# configuration script generated by Autoconf, you may include it under
 
11910
# the same distribution terms that you use for the rest of that program.
 
11911
 
 
11912
# A sed program that does not truncate output.
 
11913
SED=$lt_SED
 
11914
 
 
11915
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
11916
Xsed="$SED -e s/^X//"
 
11917
 
 
11918
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
11919
# if CDPATH is set.
 
11920
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
11921
 
 
11922
# The names of the tagged configurations supported by this script.
 
11923
available_tags=
 
11924
 
 
11925
# ### BEGIN LIBTOOL CONFIG
 
11926
 
 
11927
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
11928
 
 
11929
# Shell to use when invoking shell scripts.
 
11930
SHELL=$lt_SHELL
 
11931
 
 
11932
# Whether or not to build shared libraries.
 
11933
build_libtool_libs=$enable_shared
 
11934
 
 
11935
# Whether or not to build static libraries.
 
11936
build_old_libs=$enable_static
 
11937
 
 
11938
# Whether or not to add -lc for building shared libraries.
 
11939
build_libtool_need_lc=$archive_cmds_need_lc
 
11940
 
 
11941
# Whether or not to disallow shared libs when runtime libs are static
 
11942
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
11943
 
 
11944
# Whether or not to optimize for fast installation.
 
11945
fast_install=$enable_fast_install
 
11946
 
 
11947
# The host system.
 
11948
host_alias=$host_alias
 
11949
host=$host
 
11950
 
 
11951
# An echo program that does not interpret backslashes.
 
11952
echo=$lt_echo
 
11953
 
 
11954
# The archiver.
 
11955
AR=$lt_AR
 
11956
AR_FLAGS=$lt_AR_FLAGS
 
11957
 
 
11958
# A C compiler.
 
11959
LTCC=$lt_LTCC
 
11960
 
 
11961
# A language-specific compiler.
 
11962
CC=$lt_compiler
 
11963
 
 
11964
# Is the compiler the GNU C compiler?
 
11965
with_gcc=$GCC
 
11966
 
 
11967
# An ERE matcher.
 
11968
EGREP=$lt_EGREP
 
11969
 
 
11970
# The linker used to build libraries.
 
11971
LD=$lt_LD
 
11972
 
 
11973
# Whether we need hard or soft links.
 
11974
LN_S=$lt_LN_S
 
11975
 
 
11976
# A BSD-compatible nm program.
 
11977
NM=$lt_NM
 
11978
 
 
11979
# A symbol stripping program
 
11980
STRIP=$lt_STRIP
 
11981
 
 
11982
# Used to examine libraries when file_magic_cmd begins "file"
 
11983
MAGIC_CMD=$MAGIC_CMD
 
11984
 
 
11985
# Used on cygwin: DLL creation program.
 
11986
DLLTOOL="$DLLTOOL"
 
11987
 
 
11988
# Used on cygwin: object dumper.
 
11989
OBJDUMP="$OBJDUMP"
 
11990
 
 
11991
# Used on cygwin: assembler.
 
11992
AS="$AS"
 
11993
 
 
11994
# The name of the directory that contains temporary libtool files.
 
11995
objdir=$objdir
 
11996
 
 
11997
# How to create reloadable object files.
 
11998
reload_flag=$lt_reload_flag
 
11999
reload_cmds=$lt_reload_cmds
 
12000
 
 
12001
# How to pass a linker flag through the compiler.
 
12002
wl=$lt_lt_prog_compiler_wl
 
12003
 
 
12004
# Object file suffix (normally "o").
 
12005
objext="$ac_objext"
 
12006
 
 
12007
# Old archive suffix (normally "a").
 
12008
libext="$libext"
 
12009
 
 
12010
# Shared library suffix (normally ".so").
 
12011
shrext_cmds='$shrext_cmds'
 
12012
 
 
12013
# Executable file suffix (normally "").
 
12014
exeext="$exeext"
 
12015
 
 
12016
# Additional compiler flags for building library objects.
 
12017
pic_flag=$lt_lt_prog_compiler_pic
 
12018
pic_mode=$pic_mode
 
12019
 
 
12020
# What is the maximum length of a command?
 
12021
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12022
 
 
12023
# Does compiler simultaneously support -c and -o options?
 
12024
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
12025
 
 
12026
# Must we lock files when doing compilation ?
 
12027
need_locks=$lt_need_locks
 
12028
 
 
12029
# Do we need the lib prefix for modules?
 
12030
need_lib_prefix=$need_lib_prefix
 
12031
 
 
12032
# Do we need a version for libraries?
 
12033
need_version=$need_version
 
12034
 
 
12035
# Whether dlopen is supported.
 
12036
dlopen_support=$enable_dlopen
 
12037
 
 
12038
# Whether dlopen of programs is supported.
 
12039
dlopen_self=$enable_dlopen_self
 
12040
 
 
12041
# Whether dlopen of statically linked programs is supported.
 
12042
dlopen_self_static=$enable_dlopen_self_static
 
12043
 
 
12044
# Compiler flag to prevent dynamic linking.
 
12045
link_static_flag=$lt_lt_prog_compiler_static
 
12046
 
 
12047
# Compiler flag to turn off builtin functions.
 
12048
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
12049
 
 
12050
# Compiler flag to allow reflexive dlopens.
 
12051
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
12052
 
 
12053
# Compiler flag to generate shared objects directly from archives.
 
12054
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
12055
 
 
12056
# Compiler flag to generate thread-safe objects.
 
12057
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
12058
 
 
12059
# Library versioning type.
 
12060
version_type=$version_type
 
12061
 
 
12062
# Format of library name prefix.
 
12063
libname_spec=$lt_libname_spec
 
12064
 
 
12065
# List of archive names.  First name is the real one, the rest are links.
 
12066
# The last name is the one that the linker finds with -lNAME.
 
12067
library_names_spec=$lt_library_names_spec
 
12068
 
 
12069
# The coded name of the library, if different from the real name.
 
12070
soname_spec=$lt_soname_spec
 
12071
 
 
12072
# Commands used to build and install an old-style archive.
 
12073
RANLIB=$lt_RANLIB
 
12074
old_archive_cmds=$lt_old_archive_cmds
 
12075
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12076
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12077
 
 
12078
# Create an old-style archive from a shared archive.
 
12079
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
12080
 
 
12081
# Create a temporary old-style archive to link instead of a shared archive.
 
12082
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
12083
 
 
12084
# Commands used to build and install a shared archive.
 
12085
archive_cmds=$lt_archive_cmds
 
12086
archive_expsym_cmds=$lt_archive_expsym_cmds
 
12087
postinstall_cmds=$lt_postinstall_cmds
 
12088
postuninstall_cmds=$lt_postuninstall_cmds
 
12089
 
 
12090
# Commands used to build a loadable module (assumed same as above if empty)
 
12091
module_cmds=$lt_module_cmds
 
12092
module_expsym_cmds=$lt_module_expsym_cmds
 
12093
 
 
12094
# Commands to strip libraries.
 
12095
old_striplib=$lt_old_striplib
 
12096
striplib=$lt_striplib
 
12097
 
 
12098
# Dependencies to place before the objects being linked to create a
 
12099
# shared library.
 
12100
predep_objects=$lt_predep_objects
 
12101
 
 
12102
# Dependencies to place after the objects being linked to create a
 
12103
# shared library.
 
12104
postdep_objects=$lt_postdep_objects
 
12105
 
 
12106
# Dependencies to place before the objects being linked to create a
 
12107
# shared library.
 
12108
predeps=$lt_predeps
 
12109
 
 
12110
# Dependencies to place after the objects being linked to create a
 
12111
# shared library.
 
12112
postdeps=$lt_postdeps
 
12113
 
 
12114
# The library search path used internally by the compiler when linking
 
12115
# a shared library.
 
12116
compiler_lib_search_path=$lt_compiler_lib_search_path
 
12117
 
 
12118
# Method to check whether dependent libraries are shared objects.
 
12119
deplibs_check_method=$lt_deplibs_check_method
 
12120
 
 
12121
# Command to use when deplibs_check_method == file_magic.
 
12122
file_magic_cmd=$lt_file_magic_cmd
 
12123
 
 
12124
# Flag that allows shared libraries with undefined symbols to be built.
 
12125
allow_undefined_flag=$lt_allow_undefined_flag
 
12126
 
 
12127
# Flag that forces no undefined symbols.
 
12128
no_undefined_flag=$lt_no_undefined_flag
 
12129
 
 
12130
# Commands used to finish a libtool library installation in a directory.
 
12131
finish_cmds=$lt_finish_cmds
 
12132
 
 
12133
# Same as above, but a single script fragment to be evaled but not shown.
 
12134
finish_eval=$lt_finish_eval
 
12135
 
 
12136
# Take the output of nm and produce a listing of raw symbols and C names.
 
12137
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12138
 
 
12139
# Transform the output of nm in a proper C declaration
 
12140
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12141
 
 
12142
# Transform the output of nm in a C name address pair
 
12143
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12144
 
 
12145
# This is the shared library runtime path variable.
 
12146
runpath_var=$runpath_var
 
12147
 
 
12148
# This is the shared library path variable.
 
12149
shlibpath_var=$shlibpath_var
 
12150
 
 
12151
# Is shlibpath searched before the hard-coded library search path?
 
12152
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12153
 
 
12154
# How to hardcode a shared library path into an executable.
 
12155
hardcode_action=$hardcode_action
 
12156
 
 
12157
# Whether we should hardcode library paths into libraries.
 
12158
hardcode_into_libs=$hardcode_into_libs
 
12159
 
 
12160
# Flag to hardcode \$libdir into a binary during linking.
 
12161
# This must work even if \$libdir does not exist.
 
12162
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
12163
 
 
12164
# If ld is used when linking, flag to hardcode \$libdir into
 
12165
# a binary during linking. This must work even if \$libdir does
 
12166
# not exist.
 
12167
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
12168
 
 
12169
# Whether we need a single -rpath flag with a separated argument.
 
12170
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
12171
 
 
12172
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
12173
# resulting binary.
 
12174
hardcode_direct=$hardcode_direct
 
12175
 
 
12176
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
12177
# resulting binary.
 
12178
hardcode_minus_L=$hardcode_minus_L
 
12179
 
 
12180
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
12181
# the resulting binary.
 
12182
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
12183
 
 
12184
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
12185
# and all subsequent libraries and executables linked against it.
 
12186
hardcode_automatic=$hardcode_automatic
 
12187
 
 
12188
# Variables whose values should be saved in libtool wrapper scripts and
 
12189
# restored at relink time.
 
12190
variables_saved_for_relink="$variables_saved_for_relink"
 
12191
 
 
12192
# Whether libtool must link a program against all its dependency libraries.
 
12193
link_all_deplibs=$link_all_deplibs
 
12194
 
 
12195
# Compile-time system search path for libraries
 
12196
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
12197
 
 
12198
# Run-time system search path for libraries
 
12199
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
12200
 
 
12201
# Fix the shell variable \$srcfile for the compiler.
 
12202
fix_srcfile_path="$fix_srcfile_path"
 
12203
 
 
12204
# Set to yes if exported symbols are required.
 
12205
always_export_symbols=$always_export_symbols
 
12206
 
 
12207
# The commands to list exported symbols.
 
12208
export_symbols_cmds=$lt_export_symbols_cmds
 
12209
 
 
12210
# The commands to extract the exported symbol list from a shared archive.
 
12211
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
12212
 
 
12213
# Symbols that should not be listed in the preloaded symbols.
 
12214
exclude_expsyms=$lt_exclude_expsyms
 
12215
 
 
12216
# Symbols that must always be exported.
 
12217
include_expsyms=$lt_include_expsyms
 
12218
 
 
12219
# ### END LIBTOOL CONFIG
 
12220
 
 
12221
__EOF__
 
12222
 
 
12223
 
 
12224
  case $host_os in
 
12225
  aix3*)
 
12226
    cat <<\EOF >> "$cfgfile"
 
12227
 
 
12228
# AIX sometimes has problems with the GCC collect2 program.  For some
 
12229
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
12230
# vanish in a puff of smoke.
 
12231
if test "X${COLLECT_NAMES+set}" != Xset; then
 
12232
  COLLECT_NAMES=
 
12233
  export COLLECT_NAMES
 
12234
fi
 
12235
EOF
 
12236
    ;;
 
12237
  esac
 
12238
 
 
12239
  # We use sed instead of cat because bash on DJGPP gets confused if
 
12240
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
12241
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
12242
  # is reportedly fixed, but why not run on old versions too?
 
12243
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
12244
 
 
12245
  mv -f "$cfgfile" "$ofile" || \
 
12246
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
12247
  chmod +x "$ofile"
 
12248
 
 
12249
else
 
12250
  # If there is no Makefile yet, we rely on a make rule to execute
 
12251
  # `config.status --recheck' to rerun these tests and create the
 
12252
  # libtool script then.
 
12253
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
12254
  if test -f "$ltmain_in"; then
 
12255
    test -f Makefile && make "$ltmain"
 
12256
  fi
 
12257
fi
 
12258
 
 
12259
 
 
12260
ac_ext=c
 
12261
ac_cpp='$CPP $CPPFLAGS'
 
12262
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12263
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12264
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12265
 
 
12266
CC="$lt_save_CC"
 
12267
 
 
12268
 
 
12269
# Check whether --with-tags or --without-tags was given.
 
12270
if test "${with_tags+set}" = set; then
 
12271
  withval="$with_tags"
 
12272
  tagnames="$withval"
 
12273
fi; 
 
12274
 
 
12275
if test -f "$ltmain" && test -n "$tagnames"; then
 
12276
  if test ! -f "${ofile}"; then
 
12277
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
12278
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
12279
  fi
 
12280
 
 
12281
  if test -z "$LTCC"; then
 
12282
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
12283
    if test -z "$LTCC"; then
 
12284
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
12285
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
12286
    else
 
12287
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
12288
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
12289
    fi
 
12290
  fi
 
12291
 
 
12292
  # Extract list of available tagged configurations in $ofile.
 
12293
  # Note that this assumes the entire list is on one line.
 
12294
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
12295
 
 
12296
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
12297
  for tagname in $tagnames; do
 
12298
    IFS="$lt_save_ifs"
 
12299
    # Check whether tagname contains only valid characters
 
12300
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
12301
    "") ;;
 
12302
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
12303
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
12304
   { (exit 1); exit 1; }; }
 
12305
        ;;
 
12306
    esac
 
12307
 
 
12308
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
12309
    then
 
12310
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
12311
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
12312
   { (exit 1); exit 1; }; }
 
12313
    fi
 
12314
 
 
12315
    # Update the list of available tags.
 
12316
    if test -n "$tagname"; then
 
12317
      echo appending configuration tag \"$tagname\" to $ofile
 
12318
 
 
12319
      case $tagname in
 
12320
      CXX)
 
12321
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
12322
          ac_ext=cc
 
12323
ac_cpp='$CXXCPP $CPPFLAGS'
 
12324
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12325
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12326
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12327
 
 
12328
 
 
12329
 
 
12330
 
 
12331
archive_cmds_need_lc_CXX=no
 
12332
allow_undefined_flag_CXX=
 
12333
always_export_symbols_CXX=no
 
12334
archive_expsym_cmds_CXX=
 
12335
export_dynamic_flag_spec_CXX=
 
12336
hardcode_direct_CXX=no
 
12337
hardcode_libdir_flag_spec_CXX=
 
12338
hardcode_libdir_flag_spec_ld_CXX=
 
12339
hardcode_libdir_separator_CXX=
 
12340
hardcode_minus_L_CXX=no
 
12341
hardcode_automatic_CXX=no
 
12342
module_cmds_CXX=
 
12343
module_expsym_cmds_CXX=
 
12344
link_all_deplibs_CXX=unknown
 
12345
old_archive_cmds_CXX=$old_archive_cmds
 
12346
no_undefined_flag_CXX=
 
12347
whole_archive_flag_spec_CXX=
 
12348
enable_shared_with_static_runtimes_CXX=no
 
12349
 
 
12350
# Dependencies to place before and after the object being linked:
 
12351
predep_objects_CXX=
 
12352
postdep_objects_CXX=
 
12353
predeps_CXX=
 
12354
postdeps_CXX=
 
12355
compiler_lib_search_path_CXX=
 
12356
 
 
12357
# Source file extension for C++ test sources.
 
12358
ac_ext=cc
 
12359
 
 
12360
# Object file extension for compiled C++ test sources.
 
12361
objext=o
 
12362
objext_CXX=$objext
 
12363
 
 
12364
# Code to be used in simple compile tests
 
12365
lt_simple_compile_test_code="int some_variable = 0;\n"
 
12366
 
 
12367
# Code to be used in simple link tests
 
12368
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
12369
 
 
12370
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12371
 
 
12372
# If no C compiler was specified, use CC.
 
12373
LTCC=${LTCC-"$CC"}
 
12374
 
 
12375
# Allow CC to be a program name with arguments.
 
12376
compiler=$CC
 
12377
 
 
12378
 
 
12379
# Allow CC to be a program name with arguments.
 
12380
lt_save_CC=$CC
 
12381
lt_save_LD=$LD
 
12382
lt_save_GCC=$GCC
 
12383
GCC=$GXX
 
12384
lt_save_with_gnu_ld=$with_gnu_ld
 
12385
lt_save_path_LD=$lt_cv_path_LD
 
12386
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
12387
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
12388
else
 
12389
  unset lt_cv_prog_gnu_ld
 
12390
fi
 
12391
if test -n "${lt_cv_path_LDCXX+set}"; then
 
12392
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
12393
else
 
12394
  unset lt_cv_path_LD
 
12395
fi
 
12396
test -z "${LDCXX+set}" || LD=$LDCXX
 
12397
CC=${CXX-"c++"}
 
12398
compiler=$CC
 
12399
compiler_CXX=$CC
 
12400
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
12401
 
 
12402
# We don't want -fno-exception wen compiling C++ code, so set the
 
12403
# no_builtin_flag separately
 
12404
if test "$GXX" = yes; then
 
12405
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
12406
else
 
12407
  lt_prog_compiler_no_builtin_flag_CXX=
 
12408
fi
 
12409
 
 
12410
if test "$GXX" = yes; then
 
12411
  # Set up default GNU C++ configuration
 
12412
 
 
12413
  
 
12414
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
12415
if test "${with_gnu_ld+set}" = set; then
 
12416
  withval="$with_gnu_ld"
 
12417
  test "$withval" = no || with_gnu_ld=yes
 
12418
else
 
12419
  with_gnu_ld=no
 
12420
fi; 
 
12421
ac_prog=ld
 
12422
if test "$GCC" = yes; then
 
12423
  # Check if gcc -print-prog-name=ld gives a path.
 
12424
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
12425
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
12426
  case $host in
 
12427
  *-*-mingw*)
 
12428
    # gcc leaves a trailing carriage return which upsets mingw
 
12429
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12430
  *)
 
12431
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12432
  esac
 
12433
  case $ac_prog in
 
12434
    # Accept absolute paths.
 
12435
    [\\/]* | ?:[\\/]*)
 
12436
      re_direlt='/[^/][^/]*/\.\./'
 
12437
      # Canonicalize the pathname of ld
 
12438
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
12439
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
12440
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
12441
      done
 
12442
      test -z "$LD" && LD="$ac_prog"
 
12443
      ;;
 
12444
  "")
 
12445
    # If it fails, then pretend we aren't using GCC.
 
12446
    ac_prog=ld
 
12447
    ;;
 
12448
  *)
 
12449
    # If it is relative, then search for the first ld in PATH.
 
12450
    with_gnu_ld=unknown
 
12451
    ;;
 
12452
  esac
 
12453
elif test "$with_gnu_ld" = yes; then
 
12454
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
12455
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
12456
else
 
12457
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
12458
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
12459
fi
 
12460
if test "${lt_cv_path_LD+set}" = set; then
 
12461
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12462
else
 
12463
  if test -z "$LD"; then
 
12464
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
12465
  for ac_dir in $PATH; do
 
12466
    IFS="$lt_save_ifs"
 
12467
    test -z "$ac_dir" && ac_dir=.
 
12468
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12469
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
12470
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12471
      # but apparently some GNU ld's only accept -v.
 
12472
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12473
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
12474
      *GNU* | *'with BFD'*)
 
12475
        test "$with_gnu_ld" != no && break
 
12476
        ;;
 
12477
      *)
 
12478
        test "$with_gnu_ld" != yes && break
 
12479
        ;;
 
12480
      esac
 
12481
    fi
 
12482
  done
 
12483
  IFS="$lt_save_ifs"
 
12484
else
 
12485
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
12486
fi
 
12487
fi
 
12488
 
 
12489
LD="$lt_cv_path_LD"
 
12490
if test -n "$LD"; then
 
12491
  echo "$as_me:$LINENO: result: $LD" >&5
 
12492
echo "${ECHO_T}$LD" >&6
 
12493
else
 
12494
  echo "$as_me:$LINENO: result: no" >&5
 
12495
echo "${ECHO_T}no" >&6
 
12496
fi
 
12497
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
12498
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
12499
   { (exit 1); exit 1; }; }
 
12500
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
12501
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
12502
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
12503
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12504
else
 
12505
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
12506
case `$LD -v 2>&1 </dev/null` in
 
12507
*GNU* | *'with BFD'*)
 
12508
  lt_cv_prog_gnu_ld=yes
 
12509
  ;;
 
12510
*)
 
12511
  lt_cv_prog_gnu_ld=no
 
12512
  ;;
 
12513
esac
 
12514
fi
 
12515
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
12516
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
12517
with_gnu_ld=$lt_cv_prog_gnu_ld
 
12518
 
 
12519
 
 
12520
 
 
12521
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
12522
  # archiving commands below assume that GNU ld is being used.
 
12523
  if test "$with_gnu_ld" = yes; then
 
12524
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12525
    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'
 
12526
 
 
12527
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12528
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12529
 
 
12530
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
12531
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
12532
    #     investigate it a little bit more. (MM)
 
12533
    wlarc='${wl}'
 
12534
 
 
12535
    # ancient GNU ld didn't support --whole-archive et. al.
 
12536
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
12537
        grep 'no-whole-archive' > /dev/null; then
 
12538
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12539
    else
 
12540
      whole_archive_flag_spec_CXX=
 
12541
    fi
 
12542
  else
 
12543
    with_gnu_ld=no
 
12544
    wlarc=
 
12545
 
 
12546
    # A generic and very simple default shared library creation
 
12547
    # command for GNU C++ for the case where it uses the native
 
12548
    # linker, instead of GNU ld.  If possible, this setting should
 
12549
    # overridden to take advantage of the native linker features on
 
12550
    # the platform it is being used on.
 
12551
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12552
  fi
 
12553
 
 
12554
  # Commands to make compiler produce verbose output that lists
 
12555
  # what "hidden" libraries, object files and flags are used when
 
12556
  # linking a shared library.
 
12557
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12558
 
 
12559
else
 
12560
  GXX=no
 
12561
  with_gnu_ld=no
 
12562
  wlarc=
 
12563
fi
 
12564
 
 
12565
# PORTME: fill in a description of your system's C++ link characteristics
 
12566
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12567
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
12568
ld_shlibs_CXX=yes
 
12569
case $host_os in
 
12570
  aix3*)
 
12571
    # FIXME: insert proper C++ library support
 
12572
    ld_shlibs_CXX=no
 
12573
    ;;
 
12574
  aix4* | aix5*)
 
12575
    if test "$host_cpu" = ia64; then
 
12576
      # On IA64, the linker does run time linking by default, so we don't
 
12577
      # have to do anything special.
 
12578
      aix_use_runtimelinking=no
 
12579
      exp_sym_flag='-Bexport'
 
12580
      no_entry_flag=""
 
12581
    else
 
12582
      aix_use_runtimelinking=no
 
12583
 
 
12584
      # Test if we are trying to use run time linking or normal
 
12585
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
12586
      # need to do runtime linking.
 
12587
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
12588
        for ld_flag in $LDFLAGS; do
 
12589
          case $ld_flag in
 
12590
          *-brtl*)
 
12591
            aix_use_runtimelinking=yes
 
12592
            break
 
12593
            ;;
 
12594
          esac
 
12595
        done
 
12596
      esac
 
12597
 
 
12598
      exp_sym_flag='-bexport'
 
12599
      no_entry_flag='-bnoentry'
 
12600
    fi
 
12601
 
 
12602
    # When large executables or shared objects are built, AIX ld can
 
12603
    # have problems creating the table of contents.  If linking a library
 
12604
    # or program results in "error TOC overflow" add -mminimal-toc to
 
12605
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
12606
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
12607
 
 
12608
    archive_cmds_CXX=''
 
12609
    hardcode_direct_CXX=yes
 
12610
    hardcode_libdir_separator_CXX=':'
 
12611
    link_all_deplibs_CXX=yes
 
12612
 
 
12613
    if test "$GXX" = yes; then
 
12614
      case $host_os in aix4.012|aix4.012.*)
 
12615
      # We only want to do this on AIX 4.2 and lower, the check
 
12616
      # below for broken collect2 doesn't work under 4.3+
 
12617
        collect2name=`${CC} -print-prog-name=collect2`
 
12618
        if test -f "$collect2name" && \
 
12619
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
12620
        then
 
12621
          # We have reworked collect2
 
12622
          hardcode_direct_CXX=yes
 
12623
        else
 
12624
          # We have old collect2
 
12625
          hardcode_direct_CXX=unsupported
 
12626
          # It fails to find uninstalled libraries when the uninstalled
 
12627
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
12628
          # to unsupported forces relinking
 
12629
          hardcode_minus_L_CXX=yes
 
12630
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12631
          hardcode_libdir_separator_CXX=
 
12632
        fi
 
12633
      esac
 
12634
      shared_flag='-shared'
 
12635
    else
 
12636
      # not using gcc
 
12637
      if test "$host_cpu" = ia64; then
 
12638
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
12639
        # chokes on -Wl,-G. The following line is correct:
 
12640
        shared_flag='-G'
 
12641
      else
 
12642
        if test "$aix_use_runtimelinking" = yes; then
 
12643
          shared_flag='${wl}-G'
 
12644
        else
 
12645
          shared_flag='${wl}-bM:SRE'
 
12646
        fi
 
12647
      fi
 
12648
    fi
 
12649
 
 
12650
    # It seems that -bexpall does not export symbols beginning with
 
12651
    # underscore (_), so it is better to generate a list of symbols to export.
 
12652
    always_export_symbols_CXX=yes
 
12653
    if test "$aix_use_runtimelinking" = yes; then
 
12654
      # Warning - without using the other runtime loading flags (-brtl),
 
12655
      # -berok will link without error, but may produce a broken library.
 
12656
      allow_undefined_flag_CXX='-berok'
 
12657
      # Determine the default libpath from the value encoded in an empty executable.
 
12658
      cat >conftest.$ac_ext <<_ACEOF
 
12659
/* confdefs.h.  */
 
12660
_ACEOF
 
12661
cat confdefs.h >>conftest.$ac_ext
 
12662
cat >>conftest.$ac_ext <<_ACEOF
 
12663
/* end confdefs.h.  */
 
12664
 
 
12665
int
 
12666
main ()
 
12667
{
 
12668
 
 
12669
  ;
 
12670
  return 0;
 
12671
}
 
12672
_ACEOF
 
12673
rm -f conftest.$ac_objext conftest$ac_exeext
 
12674
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12675
  (eval $ac_link) 2>conftest.er1
 
12676
  ac_status=$?
 
12677
  grep -v '^ *+' conftest.er1 >conftest.err
 
12678
  rm -f conftest.er1
 
12679
  cat conftest.err >&5
 
12680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12681
  (exit $ac_status); } &&
 
12682
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12683
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12684
  (eval $ac_try) 2>&5
 
12685
  ac_status=$?
 
12686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12687
  (exit $ac_status); }; } &&
 
12688
         { ac_try='test -s conftest$ac_exeext'
 
12689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12690
  (eval $ac_try) 2>&5
 
12691
  ac_status=$?
 
12692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12693
  (exit $ac_status); }; }; then
 
12694
  
 
12695
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
12696
}'`
 
12697
# Check for a 64-bit object if we didn't find anything.
 
12698
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; }
 
12699
}'`; fi
 
12700
else
 
12701
  echo "$as_me: failed program was:" >&5
 
12702
sed 's/^/| /' conftest.$ac_ext >&5
 
12703
 
 
12704
fi
 
12705
rm -f conftest.err conftest.$ac_objext \
 
12706
      conftest$ac_exeext conftest.$ac_ext
 
12707
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12708
 
 
12709
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12710
 
 
12711
      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"
 
12712
     else
 
12713
      if test "$host_cpu" = ia64; then
 
12714
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
12715
        allow_undefined_flag_CXX="-z nodefs"
 
12716
        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"
 
12717
      else
 
12718
        # Determine the default libpath from the value encoded in an empty executable.
 
12719
        cat >conftest.$ac_ext <<_ACEOF
 
12720
/* confdefs.h.  */
 
12721
_ACEOF
 
12722
cat confdefs.h >>conftest.$ac_ext
 
12723
cat >>conftest.$ac_ext <<_ACEOF
 
12724
/* end confdefs.h.  */
 
12725
 
 
12726
int
 
12727
main ()
 
12728
{
 
12729
 
 
12730
  ;
 
12731
  return 0;
 
12732
}
 
12733
_ACEOF
 
12734
rm -f conftest.$ac_objext conftest$ac_exeext
 
12735
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12736
  (eval $ac_link) 2>conftest.er1
 
12737
  ac_status=$?
 
12738
  grep -v '^ *+' conftest.er1 >conftest.err
 
12739
  rm -f conftest.er1
 
12740
  cat conftest.err >&5
 
12741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12742
  (exit $ac_status); } &&
 
12743
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12745
  (eval $ac_try) 2>&5
 
12746
  ac_status=$?
 
12747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12748
  (exit $ac_status); }; } &&
 
12749
         { ac_try='test -s conftest$ac_exeext'
 
12750
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12751
  (eval $ac_try) 2>&5
 
12752
  ac_status=$?
 
12753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12754
  (exit $ac_status); }; }; then
 
12755
  
 
12756
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
12757
}'`
 
12758
# Check for a 64-bit object if we didn't find anything.
 
12759
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; }
 
12760
}'`; fi
 
12761
else
 
12762
  echo "$as_me: failed program was:" >&5
 
12763
sed 's/^/| /' conftest.$ac_ext >&5
 
12764
 
 
12765
fi
 
12766
rm -f conftest.err conftest.$ac_objext \
 
12767
      conftest$ac_exeext conftest.$ac_ext
 
12768
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12769
 
 
12770
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12771
        # Warning - without using the other run time loading flags,
 
12772
        # -berok will link without error, but may produce a broken library.
 
12773
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
12774
        allow_undefined_flag_CXX=' ${wl}-berok'
 
12775
        # -bexpall does not export symbols beginning with underscore (_)
 
12776
        always_export_symbols_CXX=yes
 
12777
        # Exported symbols can be pulled into shared objects from archives
 
12778
        whole_archive_flag_spec_CXX=' '
 
12779
        archive_cmds_need_lc_CXX=yes
 
12780
        # This is similar to how AIX traditionally builds it's shared libraries.
 
12781
        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'
 
12782
      fi
 
12783
    fi
 
12784
    ;;
 
12785
  chorus*)
 
12786
    case $cc_basename in
 
12787
      *)
 
12788
        # FIXME: insert proper C++ library support
 
12789
        ld_shlibs_CXX=no
 
12790
        ;;
 
12791
    esac
 
12792
    ;;
 
12793
 
 
12794
  cygwin* | mingw* | pw32*)
 
12795
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12796
    # as there is no search path for DLLs.
 
12797
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12798
    allow_undefined_flag_CXX=unsupported
 
12799
    always_export_symbols_CXX=no
 
12800
    enable_shared_with_static_runtimes_CXX=yes
 
12801
 
 
12802
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
12803
      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'
 
12804
      # If the export-symbols file already is a .def file (1st line
 
12805
      # is EXPORTS), use it as is; otherwise, prepend...
 
12806
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12807
        cp $export_symbols $output_objdir/$soname.def;
 
12808
      else
 
12809
        echo EXPORTS > $output_objdir/$soname.def;
 
12810
        cat $export_symbols >> $output_objdir/$soname.def;
 
12811
      fi~
 
12812
      $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'
 
12813
    else
 
12814
      ld_shlibs_CXX=no
 
12815
    fi
 
12816
  ;;
 
12817
 
 
12818
  darwin* | rhapsody*)
 
12819
  if test "$GXX" = yes; then
 
12820
    archive_cmds_need_lc_CXX=no
 
12821
    case "$host_os" in
 
12822
    rhapsody* | darwin1.[012])
 
12823
      allow_undefined_flag_CXX='-undefined suppress'
 
12824
      ;;
 
12825
    *) # Darwin 1.3 on
 
12826
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
12827
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
12828
      else
 
12829
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
12830
          10.[012])
 
12831
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
12832
            ;;
 
12833
          10.*)
 
12834
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
12835
            ;;
 
12836
        esac
 
12837
      fi
 
12838
      ;;
 
12839
    esac
 
12840
    lt_int_apple_cc_single_mod=no
 
12841
    output_verbose_link_cmd='echo'
 
12842
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
12843
      lt_int_apple_cc_single_mod=yes
 
12844
    fi
 
12845
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12846
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
12847
    else
 
12848
      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'
 
12849
    fi
 
12850
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
12851
 
 
12852
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
12853
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12854
      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}'
 
12855
    else
 
12856
      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}'
 
12857
    fi
 
12858
    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}'
 
12859
    hardcode_direct_CXX=no
 
12860
    hardcode_automatic_CXX=yes
 
12861
    hardcode_shlibpath_var_CXX=unsupported
 
12862
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
12863
    link_all_deplibs_CXX=yes
 
12864
  else
 
12865
    ld_shlibs_CXX=no
 
12866
  fi
 
12867
    ;;
 
12868
 
 
12869
  dgux*)
 
12870
    case $cc_basename in
 
12871
      ec++)
 
12872
        # FIXME: insert proper C++ library support
 
12873
        ld_shlibs_CXX=no
 
12874
        ;;
 
12875
      ghcx)
 
12876
        # Green Hills C++ Compiler
 
12877
        # FIXME: insert proper C++ library support
 
12878
        ld_shlibs_CXX=no
 
12879
        ;;
 
12880
      *)
 
12881
        # FIXME: insert proper C++ library support
 
12882
        ld_shlibs_CXX=no
 
12883
        ;;
 
12884
    esac
 
12885
    ;;
 
12886
  freebsd12*)
 
12887
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
12888
    ld_shlibs_CXX=no
 
12889
    ;;
 
12890
  freebsd-elf*)
 
12891
    archive_cmds_need_lc_CXX=no
 
12892
    ;;
 
12893
  freebsd* | kfreebsd*-gnu)
 
12894
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12895
    # conventions
 
12896
    ld_shlibs_CXX=yes
 
12897
    ;;
 
12898
  gnu*)
 
12899
    ;;
 
12900
  hpux9*)
 
12901
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12902
    hardcode_libdir_separator_CXX=:
 
12903
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12904
    hardcode_direct_CXX=yes
 
12905
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12906
                                # but as the default
 
12907
                                # location of the library.
 
12908
 
 
12909
    case $cc_basename in
 
12910
    CC)
 
12911
      # FIXME: insert proper C++ library support
 
12912
      ld_shlibs_CXX=no
 
12913
      ;;
 
12914
    aCC)
 
12915
      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'
 
12916
      # Commands to make compiler produce verbose output that lists
 
12917
      # what "hidden" libraries, object files and flags are used when
 
12918
      # linking a shared library.
 
12919
      #
 
12920
      # There doesn't appear to be a way to prevent this compiler from
 
12921
      # explicitly linking system object files so we need to strip them
 
12922
      # from the output so that they don't get included in the library
 
12923
      # dependencies.
 
12924
      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'
 
12925
      ;;
 
12926
    *)
 
12927
      if test "$GXX" = yes; then
 
12928
        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'
 
12929
      else
 
12930
        # FIXME: insert proper C++ library support
 
12931
        ld_shlibs_CXX=no
 
12932
      fi
 
12933
      ;;
 
12934
    esac
 
12935
    ;;
 
12936
  hpux10*|hpux11*)
 
12937
    if test $with_gnu_ld = no; then
 
12938
      case "$host_cpu" in
 
12939
      hppa*64*)
 
12940
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12941
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
12942
        hardcode_libdir_separator_CXX=:
 
12943
        ;;
 
12944
      ia64*)
 
12945
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12946
        ;;
 
12947
      *)
 
12948
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12949
        hardcode_libdir_separator_CXX=:
 
12950
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12951
        ;;
 
12952
      esac
 
12953
    fi
 
12954
    case "$host_cpu" in
 
12955
    hppa*64*)
 
12956
      hardcode_direct_CXX=no
 
12957
      hardcode_shlibpath_var_CXX=no
 
12958
      ;;
 
12959
    ia64*)
 
12960
      hardcode_direct_CXX=no
 
12961
      hardcode_shlibpath_var_CXX=no
 
12962
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12963
                                              # but as the default
 
12964
                                              # location of the library.
 
12965
      ;;
 
12966
    *)
 
12967
      hardcode_direct_CXX=yes
 
12968
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12969
                                              # but as the default
 
12970
                                              # location of the library.
 
12971
      ;;
 
12972
    esac
 
12973
 
 
12974
    case $cc_basename in
 
12975
      CC)
 
12976
        # FIXME: insert proper C++ library support
 
12977
        ld_shlibs_CXX=no
 
12978
        ;;
 
12979
      aCC)
 
12980
        case "$host_cpu" in
 
12981
        hppa*64*|ia64*)
 
12982
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
12983
          ;;
 
12984
        *)
 
12985
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12986
          ;;
 
12987
        esac
 
12988
        # Commands to make compiler produce verbose output that lists
 
12989
        # what "hidden" libraries, object files and flags are used when
 
12990
        # linking a shared library.
 
12991
        #
 
12992
        # There doesn't appear to be a way to prevent this compiler from
 
12993
        # explicitly linking system object files so we need to strip them
 
12994
        # from the output so that they don't get included in the library
 
12995
        # dependencies.
 
12996
        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'
 
12997
        ;;
 
12998
      *)
 
12999
        if test "$GXX" = yes; then
 
13000
          if test $with_gnu_ld = no; then
 
13001
            case "$host_cpu" in
 
13002
            ia64*|hppa*64*)
 
13003
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
13004
              ;;
 
13005
            *)
 
13006
              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'
 
13007
              ;;
 
13008
            esac
 
13009
          fi
 
13010
        else
 
13011
          # FIXME: insert proper C++ library support
 
13012
          ld_shlibs_CXX=no
 
13013
        fi
 
13014
        ;;
 
13015
    esac
 
13016
    ;;
 
13017
  irix5* | irix6*)
 
13018
    case $cc_basename in
 
13019
      CC)
 
13020
        # SGI C++
 
13021
        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'
 
13022
 
 
13023
        # Archives containing C++ object files must be created using
 
13024
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
13025
        # necessary to make sure instantiated templates are included
 
13026
        # in the archive.
 
13027
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
13028
        ;;
 
13029
      *)
 
13030
        if test "$GXX" = yes; then
 
13031
          if test "$with_gnu_ld" = no; then
 
13032
            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'
 
13033
          else
 
13034
            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'
 
13035
          fi
 
13036
        fi
 
13037
        link_all_deplibs_CXX=yes
 
13038
        ;;
 
13039
    esac
 
13040
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13041
    hardcode_libdir_separator_CXX=:
 
13042
    ;;
 
13043
  linux*)
 
13044
    case $cc_basename in
 
13045
      KCC)
 
13046
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13047
 
 
13048
        # KCC will only create a shared library if the output file
 
13049
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13050
        # to its proper name (with version) after linking.
 
13051
        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'
 
13052
        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'
 
13053
        # Commands to make compiler produce verbose output that lists
 
13054
        # what "hidden" libraries, object files and flags are used when
 
13055
        # linking a shared library.
 
13056
        #
 
13057
        # There doesn't appear to be a way to prevent this compiler from
 
13058
        # explicitly linking system object files so we need to strip them
 
13059
        # from the output so that they don't get included in the library
 
13060
        # dependencies.
 
13061
        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'
 
13062
 
 
13063
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
13064
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13065
 
 
13066
        # Archives containing C++ object files must be created using
 
13067
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13068
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13069
        ;;
 
13070
      icpc)
 
13071
        # Intel C++
 
13072
        with_gnu_ld=yes
 
13073
        archive_cmds_need_lc_CXX=no
 
13074
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13075
        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'
 
13076
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13077
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13078
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13079
        ;;
 
13080
      cxx)
 
13081
        # Compaq C++
 
13082
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13083
        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'
 
13084
 
 
13085
        runpath_var=LD_RUN_PATH
 
13086
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13087
        hardcode_libdir_separator_CXX=:
 
13088
 
 
13089
        # Commands to make compiler produce verbose output that lists
 
13090
        # what "hidden" libraries, object files and flags are used when
 
13091
        # linking a shared library.
 
13092
        #
 
13093
        # There doesn't appear to be a way to prevent this compiler from
 
13094
        # explicitly linking system object files so we need to strip them
 
13095
        # from the output so that they don't get included in the library
 
13096
        # dependencies.
 
13097
        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'
 
13098
        ;;
 
13099
    esac
 
13100
    ;;
 
13101
  lynxos*)
 
13102
    # FIXME: insert proper C++ library support
 
13103
    ld_shlibs_CXX=no
 
13104
    ;;
 
13105
  m88k*)
 
13106
    # FIXME: insert proper C++ library support
 
13107
    ld_shlibs_CXX=no
 
13108
    ;;
 
13109
  mvs*)
 
13110
    case $cc_basename in
 
13111
      cxx)
 
13112
        # FIXME: insert proper C++ library support
 
13113
        ld_shlibs_CXX=no
 
13114
        ;;
 
13115
      *)
 
13116
        # FIXME: insert proper C++ library support
 
13117
        ld_shlibs_CXX=no
 
13118
        ;;
 
13119
    esac
 
13120
    ;;
 
13121
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
13122
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13123
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
13124
      wlarc=
 
13125
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13126
      hardcode_direct_CXX=yes
 
13127
      hardcode_shlibpath_var_CXX=no
 
13128
    fi
 
13129
    # Workaround some broken pre-1.5 toolchains
 
13130
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
13131
    ;;
 
13132
  osf3*)
 
13133
    case $cc_basename in
 
13134
      KCC)
 
13135
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13136
 
 
13137
        # KCC will only create a shared library if the output file
 
13138
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13139
        # to its proper name (with version) after linking.
 
13140
        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'
 
13141
 
 
13142
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13143
        hardcode_libdir_separator_CXX=:
 
13144
 
 
13145
        # Archives containing C++ object files must be created using
 
13146
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13147
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13148
 
 
13149
        ;;
 
13150
      RCC)
 
13151
        # Rational C++ 2.4.1
 
13152
        # FIXME: insert proper C++ library support
 
13153
        ld_shlibs_CXX=no
 
13154
        ;;
 
13155
      cxx)
 
13156
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13157
        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'
 
13158
 
 
13159
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13160
        hardcode_libdir_separator_CXX=:
 
13161
 
 
13162
        # Commands to make compiler produce verbose output that lists
 
13163
        # what "hidden" libraries, object files and flags are used when
 
13164
        # linking a shared library.
 
13165
        #
 
13166
        # There doesn't appear to be a way to prevent this compiler from
 
13167
        # explicitly linking system object files so we need to strip them
 
13168
        # from the output so that they don't get included in the library
 
13169
        # dependencies.
 
13170
        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'
 
13171
        ;;
 
13172
      *)
 
13173
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13174
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13175
          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'
 
13176
 
 
13177
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13178
          hardcode_libdir_separator_CXX=:
 
13179
 
 
13180
          # Commands to make compiler produce verbose output that lists
 
13181
          # what "hidden" libraries, object files and flags are used when
 
13182
          # linking a shared library.
 
13183
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
13184
 
 
13185
        else
 
13186
          # FIXME: insert proper C++ library support
 
13187
          ld_shlibs_CXX=no
 
13188
        fi
 
13189
        ;;
 
13190
    esac
 
13191
    ;;
 
13192
  osf4* | osf5*)
 
13193
    case $cc_basename in
 
13194
      KCC)
 
13195
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13196
 
 
13197
        # KCC will only create a shared library if the output file
 
13198
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13199
        # to its proper name (with version) after linking.
 
13200
        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'
 
13201
 
 
13202
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13203
        hardcode_libdir_separator_CXX=:
 
13204
 
 
13205
        # Archives containing C++ object files must be created using
 
13206
        # the KAI C++ compiler.
 
13207
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
13208
        ;;
 
13209
      RCC)
 
13210
        # Rational C++ 2.4.1
 
13211
        # FIXME: insert proper C++ library support
 
13212
        ld_shlibs_CXX=no
 
13213
        ;;
 
13214
      cxx)
 
13215
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
13216
        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'
 
13217
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
13218
          echo "-hidden">> $lib.exp~
 
13219
          $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~
 
13220
          $rm $lib.exp'
 
13221
 
 
13222
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13223
        hardcode_libdir_separator_CXX=:
 
13224
 
 
13225
        # Commands to make compiler produce verbose output that lists
 
13226
        # what "hidden" libraries, object files and flags are used when
 
13227
        # linking a shared library.
 
13228
        #
 
13229
        # There doesn't appear to be a way to prevent this compiler from
 
13230
        # explicitly linking system object files so we need to strip them
 
13231
        # from the output so that they don't get included in the library
 
13232
        # dependencies.
 
13233
        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'
 
13234
        ;;
 
13235
      *)
 
13236
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13237
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13238
         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'
 
13239
 
 
13240
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13241
          hardcode_libdir_separator_CXX=:
 
13242
 
 
13243
          # Commands to make compiler produce verbose output that lists
 
13244
          # what "hidden" libraries, object files and flags are used when
 
13245
          # linking a shared library.
 
13246
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
13247
 
 
13248
        else
 
13249
          # FIXME: insert proper C++ library support
 
13250
          ld_shlibs_CXX=no
 
13251
        fi
 
13252
        ;;
 
13253
    esac
 
13254
    ;;
 
13255
  psos*)
 
13256
    # FIXME: insert proper C++ library support
 
13257
    ld_shlibs_CXX=no
 
13258
    ;;
 
13259
  sco*)
 
13260
    archive_cmds_need_lc_CXX=no
 
13261
    case $cc_basename in
 
13262
      CC)
 
13263
        # FIXME: insert proper C++ library support
 
13264
        ld_shlibs_CXX=no
 
13265
        ;;
 
13266
      *)
 
13267
        # FIXME: insert proper C++ library support
 
13268
        ld_shlibs_CXX=no
 
13269
        ;;
 
13270
    esac
 
13271
    ;;
 
13272
  sunos4*)
 
13273
    case $cc_basename in
 
13274
      CC)
 
13275
        # Sun C++ 4.x
 
13276
        # FIXME: insert proper C++ library support
 
13277
        ld_shlibs_CXX=no
 
13278
        ;;
 
13279
      lcc)
 
13280
        # Lucid
 
13281
        # FIXME: insert proper C++ library support
 
13282
        ld_shlibs_CXX=no
 
13283
        ;;
 
13284
      *)
 
13285
        # FIXME: insert proper C++ library support
 
13286
        ld_shlibs_CXX=no
 
13287
        ;;
 
13288
    esac
 
13289
    ;;
 
13290
  solaris*)
 
13291
    case $cc_basename in
 
13292
      CC)
 
13293
        # Sun C++ 4.2, 5.x and Centerline C++
 
13294
        no_undefined_flag_CXX=' -zdefs'
 
13295
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13296
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13297
        $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'
 
13298
 
 
13299
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13300
        hardcode_shlibpath_var_CXX=no
 
13301
        case $host_os in
 
13302
          solaris2.0-5 | solaris2.0-5.*) ;;
 
13303
          *)
 
13304
            # The C++ compiler is used as linker so we must use $wl
 
13305
            # flag to pass the commands to the underlying system
 
13306
            # linker.
 
13307
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13308
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
13309
            ;;
 
13310
        esac
 
13311
        link_all_deplibs_CXX=yes
 
13312
 
 
13313
        # Commands to make compiler produce verbose output that lists
 
13314
        # what "hidden" libraries, object files and flags are used when
 
13315
        # linking a shared library.
 
13316
        #
 
13317
        # There doesn't appear to be a way to prevent this compiler from
 
13318
        # explicitly linking system object files so we need to strip them
 
13319
        # from the output so that they don't get included in the library
 
13320
        # dependencies.
 
13321
        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'
 
13322
 
 
13323
        # Archives containing C++ object files must be created using
 
13324
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13325
        # necessary to make sure instantiated templates are included
 
13326
        # in the archive.
 
13327
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13328
        ;;
 
13329
      gcx)
 
13330
        # Green Hills C++ Compiler
 
13331
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13332
 
 
13333
        # The C++ compiler must be used to create the archive.
 
13334
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
13335
        ;;
 
13336
      *)
 
13337
        # GNU C++ compiler with Solaris linker
 
13338
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13339
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
13340
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
13341
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13342
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13343
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
13344
 
 
13345
            # Commands to make compiler produce verbose output that lists
 
13346
            # what "hidden" libraries, object files and flags are used when
 
13347
            # linking a shared library.
 
13348
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
13349
          else
 
13350
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
13351
            # platform.
 
13352
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13353
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13354
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
13355
 
 
13356
            # Commands to make compiler produce verbose output that lists
 
13357
            # what "hidden" libraries, object files and flags are used when
 
13358
            # linking a shared library.
 
13359
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
13360
          fi
 
13361
 
 
13362
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
13363
        fi
 
13364
        ;;
 
13365
    esac
 
13366
    ;;
 
13367
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
13368
    archive_cmds_need_lc_CXX=no
 
13369
    ;;
 
13370
  tandem*)
 
13371
    case $cc_basename in
 
13372
      NCC)
 
13373
        # NonStop-UX NCC 3.20
 
13374
        # FIXME: insert proper C++ library support
 
13375
        ld_shlibs_CXX=no
 
13376
        ;;
 
13377
      *)
 
13378
        # FIXME: insert proper C++ library support
 
13379
        ld_shlibs_CXX=no
 
13380
        ;;
 
13381
    esac
 
13382
    ;;
 
13383
  vxworks*)
 
13384
    # FIXME: insert proper C++ library support
 
13385
    ld_shlibs_CXX=no
 
13386
    ;;
 
13387
  *)
 
13388
    # FIXME: insert proper C++ library support
 
13389
    ld_shlibs_CXX=no
 
13390
    ;;
 
13391
esac
 
13392
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13393
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
13394
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13395
 
 
13396
GCC_CXX="$GXX"
 
13397
LD_CXX="$LD"
 
13398
 
 
13399
 
 
13400
cat > conftest.$ac_ext <<EOF
 
13401
class Foo
 
13402
{
 
13403
public:
 
13404
  Foo (void) { a = 0; }
 
13405
private:
 
13406
  int a;
 
13407
};
 
13408
EOF
 
13409
 
 
13410
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13411
  (eval $ac_compile) 2>&5
 
13412
  ac_status=$?
 
13413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13414
  (exit $ac_status); }; then
 
13415
  # Parse the compiler output and extract the necessary
 
13416
  # objects, libraries and library flags.
 
13417
 
 
13418
  # Sentinel used to keep track of whether or not we are before
 
13419
  # the conftest object file.
 
13420
  pre_test_object_deps_done=no
 
13421
 
 
13422
  # The `*' in the case matches for architectures that use `case' in
 
13423
  # $output_verbose_cmd can trigger glob expansion during the loop
 
13424
  # eval without this substitution.
 
13425
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
13426
 
 
13427
  for p in `eval $output_verbose_link_cmd`; do
 
13428
    case $p in
 
13429
 
 
13430
    -L* | -R* | -l*)
 
13431
       # Some compilers place space between "-{L,R}" and the path.
 
13432
       # Remove the space.
 
13433
       if test $p = "-L" \
 
13434
          || test $p = "-R"; then
 
13435
         prev=$p
 
13436
         continue
 
13437
       else
 
13438
         prev=
 
13439
       fi
 
13440
 
 
13441
       if test "$pre_test_object_deps_done" = no; then
 
13442
         case $p in
 
13443
         -L* | -R*)
 
13444
           # Internal compiler library paths should come after those
 
13445
           # provided the user.  The postdeps already come after the
 
13446
           # user supplied libs so there is no need to process them.
 
13447
           if test -z "$compiler_lib_search_path_CXX"; then
 
13448
             compiler_lib_search_path_CXX="${prev}${p}"
 
13449
           else
 
13450
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
13451
           fi
 
13452
           ;;
 
13453
         # The "-l" case would never come before the object being
 
13454
         # linked, so don't bother handling this case.
 
13455
         esac
 
13456
       else
 
13457
         if test -z "$postdeps_CXX"; then
 
13458
           postdeps_CXX="${prev}${p}"
 
13459
         else
 
13460
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
13461
         fi
 
13462
       fi
 
13463
       ;;
 
13464
 
 
13465
    *.$objext)
 
13466
       # This assumes that the test object file only shows up
 
13467
       # once in the compiler output.
 
13468
       if test "$p" = "conftest.$objext"; then
 
13469
         pre_test_object_deps_done=yes
 
13470
         continue
 
13471
       fi
 
13472
 
 
13473
       if test "$pre_test_object_deps_done" = no; then
 
13474
         if test -z "$predep_objects_CXX"; then
 
13475
           predep_objects_CXX="$p"
 
13476
         else
 
13477
           predep_objects_CXX="$predep_objects_CXX $p"
 
13478
         fi
 
13479
       else
 
13480
         if test -z "$postdep_objects_CXX"; then
 
13481
           postdep_objects_CXX="$p"
 
13482
         else
 
13483
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
13484
         fi
 
13485
       fi
 
13486
       ;;
 
13487
 
 
13488
    *) ;; # Ignore the rest.
 
13489
 
 
13490
    esac
 
13491
  done
 
13492
 
 
13493
  # Clean up.
 
13494
  rm -f a.out a.exe
 
13495
else
 
13496
  echo "libtool.m4: error: problem compiling CXX test program"
 
13497
fi
 
13498
 
 
13499
$rm -f confest.$objext
 
13500
 
 
13501
case " $postdeps_CXX " in
 
13502
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
13503
esac
 
13504
 
 
13505
lt_prog_compiler_wl_CXX=
 
13506
lt_prog_compiler_pic_CXX=
 
13507
lt_prog_compiler_static_CXX=
 
13508
 
 
13509
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13510
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13511
 
 
13512
  # C++ specific cases for pic, static, wl, etc.
 
13513
  if test "$GXX" = yes; then
 
13514
    lt_prog_compiler_wl_CXX='-Wl,'
 
13515
    lt_prog_compiler_static_CXX='-static'
 
13516
 
 
13517
    case $host_os in
 
13518
    aix*)
 
13519
      # All AIX code is PIC.
 
13520
      if test "$host_cpu" = ia64; then
 
13521
        # AIX 5 now supports IA64 processor
 
13522
        lt_prog_compiler_static_CXX='-Bstatic'
 
13523
      fi
 
13524
      ;;
 
13525
    amigaos*)
 
13526
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13527
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13528
      # like `-m68040'.
 
13529
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
13530
      ;;
 
13531
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13532
      # PIC is the default for these OSes.
 
13533
      ;;
 
13534
    mingw* | os2* | pw32*)
 
13535
      # This hack is so that the source file can tell whether it is being
 
13536
      # built for inclusion in a dll (and should export symbols for example).
 
13537
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
13538
      ;;
 
13539
    darwin* | rhapsody*)
 
13540
      # PIC is the default on this platform
 
13541
      # Common symbols not allowed in MH_DYLIB files
 
13542
      lt_prog_compiler_pic_CXX='-fno-common'
 
13543
      ;;
 
13544
    *djgpp*)
 
13545
      # DJGPP does not support shared libraries at all
 
13546
      lt_prog_compiler_pic_CXX=
 
13547
      ;;
 
13548
    sysv4*MP*)
 
13549
      if test -d /usr/nec; then
 
13550
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
13551
      fi
 
13552
      ;;
 
13553
    hpux*)
 
13554
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13555
      # not for PA HP-UX.
 
13556
      case "$host_cpu" in
 
13557
      hppa*64*|ia64*)
 
13558
        ;;
 
13559
      *)
 
13560
        lt_prog_compiler_pic_CXX='-fPIC'
 
13561
        ;;
 
13562
      esac
 
13563
      ;;
 
13564
    *)
 
13565
      lt_prog_compiler_pic_CXX='-fPIC'
 
13566
      ;;
 
13567
    esac
 
13568
  else
 
13569
    case $host_os in
 
13570
      aix4* | aix5*)
 
13571
        # All AIX code is PIC.
 
13572
        if test "$host_cpu" = ia64; then
 
13573
          # AIX 5 now supports IA64 processor
 
13574
          lt_prog_compiler_static_CXX='-Bstatic'
 
13575
        else
 
13576
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
13577
        fi
 
13578
        ;;
 
13579
      chorus*)
 
13580
        case $cc_basename in
 
13581
        cxch68)
 
13582
          # Green Hills C++ Compiler
 
13583
          # _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"
 
13584
          ;;
 
13585
        esac
 
13586
        ;;
 
13587
      dgux*)
 
13588
        case $cc_basename in
 
13589
          ec++)
 
13590
            lt_prog_compiler_pic_CXX='-KPIC'
 
13591
            ;;
 
13592
          ghcx)
 
13593
            # Green Hills C++ Compiler
 
13594
            lt_prog_compiler_pic_CXX='-pic'
 
13595
            ;;
 
13596
          *)
 
13597
            ;;
 
13598
        esac
 
13599
        ;;
 
13600
      freebsd* | kfreebsd*-gnu)
 
13601
        # FreeBSD uses GNU C++
 
13602
        ;;
 
13603
      hpux9* | hpux10* | hpux11*)
 
13604
        case $cc_basename in
 
13605
          CC)
 
13606
            lt_prog_compiler_wl_CXX='-Wl,'
 
13607
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
13608
            if test "$host_cpu" != ia64; then
 
13609
              lt_prog_compiler_pic_CXX='+Z'
 
13610
            fi
 
13611
            ;;
 
13612
          aCC)
 
13613
            lt_prog_compiler_wl_CXX='-Wl,'
 
13614
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
13615
            case "$host_cpu" in
 
13616
            hppa*64*|ia64*)
 
13617
              # +Z the default
 
13618
              ;;
 
13619
            *)
 
13620
              lt_prog_compiler_pic_CXX='+Z'
 
13621
              ;;
 
13622
            esac
 
13623
            ;;
 
13624
          *)
 
13625
            ;;
 
13626
        esac
 
13627
        ;;
 
13628
      irix5* | irix6* | nonstopux*)
 
13629
        case $cc_basename in
 
13630
          CC)
 
13631
            lt_prog_compiler_wl_CXX='-Wl,'
 
13632
            lt_prog_compiler_static_CXX='-non_shared'
 
13633
            # CC pic flag -KPIC is the default.
 
13634
            ;;
 
13635
          *)
 
13636
            ;;
 
13637
        esac
 
13638
        ;;
 
13639
      linux*)
 
13640
        case $cc_basename in
 
13641
          KCC)
 
13642
            # KAI C++ Compiler
 
13643
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13644
            lt_prog_compiler_pic_CXX='-fPIC'
 
13645
            ;;
 
13646
          icpc)
 
13647
            # Intel C++
 
13648
            lt_prog_compiler_wl_CXX='-Wl,'
 
13649
            lt_prog_compiler_pic_CXX='-KPIC'
 
13650
            lt_prog_compiler_static_CXX='-static'
 
13651
            ;;
 
13652
          cxx)
 
13653
            # Compaq C++
 
13654
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13655
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13656
            lt_prog_compiler_pic_CXX=
 
13657
            lt_prog_compiler_static_CXX='-non_shared'
 
13658
            ;;
 
13659
          *)
 
13660
            ;;
 
13661
        esac
 
13662
        ;;
 
13663
      lynxos*)
 
13664
        ;;
 
13665
      m88k*)
 
13666
        ;;
 
13667
      mvs*)
 
13668
        case $cc_basename in
 
13669
          cxx)
 
13670
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13671
            ;;
 
13672
          *)
 
13673
            ;;
 
13674
        esac
 
13675
        ;;
 
13676
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
13677
        ;;
 
13678
      osf3* | osf4* | osf5*)
 
13679
        case $cc_basename in
 
13680
          KCC)
 
13681
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13682
            ;;
 
13683
          RCC)
 
13684
            # Rational C++ 2.4.1
 
13685
            lt_prog_compiler_pic_CXX='-pic'
 
13686
            ;;
 
13687
          cxx)
 
13688
            # Digital/Compaq C++
 
13689
            lt_prog_compiler_wl_CXX='-Wl,'
 
13690
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13691
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13692
            lt_prog_compiler_pic_CXX=
 
13693
            lt_prog_compiler_static_CXX='-non_shared'
 
13694
            ;;
 
13695
          *)
 
13696
            ;;
 
13697
        esac
 
13698
        ;;
 
13699
      psos*)
 
13700
        ;;
 
13701
      sco*)
 
13702
        case $cc_basename in
 
13703
          CC)
 
13704
            lt_prog_compiler_pic_CXX='-fPIC'
 
13705
            ;;
 
13706
          *)
 
13707
            ;;
 
13708
        esac
 
13709
        ;;
 
13710
      solaris*)
 
13711
        case $cc_basename in
 
13712
          CC)
 
13713
            # Sun C++ 4.2, 5.x and Centerline C++
 
13714
            lt_prog_compiler_pic_CXX='-KPIC'
 
13715
            lt_prog_compiler_static_CXX='-Bstatic'
 
13716
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13717
            ;;
 
13718
          gcx)
 
13719
            # Green Hills C++ Compiler
 
13720
            lt_prog_compiler_pic_CXX='-PIC'
 
13721
            ;;
 
13722
          *)
 
13723
            ;;
 
13724
        esac
 
13725
        ;;
 
13726
      sunos4*)
 
13727
        case $cc_basename in
 
13728
          CC)
 
13729
            # Sun C++ 4.x
 
13730
            lt_prog_compiler_pic_CXX='-pic'
 
13731
            lt_prog_compiler_static_CXX='-Bstatic'
 
13732
            ;;
 
13733
          lcc)
 
13734
            # Lucid
 
13735
            lt_prog_compiler_pic_CXX='-pic'
 
13736
            ;;
 
13737
          *)
 
13738
            ;;
 
13739
        esac
 
13740
        ;;
 
13741
      tandem*)
 
13742
        case $cc_basename in
 
13743
          NCC)
 
13744
            # NonStop-UX NCC 3.20
 
13745
            lt_prog_compiler_pic_CXX='-KPIC'
 
13746
            ;;
 
13747
          *)
 
13748
            ;;
 
13749
        esac
 
13750
        ;;
 
13751
      unixware*)
 
13752
        ;;
 
13753
      vxworks*)
 
13754
        ;;
 
13755
      *)
 
13756
        lt_prog_compiler_can_build_shared_CXX=no
 
13757
        ;;
 
13758
    esac
 
13759
  fi
 
13760
 
 
13761
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
13762
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
13763
 
 
13764
#
 
13765
# Check to make sure the PIC flag actually works.
 
13766
#
 
13767
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13768
  
 
13769
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13770
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
13771
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
13772
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13773
else
 
13774
  lt_prog_compiler_pic_works_CXX=no
 
13775
  ac_outfile=conftest.$ac_objext
 
13776
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13777
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13778
   # Insert the option either (1) after the last *FLAGS variable, or
 
13779
   # (2) before a word containing "conftest.", or (3) at the end.
 
13780
   # Note that $ac_compile itself does not contain backslashes and begins
 
13781
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13782
   # The option is referenced via a variable to avoid confusing sed.
 
13783
   lt_compile=`echo "$ac_compile" | $SED \
 
13784
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13785
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13786
   -e 's:$: $lt_compiler_flag:'`
 
13787
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
13788
   (eval "$lt_compile" 2>conftest.err)
 
13789
   ac_status=$?
 
13790
   cat conftest.err >&5
 
13791
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
13792
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13793
     # The compiler can only warn and ignore the option if not recognized
 
13794
     # So say no if there are warnings
 
13795
     if test ! -s conftest.err; then
 
13796
       lt_prog_compiler_pic_works_CXX=yes
 
13797
     fi
 
13798
   fi
 
13799
   $rm conftest*
 
13800
 
 
13801
fi
 
13802
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
13803
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
13804
 
 
13805
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
13806
    case $lt_prog_compiler_pic_CXX in
 
13807
     "" | " "*) ;;
 
13808
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13809
     esac
 
13810
else
 
13811
    lt_prog_compiler_pic_CXX=
 
13812
     lt_prog_compiler_can_build_shared_CXX=no
 
13813
fi
 
13814
 
 
13815
fi
 
13816
case "$host_os" in
 
13817
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13818
  *djgpp*)
 
13819
    lt_prog_compiler_pic_CXX=
 
13820
    ;;
 
13821
  *)
 
13822
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13823
    ;;
 
13824
esac
 
13825
 
 
13826
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13827
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13828
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13829
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13830
else
 
13831
  lt_cv_prog_compiler_c_o_CXX=no
 
13832
   $rm -r conftest 2>/dev/null
 
13833
   mkdir conftest
 
13834
   cd conftest
 
13835
   mkdir out
 
13836
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13837
 
 
13838
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13839
   # Insert the option either (1) after the last *FLAGS variable, or
 
13840
   # (2) before a word containing "conftest.", or (3) at the end.
 
13841
   # Note that $ac_compile itself does not contain backslashes and begins
 
13842
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13843
   lt_compile=`echo "$ac_compile" | $SED \
 
13844
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13845
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13846
   -e 's:$: $lt_compiler_flag:'`
 
13847
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
13848
   (eval "$lt_compile" 2>out/conftest.err)
 
13849
   ac_status=$?
 
13850
   cat out/conftest.err >&5
 
13851
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
13852
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13853
   then
 
13854
     # The compiler can only warn and ignore the option if not recognized
 
13855
     # So say no if there are warnings
 
13856
     if test ! -s out/conftest.err; then
 
13857
       lt_cv_prog_compiler_c_o_CXX=yes
 
13858
     fi
 
13859
   fi
 
13860
   chmod u+w .
 
13861
   $rm conftest*
 
13862
   # SGI C++ compiler will create directory out/ii_files/ for
 
13863
   # template instantiation
 
13864
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13865
   $rm out/* && rmdir out
 
13866
   cd ..
 
13867
   rmdir conftest
 
13868
   $rm conftest*
 
13869
 
 
13870
fi
 
13871
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13872
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
13873
 
 
13874
 
 
13875
hard_links="nottested"
 
13876
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13877
  # do not overwrite the value of need_locks provided by the user
 
13878
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13879
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13880
  hard_links=yes
 
13881
  $rm conftest*
 
13882
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13883
  touch conftest.a
 
13884
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13885
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13886
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13887
echo "${ECHO_T}$hard_links" >&6
 
13888
  if test "$hard_links" = no; then
 
13889
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13890
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13891
    need_locks=warn
 
13892
  fi
 
13893
else
 
13894
  need_locks=no
 
13895
fi
 
13896
 
 
13897
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13898
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13899
 
 
13900
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13901
  case $host_os in
 
13902
  aix4* | aix5*)
 
13903
    # If we're using GNU nm, then we don't want the "-C" option.
 
13904
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13905
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13906
      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'
 
13907
    else
 
13908
      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'
 
13909
    fi
 
13910
    ;;
 
13911
  pw32*)
 
13912
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13913
  ;;
 
13914
  cygwin* | mingw*)
 
13915
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13916
  ;;
 
13917
  linux*)
 
13918
    link_all_deplibs_CXX=no
 
13919
  ;;
 
13920
  *)
 
13921
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13922
  ;;
 
13923
  esac
 
13924
 
 
13925
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13926
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
13927
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13928
 
 
13929
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13930
if test "$GCC" = yes; then
 
13931
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13932
fi
 
13933
 
 
13934
#
 
13935
# Do we need to explicitly link libc?
 
13936
#
 
13937
case "x$archive_cmds_need_lc_CXX" in
 
13938
x|xyes)
 
13939
  # Assume -lc should be added
 
13940
  archive_cmds_need_lc_CXX=yes
 
13941
 
 
13942
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13943
    case $archive_cmds_CXX in
 
13944
    *'~'*)
 
13945
      # FIXME: we may have to deal with multi-command sequences.
 
13946
      ;;
 
13947
    '$CC '*)
 
13948
      # Test whether the compiler implicitly links with -lc since on some
 
13949
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13950
      # to ld, don't add -lc before -lgcc.
 
13951
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13952
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
13953
      $rm conftest*
 
13954
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13955
 
 
13956
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13957
  (eval $ac_compile) 2>&5
 
13958
  ac_status=$?
 
13959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13960
  (exit $ac_status); } 2>conftest.err; then
 
13961
        soname=conftest
 
13962
        lib=conftest
 
13963
        libobjs=conftest.$ac_objext
 
13964
        deplibs=
 
13965
        wl=$lt_prog_compiler_wl_CXX
 
13966
        compiler_flags=-v
 
13967
        linker_flags=-v
 
13968
        verstring=
 
13969
        output_objdir=.
 
13970
        libname=conftest
 
13971
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13972
        allow_undefined_flag_CXX=
 
13973
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13974
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13975
  ac_status=$?
 
13976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13977
  (exit $ac_status); }
 
13978
        then
 
13979
          archive_cmds_need_lc_CXX=no
 
13980
        else
 
13981
          archive_cmds_need_lc_CXX=yes
 
13982
        fi
 
13983
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13984
      else
 
13985
        cat conftest.err 1>&5
 
13986
      fi
 
13987
      $rm conftest*
 
13988
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13989
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
13990
      ;;
 
13991
    esac
 
13992
  fi
 
13993
  ;;
 
13994
esac
 
13995
 
 
13996
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13997
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
13998
library_names_spec=
 
13999
libname_spec='lib$name'
 
14000
soname_spec=
 
14001
shrext_cmds=".so"
 
14002
postinstall_cmds=
 
14003
postuninstall_cmds=
 
14004
finish_cmds=
 
14005
finish_eval=
 
14006
shlibpath_var=
 
14007
shlibpath_overrides_runpath=unknown
 
14008
version_type=none
 
14009
dynamic_linker="$host_os ld.so"
 
14010
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14011
if test "$GCC" = yes; then
 
14012
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14013
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14014
    # if the path contains ";" then we assume it to be the separator
 
14015
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14016
    # assumed that no part of a normal pathname contains ";" but that should
 
14017
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14018
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14019
  else
 
14020
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14021
  fi
 
14022
else
 
14023
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14024
fi
 
14025
need_lib_prefix=unknown
 
14026
hardcode_into_libs=no
 
14027
 
 
14028
# when you set need_version to no, make sure it does not cause -set_version
 
14029
# flags to be left without arguments
 
14030
need_version=unknown
 
14031
 
 
14032
case $host_os in
 
14033
aix3*)
 
14034
  version_type=linux
 
14035
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14036
  shlibpath_var=LIBPATH
 
14037
 
 
14038
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14039
  soname_spec='${libname}${release}${shared_ext}$major'
 
14040
  ;;
 
14041
 
 
14042
aix4* | aix5*)
 
14043
  version_type=linux
 
14044
  need_lib_prefix=no
 
14045
  need_version=no
 
14046
  hardcode_into_libs=yes
 
14047
  if test "$host_cpu" = ia64; then
 
14048
    # AIX 5 supports IA64
 
14049
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14050
    shlibpath_var=LD_LIBRARY_PATH
 
14051
  else
 
14052
    # With GCC up to 2.95.x, collect2 would create an import file
 
14053
    # for dependence libraries.  The import file would start with
 
14054
    # the line `#! .'.  This would cause the generated library to
 
14055
    # depend on `.', always an invalid library.  This was fixed in
 
14056
    # development snapshots of GCC prior to 3.0.
 
14057
    case $host_os in
 
14058
      aix4 | aix4.[01] | aix4.[01].*)
 
14059
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14060
           echo ' yes '
 
14061
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14062
        :
 
14063
      else
 
14064
        can_build_shared=no
 
14065
      fi
 
14066
      ;;
 
14067
    esac
 
14068
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14069
    # soname into executable. Probably we can add versioning support to
 
14070
    # collect2, so additional links can be useful in future.
 
14071
    if test "$aix_use_runtimelinking" = yes; then
 
14072
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14073
      # instead of lib<name>.a to let people know that these are not
 
14074
      # typical AIX shared libraries.
 
14075
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14076
    else
 
14077
      # We preserve .a as extension for shared libraries through AIX4.2
 
14078
      # and later when we are not doing run time linking.
 
14079
      library_names_spec='${libname}${release}.a $libname.a'
 
14080
      soname_spec='${libname}${release}${shared_ext}$major'
 
14081
    fi
 
14082
    shlibpath_var=LIBPATH
 
14083
  fi
 
14084
  ;;
 
14085
 
 
14086
amigaos*)
 
14087
  library_names_spec='$libname.ixlibrary $libname.a'
 
14088
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14089
  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'
 
14090
  ;;
 
14091
 
 
14092
beos*)
 
14093
  library_names_spec='${libname}${shared_ext}'
 
14094
  dynamic_linker="$host_os ld.so"
 
14095
  shlibpath_var=LIBRARY_PATH
 
14096
  ;;
 
14097
 
 
14098
bsdi4*)
 
14099
  version_type=linux
 
14100
  need_version=no
 
14101
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14102
  soname_spec='${libname}${release}${shared_ext}$major'
 
14103
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14104
  shlibpath_var=LD_LIBRARY_PATH
 
14105
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14106
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14107
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14108
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14109
  # libtool to hard-code these into programs
 
14110
  ;;
 
14111
 
 
14112
cygwin* | mingw* | pw32*)
 
14113
  version_type=windows
 
14114
  shrext_cmds=".dll"
 
14115
  need_version=no
 
14116
  need_lib_prefix=no
 
14117
 
 
14118
  case $GCC,$host_os in
 
14119
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14120
    library_names_spec='$libname.dll.a'
 
14121
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14122
    postinstall_cmds='base_file=`basename \${file}`~
 
14123
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14124
      dldir=$destdir/`dirname \$dlpath`~
 
14125
      test -d \$dldir || mkdir -p \$dldir~
 
14126
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14127
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14128
      dlpath=$dir/\$dldll~
 
14129
       $rm \$dlpath'
 
14130
    shlibpath_overrides_runpath=yes
 
14131
 
 
14132
    case $host_os in
 
14133
    cygwin*)
 
14134
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14135
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14136
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14137
      ;;
 
14138
    mingw*)
 
14139
      # MinGW DLLs use traditional 'lib' prefix
 
14140
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14141
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14142
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14143
        # It is most probably a Windows format PATH printed by
 
14144
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14145
        # path with ; separators, and with drive letters. We can handle the
 
14146
        # drive letters (cygwin fileutils understands them), so leave them,
 
14147
        # especially as we might pass files found there to a mingw objdump,
 
14148
        # which wouldn't understand a cygwinified path. Ahh.
 
14149
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14150
      else
 
14151
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14152
      fi
 
14153
      ;;
 
14154
    pw32*)
 
14155
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14156
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14157
      ;;
 
14158
    esac
 
14159
    ;;
 
14160
 
 
14161
  *)
 
14162
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14163
    ;;
 
14164
  esac
 
14165
  dynamic_linker='Win32 ld.exe'
 
14166
  # FIXME: first we should search . and the directory the executable is in
 
14167
  shlibpath_var=PATH
 
14168
  ;;
 
14169
 
 
14170
darwin* | rhapsody*)
 
14171
  dynamic_linker="$host_os dyld"
 
14172
  version_type=darwin
 
14173
  need_lib_prefix=no
 
14174
  need_version=no
 
14175
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14176
  soname_spec='${libname}${release}${major}$shared_ext'
 
14177
  shlibpath_overrides_runpath=yes
 
14178
  shlibpath_var=DYLD_LIBRARY_PATH
 
14179
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14180
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14181
  if test "$GCC" = yes; then
 
14182
    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"`
 
14183
  else
 
14184
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14185
  fi
 
14186
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14187
  ;;
 
14188
 
 
14189
dgux*)
 
14190
  version_type=linux
 
14191
  need_lib_prefix=no
 
14192
  need_version=no
 
14193
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14194
  soname_spec='${libname}${release}${shared_ext}$major'
 
14195
  shlibpath_var=LD_LIBRARY_PATH
 
14196
  ;;
 
14197
 
 
14198
freebsd1*)
 
14199
  dynamic_linker=no
 
14200
  ;;
 
14201
 
 
14202
kfreebsd*-gnu)
 
14203
  version_type=linux
 
14204
  need_lib_prefix=no
 
14205
  need_version=no
 
14206
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14207
  soname_spec='${libname}${release}${shared_ext}$major'
 
14208
  shlibpath_var=LD_LIBRARY_PATH
 
14209
  shlibpath_overrides_runpath=no
 
14210
  hardcode_into_libs=yes
 
14211
  dynamic_linker='GNU ld.so'
 
14212
  ;;
 
14213
 
 
14214
freebsd*)
 
14215
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14216
  version_type=freebsd-$objformat
 
14217
  case $version_type in
 
14218
    freebsd-elf*)
 
14219
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14220
      need_version=no
 
14221
      need_lib_prefix=no
 
14222
      ;;
 
14223
    freebsd-*)
 
14224
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14225
      need_version=yes
 
14226
      ;;
 
14227
  esac
 
14228
  shlibpath_var=LD_LIBRARY_PATH
 
14229
  case $host_os in
 
14230
  freebsd2*)
 
14231
    shlibpath_overrides_runpath=yes
 
14232
    ;;
 
14233
  freebsd3.01* | freebsdelf3.01*)
 
14234
    shlibpath_overrides_runpath=yes
 
14235
    hardcode_into_libs=yes
 
14236
    ;;
 
14237
  *) # from 3.2 on
 
14238
    shlibpath_overrides_runpath=no
 
14239
    hardcode_into_libs=yes
 
14240
    ;;
 
14241
  esac
 
14242
  ;;
 
14243
 
 
14244
gnu*)
 
14245
  version_type=linux
 
14246
  need_lib_prefix=no
 
14247
  need_version=no
 
14248
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14249
  soname_spec='${libname}${release}${shared_ext}$major'
 
14250
  shlibpath_var=LD_LIBRARY_PATH
 
14251
  hardcode_into_libs=yes
 
14252
  ;;
 
14253
 
 
14254
hpux9* | hpux10* | hpux11*)
 
14255
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14256
  # link against other versions.
 
14257
  version_type=sunos
 
14258
  need_lib_prefix=no
 
14259
  need_version=no
 
14260
  case "$host_cpu" in
 
14261
  ia64*)
 
14262
    shrext_cmds='.so'
 
14263
    hardcode_into_libs=yes
 
14264
    dynamic_linker="$host_os dld.so"
 
14265
    shlibpath_var=LD_LIBRARY_PATH
 
14266
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14267
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14268
    soname_spec='${libname}${release}${shared_ext}$major'
 
14269
    if test "X$HPUX_IA64_MODE" = X32; then
 
14270
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14271
    else
 
14272
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14273
    fi
 
14274
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14275
    ;;
 
14276
   hppa*64*)
 
14277
     shrext_cmds='.sl'
 
14278
     hardcode_into_libs=yes
 
14279
     dynamic_linker="$host_os dld.sl"
 
14280
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14281
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14282
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14283
     soname_spec='${libname}${release}${shared_ext}$major'
 
14284
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14285
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14286
     ;;
 
14287
   *)
 
14288
    shrext_cmds='.sl'
 
14289
    dynamic_linker="$host_os dld.sl"
 
14290
    shlibpath_var=SHLIB_PATH
 
14291
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14292
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14293
    soname_spec='${libname}${release}${shared_ext}$major'
 
14294
    ;;
 
14295
  esac
 
14296
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14297
  postinstall_cmds='chmod 555 $lib'
 
14298
  ;;
 
14299
 
 
14300
irix5* | irix6* | nonstopux*)
 
14301
  case $host_os in
 
14302
    nonstopux*) version_type=nonstopux ;;
 
14303
    *)
 
14304
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14305
                version_type=linux
 
14306
        else
 
14307
                version_type=irix
 
14308
        fi ;;
 
14309
  esac
 
14310
  need_lib_prefix=no
 
14311
  need_version=no
 
14312
  soname_spec='${libname}${release}${shared_ext}$major'
 
14313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14314
  case $host_os in
 
14315
  irix5* | nonstopux*)
 
14316
    libsuff= shlibsuff=
 
14317
    ;;
 
14318
  *)
 
14319
    case $LD in # libtool.m4 will add one of these switches to LD
 
14320
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14321
      libsuff= shlibsuff= libmagic=32-bit;;
 
14322
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14323
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14324
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14325
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14326
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14327
    esac
 
14328
    ;;
 
14329
  esac
 
14330
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14331
  shlibpath_overrides_runpath=no
 
14332
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14333
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14334
  hardcode_into_libs=yes
 
14335
  ;;
 
14336
 
 
14337
# No shared lib support for Linux oldld, aout, or coff.
 
14338
linux*oldld* | linux*aout* | linux*coff*)
 
14339
  dynamic_linker=no
 
14340
  ;;
 
14341
 
 
14342
# This must be Linux ELF.
 
14343
linux*)
 
14344
  version_type=linux
 
14345
  need_lib_prefix=no
 
14346
  need_version=no
 
14347
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14348
  soname_spec='${libname}${release}${shared_ext}$major'
 
14349
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14350
  shlibpath_var=LD_LIBRARY_PATH
 
14351
  shlibpath_overrides_runpath=no
 
14352
  # This implies no fast_install, which is unacceptable.
 
14353
  # Some rework will be needed to allow for fast_install
 
14354
  # before this can be enabled.
 
14355
  hardcode_into_libs=yes
 
14356
 
 
14357
  # Append ld.so.conf contents to the search path
 
14358
  if test -f /etc/ld.so.conf; then
 
14359
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
14360
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14361
  fi
 
14362
 
 
14363
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14364
  # powerpc, because MkLinux only supported shared libraries with the
 
14365
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14366
  # most powerpc-linux boxes support dynamic linking these days and
 
14367
  # people can always --disable-shared, the test was removed, and we
 
14368
  # assume the GNU/Linux dynamic linker is in use.
 
14369
  dynamic_linker='GNU/Linux ld.so'
 
14370
  ;;
 
14371
 
 
14372
netbsdelf*-gnu)
 
14373
  version_type=linux
 
14374
  need_lib_prefix=no
 
14375
  need_version=no
 
14376
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14377
  soname_spec='${libname}${release}${shared_ext}$major'
 
14378
  shlibpath_var=LD_LIBRARY_PATH
 
14379
  shlibpath_overrides_runpath=no
 
14380
  hardcode_into_libs=yes
 
14381
  dynamic_linker='NetBSD ld.elf_so'
 
14382
  ;;
 
14383
 
 
14384
knetbsd*-gnu)
 
14385
  version_type=linux
 
14386
  need_lib_prefix=no
 
14387
  need_version=no
 
14388
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14389
  soname_spec='${libname}${release}${shared_ext}$major'
 
14390
  shlibpath_var=LD_LIBRARY_PATH
 
14391
  shlibpath_overrides_runpath=no
 
14392
  hardcode_into_libs=yes
 
14393
  dynamic_linker='GNU ld.so'
 
14394
  ;;
 
14395
 
 
14396
netbsd*)
 
14397
  version_type=sunos
 
14398
  need_lib_prefix=no
 
14399
  need_version=no
 
14400
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14401
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14402
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14403
    dynamic_linker='NetBSD (a.out) ld.so'
 
14404
  else
 
14405
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14406
    soname_spec='${libname}${release}${shared_ext}$major'
 
14407
    dynamic_linker='NetBSD ld.elf_so'
 
14408
  fi
 
14409
  shlibpath_var=LD_LIBRARY_PATH
 
14410
  shlibpath_overrides_runpath=yes
 
14411
  hardcode_into_libs=yes
 
14412
  ;;
 
14413
 
 
14414
newsos6)
 
14415
  version_type=linux
 
14416
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14417
  shlibpath_var=LD_LIBRARY_PATH
 
14418
  shlibpath_overrides_runpath=yes
 
14419
  ;;
 
14420
 
 
14421
nto-qnx*)
 
14422
  version_type=linux
 
14423
  need_lib_prefix=no
 
14424
  need_version=no
 
14425
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14426
  soname_spec='${libname}${release}${shared_ext}$major'
 
14427
  shlibpath_var=LD_LIBRARY_PATH
 
14428
  shlibpath_overrides_runpath=yes
 
14429
  ;;
 
14430
 
 
14431
openbsd*)
 
14432
  version_type=sunos
 
14433
  need_lib_prefix=no
 
14434
  need_version=yes
 
14435
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14436
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14437
  shlibpath_var=LD_LIBRARY_PATH
 
14438
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14439
    case $host_os in
 
14440
      openbsd2.[89] | openbsd2.[89].*)
 
14441
        shlibpath_overrides_runpath=no
 
14442
        ;;
 
14443
      *)
 
14444
        shlibpath_overrides_runpath=yes
 
14445
        ;;
 
14446
      esac
 
14447
  else
 
14448
    shlibpath_overrides_runpath=yes
 
14449
  fi
 
14450
  ;;
 
14451
 
 
14452
os2*)
 
14453
  libname_spec='$name'
 
14454
  shrext_cmds=".dll"
 
14455
  need_lib_prefix=no
 
14456
  library_names_spec='$libname${shared_ext} $libname.a'
 
14457
  dynamic_linker='OS/2 ld.exe'
 
14458
  shlibpath_var=LIBPATH
 
14459
  ;;
 
14460
 
 
14461
osf3* | osf4* | osf5*)
 
14462
  version_type=osf
 
14463
  need_lib_prefix=no
 
14464
  need_version=no
 
14465
  soname_spec='${libname}${release}${shared_ext}$major'
 
14466
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14467
  shlibpath_var=LD_LIBRARY_PATH
 
14468
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14469
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14470
  ;;
 
14471
 
 
14472
sco3.2v5*)
 
14473
  version_type=osf
 
14474
  soname_spec='${libname}${release}${shared_ext}$major'
 
14475
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14476
  shlibpath_var=LD_LIBRARY_PATH
 
14477
  ;;
 
14478
 
 
14479
solaris*)
 
14480
  version_type=linux
 
14481
  need_lib_prefix=no
 
14482
  need_version=no
 
14483
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14484
  soname_spec='${libname}${release}${shared_ext}$major'
 
14485
  shlibpath_var=LD_LIBRARY_PATH
 
14486
  shlibpath_overrides_runpath=yes
 
14487
  hardcode_into_libs=yes
 
14488
  # ldd complains unless libraries are executable
 
14489
  postinstall_cmds='chmod +x $lib'
 
14490
  ;;
 
14491
 
 
14492
sunos4*)
 
14493
  version_type=sunos
 
14494
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14495
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14496
  shlibpath_var=LD_LIBRARY_PATH
 
14497
  shlibpath_overrides_runpath=yes
 
14498
  if test "$with_gnu_ld" = yes; then
 
14499
    need_lib_prefix=no
 
14500
  fi
 
14501
  need_version=yes
 
14502
  ;;
 
14503
 
 
14504
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14505
  version_type=linux
 
14506
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14507
  soname_spec='${libname}${release}${shared_ext}$major'
 
14508
  shlibpath_var=LD_LIBRARY_PATH
 
14509
  case $host_vendor in
 
14510
    sni)
 
14511
      shlibpath_overrides_runpath=no
 
14512
      need_lib_prefix=no
 
14513
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14514
      runpath_var=LD_RUN_PATH
 
14515
      ;;
 
14516
    siemens)
 
14517
      need_lib_prefix=no
 
14518
      ;;
 
14519
    motorola)
 
14520
      need_lib_prefix=no
 
14521
      need_version=no
 
14522
      shlibpath_overrides_runpath=no
 
14523
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14524
      ;;
 
14525
  esac
 
14526
  ;;
 
14527
 
 
14528
sysv4*MP*)
 
14529
  if test -d /usr/nec ;then
 
14530
    version_type=linux
 
14531
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14532
    soname_spec='$libname${shared_ext}.$major'
 
14533
    shlibpath_var=LD_LIBRARY_PATH
 
14534
  fi
 
14535
  ;;
 
14536
 
 
14537
uts4*)
 
14538
  version_type=linux
 
14539
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14540
  soname_spec='${libname}${release}${shared_ext}$major'
 
14541
  shlibpath_var=LD_LIBRARY_PATH
 
14542
  ;;
 
14543
 
 
14544
*)
 
14545
  dynamic_linker=no
 
14546
  ;;
 
14547
esac
 
14548
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14549
echo "${ECHO_T}$dynamic_linker" >&6
 
14550
test "$dynamic_linker" = no && can_build_shared=no
 
14551
 
 
14552
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14553
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
14554
hardcode_action_CXX=
 
14555
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
14556
   test -n "$runpath_var CXX" || \
 
14557
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
14558
 
 
14559
  # We can hardcode non-existant directories.
 
14560
  if test "$hardcode_direct_CXX" != no &&
 
14561
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14562
     # have to relink, otherwise we might link with an installed library
 
14563
     # when we should be linking with a yet-to-be-installed one
 
14564
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
14565
     test "$hardcode_minus_L_CXX" != no; then
 
14566
    # Linking always hardcodes the temporary library directory.
 
14567
    hardcode_action_CXX=relink
 
14568
  else
 
14569
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14570
    hardcode_action_CXX=immediate
 
14571
  fi
 
14572
else
 
14573
  # We cannot hardcode anything, or else we can only hardcode existing
 
14574
  # directories.
 
14575
  hardcode_action_CXX=unsupported
 
14576
fi
 
14577
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
14578
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
14579
 
 
14580
if test "$hardcode_action_CXX" = relink; then
 
14581
  # Fast installation is not supported
 
14582
  enable_fast_install=no
 
14583
elif test "$shlibpath_overrides_runpath" = yes ||
 
14584
     test "$enable_shared" = no; then
 
14585
  # Fast installation is not necessary
 
14586
  enable_fast_install=needless
 
14587
fi
 
14588
 
 
14589
striplib=
 
14590
old_striplib=
 
14591
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
14592
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
14593
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
14594
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
14595
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
14596
  echo "$as_me:$LINENO: result: yes" >&5
 
14597
echo "${ECHO_T}yes" >&6
 
14598
else
 
14599
# FIXME - insert some real tests, host_os isn't really good enough
 
14600
  case $host_os in
 
14601
   darwin*)
 
14602
       if test -n "$STRIP" ; then
 
14603
         striplib="$STRIP -x"
 
14604
         echo "$as_me:$LINENO: result: yes" >&5
 
14605
echo "${ECHO_T}yes" >&6
 
14606
       else
 
14607
  echo "$as_me:$LINENO: result: no" >&5
 
14608
echo "${ECHO_T}no" >&6
 
14609
fi
 
14610
       ;;
 
14611
   *)
 
14612
  echo "$as_me:$LINENO: result: no" >&5
 
14613
echo "${ECHO_T}no" >&6
 
14614
    ;;
 
14615
  esac
 
14616
fi
 
14617
 
 
14618
if test "x$enable_dlopen" != xyes; then
 
14619
  enable_dlopen=unknown
 
14620
  enable_dlopen_self=unknown
 
14621
  enable_dlopen_self_static=unknown
 
14622
else
 
14623
  lt_cv_dlopen=no
 
14624
  lt_cv_dlopen_libs=
 
14625
 
 
14626
  case $host_os in
 
14627
  beos*)
 
14628
    lt_cv_dlopen="load_add_on"
 
14629
    lt_cv_dlopen_libs=
 
14630
    lt_cv_dlopen_self=yes
 
14631
    ;;
 
14632
 
 
14633
  mingw* | pw32*)
 
14634
    lt_cv_dlopen="LoadLibrary"
 
14635
    lt_cv_dlopen_libs=
 
14636
   ;;
 
14637
 
 
14638
  cygwin*)
 
14639
    lt_cv_dlopen="dlopen"
 
14640
    lt_cv_dlopen_libs=
 
14641
   ;;
 
14642
 
 
14643
  darwin*)
 
14644
  # if libdl is installed we need to link against it
 
14645
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
14646
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
14647
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
14648
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14649
else
 
14650
  ac_check_lib_save_LIBS=$LIBS
 
14651
LIBS="-ldl  $LIBS"
 
14652
cat >conftest.$ac_ext <<_ACEOF
 
14653
/* confdefs.h.  */
 
14654
_ACEOF
 
14655
cat confdefs.h >>conftest.$ac_ext
 
14656
cat >>conftest.$ac_ext <<_ACEOF
 
14657
/* end confdefs.h.  */
 
14658
 
 
14659
/* Override any gcc2 internal prototype to avoid an error.  */
 
14660
#ifdef __cplusplus
 
14661
extern "C"
 
14662
#endif
 
14663
/* We use char because int might match the return type of a gcc2
 
14664
   builtin and then its argument prototype would still apply.  */
 
14665
char dlopen ();
 
14666
int
 
14667
main ()
 
14668
{
 
14669
dlopen ();
 
14670
  ;
 
14671
  return 0;
 
14672
}
 
14673
_ACEOF
 
14674
rm -f conftest.$ac_objext conftest$ac_exeext
 
14675
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14676
  (eval $ac_link) 2>conftest.er1
 
14677
  ac_status=$?
 
14678
  grep -v '^ *+' conftest.er1 >conftest.err
 
14679
  rm -f conftest.er1
 
14680
  cat conftest.err >&5
 
14681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14682
  (exit $ac_status); } &&
 
14683
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14684
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14685
  (eval $ac_try) 2>&5
 
14686
  ac_status=$?
 
14687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14688
  (exit $ac_status); }; } &&
 
14689
         { ac_try='test -s conftest$ac_exeext'
 
14690
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14691
  (eval $ac_try) 2>&5
 
14692
  ac_status=$?
 
14693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14694
  (exit $ac_status); }; }; then
 
14695
  ac_cv_lib_dl_dlopen=yes
 
14696
else
 
14697
  echo "$as_me: failed program was:" >&5
 
14698
sed 's/^/| /' conftest.$ac_ext >&5
 
14699
 
 
14700
ac_cv_lib_dl_dlopen=no
 
14701
fi
 
14702
rm -f conftest.err conftest.$ac_objext \
 
14703
      conftest$ac_exeext conftest.$ac_ext
 
14704
LIBS=$ac_check_lib_save_LIBS
 
14705
fi
 
14706
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
14707
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
14708
if test $ac_cv_lib_dl_dlopen = yes; then
 
14709
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
14710
else
 
14711
  
 
14712
    lt_cv_dlopen="dyld"
 
14713
    lt_cv_dlopen_libs=
 
14714
    lt_cv_dlopen_self=yes
 
14715
    
 
14716
fi
 
14717
 
 
14718
   ;;
 
14719
 
 
14720
  *)
 
14721
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
14722
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
14723
if test "${ac_cv_func_shl_load+set}" = set; then
 
14724
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14725
else
 
14726
  cat >conftest.$ac_ext <<_ACEOF
 
14727
/* confdefs.h.  */
 
14728
_ACEOF
 
14729
cat confdefs.h >>conftest.$ac_ext
 
14730
cat >>conftest.$ac_ext <<_ACEOF
 
14731
/* end confdefs.h.  */
 
14732
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
14733
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14734
#define shl_load innocuous_shl_load
 
14735
 
 
14736
/* System header to define __stub macros and hopefully few prototypes,
 
14737
    which can conflict with char shl_load (); below.
 
14738
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14739
    <limits.h> exists even on freestanding compilers.  */
 
14740
 
 
14741
#ifdef __STDC__
 
14742
# include <limits.h>
 
14743
#else
 
14744
# include <assert.h>
 
14745
#endif
 
14746
 
 
14747
#undef shl_load
 
14748
 
 
14749
/* Override any gcc2 internal prototype to avoid an error.  */
 
14750
#ifdef __cplusplus
 
14751
extern "C"
 
14752
{
 
14753
#endif
 
14754
/* We use char because int might match the return type of a gcc2
 
14755
   builtin and then its argument prototype would still apply.  */
 
14756
char shl_load ();
 
14757
/* The GNU C library defines this for functions which it implements
 
14758
    to always fail with ENOSYS.  Some functions are actually named
 
14759
    something starting with __ and the normal name is an alias.  */
 
14760
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
14761
choke me
 
14762
#else
 
14763
char (*f) () = shl_load;
 
14764
#endif
 
14765
#ifdef __cplusplus
 
14766
}
 
14767
#endif
 
14768
 
 
14769
int
 
14770
main ()
 
14771
{
 
14772
return f != shl_load;
 
14773
  ;
 
14774
  return 0;
 
14775
}
 
14776
_ACEOF
 
14777
rm -f conftest.$ac_objext conftest$ac_exeext
 
14778
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14779
  (eval $ac_link) 2>conftest.er1
 
14780
  ac_status=$?
 
14781
  grep -v '^ *+' conftest.er1 >conftest.err
 
14782
  rm -f conftest.er1
 
14783
  cat conftest.err >&5
 
14784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14785
  (exit $ac_status); } &&
 
14786
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14788
  (eval $ac_try) 2>&5
 
14789
  ac_status=$?
 
14790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14791
  (exit $ac_status); }; } &&
 
14792
         { ac_try='test -s conftest$ac_exeext'
 
14793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14794
  (eval $ac_try) 2>&5
 
14795
  ac_status=$?
 
14796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14797
  (exit $ac_status); }; }; then
 
14798
  ac_cv_func_shl_load=yes
 
14799
else
 
14800
  echo "$as_me: failed program was:" >&5
 
14801
sed 's/^/| /' conftest.$ac_ext >&5
 
14802
 
 
14803
ac_cv_func_shl_load=no
 
14804
fi
 
14805
rm -f conftest.err conftest.$ac_objext \
 
14806
      conftest$ac_exeext conftest.$ac_ext
 
14807
fi
 
14808
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
14809
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
14810
if test $ac_cv_func_shl_load = yes; then
 
14811
  lt_cv_dlopen="shl_load"
 
14812
else
 
14813
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
14814
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
14815
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
14816
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14817
else
 
14818
  ac_check_lib_save_LIBS=$LIBS
 
14819
LIBS="-ldld  $LIBS"
 
14820
cat >conftest.$ac_ext <<_ACEOF
 
14821
/* confdefs.h.  */
 
14822
_ACEOF
 
14823
cat confdefs.h >>conftest.$ac_ext
 
14824
cat >>conftest.$ac_ext <<_ACEOF
 
14825
/* end confdefs.h.  */
 
14826
 
 
14827
/* Override any gcc2 internal prototype to avoid an error.  */
 
14828
#ifdef __cplusplus
 
14829
extern "C"
 
14830
#endif
 
14831
/* We use char because int might match the return type of a gcc2
 
14832
   builtin and then its argument prototype would still apply.  */
 
14833
char shl_load ();
 
14834
int
 
14835
main ()
 
14836
{
 
14837
shl_load ();
 
14838
  ;
 
14839
  return 0;
 
14840
}
 
14841
_ACEOF
 
14842
rm -f conftest.$ac_objext conftest$ac_exeext
 
14843
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14844
  (eval $ac_link) 2>conftest.er1
 
14845
  ac_status=$?
 
14846
  grep -v '^ *+' conftest.er1 >conftest.err
 
14847
  rm -f conftest.er1
 
14848
  cat conftest.err >&5
 
14849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14850
  (exit $ac_status); } &&
 
14851
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14852
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14853
  (eval $ac_try) 2>&5
 
14854
  ac_status=$?
 
14855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14856
  (exit $ac_status); }; } &&
 
14857
         { ac_try='test -s conftest$ac_exeext'
 
14858
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14859
  (eval $ac_try) 2>&5
 
14860
  ac_status=$?
 
14861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14862
  (exit $ac_status); }; }; then
 
14863
  ac_cv_lib_dld_shl_load=yes
 
14864
else
 
14865
  echo "$as_me: failed program was:" >&5
 
14866
sed 's/^/| /' conftest.$ac_ext >&5
 
14867
 
 
14868
ac_cv_lib_dld_shl_load=no
 
14869
fi
 
14870
rm -f conftest.err conftest.$ac_objext \
 
14871
      conftest$ac_exeext conftest.$ac_ext
 
14872
LIBS=$ac_check_lib_save_LIBS
 
14873
fi
 
14874
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
14875
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
14876
if test $ac_cv_lib_dld_shl_load = yes; then
 
14877
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
14878
else
 
14879
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
14880
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
14881
if test "${ac_cv_func_dlopen+set}" = set; then
 
14882
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14883
else
 
14884
  cat >conftest.$ac_ext <<_ACEOF
 
14885
/* confdefs.h.  */
 
14886
_ACEOF
 
14887
cat confdefs.h >>conftest.$ac_ext
 
14888
cat >>conftest.$ac_ext <<_ACEOF
 
14889
/* end confdefs.h.  */
 
14890
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
14891
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14892
#define dlopen innocuous_dlopen
 
14893
 
 
14894
/* System header to define __stub macros and hopefully few prototypes,
 
14895
    which can conflict with char dlopen (); below.
 
14896
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14897
    <limits.h> exists even on freestanding compilers.  */
 
14898
 
 
14899
#ifdef __STDC__
 
14900
# include <limits.h>
 
14901
#else
 
14902
# include <assert.h>
 
14903
#endif
 
14904
 
 
14905
#undef dlopen
 
14906
 
 
14907
/* Override any gcc2 internal prototype to avoid an error.  */
 
14908
#ifdef __cplusplus
 
14909
extern "C"
 
14910
{
 
14911
#endif
 
14912
/* We use char because int might match the return type of a gcc2
 
14913
   builtin and then its argument prototype would still apply.  */
 
14914
char dlopen ();
 
14915
/* The GNU C library defines this for functions which it implements
 
14916
    to always fail with ENOSYS.  Some functions are actually named
 
14917
    something starting with __ and the normal name is an alias.  */
 
14918
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
14919
choke me
 
14920
#else
 
14921
char (*f) () = dlopen;
 
14922
#endif
 
14923
#ifdef __cplusplus
 
14924
}
 
14925
#endif
 
14926
 
 
14927
int
 
14928
main ()
 
14929
{
 
14930
return f != dlopen;
 
14931
  ;
 
14932
  return 0;
 
14933
}
 
14934
_ACEOF
 
14935
rm -f conftest.$ac_objext conftest$ac_exeext
 
14936
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14937
  (eval $ac_link) 2>conftest.er1
 
14938
  ac_status=$?
 
14939
  grep -v '^ *+' conftest.er1 >conftest.err
 
14940
  rm -f conftest.er1
 
14941
  cat conftest.err >&5
 
14942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14943
  (exit $ac_status); } &&
 
14944
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14945
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14946
  (eval $ac_try) 2>&5
 
14947
  ac_status=$?
 
14948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14949
  (exit $ac_status); }; } &&
 
14950
         { ac_try='test -s conftest$ac_exeext'
 
14951
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14952
  (eval $ac_try) 2>&5
 
14953
  ac_status=$?
 
14954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14955
  (exit $ac_status); }; }; then
 
14956
  ac_cv_func_dlopen=yes
 
14957
else
 
14958
  echo "$as_me: failed program was:" >&5
 
14959
sed 's/^/| /' conftest.$ac_ext >&5
 
14960
 
 
14961
ac_cv_func_dlopen=no
 
14962
fi
 
14963
rm -f conftest.err conftest.$ac_objext \
 
14964
      conftest$ac_exeext conftest.$ac_ext
 
14965
fi
 
14966
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
14967
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
14968
if test $ac_cv_func_dlopen = yes; then
 
14969
  lt_cv_dlopen="dlopen"
 
14970
else
 
14971
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
14972
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
14973
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
14974
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14975
else
 
14976
  ac_check_lib_save_LIBS=$LIBS
 
14977
LIBS="-ldl  $LIBS"
 
14978
cat >conftest.$ac_ext <<_ACEOF
 
14979
/* confdefs.h.  */
 
14980
_ACEOF
 
14981
cat confdefs.h >>conftest.$ac_ext
 
14982
cat >>conftest.$ac_ext <<_ACEOF
 
14983
/* end confdefs.h.  */
 
14984
 
 
14985
/* Override any gcc2 internal prototype to avoid an error.  */
 
14986
#ifdef __cplusplus
 
14987
extern "C"
 
14988
#endif
 
14989
/* We use char because int might match the return type of a gcc2
 
14990
   builtin and then its argument prototype would still apply.  */
 
14991
char dlopen ();
 
14992
int
 
14993
main ()
 
14994
{
 
14995
dlopen ();
 
14996
  ;
 
14997
  return 0;
 
14998
}
 
14999
_ACEOF
 
15000
rm -f conftest.$ac_objext conftest$ac_exeext
 
15001
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15002
  (eval $ac_link) 2>conftest.er1
 
15003
  ac_status=$?
 
15004
  grep -v '^ *+' conftest.er1 >conftest.err
 
15005
  rm -f conftest.er1
 
15006
  cat conftest.err >&5
 
15007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15008
  (exit $ac_status); } &&
 
15009
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
15010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15011
  (eval $ac_try) 2>&5
 
15012
  ac_status=$?
 
15013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15014
  (exit $ac_status); }; } &&
 
15015
         { ac_try='test -s conftest$ac_exeext'
 
15016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15017
  (eval $ac_try) 2>&5
 
15018
  ac_status=$?
 
15019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15020
  (exit $ac_status); }; }; then
 
15021
  ac_cv_lib_dl_dlopen=yes
 
15022
else
 
15023
  echo "$as_me: failed program was:" >&5
 
15024
sed 's/^/| /' conftest.$ac_ext >&5
 
15025
 
 
15026
ac_cv_lib_dl_dlopen=no
 
15027
fi
 
15028
rm -f conftest.err conftest.$ac_objext \
 
15029
      conftest$ac_exeext conftest.$ac_ext
 
15030
LIBS=$ac_check_lib_save_LIBS
 
15031
fi
 
15032
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
15033
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
15034
if test $ac_cv_lib_dl_dlopen = yes; then
 
15035
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
15036
else
 
15037
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
15038
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
15039
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
15040
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15041
else
 
15042
  ac_check_lib_save_LIBS=$LIBS
 
15043
LIBS="-lsvld  $LIBS"
 
15044
cat >conftest.$ac_ext <<_ACEOF
 
15045
/* confdefs.h.  */
 
15046
_ACEOF
 
15047
cat confdefs.h >>conftest.$ac_ext
 
15048
cat >>conftest.$ac_ext <<_ACEOF
 
15049
/* end confdefs.h.  */
 
15050
 
 
15051
/* Override any gcc2 internal prototype to avoid an error.  */
 
15052
#ifdef __cplusplus
 
15053
extern "C"
 
15054
#endif
 
15055
/* We use char because int might match the return type of a gcc2
 
15056
   builtin and then its argument prototype would still apply.  */
 
15057
char dlopen ();
 
15058
int
 
15059
main ()
 
15060
{
 
15061
dlopen ();
 
15062
  ;
 
15063
  return 0;
 
15064
}
 
15065
_ACEOF
 
15066
rm -f conftest.$ac_objext conftest$ac_exeext
 
15067
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15068
  (eval $ac_link) 2>conftest.er1
 
15069
  ac_status=$?
 
15070
  grep -v '^ *+' conftest.er1 >conftest.err
 
15071
  rm -f conftest.er1
 
15072
  cat conftest.err >&5
 
15073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15074
  (exit $ac_status); } &&
 
15075
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
15076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15077
  (eval $ac_try) 2>&5
 
15078
  ac_status=$?
 
15079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15080
  (exit $ac_status); }; } &&
 
15081
         { ac_try='test -s conftest$ac_exeext'
 
15082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15083
  (eval $ac_try) 2>&5
 
15084
  ac_status=$?
 
15085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15086
  (exit $ac_status); }; }; then
 
15087
  ac_cv_lib_svld_dlopen=yes
 
15088
else
 
15089
  echo "$as_me: failed program was:" >&5
 
15090
sed 's/^/| /' conftest.$ac_ext >&5
 
15091
 
 
15092
ac_cv_lib_svld_dlopen=no
 
15093
fi
 
15094
rm -f conftest.err conftest.$ac_objext \
 
15095
      conftest$ac_exeext conftest.$ac_ext
 
15096
LIBS=$ac_check_lib_save_LIBS
 
15097
fi
 
15098
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
15099
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
15100
if test $ac_cv_lib_svld_dlopen = yes; then
 
15101
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
15102
else
 
15103
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
15104
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
15105
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
15106
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15107
else
 
15108
  ac_check_lib_save_LIBS=$LIBS
 
15109
LIBS="-ldld  $LIBS"
 
15110
cat >conftest.$ac_ext <<_ACEOF
 
15111
/* confdefs.h.  */
 
15112
_ACEOF
 
15113
cat confdefs.h >>conftest.$ac_ext
 
15114
cat >>conftest.$ac_ext <<_ACEOF
 
15115
/* end confdefs.h.  */
 
15116
 
 
15117
/* Override any gcc2 internal prototype to avoid an error.  */
 
15118
#ifdef __cplusplus
 
15119
extern "C"
 
15120
#endif
 
15121
/* We use char because int might match the return type of a gcc2
 
15122
   builtin and then its argument prototype would still apply.  */
 
15123
char dld_link ();
 
15124
int
 
15125
main ()
 
15126
{
 
15127
dld_link ();
 
15128
  ;
 
15129
  return 0;
 
15130
}
 
15131
_ACEOF
 
15132
rm -f conftest.$ac_objext conftest$ac_exeext
 
15133
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15134
  (eval $ac_link) 2>conftest.er1
 
15135
  ac_status=$?
 
15136
  grep -v '^ *+' conftest.er1 >conftest.err
 
15137
  rm -f conftest.er1
 
15138
  cat conftest.err >&5
 
15139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15140
  (exit $ac_status); } &&
 
15141
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
15142
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15143
  (eval $ac_try) 2>&5
 
15144
  ac_status=$?
 
15145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15146
  (exit $ac_status); }; } &&
 
15147
         { ac_try='test -s conftest$ac_exeext'
 
15148
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15149
  (eval $ac_try) 2>&5
 
15150
  ac_status=$?
 
15151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15152
  (exit $ac_status); }; }; then
 
15153
  ac_cv_lib_dld_dld_link=yes
 
15154
else
 
15155
  echo "$as_me: failed program was:" >&5
 
15156
sed 's/^/| /' conftest.$ac_ext >&5
 
15157
 
 
15158
ac_cv_lib_dld_dld_link=no
 
15159
fi
 
15160
rm -f conftest.err conftest.$ac_objext \
 
15161
      conftest$ac_exeext conftest.$ac_ext
 
15162
LIBS=$ac_check_lib_save_LIBS
 
15163
fi
 
15164
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
15165
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
15166
if test $ac_cv_lib_dld_dld_link = yes; then
 
15167
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
15168
fi
 
15169
 
 
15170
              
 
15171
fi
 
15172
 
 
15173
            
 
15174
fi
 
15175
 
 
15176
          
 
15177
fi
 
15178
 
 
15179
        
 
15180
fi
 
15181
 
 
15182
      
 
15183
fi
 
15184
 
 
15185
    ;;
 
15186
  esac
 
15187
 
 
15188
  if test "x$lt_cv_dlopen" != xno; then
 
15189
    enable_dlopen=yes
 
15190
  else
 
15191
    enable_dlopen=no
 
15192
  fi
 
15193
 
 
15194
  case $lt_cv_dlopen in
 
15195
  dlopen)
 
15196
    save_CPPFLAGS="$CPPFLAGS"
 
15197
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
15198
 
 
15199
    save_LDFLAGS="$LDFLAGS"
 
15200
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
15201
 
 
15202
    save_LIBS="$LIBS"
 
15203
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
15204
 
 
15205
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
15206
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
15207
if test "${lt_cv_dlopen_self+set}" = set; then
 
15208
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15209
else
 
15210
          if test "$cross_compiling" = yes; then :
 
15211
  lt_cv_dlopen_self=cross
 
15212
else
 
15213
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
15214
  lt_status=$lt_dlunknown
 
15215
  cat > conftest.$ac_ext <<EOF
 
15216
#line __oline__ "configure"
 
15217
#include "confdefs.h"
 
15218
 
 
15219
#if HAVE_DLFCN_H
 
15220
#include <dlfcn.h>
 
15221
#endif
 
15222
 
 
15223
#include <stdio.h>
 
15224
 
 
15225
#ifdef RTLD_GLOBAL
 
15226
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
15227
#else
 
15228
#  ifdef DL_GLOBAL
 
15229
#    define LT_DLGLOBAL         DL_GLOBAL
 
15230
#  else
 
15231
#    define LT_DLGLOBAL         0
 
15232
#  endif
 
15233
#endif
 
15234
 
 
15235
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
15236
   find out it does not work in some platform. */
 
15237
#ifndef LT_DLLAZY_OR_NOW
 
15238
#  ifdef RTLD_LAZY
 
15239
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
15240
#  else
 
15241
#    ifdef DL_LAZY
 
15242
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
15243
#    else
 
15244
#      ifdef RTLD_NOW
 
15245
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
15246
#      else
 
15247
#        ifdef DL_NOW
 
15248
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
15249
#        else
 
15250
#          define LT_DLLAZY_OR_NOW      0
 
15251
#        endif
 
15252
#      endif
 
15253
#    endif
 
15254
#  endif
 
15255
#endif
 
15256
 
 
15257
#ifdef __cplusplus
 
15258
extern "C" void exit (int);
 
15259
#endif
 
15260
 
 
15261
void fnord() { int i=42;}
 
15262
int main ()
 
15263
{
 
15264
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
15265
  int status = $lt_dlunknown;
 
15266
 
 
15267
  if (self)
 
15268
    {
 
15269
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
15270
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
15271
      /* dlclose (self); */
 
15272
    }
 
15273
 
 
15274
    exit (status);
 
15275
}
 
15276
EOF
 
15277
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15278
  (eval $ac_link) 2>&5
 
15279
  ac_status=$?
 
15280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15281
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
15282
    (./conftest; exit; ) 2>/dev/null
 
15283
    lt_status=$?
 
15284
    case x$lt_status in
 
15285
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
15286
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
15287
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
15288
    esac
 
15289
  else :
 
15290
    # compilation failed
 
15291
    lt_cv_dlopen_self=no
 
15292
  fi
 
15293
fi
 
15294
rm -fr conftest*
 
15295
 
 
15296
    
 
15297
fi
 
15298
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
15299
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
15300
 
 
15301
    if test "x$lt_cv_dlopen_self" = xyes; then
 
15302
      LDFLAGS="$LDFLAGS $link_static_flag"
 
15303
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
15304
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
15305
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
15306
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15307
else
 
15308
          if test "$cross_compiling" = yes; then :
 
15309
  lt_cv_dlopen_self_static=cross
 
15310
else
 
15311
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
15312
  lt_status=$lt_dlunknown
 
15313
  cat > conftest.$ac_ext <<EOF
 
15314
#line __oline__ "configure"
 
15315
#include "confdefs.h"
 
15316
 
 
15317
#if HAVE_DLFCN_H
 
15318
#include <dlfcn.h>
 
15319
#endif
 
15320
 
 
15321
#include <stdio.h>
 
15322
 
 
15323
#ifdef RTLD_GLOBAL
 
15324
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
15325
#else
 
15326
#  ifdef DL_GLOBAL
 
15327
#    define LT_DLGLOBAL         DL_GLOBAL
 
15328
#  else
 
15329
#    define LT_DLGLOBAL         0
 
15330
#  endif
 
15331
#endif
 
15332
 
 
15333
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
15334
   find out it does not work in some platform. */
 
15335
#ifndef LT_DLLAZY_OR_NOW
 
15336
#  ifdef RTLD_LAZY
 
15337
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
15338
#  else
 
15339
#    ifdef DL_LAZY
 
15340
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
15341
#    else
 
15342
#      ifdef RTLD_NOW
 
15343
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
15344
#      else
 
15345
#        ifdef DL_NOW
 
15346
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
15347
#        else
 
15348
#          define LT_DLLAZY_OR_NOW      0
 
15349
#        endif
 
15350
#      endif
 
15351
#    endif
 
15352
#  endif
 
15353
#endif
 
15354
 
 
15355
#ifdef __cplusplus
 
15356
extern "C" void exit (int);
 
15357
#endif
 
15358
 
 
15359
void fnord() { int i=42;}
 
15360
int main ()
 
15361
{
 
15362
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
15363
  int status = $lt_dlunknown;
 
15364
 
 
15365
  if (self)
 
15366
    {
 
15367
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
15368
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
15369
      /* dlclose (self); */
 
15370
    }
 
15371
 
 
15372
    exit (status);
 
15373
}
 
15374
EOF
 
15375
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15376
  (eval $ac_link) 2>&5
 
15377
  ac_status=$?
 
15378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15379
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
15380
    (./conftest; exit; ) 2>/dev/null
 
15381
    lt_status=$?
 
15382
    case x$lt_status in
 
15383
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
15384
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
15385
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
15386
    esac
 
15387
  else :
 
15388
    # compilation failed
 
15389
    lt_cv_dlopen_self_static=no
 
15390
  fi
 
15391
fi
 
15392
rm -fr conftest*
 
15393
 
 
15394
      
 
15395
fi
 
15396
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
15397
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
15398
    fi
 
15399
 
 
15400
    CPPFLAGS="$save_CPPFLAGS"
 
15401
    LDFLAGS="$save_LDFLAGS"
 
15402
    LIBS="$save_LIBS"
 
15403
    ;;
 
15404
  esac
 
15405
 
 
15406
  case $lt_cv_dlopen_self in
 
15407
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
15408
  *) enable_dlopen_self=unknown ;;
 
15409
  esac
 
15410
 
 
15411
  case $lt_cv_dlopen_self_static in
 
15412
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
15413
  *) enable_dlopen_self_static=unknown ;;
 
15414
  esac
 
15415
fi
 
15416
 
 
15417
 
 
15418
# The else clause should only fire when bootstrapping the
 
15419
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15420
# with your package, and you will get complaints that there are
 
15421
# no rules to generate ltmain.sh.
 
15422
if test -f "$ltmain"; then
 
15423
  # See if we are running on zsh, and set the options which allow our commands through
 
15424
  # without removal of \ escapes.
 
15425
  if test -n "${ZSH_VERSION+set}" ; then
 
15426
    setopt NO_GLOB_SUBST
 
15427
  fi
 
15428
  # Now quote all the things that may contain metacharacters while being
 
15429
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15430
  # variables and quote the copies for generation of the libtool script.
 
15431
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15432
    SED SHELL STRIP \
 
15433
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15434
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15435
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15436
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15437
    lt_cv_sys_global_symbol_to_c_name_address \
 
15438
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15439
    old_postinstall_cmds old_postuninstall_cmds \
 
15440
    compiler_CXX \
 
15441
    CC_CXX \
 
15442
    LD_CXX \
 
15443
    lt_prog_compiler_wl_CXX \
 
15444
    lt_prog_compiler_pic_CXX \
 
15445
    lt_prog_compiler_static_CXX \
 
15446
    lt_prog_compiler_no_builtin_flag_CXX \
 
15447
    export_dynamic_flag_spec_CXX \
 
15448
    thread_safe_flag_spec_CXX \
 
15449
    whole_archive_flag_spec_CXX \
 
15450
    enable_shared_with_static_runtimes_CXX \
 
15451
    old_archive_cmds_CXX \
 
15452
    old_archive_from_new_cmds_CXX \
 
15453
    predep_objects_CXX \
 
15454
    postdep_objects_CXX \
 
15455
    predeps_CXX \
 
15456
    postdeps_CXX \
 
15457
    compiler_lib_search_path_CXX \
 
15458
    archive_cmds_CXX \
 
15459
    archive_expsym_cmds_CXX \
 
15460
    postinstall_cmds_CXX \
 
15461
    postuninstall_cmds_CXX \
 
15462
    old_archive_from_expsyms_cmds_CXX \
 
15463
    allow_undefined_flag_CXX \
 
15464
    no_undefined_flag_CXX \
 
15465
    export_symbols_cmds_CXX \
 
15466
    hardcode_libdir_flag_spec_CXX \
 
15467
    hardcode_libdir_flag_spec_ld_CXX \
 
15468
    hardcode_libdir_separator_CXX \
 
15469
    hardcode_automatic_CXX \
 
15470
    module_cmds_CXX \
 
15471
    module_expsym_cmds_CXX \
 
15472
    lt_cv_prog_compiler_c_o_CXX \
 
15473
    exclude_expsyms_CXX \
 
15474
    include_expsyms_CXX; do
 
15475
 
 
15476
    case $var in
 
15477
    old_archive_cmds_CXX | \
 
15478
    old_archive_from_new_cmds_CXX | \
 
15479
    archive_cmds_CXX | \
 
15480
    archive_expsym_cmds_CXX | \
 
15481
    module_cmds_CXX | \
 
15482
    module_expsym_cmds_CXX | \
 
15483
    old_archive_from_expsyms_cmds_CXX | \
 
15484
    export_symbols_cmds_CXX | \
 
15485
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15486
    postinstall_cmds | postuninstall_cmds | \
 
15487
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15488
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15489
      # Double-quote double-evaled strings.
 
15490
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15491
      ;;
 
15492
    *)
 
15493
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15494
      ;;
 
15495
    esac
 
15496
  done
 
15497
 
 
15498
  case $lt_echo in
 
15499
  *'\$0 --fallback-echo"')
 
15500
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15501
    ;;
 
15502
  esac
 
15503
 
 
15504
cfgfile="$ofile"
 
15505
 
 
15506
  cat <<__EOF__ >> "$cfgfile"
 
15507
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15508
 
 
15509
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15510
 
 
15511
# Shell to use when invoking shell scripts.
 
15512
SHELL=$lt_SHELL
 
15513
 
 
15514
# Whether or not to build shared libraries.
 
15515
build_libtool_libs=$enable_shared
 
15516
 
 
15517
# Whether or not to build static libraries.
 
15518
build_old_libs=$enable_static
 
15519
 
 
15520
# Whether or not to add -lc for building shared libraries.
 
15521
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
15522
 
 
15523
# Whether or not to disallow shared libs when runtime libs are static
 
15524
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
15525
 
 
15526
# Whether or not to optimize for fast installation.
 
15527
fast_install=$enable_fast_install
 
15528
 
 
15529
# The host system.
 
15530
host_alias=$host_alias
 
15531
host=$host
 
15532
 
 
15533
# An echo program that does not interpret backslashes.
 
15534
echo=$lt_echo
 
15535
 
 
15536
# The archiver.
 
15537
AR=$lt_AR
 
15538
AR_FLAGS=$lt_AR_FLAGS
 
15539
 
 
15540
# A C compiler.
 
15541
LTCC=$lt_LTCC
 
15542
 
 
15543
# A language-specific compiler.
 
15544
CC=$lt_compiler_CXX
 
15545
 
 
15546
# Is the compiler the GNU C compiler?
 
15547
with_gcc=$GCC_CXX
 
15548
 
 
15549
# An ERE matcher.
 
15550
EGREP=$lt_EGREP
 
15551
 
 
15552
# The linker used to build libraries.
 
15553
LD=$lt_LD_CXX
 
15554
 
 
15555
# Whether we need hard or soft links.
 
15556
LN_S=$lt_LN_S
 
15557
 
 
15558
# A BSD-compatible nm program.
 
15559
NM=$lt_NM
 
15560
 
 
15561
# A symbol stripping program
 
15562
STRIP=$lt_STRIP
 
15563
 
 
15564
# Used to examine libraries when file_magic_cmd begins "file"
 
15565
MAGIC_CMD=$MAGIC_CMD
 
15566
 
 
15567
# Used on cygwin: DLL creation program.
 
15568
DLLTOOL="$DLLTOOL"
 
15569
 
 
15570
# Used on cygwin: object dumper.
 
15571
OBJDUMP="$OBJDUMP"
 
15572
 
 
15573
# Used on cygwin: assembler.
 
15574
AS="$AS"
 
15575
 
 
15576
# The name of the directory that contains temporary libtool files.
 
15577
objdir=$objdir
 
15578
 
 
15579
# How to create reloadable object files.
 
15580
reload_flag=$lt_reload_flag
 
15581
reload_cmds=$lt_reload_cmds
 
15582
 
 
15583
# How to pass a linker flag through the compiler.
 
15584
wl=$lt_lt_prog_compiler_wl_CXX
 
15585
 
 
15586
# Object file suffix (normally "o").
 
15587
objext="$ac_objext"
 
15588
 
 
15589
# Old archive suffix (normally "a").
 
15590
libext="$libext"
 
15591
 
 
15592
# Shared library suffix (normally ".so").
 
15593
shrext_cmds='$shrext_cmds'
 
15594
 
 
15595
# Executable file suffix (normally "").
 
15596
exeext="$exeext"
 
15597
 
 
15598
# Additional compiler flags for building library objects.
 
15599
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
15600
pic_mode=$pic_mode
 
15601
 
 
15602
# What is the maximum length of a command?
 
15603
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15604
 
 
15605
# Does compiler simultaneously support -c and -o options?
 
15606
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
15607
 
 
15608
# Must we lock files when doing compilation ?
 
15609
need_locks=$lt_need_locks
 
15610
 
 
15611
# Do we need the lib prefix for modules?
 
15612
need_lib_prefix=$need_lib_prefix
 
15613
 
 
15614
# Do we need a version for libraries?
 
15615
need_version=$need_version
 
15616
 
 
15617
# Whether dlopen is supported.
 
15618
dlopen_support=$enable_dlopen
 
15619
 
 
15620
# Whether dlopen of programs is supported.
 
15621
dlopen_self=$enable_dlopen_self
 
15622
 
 
15623
# Whether dlopen of statically linked programs is supported.
 
15624
dlopen_self_static=$enable_dlopen_self_static
 
15625
 
 
15626
# Compiler flag to prevent dynamic linking.
 
15627
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
15628
 
 
15629
# Compiler flag to turn off builtin functions.
 
15630
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
15631
 
 
15632
# Compiler flag to allow reflexive dlopens.
 
15633
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
15634
 
 
15635
# Compiler flag to generate shared objects directly from archives.
 
15636
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
15637
 
 
15638
# Compiler flag to generate thread-safe objects.
 
15639
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
15640
 
 
15641
# Library versioning type.
 
15642
version_type=$version_type
 
15643
 
 
15644
# Format of library name prefix.
 
15645
libname_spec=$lt_libname_spec
 
15646
 
 
15647
# List of archive names.  First name is the real one, the rest are links.
 
15648
# The last name is the one that the linker finds with -lNAME.
 
15649
library_names_spec=$lt_library_names_spec
 
15650
 
 
15651
# The coded name of the library, if different from the real name.
 
15652
soname_spec=$lt_soname_spec
 
15653
 
 
15654
# Commands used to build and install an old-style archive.
 
15655
RANLIB=$lt_RANLIB
 
15656
old_archive_cmds=$lt_old_archive_cmds_CXX
 
15657
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15658
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15659
 
 
15660
# Create an old-style archive from a shared archive.
 
15661
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
15662
 
 
15663
# Create a temporary old-style archive to link instead of a shared archive.
 
15664
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
15665
 
 
15666
# Commands used to build and install a shared archive.
 
15667
archive_cmds=$lt_archive_cmds_CXX
 
15668
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
15669
postinstall_cmds=$lt_postinstall_cmds
 
15670
postuninstall_cmds=$lt_postuninstall_cmds
 
15671
 
 
15672
# Commands used to build a loadable module (assumed same as above if empty)
 
15673
module_cmds=$lt_module_cmds_CXX
 
15674
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
15675
 
 
15676
# Commands to strip libraries.
 
15677
old_striplib=$lt_old_striplib
 
15678
striplib=$lt_striplib
 
15679
 
 
15680
# Dependencies to place before the objects being linked to create a
 
15681
# shared library.
 
15682
predep_objects=$lt_predep_objects_CXX
 
15683
 
 
15684
# Dependencies to place after the objects being linked to create a
 
15685
# shared library.
 
15686
postdep_objects=$lt_postdep_objects_CXX
 
15687
 
 
15688
# Dependencies to place before the objects being linked to create a
 
15689
# shared library.
 
15690
predeps=$lt_predeps_CXX
 
15691
 
 
15692
# Dependencies to place after the objects being linked to create a
 
15693
# shared library.
 
15694
postdeps=$lt_postdeps_CXX
 
15695
 
 
15696
# The library search path used internally by the compiler when linking
 
15697
# a shared library.
 
15698
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
15699
 
 
15700
# Method to check whether dependent libraries are shared objects.
 
15701
deplibs_check_method=$lt_deplibs_check_method
 
15702
 
 
15703
# Command to use when deplibs_check_method == file_magic.
 
15704
file_magic_cmd=$lt_file_magic_cmd
 
15705
 
 
15706
# Flag that allows shared libraries with undefined symbols to be built.
 
15707
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
15708
 
 
15709
# Flag that forces no undefined symbols.
 
15710
no_undefined_flag=$lt_no_undefined_flag_CXX
 
15711
 
 
15712
# Commands used to finish a libtool library installation in a directory.
 
15713
finish_cmds=$lt_finish_cmds
 
15714
 
 
15715
# Same as above, but a single script fragment to be evaled but not shown.
 
15716
finish_eval=$lt_finish_eval
 
15717
 
 
15718
# Take the output of nm and produce a listing of raw symbols and C names.
 
15719
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15720
 
 
15721
# Transform the output of nm in a proper C declaration
 
15722
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15723
 
 
15724
# Transform the output of nm in a C name address pair
 
15725
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15726
 
 
15727
# This is the shared library runtime path variable.
 
15728
runpath_var=$runpath_var
 
15729
 
 
15730
# This is the shared library path variable.
 
15731
shlibpath_var=$shlibpath_var
 
15732
 
 
15733
# Is shlibpath searched before the hard-coded library search path?
 
15734
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15735
 
 
15736
# How to hardcode a shared library path into an executable.
 
15737
hardcode_action=$hardcode_action_CXX
 
15738
 
 
15739
# Whether we should hardcode library paths into libraries.
 
15740
hardcode_into_libs=$hardcode_into_libs
 
15741
 
 
15742
# Flag to hardcode \$libdir into a binary during linking.
 
15743
# This must work even if \$libdir does not exist.
 
15744
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
15745
 
 
15746
# If ld is used when linking, flag to hardcode \$libdir into
 
15747
# a binary during linking. This must work even if \$libdir does
 
15748
# not exist.
 
15749
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
15750
 
 
15751
# Whether we need a single -rpath flag with a separated argument.
 
15752
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
15753
 
 
15754
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15755
# resulting binary.
 
15756
hardcode_direct=$hardcode_direct_CXX
 
15757
 
 
15758
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15759
# resulting binary.
 
15760
hardcode_minus_L=$hardcode_minus_L_CXX
 
15761
 
 
15762
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15763
# the resulting binary.
 
15764
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
15765
 
 
15766
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15767
# and all subsequent libraries and executables linked against it.
 
15768
hardcode_automatic=$hardcode_automatic_CXX
 
15769
 
 
15770
# Variables whose values should be saved in libtool wrapper scripts and
 
15771
# restored at relink time.
 
15772
variables_saved_for_relink="$variables_saved_for_relink"
 
15773
 
 
15774
# Whether libtool must link a program against all its dependency libraries.
 
15775
link_all_deplibs=$link_all_deplibs_CXX
 
15776
 
 
15777
# Compile-time system search path for libraries
 
15778
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15779
 
 
15780
# Run-time system search path for libraries
 
15781
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15782
 
 
15783
# Fix the shell variable \$srcfile for the compiler.
 
15784
fix_srcfile_path="$fix_srcfile_path_CXX"
 
15785
 
 
15786
# Set to yes if exported symbols are required.
 
15787
always_export_symbols=$always_export_symbols_CXX
 
15788
 
 
15789
# The commands to list exported symbols.
 
15790
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
15791
 
 
15792
# The commands to extract the exported symbol list from a shared archive.
 
15793
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15794
 
 
15795
# Symbols that should not be listed in the preloaded symbols.
 
15796
exclude_expsyms=$lt_exclude_expsyms_CXX
 
15797
 
 
15798
# Symbols that must always be exported.
 
15799
include_expsyms=$lt_include_expsyms_CXX
 
15800
 
 
15801
# ### END LIBTOOL TAG CONFIG: $tagname
 
15802
 
 
15803
__EOF__
 
15804
 
 
15805
 
 
15806
else
 
15807
  # If there is no Makefile yet, we rely on a make rule to execute
 
15808
  # `config.status --recheck' to rerun these tests and create the
 
15809
  # libtool script then.
 
15810
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15811
  if test -f "$ltmain_in"; then
 
15812
    test -f Makefile && make "$ltmain"
 
15813
  fi
 
15814
fi
 
15815
 
 
15816
 
 
15817
ac_ext=c
 
15818
ac_cpp='$CPP $CPPFLAGS'
 
15819
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15820
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15821
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15822
 
 
15823
CC=$lt_save_CC
 
15824
LDCXX=$LD
 
15825
LD=$lt_save_LD
 
15826
GCC=$lt_save_GCC
 
15827
with_gnu_ldcxx=$with_gnu_ld
 
15828
with_gnu_ld=$lt_save_with_gnu_ld
 
15829
lt_cv_path_LDCXX=$lt_cv_path_LD
 
15830
lt_cv_path_LD=$lt_save_path_LD
 
15831
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15832
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15833
 
 
15834
        else
 
15835
          tagname=""
 
15836
        fi
 
15837
        ;;
 
15838
 
 
15839
      F77)
 
15840
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
15841
          
 
15842
ac_ext=f
 
15843
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
15844
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15845
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
15846
 
 
15847
 
 
15848
archive_cmds_need_lc_F77=no
 
15849
allow_undefined_flag_F77=
 
15850
always_export_symbols_F77=no
 
15851
archive_expsym_cmds_F77=
 
15852
export_dynamic_flag_spec_F77=
 
15853
hardcode_direct_F77=no
 
15854
hardcode_libdir_flag_spec_F77=
 
15855
hardcode_libdir_flag_spec_ld_F77=
 
15856
hardcode_libdir_separator_F77=
 
15857
hardcode_minus_L_F77=no
 
15858
hardcode_automatic_F77=no
 
15859
module_cmds_F77=
 
15860
module_expsym_cmds_F77=
 
15861
link_all_deplibs_F77=unknown
 
15862
old_archive_cmds_F77=$old_archive_cmds
 
15863
no_undefined_flag_F77=
 
15864
whole_archive_flag_spec_F77=
 
15865
enable_shared_with_static_runtimes_F77=no
 
15866
 
 
15867
# Source file extension for f77 test sources.
 
15868
ac_ext=f
 
15869
 
 
15870
# Object file extension for compiled f77 test sources.
 
15871
objext=o
 
15872
objext_F77=$objext
 
15873
 
 
15874
# Code to be used in simple compile tests
 
15875
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
15876
 
 
15877
# Code to be used in simple link tests
 
15878
lt_simple_link_test_code="      program t\n      end\n"
 
15879
 
 
15880
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15881
 
 
15882
# If no C compiler was specified, use CC.
 
15883
LTCC=${LTCC-"$CC"}
 
15884
 
 
15885
# Allow CC to be a program name with arguments.
 
15886
compiler=$CC
 
15887
 
 
15888
 
 
15889
# Allow CC to be a program name with arguments.
 
15890
lt_save_CC="$CC"
 
15891
CC=${F77-"f77"}
 
15892
compiler=$CC
 
15893
compiler_F77=$CC
 
15894
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
15895
 
 
15896
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
15897
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
15898
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
15899
echo "${ECHO_T}$can_build_shared" >&6
 
15900
 
 
15901
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
15902
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
15903
test "$can_build_shared" = "no" && enable_shared=no
 
15904
 
 
15905
# On AIX, shared libraries and static libraries use the same namespace, and
 
15906
# are all built from PIC.
 
15907
case "$host_os" in
 
15908
aix3*)
 
15909
  test "$enable_shared" = yes && enable_static=no
 
15910
  if test -n "$RANLIB"; then
 
15911
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
15912
    postinstall_cmds='$RANLIB $lib'
 
15913
  fi
 
15914
  ;;
 
15915
aix4* | aix5*)
 
15916
  test "$enable_shared" = yes && enable_static=no
 
15917
  ;;
 
15918
esac
 
15919
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
15920
echo "${ECHO_T}$enable_shared" >&6
 
15921
 
 
15922
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
15923
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
15924
# Make sure either enable_shared or enable_static is yes.
 
15925
test "$enable_shared" = yes || enable_static=yes
 
15926
echo "$as_me:$LINENO: result: $enable_static" >&5
 
15927
echo "${ECHO_T}$enable_static" >&6
 
15928
 
 
15929
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15930
 
 
15931
GCC_F77="$G77"
 
15932
LD_F77="$LD"
 
15933
 
 
15934
lt_prog_compiler_wl_F77=
 
15935
lt_prog_compiler_pic_F77=
 
15936
lt_prog_compiler_static_F77=
 
15937
 
 
15938
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15939
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15940
 
 
15941
  if test "$GCC" = yes; then
 
15942
    lt_prog_compiler_wl_F77='-Wl,'
 
15943
    lt_prog_compiler_static_F77='-static'
 
15944
 
 
15945
    case $host_os in
 
15946
      aix*)
 
15947
      # All AIX code is PIC.
 
15948
      if test "$host_cpu" = ia64; then
 
15949
        # AIX 5 now supports IA64 processor
 
15950
        lt_prog_compiler_static_F77='-Bstatic'
 
15951
      fi
 
15952
      ;;
 
15953
 
 
15954
    amigaos*)
 
15955
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15956
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15957
      # like `-m68040'.
 
15958
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
15959
      ;;
 
15960
 
 
15961
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15962
      # PIC is the default for these OSes.
 
15963
      ;;
 
15964
 
 
15965
    mingw* | pw32* | os2*)
 
15966
      # This hack is so that the source file can tell whether it is being
 
15967
      # built for inclusion in a dll (and should export symbols for example).
 
15968
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
15969
      ;;
 
15970
 
 
15971
    darwin* | rhapsody*)
 
15972
      # PIC is the default on this platform
 
15973
      # Common symbols not allowed in MH_DYLIB files
 
15974
      lt_prog_compiler_pic_F77='-fno-common'
 
15975
      ;;
 
15976
 
 
15977
    msdosdjgpp*)
 
15978
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15979
      # on systems that don't support them.
 
15980
      lt_prog_compiler_can_build_shared_F77=no
 
15981
      enable_shared=no
 
15982
      ;;
 
15983
 
 
15984
    sysv4*MP*)
 
15985
      if test -d /usr/nec; then
 
15986
        lt_prog_compiler_pic_F77=-Kconform_pic
 
15987
      fi
 
15988
      ;;
 
15989
 
 
15990
    hpux*)
 
15991
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15992
      # not for PA HP-UX.
 
15993
      case "$host_cpu" in
 
15994
      hppa*64*|ia64*)
 
15995
        # +Z the default
 
15996
        ;;
 
15997
      *)
 
15998
        lt_prog_compiler_pic_F77='-fPIC'
 
15999
        ;;
 
16000
      esac
 
16001
      ;;
 
16002
 
 
16003
    *)
 
16004
      lt_prog_compiler_pic_F77='-fPIC'
 
16005
      ;;
 
16006
    esac
 
16007
  else
 
16008
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16009
    case $host_os in
 
16010
    aix*)
 
16011
      lt_prog_compiler_wl_F77='-Wl,'
 
16012
      if test "$host_cpu" = ia64; then
 
16013
        # AIX 5 now supports IA64 processor
 
16014
        lt_prog_compiler_static_F77='-Bstatic'
 
16015
      else
 
16016
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
16017
      fi
 
16018
      ;;
 
16019
 
 
16020
    mingw* | pw32* | os2*)
 
16021
      # This hack is so that the source file can tell whether it is being
 
16022
      # built for inclusion in a dll (and should export symbols for example).
 
16023
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
16024
      ;;
 
16025
 
 
16026
    hpux9* | hpux10* | hpux11*)
 
16027
      lt_prog_compiler_wl_F77='-Wl,'
 
16028
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16029
      # not for PA HP-UX.
 
16030
      case "$host_cpu" in
 
16031
      hppa*64*|ia64*)
 
16032
        # +Z the default
 
16033
        ;;
 
16034
      *)
 
16035
        lt_prog_compiler_pic_F77='+Z'
 
16036
        ;;
 
16037
      esac
 
16038
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16039
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
16040
      ;;
 
16041
 
 
16042
    irix5* | irix6* | nonstopux*)
 
16043
      lt_prog_compiler_wl_F77='-Wl,'
 
16044
      # PIC (with -KPIC) is the default.
 
16045
      lt_prog_compiler_static_F77='-non_shared'
 
16046
      ;;
 
16047
 
 
16048
    newsos6)
 
16049
      lt_prog_compiler_pic_F77='-KPIC'
 
16050
      lt_prog_compiler_static_F77='-Bstatic'
 
16051
      ;;
 
16052
 
 
16053
    linux*)
 
16054
      case $CC in
 
16055
      icc* | ecc*)
 
16056
        lt_prog_compiler_wl_F77='-Wl,'
 
16057
        lt_prog_compiler_pic_F77='-KPIC'
 
16058
        lt_prog_compiler_static_F77='-static'
 
16059
        ;;
 
16060
      ccc*)
 
16061
        lt_prog_compiler_wl_F77='-Wl,'
 
16062
        # All Alpha code is PIC.
 
16063
        lt_prog_compiler_static_F77='-non_shared'
 
16064
        ;;
 
16065
      esac
 
16066
      ;;
 
16067
 
 
16068
    osf3* | osf4* | osf5*)
 
16069
      lt_prog_compiler_wl_F77='-Wl,'
 
16070
      # All OSF/1 code is PIC.
 
16071
      lt_prog_compiler_static_F77='-non_shared'
 
16072
      ;;
 
16073
 
 
16074
    sco3.2v5*)
 
16075
      lt_prog_compiler_pic_F77='-Kpic'
 
16076
      lt_prog_compiler_static_F77='-dn'
 
16077
      ;;
 
16078
 
 
16079
    solaris*)
 
16080
      lt_prog_compiler_wl_F77='-Wl,'
 
16081
      lt_prog_compiler_pic_F77='-KPIC'
 
16082
      lt_prog_compiler_static_F77='-Bstatic'
 
16083
      ;;
 
16084
 
 
16085
    sunos4*)
 
16086
      lt_prog_compiler_wl_F77='-Qoption ld '
 
16087
      lt_prog_compiler_pic_F77='-PIC'
 
16088
      lt_prog_compiler_static_F77='-Bstatic'
 
16089
      ;;
 
16090
 
 
16091
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16092
      lt_prog_compiler_wl_F77='-Wl,'
 
16093
      lt_prog_compiler_pic_F77='-KPIC'
 
16094
      lt_prog_compiler_static_F77='-Bstatic'
 
16095
      ;;
 
16096
 
 
16097
    sysv4*MP*)
 
16098
      if test -d /usr/nec ;then
 
16099
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
16100
        lt_prog_compiler_static_F77='-Bstatic'
 
16101
      fi
 
16102
      ;;
 
16103
 
 
16104
    uts4*)
 
16105
      lt_prog_compiler_pic_F77='-pic'
 
16106
      lt_prog_compiler_static_F77='-Bstatic'
 
16107
      ;;
 
16108
 
 
16109
    *)
 
16110
      lt_prog_compiler_can_build_shared_F77=no
 
16111
      ;;
 
16112
    esac
 
16113
  fi
 
16114
 
 
16115
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
16116
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
16117
 
 
16118
#
 
16119
# Check to make sure the PIC flag actually works.
 
16120
#
 
16121
if test -n "$lt_prog_compiler_pic_F77"; then
 
16122
  
 
16123
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
16124
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
16125
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
16126
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16127
else
 
16128
  lt_prog_compiler_pic_works_F77=no
 
16129
  ac_outfile=conftest.$ac_objext
 
16130
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16131
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
16132
   # Insert the option either (1) after the last *FLAGS variable, or
 
16133
   # (2) before a word containing "conftest.", or (3) at the end.
 
16134
   # Note that $ac_compile itself does not contain backslashes and begins
 
16135
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16136
   # The option is referenced via a variable to avoid confusing sed.
 
16137
   lt_compile=`echo "$ac_compile" | $SED \
 
16138
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16139
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16140
   -e 's:$: $lt_compiler_flag:'`
 
16141
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
16142
   (eval "$lt_compile" 2>conftest.err)
 
16143
   ac_status=$?
 
16144
   cat conftest.err >&5
 
16145
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
16146
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16147
     # The compiler can only warn and ignore the option if not recognized
 
16148
     # So say no if there are warnings
 
16149
     if test ! -s conftest.err; then
 
16150
       lt_prog_compiler_pic_works_F77=yes
 
16151
     fi
 
16152
   fi
 
16153
   $rm conftest*
 
16154
 
 
16155
fi
 
16156
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
16157
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
16158
 
 
16159
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
16160
    case $lt_prog_compiler_pic_F77 in
 
16161
     "" | " "*) ;;
 
16162
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
16163
     esac
 
16164
else
 
16165
    lt_prog_compiler_pic_F77=
 
16166
     lt_prog_compiler_can_build_shared_F77=no
 
16167
fi
 
16168
 
 
16169
fi
 
16170
case "$host_os" in
 
16171
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16172
  *djgpp*)
 
16173
    lt_prog_compiler_pic_F77=
 
16174
    ;;
 
16175
  *)
 
16176
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
16177
    ;;
 
16178
esac
 
16179
 
 
16180
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16181
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
16182
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
16183
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16184
else
 
16185
  lt_cv_prog_compiler_c_o_F77=no
 
16186
   $rm -r conftest 2>/dev/null
 
16187
   mkdir conftest
 
16188
   cd conftest
 
16189
   mkdir out
 
16190
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16191
 
 
16192
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16193
   # Insert the option either (1) after the last *FLAGS variable, or
 
16194
   # (2) before a word containing "conftest.", or (3) at the end.
 
16195
   # Note that $ac_compile itself does not contain backslashes and begins
 
16196
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16197
   lt_compile=`echo "$ac_compile" | $SED \
 
16198
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16199
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16200
   -e 's:$: $lt_compiler_flag:'`
 
16201
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
16202
   (eval "$lt_compile" 2>out/conftest.err)
 
16203
   ac_status=$?
 
16204
   cat out/conftest.err >&5
 
16205
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
16206
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16207
   then
 
16208
     # The compiler can only warn and ignore the option if not recognized
 
16209
     # So say no if there are warnings
 
16210
     if test ! -s out/conftest.err; then
 
16211
       lt_cv_prog_compiler_c_o_F77=yes
 
16212
     fi
 
16213
   fi
 
16214
   chmod u+w .
 
16215
   $rm conftest*
 
16216
   # SGI C++ compiler will create directory out/ii_files/ for
 
16217
   # template instantiation
 
16218
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16219
   $rm out/* && rmdir out
 
16220
   cd ..
 
16221
   rmdir conftest
 
16222
   $rm conftest*
 
16223
 
 
16224
fi
 
16225
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
16226
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
16227
 
 
16228
 
 
16229
hard_links="nottested"
 
16230
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
16231
  # do not overwrite the value of need_locks provided by the user
 
16232
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16233
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
16234
  hard_links=yes
 
16235
  $rm conftest*
 
16236
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16237
  touch conftest.a
 
16238
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16239
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16240
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
16241
echo "${ECHO_T}$hard_links" >&6
 
16242
  if test "$hard_links" = no; then
 
16243
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16244
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16245
    need_locks=warn
 
16246
  fi
 
16247
else
 
16248
  need_locks=no
 
16249
fi
 
16250
 
 
16251
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16252
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
16253
 
 
16254
  runpath_var=
 
16255
  allow_undefined_flag_F77=
 
16256
  enable_shared_with_static_runtimes_F77=no
 
16257
  archive_cmds_F77=
 
16258
  archive_expsym_cmds_F77=
 
16259
  old_archive_From_new_cmds_F77=
 
16260
  old_archive_from_expsyms_cmds_F77=
 
16261
  export_dynamic_flag_spec_F77=
 
16262
  whole_archive_flag_spec_F77=
 
16263
  thread_safe_flag_spec_F77=
 
16264
  hardcode_libdir_flag_spec_F77=
 
16265
  hardcode_libdir_flag_spec_ld_F77=
 
16266
  hardcode_libdir_separator_F77=
 
16267
  hardcode_direct_F77=no
 
16268
  hardcode_minus_L_F77=no
 
16269
  hardcode_shlibpath_var_F77=unsupported
 
16270
  link_all_deplibs_F77=unknown
 
16271
  hardcode_automatic_F77=no
 
16272
  module_cmds_F77=
 
16273
  module_expsym_cmds_F77=
 
16274
  always_export_symbols_F77=no
 
16275
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16276
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16277
  # included in the symbol list
 
16278
  include_expsyms_F77=
 
16279
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16280
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16281
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16282
  # as well as any symbol that contains `d'.
 
16283
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
16284
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16285
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16286
  # the symbol is explicitly referenced.  Since portable code cannot
 
16287
  # rely on this symbol name, it's probably fine to never include it in
 
16288
  # preloaded symbol tables.
 
16289
  extract_expsyms_cmds=
 
16290
 
 
16291
  case $host_os in
 
16292
  cygwin* | mingw* | pw32*)
 
16293
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16294
    # When not using gcc, we currently assume that we are using
 
16295
    # Microsoft Visual C++.
 
16296
    if test "$GCC" != yes; then
 
16297
      with_gnu_ld=no
 
16298
    fi
 
16299
    ;;
 
16300
  openbsd*)
 
16301
    with_gnu_ld=no
 
16302
    ;;
 
16303
  esac
 
16304
 
 
16305
  ld_shlibs_F77=yes
 
16306
  if test "$with_gnu_ld" = yes; then
 
16307
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16308
    wlarc='${wl}'
 
16309
 
 
16310
    # See if GNU ld supports shared libraries.
 
16311
    case $host_os in
 
16312
    aix3* | aix4* | aix5*)
 
16313
      # On AIX/PPC, the GNU linker is very broken
 
16314
      if test "$host_cpu" != ia64; then
 
16315
        ld_shlibs_F77=no
 
16316
        cat <<EOF 1>&2
 
16317
 
 
16318
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16319
*** to be unable to reliably create shared libraries on AIX.
 
16320
*** Therefore, libtool is disabling shared libraries support.  If you
 
16321
*** really care for shared libraries, you may want to modify your PATH
 
16322
*** so that a non-GNU linker is found, and then restart.
 
16323
 
 
16324
EOF
 
16325
      fi
 
16326
      ;;
 
16327
 
 
16328
    amigaos*)
 
16329
      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)'
 
16330
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16331
      hardcode_minus_L_F77=yes
 
16332
 
 
16333
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16334
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16335
      # to version 4, is to share data among multiple programs linked
 
16336
      # with the same dynamic library.  Since this doesn't match the
 
16337
      # behavior of shared libraries on other platforms, we can't use
 
16338
      # them.
 
16339
      ld_shlibs_F77=no
 
16340
      ;;
 
16341
 
 
16342
    beos*)
 
16343
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16344
        allow_undefined_flag_F77=unsupported
 
16345
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16346
        # support --undefined.  This deserves some investigation.  FIXME
 
16347
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16348
      else
 
16349
        ld_shlibs_F77=no
 
16350
      fi
 
16351
      ;;
 
16352
 
 
16353
    cygwin* | mingw* | pw32*)
 
16354
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
16355
      # as there is no search path for DLLs.
 
16356
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16357
      allow_undefined_flag_F77=unsupported
 
16358
      always_export_symbols_F77=no
 
16359
      enable_shared_with_static_runtimes_F77=yes
 
16360
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16361
 
 
16362
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16363
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16364
        # If the export-symbols file already is a .def file (1st line
 
16365
        # is EXPORTS), use it as is; otherwise, prepend...
 
16366
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16367
          cp $export_symbols $output_objdir/$soname.def;
 
16368
        else
 
16369
          echo EXPORTS > $output_objdir/$soname.def;
 
16370
          cat $export_symbols >> $output_objdir/$soname.def;
 
16371
        fi~
 
16372
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
16373
      else
 
16374
        ld_shlibs=no
 
16375
      fi
 
16376
      ;;
 
16377
 
 
16378
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16379
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16380
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16381
        wlarc=
 
16382
      else
 
16383
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16384
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16385
      fi
 
16386
      ;;
 
16387
 
 
16388
    solaris* | sysv5*)
 
16389
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16390
        ld_shlibs_F77=no
 
16391
        cat <<EOF 1>&2
 
16392
 
 
16393
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16394
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16395
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16396
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16397
*** your PATH or compiler configuration so that the native linker is
 
16398
*** used, and then restart.
 
16399
 
 
16400
EOF
 
16401
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16402
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16403
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16404
      else
 
16405
        ld_shlibs_F77=no
 
16406
      fi
 
16407
      ;;
 
16408
 
 
16409
    sunos4*)
 
16410
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16411
      wlarc=
 
16412
      hardcode_direct_F77=yes
 
16413
      hardcode_shlibpath_var_F77=no
 
16414
      ;;
 
16415
 
 
16416
  linux*)
 
16417
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16418
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16419
        archive_cmds_F77="$tmp_archive_cmds"
 
16420
      supports_anon_versioning=no
 
16421
      case `$LD -v 2>/dev/null` in
 
16422
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16423
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16424
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16425
        *\ 2.11.*) ;; # other 2.11 versions
 
16426
        *) supports_anon_versioning=yes ;;
 
16427
      esac
 
16428
      if test $supports_anon_versioning = yes; then
 
16429
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
16430
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16431
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
16432
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16433
      else
 
16434
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
16435
      fi
 
16436
      link_all_deplibs_F77=no
 
16437
    else
 
16438
      ld_shlibs_F77=no
 
16439
    fi
 
16440
    ;;
 
16441
 
 
16442
    *)
 
16443
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16444
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16445
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16446
      else
 
16447
        ld_shlibs_F77=no
 
16448
      fi
 
16449
      ;;
 
16450
    esac
 
16451
 
 
16452
    if test "$ld_shlibs_F77" = yes; then
 
16453
      runpath_var=LD_RUN_PATH
 
16454
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
16455
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
16456
      # ancient GNU ld didn't support --whole-archive et. al.
 
16457
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16458
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16459
      else
 
16460
        whole_archive_flag_spec_F77=
 
16461
      fi
 
16462
    fi
 
16463
  else
 
16464
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16465
    case $host_os in
 
16466
    aix3*)
 
16467
      allow_undefined_flag_F77=unsupported
 
16468
      always_export_symbols_F77=yes
 
16469
      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'
 
16470
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16471
      # are no directories specified by -L.
 
16472
      hardcode_minus_L_F77=yes
 
16473
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16474
        # Neither direct hardcoding nor static linking is supported with a
 
16475
        # broken collect2.
 
16476
        hardcode_direct_F77=unsupported
 
16477
      fi
 
16478
      ;;
 
16479
 
 
16480
    aix4* | aix5*)
 
16481
      if test "$host_cpu" = ia64; then
 
16482
        # On IA64, the linker does run time linking by default, so we don't
 
16483
        # have to do anything special.
 
16484
        aix_use_runtimelinking=no
 
16485
        exp_sym_flag='-Bexport'
 
16486
        no_entry_flag=""
 
16487
      else
 
16488
        # If we're using GNU nm, then we don't want the "-C" option.
 
16489
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16490
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16491
          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'
 
16492
        else
 
16493
          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'
 
16494
        fi
 
16495
        aix_use_runtimelinking=no
 
16496
 
 
16497
        # Test if we are trying to use run time linking or normal
 
16498
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16499
        # need to do runtime linking.
 
16500
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16501
          for ld_flag in $LDFLAGS; do
 
16502
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16503
            aix_use_runtimelinking=yes
 
16504
            break
 
16505
          fi
 
16506
          done
 
16507
        esac
 
16508
 
 
16509
        exp_sym_flag='-bexport'
 
16510
        no_entry_flag='-bnoentry'
 
16511
      fi
 
16512
 
 
16513
      # When large executables or shared objects are built, AIX ld can
 
16514
      # have problems creating the table of contents.  If linking a library
 
16515
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16516
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16517
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16518
 
 
16519
      archive_cmds_F77=''
 
16520
      hardcode_direct_F77=yes
 
16521
      hardcode_libdir_separator_F77=':'
 
16522
      link_all_deplibs_F77=yes
 
16523
 
 
16524
      if test "$GCC" = yes; then
 
16525
        case $host_os in aix4.012|aix4.012.*)
 
16526
        # We only want to do this on AIX 4.2 and lower, the check
 
16527
        # below for broken collect2 doesn't work under 4.3+
 
16528
          collect2name=`${CC} -print-prog-name=collect2`
 
16529
          if test -f "$collect2name" && \
 
16530
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16531
          then
 
16532
          # We have reworked collect2
 
16533
          hardcode_direct_F77=yes
 
16534
          else
 
16535
          # We have old collect2
 
16536
          hardcode_direct_F77=unsupported
 
16537
          # It fails to find uninstalled libraries when the uninstalled
 
16538
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16539
          # to unsupported forces relinking
 
16540
          hardcode_minus_L_F77=yes
 
16541
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
16542
          hardcode_libdir_separator_F77=
 
16543
          fi
 
16544
        esac
 
16545
        shared_flag='-shared'
 
16546
      else
 
16547
        # not using gcc
 
16548
        if test "$host_cpu" = ia64; then
 
16549
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16550
        # chokes on -Wl,-G. The following line is correct:
 
16551
          shared_flag='-G'
 
16552
        else
 
16553
        if test "$aix_use_runtimelinking" = yes; then
 
16554
            shared_flag='${wl}-G'
 
16555
          else
 
16556
            shared_flag='${wl}-bM:SRE'
 
16557
        fi
 
16558
        fi
 
16559
      fi
 
16560
 
 
16561
      # It seems that -bexpall does not export symbols beginning with
 
16562
      # underscore (_), so it is better to generate a list of symbols to export.
 
16563
      always_export_symbols_F77=yes
 
16564
      if test "$aix_use_runtimelinking" = yes; then
 
16565
        # Warning - without using the other runtime loading flags (-brtl),
 
16566
        # -berok will link without error, but may produce a broken library.
 
16567
        allow_undefined_flag_F77='-berok'
 
16568
       # Determine the default libpath from the value encoded in an empty executable.
 
16569
       cat >conftest.$ac_ext <<_ACEOF
 
16570
      program main
 
16571
 
 
16572
      end
 
16573
_ACEOF
 
16574
rm -f conftest.$ac_objext conftest$ac_exeext
 
16575
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16576
  (eval $ac_link) 2>conftest.er1
 
16577
  ac_status=$?
 
16578
  grep -v '^ *+' conftest.er1 >conftest.err
 
16579
  rm -f conftest.er1
 
16580
  cat conftest.err >&5
 
16581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16582
  (exit $ac_status); } &&
 
16583
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
16584
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16585
  (eval $ac_try) 2>&5
 
16586
  ac_status=$?
 
16587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16588
  (exit $ac_status); }; } &&
 
16589
         { ac_try='test -s conftest$ac_exeext'
 
16590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16591
  (eval $ac_try) 2>&5
 
16592
  ac_status=$?
 
16593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16594
  (exit $ac_status); }; }; then
 
16595
  
 
16596
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16597
}'`
 
16598
# Check for a 64-bit object if we didn't find anything.
 
16599
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; }
 
16600
}'`; fi
 
16601
else
 
16602
  echo "$as_me: failed program was:" >&5
 
16603
sed 's/^/| /' conftest.$ac_ext >&5
 
16604
 
 
16605
fi
 
16606
rm -f conftest.err conftest.$ac_objext \
 
16607
      conftest$ac_exeext conftest.$ac_ext
 
16608
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16609
 
 
16610
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16611
        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"
 
16612
       else
 
16613
        if test "$host_cpu" = ia64; then
 
16614
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
16615
          allow_undefined_flag_F77="-z nodefs"
 
16616
          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"
 
16617
        else
 
16618
         # Determine the default libpath from the value encoded in an empty executable.
 
16619
         cat >conftest.$ac_ext <<_ACEOF
 
16620
      program main
 
16621
 
 
16622
      end
 
16623
_ACEOF
 
16624
rm -f conftest.$ac_objext conftest$ac_exeext
 
16625
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16626
  (eval $ac_link) 2>conftest.er1
 
16627
  ac_status=$?
 
16628
  grep -v '^ *+' conftest.er1 >conftest.err
 
16629
  rm -f conftest.er1
 
16630
  cat conftest.err >&5
 
16631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16632
  (exit $ac_status); } &&
 
16633
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
16634
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16635
  (eval $ac_try) 2>&5
 
16636
  ac_status=$?
 
16637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16638
  (exit $ac_status); }; } &&
 
16639
         { ac_try='test -s conftest$ac_exeext'
 
16640
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16641
  (eval $ac_try) 2>&5
 
16642
  ac_status=$?
 
16643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16644
  (exit $ac_status); }; }; then
 
16645
  
 
16646
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16647
}'`
 
16648
# Check for a 64-bit object if we didn't find anything.
 
16649
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; }
 
16650
}'`; fi
 
16651
else
 
16652
  echo "$as_me: failed program was:" >&5
 
16653
sed 's/^/| /' conftest.$ac_ext >&5
 
16654
 
 
16655
fi
 
16656
rm -f conftest.err conftest.$ac_objext \
 
16657
      conftest$ac_exeext conftest.$ac_ext
 
16658
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16659
 
 
16660
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16661
          # Warning - without using the other run time loading flags,
 
16662
          # -berok will link without error, but may produce a broken library.
 
16663
          no_undefined_flag_F77=' ${wl}-bernotok'
 
16664
          allow_undefined_flag_F77=' ${wl}-berok'
 
16665
          # -bexpall does not export symbols beginning with underscore (_)
 
16666
          always_export_symbols_F77=yes
 
16667
          # Exported symbols can be pulled into shared objects from archives
 
16668
          whole_archive_flag_spec_F77=' '
 
16669
          archive_cmds_need_lc_F77=yes
 
16670
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16671
          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'
 
16672
        fi
 
16673
      fi
 
16674
      ;;
 
16675
 
 
16676
    amigaos*)
 
16677
      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)'
 
16678
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16679
      hardcode_minus_L_F77=yes
 
16680
      # see comment about different semantics on the GNU ld section
 
16681
      ld_shlibs_F77=no
 
16682
      ;;
 
16683
 
 
16684
    bsdi4*)
 
16685
      export_dynamic_flag_spec_F77=-rdynamic
 
16686
      ;;
 
16687
 
 
16688
    cygwin* | mingw* | pw32*)
 
16689
      # When not using gcc, we currently assume that we are using
 
16690
      # Microsoft Visual C++.
 
16691
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16692
      # no search path for DLLs.
 
16693
      hardcode_libdir_flag_spec_F77=' '
 
16694
      allow_undefined_flag_F77=unsupported
 
16695
      # Tell ltmain to make .lib files, not .a files.
 
16696
      libext=lib
 
16697
      # Tell ltmain to make .dll files, not .so files.
 
16698
      shrext_cmds=".dll"
 
16699
      # FIXME: Setting linknames here is a bad hack.
 
16700
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16701
      # The linker will automatically build a .lib file if we build a DLL.
 
16702
      old_archive_From_new_cmds_F77='true'
 
16703
      # FIXME: Should let the user specify the lib program.
 
16704
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16705
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16706
      enable_shared_with_static_runtimes_F77=yes
 
16707
      ;;
 
16708
 
 
16709
    darwin* | rhapsody*)
 
16710
    if test "$GXX" = yes ; then
 
16711
      archive_cmds_need_lc_F77=no
 
16712
      case "$host_os" in
 
16713
      rhapsody* | darwin1.[012])
 
16714
        allow_undefined_flag_F77='-undefined suppress'
 
16715
        ;;
 
16716
      *) # Darwin 1.3 on
 
16717
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16718
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
16719
      else
 
16720
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
16721
          10.[012])
 
16722
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
16723
            ;;
 
16724
          10.*)
 
16725
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
16726
            ;;
 
16727
        esac
 
16728
      fi
 
16729
        ;;
 
16730
      esac
 
16731
        lt_int_apple_cc_single_mod=no
 
16732
        output_verbose_link_cmd='echo'
 
16733
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
16734
          lt_int_apple_cc_single_mod=yes
 
16735
        fi
 
16736
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16737
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16738
        else
 
16739
        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'
 
16740
      fi
 
16741
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16742
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16743
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16744
          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}'
 
16745
        else
 
16746
          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}'
 
16747
        fi
 
16748
          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}'
 
16749
      hardcode_direct_F77=no
 
16750
      hardcode_automatic_F77=yes
 
16751
      hardcode_shlibpath_var_F77=unsupported
 
16752
      whole_archive_flag_spec_F77='-all_load $convenience'
 
16753
      link_all_deplibs_F77=yes
 
16754
    else
 
16755
      ld_shlibs_F77=no
 
16756
    fi
 
16757
      ;;
 
16758
 
 
16759
    dgux*)
 
16760
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16761
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16762
      hardcode_shlibpath_var_F77=no
 
16763
      ;;
 
16764
 
 
16765
    freebsd1*)
 
16766
      ld_shlibs_F77=no
 
16767
      ;;
 
16768
 
 
16769
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16770
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16771
    # does not break anything, and helps significantly (at the cost of a little
 
16772
    # extra space).
 
16773
    freebsd2.2*)
 
16774
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16775
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16776
      hardcode_direct_F77=yes
 
16777
      hardcode_shlibpath_var_F77=no
 
16778
      ;;
 
16779
 
 
16780
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16781
    freebsd2*)
 
16782
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16783
      hardcode_direct_F77=yes
 
16784
      hardcode_minus_L_F77=yes
 
16785
      hardcode_shlibpath_var_F77=no
 
16786
      ;;
 
16787
 
 
16788
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16789
    freebsd* | kfreebsd*-gnu)
 
16790
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16791
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16792
      hardcode_direct_F77=yes
 
16793
      hardcode_shlibpath_var_F77=no
 
16794
      ;;
 
16795
 
 
16796
    hpux9*)
 
16797
      if test "$GCC" = yes; then
 
16798
        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'
 
16799
      else
 
16800
        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'
 
16801
      fi
 
16802
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16803
      hardcode_libdir_separator_F77=:
 
16804
      hardcode_direct_F77=yes
 
16805
 
 
16806
      # hardcode_minus_L: Not really in the search PATH,
 
16807
      # but as the default location of the library.
 
16808
      hardcode_minus_L_F77=yes
 
16809
      export_dynamic_flag_spec_F77='${wl}-E'
 
16810
      ;;
 
16811
 
 
16812
    hpux10* | hpux11*)
 
16813
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16814
        case "$host_cpu" in
 
16815
        hppa*64*|ia64*)
 
16816
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16817
          ;;
 
16818
        *)
 
16819
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16820
          ;;
 
16821
        esac
 
16822
      else
 
16823
        case "$host_cpu" in
 
16824
        hppa*64*|ia64*)
 
16825
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16826
          ;;
 
16827
        *)
 
16828
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16829
          ;;
 
16830
        esac
 
16831
      fi
 
16832
      if test "$with_gnu_ld" = no; then
 
16833
        case "$host_cpu" in
 
16834
        hppa*64*)
 
16835
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16836
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
16837
          hardcode_libdir_separator_F77=:
 
16838
          hardcode_direct_F77=no
 
16839
          hardcode_shlibpath_var_F77=no
 
16840
          ;;
 
16841
        ia64*)
 
16842
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
16843
          hardcode_direct_F77=no
 
16844
          hardcode_shlibpath_var_F77=no
 
16845
 
 
16846
          # hardcode_minus_L: Not really in the search PATH,
 
16847
          # but as the default location of the library.
 
16848
          hardcode_minus_L_F77=yes
 
16849
          ;;
 
16850
        *)
 
16851
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16852
          hardcode_libdir_separator_F77=:
 
16853
          hardcode_direct_F77=yes
 
16854
          export_dynamic_flag_spec_F77='${wl}-E'
 
16855
 
 
16856
          # hardcode_minus_L: Not really in the search PATH,
 
16857
          # but as the default location of the library.
 
16858
          hardcode_minus_L_F77=yes
 
16859
          ;;
 
16860
        esac
 
16861
      fi
 
16862
      ;;
 
16863
 
 
16864
    irix5* | irix6* | nonstopux*)
 
16865
      if test "$GCC" = yes; then
 
16866
        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'
 
16867
      else
 
16868
        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'
 
16869
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
16870
      fi
 
16871
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16872
      hardcode_libdir_separator_F77=:
 
16873
      link_all_deplibs_F77=yes
 
16874
      ;;
 
16875
 
 
16876
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16877
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16878
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16879
      else
 
16880
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16881
      fi
 
16882
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16883
      hardcode_direct_F77=yes
 
16884
      hardcode_shlibpath_var_F77=no
 
16885
      ;;
 
16886
 
 
16887
    newsos6)
 
16888
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16889
      hardcode_direct_F77=yes
 
16890
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16891
      hardcode_libdir_separator_F77=:
 
16892
      hardcode_shlibpath_var_F77=no
 
16893
      ;;
 
16894
 
 
16895
    openbsd*)
 
16896
      hardcode_direct_F77=yes
 
16897
      hardcode_shlibpath_var_F77=no
 
16898
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16899
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16900
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16901
        export_dynamic_flag_spec_F77='${wl}-E'
 
16902
      else
 
16903
       case $host_os in
 
16904
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16905
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16906
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
16907
           ;;
 
16908
         *)
 
16909
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16910
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16911
           ;;
 
16912
       esac
 
16913
      fi
 
16914
      ;;
 
16915
 
 
16916
    os2*)
 
16917
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16918
      hardcode_minus_L_F77=yes
 
16919
      allow_undefined_flag_F77=unsupported
 
16920
      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'
 
16921
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16922
      ;;
 
16923
 
 
16924
    osf3*)
 
16925
      if test "$GCC" = yes; then
 
16926
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16927
        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'
 
16928
      else
 
16929
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16930
        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'
 
16931
      fi
 
16932
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16933
      hardcode_libdir_separator_F77=:
 
16934
      ;;
 
16935
 
 
16936
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16937
      if test "$GCC" = yes; then
 
16938
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16939
        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'
 
16940
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16941
      else
 
16942
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16943
        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'
 
16944
        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~
 
16945
        $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'
 
16946
 
 
16947
        # Both c and cxx compiler support -rpath directly
 
16948
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
16949
      fi
 
16950
      hardcode_libdir_separator_F77=:
 
16951
      ;;
 
16952
 
 
16953
    sco3.2v5*)
 
16954
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16955
      hardcode_shlibpath_var_F77=no
 
16956
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
16957
      runpath_var=LD_RUN_PATH
 
16958
      hardcode_runpath_var=yes
 
16959
      ;;
 
16960
 
 
16961
    solaris*)
 
16962
      no_undefined_flag_F77=' -z text'
 
16963
      if test "$GCC" = yes; then
 
16964
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16965
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16966
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16967
      else
 
16968
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16969
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16970
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16971
      fi
 
16972
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16973
      hardcode_shlibpath_var_F77=no
 
16974
      case $host_os in
 
16975
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16976
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16977
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
16978
      esac
 
16979
      link_all_deplibs_F77=yes
 
16980
      ;;
 
16981
 
 
16982
    sunos4*)
 
16983
      if test "x$host_vendor" = xsequent; then
 
16984
        # Use $CC to link under sequent, because it throws in some extra .o
 
16985
        # files that make .init and .fini sections work.
 
16986
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16987
      else
 
16988
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16989
      fi
 
16990
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16991
      hardcode_direct_F77=yes
 
16992
      hardcode_minus_L_F77=yes
 
16993
      hardcode_shlibpath_var_F77=no
 
16994
      ;;
 
16995
 
 
16996
    sysv4)
 
16997
      case $host_vendor in
 
16998
        sni)
 
16999
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17000
          hardcode_direct_F77=yes # is this really true???
 
17001
        ;;
 
17002
        siemens)
 
17003
          ## LD is ld it makes a PLAMLIB
 
17004
          ## CC just makes a GrossModule.
 
17005
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17006
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
17007
          hardcode_direct_F77=no
 
17008
        ;;
 
17009
        motorola)
 
17010
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17011
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
17012
        ;;
 
17013
      esac
 
17014
      runpath_var='LD_RUN_PATH'
 
17015
      hardcode_shlibpath_var_F77=no
 
17016
      ;;
 
17017
 
 
17018
    sysv4.3*)
 
17019
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17020
      hardcode_shlibpath_var_F77=no
 
17021
      export_dynamic_flag_spec_F77='-Bexport'
 
17022
      ;;
 
17023
 
 
17024
    sysv4*MP*)
 
17025
      if test -d /usr/nec; then
 
17026
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17027
        hardcode_shlibpath_var_F77=no
 
17028
        runpath_var=LD_RUN_PATH
 
17029
        hardcode_runpath_var=yes
 
17030
        ld_shlibs_F77=yes
 
17031
      fi
 
17032
      ;;
 
17033
 
 
17034
    sysv4.2uw2*)
 
17035
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17036
      hardcode_direct_F77=yes
 
17037
      hardcode_minus_L_F77=no
 
17038
      hardcode_shlibpath_var_F77=no
 
17039
      hardcode_runpath_var=yes
 
17040
      runpath_var=LD_RUN_PATH
 
17041
      ;;
 
17042
 
 
17043
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
17044
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
17045
      if test "$GCC" = yes; then
 
17046
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17047
      else
 
17048
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17049
      fi
 
17050
      runpath_var='LD_RUN_PATH'
 
17051
      hardcode_shlibpath_var_F77=no
 
17052
      ;;
 
17053
 
 
17054
    sysv5*)
 
17055
      no_undefined_flag_F77=' -z text'
 
17056
      # $CC -shared without GNU ld will not create a library from C++
 
17057
      # object files and a static libstdc++, better avoid it by now
 
17058
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17059
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17060
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17061
      hardcode_libdir_flag_spec_F77=
 
17062
      hardcode_shlibpath_var_F77=no
 
17063
      runpath_var='LD_RUN_PATH'
 
17064
      ;;
 
17065
 
 
17066
    uts4*)
 
17067
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17068
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
17069
      hardcode_shlibpath_var_F77=no
 
17070
      ;;
 
17071
 
 
17072
    *)
 
17073
      ld_shlibs_F77=no
 
17074
      ;;
 
17075
    esac
 
17076
  fi
 
17077
 
 
17078
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
17079
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
17080
test "$ld_shlibs_F77" = no && can_build_shared=no
 
17081
 
 
17082
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17083
if test "$GCC" = yes; then
 
17084
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17085
fi
 
17086
 
 
17087
#
 
17088
# Do we need to explicitly link libc?
 
17089
#
 
17090
case "x$archive_cmds_need_lc_F77" in
 
17091
x|xyes)
 
17092
  # Assume -lc should be added
 
17093
  archive_cmds_need_lc_F77=yes
 
17094
 
 
17095
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17096
    case $archive_cmds_F77 in
 
17097
    *'~'*)
 
17098
      # FIXME: we may have to deal with multi-command sequences.
 
17099
      ;;
 
17100
    '$CC '*)
 
17101
      # Test whether the compiler implicitly links with -lc since on some
 
17102
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17103
      # to ld, don't add -lc before -lgcc.
 
17104
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17105
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17106
      $rm conftest*
 
17107
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17108
 
 
17109
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17110
  (eval $ac_compile) 2>&5
 
17111
  ac_status=$?
 
17112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17113
  (exit $ac_status); } 2>conftest.err; then
 
17114
        soname=conftest
 
17115
        lib=conftest
 
17116
        libobjs=conftest.$ac_objext
 
17117
        deplibs=
 
17118
        wl=$lt_prog_compiler_wl_F77
 
17119
        compiler_flags=-v
 
17120
        linker_flags=-v
 
17121
        verstring=
 
17122
        output_objdir=.
 
17123
        libname=conftest
 
17124
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
17125
        allow_undefined_flag_F77=
 
17126
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17127
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17128
  ac_status=$?
 
17129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17130
  (exit $ac_status); }
 
17131
        then
 
17132
          archive_cmds_need_lc_F77=no
 
17133
        else
 
17134
          archive_cmds_need_lc_F77=yes
 
17135
        fi
 
17136
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
17137
      else
 
17138
        cat conftest.err 1>&5
 
17139
      fi
 
17140
      $rm conftest*
 
17141
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
17142
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
17143
      ;;
 
17144
    esac
 
17145
  fi
 
17146
  ;;
 
17147
esac
 
17148
 
 
17149
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17150
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17151
library_names_spec=
 
17152
libname_spec='lib$name'
 
17153
soname_spec=
 
17154
shrext_cmds=".so"
 
17155
postinstall_cmds=
 
17156
postuninstall_cmds=
 
17157
finish_cmds=
 
17158
finish_eval=
 
17159
shlibpath_var=
 
17160
shlibpath_overrides_runpath=unknown
 
17161
version_type=none
 
17162
dynamic_linker="$host_os ld.so"
 
17163
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17164
if test "$GCC" = yes; then
 
17165
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17166
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17167
    # if the path contains ";" then we assume it to be the separator
 
17168
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17169
    # assumed that no part of a normal pathname contains ";" but that should
 
17170
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17171
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17172
  else
 
17173
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17174
  fi
 
17175
else
 
17176
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17177
fi
 
17178
need_lib_prefix=unknown
 
17179
hardcode_into_libs=no
 
17180
 
 
17181
# when you set need_version to no, make sure it does not cause -set_version
 
17182
# flags to be left without arguments
 
17183
need_version=unknown
 
17184
 
 
17185
case $host_os in
 
17186
aix3*)
 
17187
  version_type=linux
 
17188
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17189
  shlibpath_var=LIBPATH
 
17190
 
 
17191
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17192
  soname_spec='${libname}${release}${shared_ext}$major'
 
17193
  ;;
 
17194
 
 
17195
aix4* | aix5*)
 
17196
  version_type=linux
 
17197
  need_lib_prefix=no
 
17198
  need_version=no
 
17199
  hardcode_into_libs=yes
 
17200
  if test "$host_cpu" = ia64; then
 
17201
    # AIX 5 supports IA64
 
17202
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17203
    shlibpath_var=LD_LIBRARY_PATH
 
17204
  else
 
17205
    # With GCC up to 2.95.x, collect2 would create an import file
 
17206
    # for dependence libraries.  The import file would start with
 
17207
    # the line `#! .'.  This would cause the generated library to
 
17208
    # depend on `.', always an invalid library.  This was fixed in
 
17209
    # development snapshots of GCC prior to 3.0.
 
17210
    case $host_os in
 
17211
      aix4 | aix4.[01] | aix4.[01].*)
 
17212
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17213
           echo ' yes '
 
17214
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17215
        :
 
17216
      else
 
17217
        can_build_shared=no
 
17218
      fi
 
17219
      ;;
 
17220
    esac
 
17221
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17222
    # soname into executable. Probably we can add versioning support to
 
17223
    # collect2, so additional links can be useful in future.
 
17224
    if test "$aix_use_runtimelinking" = yes; then
 
17225
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17226
      # instead of lib<name>.a to let people know that these are not
 
17227
      # typical AIX shared libraries.
 
17228
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17229
    else
 
17230
      # We preserve .a as extension for shared libraries through AIX4.2
 
17231
      # and later when we are not doing run time linking.
 
17232
      library_names_spec='${libname}${release}.a $libname.a'
 
17233
      soname_spec='${libname}${release}${shared_ext}$major'
 
17234
    fi
 
17235
    shlibpath_var=LIBPATH
 
17236
  fi
 
17237
  ;;
 
17238
 
 
17239
amigaos*)
 
17240
  library_names_spec='$libname.ixlibrary $libname.a'
 
17241
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17242
  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'
 
17243
  ;;
 
17244
 
 
17245
beos*)
 
17246
  library_names_spec='${libname}${shared_ext}'
 
17247
  dynamic_linker="$host_os ld.so"
 
17248
  shlibpath_var=LIBRARY_PATH
 
17249
  ;;
 
17250
 
 
17251
bsdi4*)
 
17252
  version_type=linux
 
17253
  need_version=no
 
17254
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17255
  soname_spec='${libname}${release}${shared_ext}$major'
 
17256
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17257
  shlibpath_var=LD_LIBRARY_PATH
 
17258
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17259
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17260
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17261
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17262
  # libtool to hard-code these into programs
 
17263
  ;;
 
17264
 
 
17265
cygwin* | mingw* | pw32*)
 
17266
  version_type=windows
 
17267
  shrext_cmds=".dll"
 
17268
  need_version=no
 
17269
  need_lib_prefix=no
 
17270
 
 
17271
  case $GCC,$host_os in
 
17272
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17273
    library_names_spec='$libname.dll.a'
 
17274
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17275
    postinstall_cmds='base_file=`basename \${file}`~
 
17276
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17277
      dldir=$destdir/`dirname \$dlpath`~
 
17278
      test -d \$dldir || mkdir -p \$dldir~
 
17279
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17280
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17281
      dlpath=$dir/\$dldll~
 
17282
       $rm \$dlpath'
 
17283
    shlibpath_overrides_runpath=yes
 
17284
 
 
17285
    case $host_os in
 
17286
    cygwin*)
 
17287
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17288
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17289
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17290
      ;;
 
17291
    mingw*)
 
17292
      # MinGW DLLs use traditional 'lib' prefix
 
17293
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17294
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17295
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17296
        # It is most probably a Windows format PATH printed by
 
17297
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17298
        # path with ; separators, and with drive letters. We can handle the
 
17299
        # drive letters (cygwin fileutils understands them), so leave them,
 
17300
        # especially as we might pass files found there to a mingw objdump,
 
17301
        # which wouldn't understand a cygwinified path. Ahh.
 
17302
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17303
      else
 
17304
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17305
      fi
 
17306
      ;;
 
17307
    pw32*)
 
17308
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17309
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17310
      ;;
 
17311
    esac
 
17312
    ;;
 
17313
 
 
17314
  *)
 
17315
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17316
    ;;
 
17317
  esac
 
17318
  dynamic_linker='Win32 ld.exe'
 
17319
  # FIXME: first we should search . and the directory the executable is in
 
17320
  shlibpath_var=PATH
 
17321
  ;;
 
17322
 
 
17323
darwin* | rhapsody*)
 
17324
  dynamic_linker="$host_os dyld"
 
17325
  version_type=darwin
 
17326
  need_lib_prefix=no
 
17327
  need_version=no
 
17328
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17329
  soname_spec='${libname}${release}${major}$shared_ext'
 
17330
  shlibpath_overrides_runpath=yes
 
17331
  shlibpath_var=DYLD_LIBRARY_PATH
 
17332
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
17333
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17334
  if test "$GCC" = yes; then
 
17335
    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"`
 
17336
  else
 
17337
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17338
  fi
 
17339
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17340
  ;;
 
17341
 
 
17342
dgux*)
 
17343
  version_type=linux
 
17344
  need_lib_prefix=no
 
17345
  need_version=no
 
17346
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17347
  soname_spec='${libname}${release}${shared_ext}$major'
 
17348
  shlibpath_var=LD_LIBRARY_PATH
 
17349
  ;;
 
17350
 
 
17351
freebsd1*)
 
17352
  dynamic_linker=no
 
17353
  ;;
 
17354
 
 
17355
kfreebsd*-gnu)
 
17356
  version_type=linux
 
17357
  need_lib_prefix=no
 
17358
  need_version=no
 
17359
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17360
  soname_spec='${libname}${release}${shared_ext}$major'
 
17361
  shlibpath_var=LD_LIBRARY_PATH
 
17362
  shlibpath_overrides_runpath=no
 
17363
  hardcode_into_libs=yes
 
17364
  dynamic_linker='GNU ld.so'
 
17365
  ;;
 
17366
 
 
17367
freebsd*)
 
17368
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17369
  version_type=freebsd-$objformat
 
17370
  case $version_type in
 
17371
    freebsd-elf*)
 
17372
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17373
      need_version=no
 
17374
      need_lib_prefix=no
 
17375
      ;;
 
17376
    freebsd-*)
 
17377
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17378
      need_version=yes
 
17379
      ;;
 
17380
  esac
 
17381
  shlibpath_var=LD_LIBRARY_PATH
 
17382
  case $host_os in
 
17383
  freebsd2*)
 
17384
    shlibpath_overrides_runpath=yes
 
17385
    ;;
 
17386
  freebsd3.01* | freebsdelf3.01*)
 
17387
    shlibpath_overrides_runpath=yes
 
17388
    hardcode_into_libs=yes
 
17389
    ;;
 
17390
  *) # from 3.2 on
 
17391
    shlibpath_overrides_runpath=no
 
17392
    hardcode_into_libs=yes
 
17393
    ;;
 
17394
  esac
 
17395
  ;;
 
17396
 
 
17397
gnu*)
 
17398
  version_type=linux
 
17399
  need_lib_prefix=no
 
17400
  need_version=no
 
17401
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17402
  soname_spec='${libname}${release}${shared_ext}$major'
 
17403
  shlibpath_var=LD_LIBRARY_PATH
 
17404
  hardcode_into_libs=yes
 
17405
  ;;
 
17406
 
 
17407
hpux9* | hpux10* | hpux11*)
 
17408
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17409
  # link against other versions.
 
17410
  version_type=sunos
 
17411
  need_lib_prefix=no
 
17412
  need_version=no
 
17413
  case "$host_cpu" in
 
17414
  ia64*)
 
17415
    shrext_cmds='.so'
 
17416
    hardcode_into_libs=yes
 
17417
    dynamic_linker="$host_os dld.so"
 
17418
    shlibpath_var=LD_LIBRARY_PATH
 
17419
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17420
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17421
    soname_spec='${libname}${release}${shared_ext}$major'
 
17422
    if test "X$HPUX_IA64_MODE" = X32; then
 
17423
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17424
    else
 
17425
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17426
    fi
 
17427
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17428
    ;;
 
17429
   hppa*64*)
 
17430
     shrext_cmds='.sl'
 
17431
     hardcode_into_libs=yes
 
17432
     dynamic_linker="$host_os dld.sl"
 
17433
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17434
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17435
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17436
     soname_spec='${libname}${release}${shared_ext}$major'
 
17437
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17438
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17439
     ;;
 
17440
   *)
 
17441
    shrext_cmds='.sl'
 
17442
    dynamic_linker="$host_os dld.sl"
 
17443
    shlibpath_var=SHLIB_PATH
 
17444
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17445
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17446
    soname_spec='${libname}${release}${shared_ext}$major'
 
17447
    ;;
 
17448
  esac
 
17449
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17450
  postinstall_cmds='chmod 555 $lib'
 
17451
  ;;
 
17452
 
 
17453
irix5* | irix6* | nonstopux*)
 
17454
  case $host_os in
 
17455
    nonstopux*) version_type=nonstopux ;;
 
17456
    *)
 
17457
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17458
                version_type=linux
 
17459
        else
 
17460
                version_type=irix
 
17461
        fi ;;
 
17462
  esac
 
17463
  need_lib_prefix=no
 
17464
  need_version=no
 
17465
  soname_spec='${libname}${release}${shared_ext}$major'
 
17466
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17467
  case $host_os in
 
17468
  irix5* | nonstopux*)
 
17469
    libsuff= shlibsuff=
 
17470
    ;;
 
17471
  *)
 
17472
    case $LD in # libtool.m4 will add one of these switches to LD
 
17473
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17474
      libsuff= shlibsuff= libmagic=32-bit;;
 
17475
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17476
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17477
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17478
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17479
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17480
    esac
 
17481
    ;;
 
17482
  esac
 
17483
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17484
  shlibpath_overrides_runpath=no
 
17485
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17486
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17487
  hardcode_into_libs=yes
 
17488
  ;;
 
17489
 
 
17490
# No shared lib support for Linux oldld, aout, or coff.
 
17491
linux*oldld* | linux*aout* | linux*coff*)
 
17492
  dynamic_linker=no
 
17493
  ;;
 
17494
 
 
17495
# This must be Linux ELF.
 
17496
linux*)
 
17497
  version_type=linux
 
17498
  need_lib_prefix=no
 
17499
  need_version=no
 
17500
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17501
  soname_spec='${libname}${release}${shared_ext}$major'
 
17502
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17503
  shlibpath_var=LD_LIBRARY_PATH
 
17504
  shlibpath_overrides_runpath=no
 
17505
  # This implies no fast_install, which is unacceptable.
 
17506
  # Some rework will be needed to allow for fast_install
 
17507
  # before this can be enabled.
 
17508
  hardcode_into_libs=yes
 
17509
 
 
17510
  # Append ld.so.conf contents to the search path
 
17511
  if test -f /etc/ld.so.conf; then
 
17512
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
17513
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17514
  fi
 
17515
 
 
17516
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17517
  # powerpc, because MkLinux only supported shared libraries with the
 
17518
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17519
  # most powerpc-linux boxes support dynamic linking these days and
 
17520
  # people can always --disable-shared, the test was removed, and we
 
17521
  # assume the GNU/Linux dynamic linker is in use.
 
17522
  dynamic_linker='GNU/Linux ld.so'
 
17523
  ;;
 
17524
 
 
17525
netbsdelf*-gnu)
 
17526
  version_type=linux
 
17527
  need_lib_prefix=no
 
17528
  need_version=no
 
17529
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17530
  soname_spec='${libname}${release}${shared_ext}$major'
 
17531
  shlibpath_var=LD_LIBRARY_PATH
 
17532
  shlibpath_overrides_runpath=no
 
17533
  hardcode_into_libs=yes
 
17534
  dynamic_linker='NetBSD ld.elf_so'
 
17535
  ;;
 
17536
 
 
17537
knetbsd*-gnu)
 
17538
  version_type=linux
 
17539
  need_lib_prefix=no
 
17540
  need_version=no
 
17541
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17542
  soname_spec='${libname}${release}${shared_ext}$major'
 
17543
  shlibpath_var=LD_LIBRARY_PATH
 
17544
  shlibpath_overrides_runpath=no
 
17545
  hardcode_into_libs=yes
 
17546
  dynamic_linker='GNU ld.so'
 
17547
  ;;
 
17548
 
 
17549
netbsd*)
 
17550
  version_type=sunos
 
17551
  need_lib_prefix=no
 
17552
  need_version=no
 
17553
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17554
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17555
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17556
    dynamic_linker='NetBSD (a.out) ld.so'
 
17557
  else
 
17558
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17559
    soname_spec='${libname}${release}${shared_ext}$major'
 
17560
    dynamic_linker='NetBSD ld.elf_so'
 
17561
  fi
 
17562
  shlibpath_var=LD_LIBRARY_PATH
 
17563
  shlibpath_overrides_runpath=yes
 
17564
  hardcode_into_libs=yes
 
17565
  ;;
 
17566
 
 
17567
newsos6)
 
17568
  version_type=linux
 
17569
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17570
  shlibpath_var=LD_LIBRARY_PATH
 
17571
  shlibpath_overrides_runpath=yes
 
17572
  ;;
 
17573
 
 
17574
nto-qnx*)
 
17575
  version_type=linux
 
17576
  need_lib_prefix=no
 
17577
  need_version=no
 
17578
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17579
  soname_spec='${libname}${release}${shared_ext}$major'
 
17580
  shlibpath_var=LD_LIBRARY_PATH
 
17581
  shlibpath_overrides_runpath=yes
 
17582
  ;;
 
17583
 
 
17584
openbsd*)
 
17585
  version_type=sunos
 
17586
  need_lib_prefix=no
 
17587
  need_version=yes
 
17588
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17589
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17590
  shlibpath_var=LD_LIBRARY_PATH
 
17591
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17592
    case $host_os in
 
17593
      openbsd2.[89] | openbsd2.[89].*)
 
17594
        shlibpath_overrides_runpath=no
 
17595
        ;;
 
17596
      *)
 
17597
        shlibpath_overrides_runpath=yes
 
17598
        ;;
 
17599
      esac
 
17600
  else
 
17601
    shlibpath_overrides_runpath=yes
 
17602
  fi
 
17603
  ;;
 
17604
 
 
17605
os2*)
 
17606
  libname_spec='$name'
 
17607
  shrext_cmds=".dll"
 
17608
  need_lib_prefix=no
 
17609
  library_names_spec='$libname${shared_ext} $libname.a'
 
17610
  dynamic_linker='OS/2 ld.exe'
 
17611
  shlibpath_var=LIBPATH
 
17612
  ;;
 
17613
 
 
17614
osf3* | osf4* | osf5*)
 
17615
  version_type=osf
 
17616
  need_lib_prefix=no
 
17617
  need_version=no
 
17618
  soname_spec='${libname}${release}${shared_ext}$major'
 
17619
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17620
  shlibpath_var=LD_LIBRARY_PATH
 
17621
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17622
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17623
  ;;
 
17624
 
 
17625
sco3.2v5*)
 
17626
  version_type=osf
 
17627
  soname_spec='${libname}${release}${shared_ext}$major'
 
17628
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17629
  shlibpath_var=LD_LIBRARY_PATH
 
17630
  ;;
 
17631
 
 
17632
solaris*)
 
17633
  version_type=linux
 
17634
  need_lib_prefix=no
 
17635
  need_version=no
 
17636
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17637
  soname_spec='${libname}${release}${shared_ext}$major'
 
17638
  shlibpath_var=LD_LIBRARY_PATH
 
17639
  shlibpath_overrides_runpath=yes
 
17640
  hardcode_into_libs=yes
 
17641
  # ldd complains unless libraries are executable
 
17642
  postinstall_cmds='chmod +x $lib'
 
17643
  ;;
 
17644
 
 
17645
sunos4*)
 
17646
  version_type=sunos
 
17647
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17648
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17649
  shlibpath_var=LD_LIBRARY_PATH
 
17650
  shlibpath_overrides_runpath=yes
 
17651
  if test "$with_gnu_ld" = yes; then
 
17652
    need_lib_prefix=no
 
17653
  fi
 
17654
  need_version=yes
 
17655
  ;;
 
17656
 
 
17657
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17658
  version_type=linux
 
17659
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17660
  soname_spec='${libname}${release}${shared_ext}$major'
 
17661
  shlibpath_var=LD_LIBRARY_PATH
 
17662
  case $host_vendor in
 
17663
    sni)
 
17664
      shlibpath_overrides_runpath=no
 
17665
      need_lib_prefix=no
 
17666
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17667
      runpath_var=LD_RUN_PATH
 
17668
      ;;
 
17669
    siemens)
 
17670
      need_lib_prefix=no
 
17671
      ;;
 
17672
    motorola)
 
17673
      need_lib_prefix=no
 
17674
      need_version=no
 
17675
      shlibpath_overrides_runpath=no
 
17676
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17677
      ;;
 
17678
  esac
 
17679
  ;;
 
17680
 
 
17681
sysv4*MP*)
 
17682
  if test -d /usr/nec ;then
 
17683
    version_type=linux
 
17684
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17685
    soname_spec='$libname${shared_ext}.$major'
 
17686
    shlibpath_var=LD_LIBRARY_PATH
 
17687
  fi
 
17688
  ;;
 
17689
 
 
17690
uts4*)
 
17691
  version_type=linux
 
17692
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17693
  soname_spec='${libname}${release}${shared_ext}$major'
 
17694
  shlibpath_var=LD_LIBRARY_PATH
 
17695
  ;;
 
17696
 
 
17697
*)
 
17698
  dynamic_linker=no
 
17699
  ;;
 
17700
esac
 
17701
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17702
echo "${ECHO_T}$dynamic_linker" >&6
 
17703
test "$dynamic_linker" = no && can_build_shared=no
 
17704
 
 
17705
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17706
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17707
hardcode_action_F77=
 
17708
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
17709
   test -n "$runpath_var F77" || \
 
17710
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
17711
 
 
17712
  # We can hardcode non-existant directories.
 
17713
  if test "$hardcode_direct_F77" != no &&
 
17714
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17715
     # have to relink, otherwise we might link with an installed library
 
17716
     # when we should be linking with a yet-to-be-installed one
 
17717
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
17718
     test "$hardcode_minus_L_F77" != no; then
 
17719
    # Linking always hardcodes the temporary library directory.
 
17720
    hardcode_action_F77=relink
 
17721
  else
 
17722
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17723
    hardcode_action_F77=immediate
 
17724
  fi
 
17725
else
 
17726
  # We cannot hardcode anything, or else we can only hardcode existing
 
17727
  # directories.
 
17728
  hardcode_action_F77=unsupported
 
17729
fi
 
17730
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
17731
echo "${ECHO_T}$hardcode_action_F77" >&6
 
17732
 
 
17733
if test "$hardcode_action_F77" = relink; then
 
17734
  # Fast installation is not supported
 
17735
  enable_fast_install=no
 
17736
elif test "$shlibpath_overrides_runpath" = yes ||
 
17737
     test "$enable_shared" = no; then
 
17738
  # Fast installation is not necessary
 
17739
  enable_fast_install=needless
 
17740
fi
 
17741
 
 
17742
striplib=
 
17743
old_striplib=
 
17744
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17745
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17746
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17747
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17748
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17749
  echo "$as_me:$LINENO: result: yes" >&5
 
17750
echo "${ECHO_T}yes" >&6
 
17751
else
 
17752
# FIXME - insert some real tests, host_os isn't really good enough
 
17753
  case $host_os in
 
17754
   darwin*)
 
17755
       if test -n "$STRIP" ; then
 
17756
         striplib="$STRIP -x"
 
17757
         echo "$as_me:$LINENO: result: yes" >&5
 
17758
echo "${ECHO_T}yes" >&6
 
17759
       else
 
17760
  echo "$as_me:$LINENO: result: no" >&5
 
17761
echo "${ECHO_T}no" >&6
 
17762
fi
 
17763
       ;;
 
17764
   *)
 
17765
  echo "$as_me:$LINENO: result: no" >&5
 
17766
echo "${ECHO_T}no" >&6
 
17767
    ;;
 
17768
  esac
 
17769
fi
 
17770
 
 
17771
 
 
17772
 
 
17773
# The else clause should only fire when bootstrapping the
 
17774
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17775
# with your package, and you will get complaints that there are
 
17776
# no rules to generate ltmain.sh.
 
17777
if test -f "$ltmain"; then
 
17778
  # See if we are running on zsh, and set the options which allow our commands through
 
17779
  # without removal of \ escapes.
 
17780
  if test -n "${ZSH_VERSION+set}" ; then
 
17781
    setopt NO_GLOB_SUBST
 
17782
  fi
 
17783
  # Now quote all the things that may contain metacharacters while being
 
17784
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17785
  # variables and quote the copies for generation of the libtool script.
 
17786
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
17787
    SED SHELL STRIP \
 
17788
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17789
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17790
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17791
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17792
    lt_cv_sys_global_symbol_to_c_name_address \
 
17793
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17794
    old_postinstall_cmds old_postuninstall_cmds \
 
17795
    compiler_F77 \
 
17796
    CC_F77 \
 
17797
    LD_F77 \
 
17798
    lt_prog_compiler_wl_F77 \
 
17799
    lt_prog_compiler_pic_F77 \
 
17800
    lt_prog_compiler_static_F77 \
 
17801
    lt_prog_compiler_no_builtin_flag_F77 \
 
17802
    export_dynamic_flag_spec_F77 \
 
17803
    thread_safe_flag_spec_F77 \
 
17804
    whole_archive_flag_spec_F77 \
 
17805
    enable_shared_with_static_runtimes_F77 \
 
17806
    old_archive_cmds_F77 \
 
17807
    old_archive_from_new_cmds_F77 \
 
17808
    predep_objects_F77 \
 
17809
    postdep_objects_F77 \
 
17810
    predeps_F77 \
 
17811
    postdeps_F77 \
 
17812
    compiler_lib_search_path_F77 \
 
17813
    archive_cmds_F77 \
 
17814
    archive_expsym_cmds_F77 \
 
17815
    postinstall_cmds_F77 \
 
17816
    postuninstall_cmds_F77 \
 
17817
    old_archive_from_expsyms_cmds_F77 \
 
17818
    allow_undefined_flag_F77 \
 
17819
    no_undefined_flag_F77 \
 
17820
    export_symbols_cmds_F77 \
 
17821
    hardcode_libdir_flag_spec_F77 \
 
17822
    hardcode_libdir_flag_spec_ld_F77 \
 
17823
    hardcode_libdir_separator_F77 \
 
17824
    hardcode_automatic_F77 \
 
17825
    module_cmds_F77 \
 
17826
    module_expsym_cmds_F77 \
 
17827
    lt_cv_prog_compiler_c_o_F77 \
 
17828
    exclude_expsyms_F77 \
 
17829
    include_expsyms_F77; do
 
17830
 
 
17831
    case $var in
 
17832
    old_archive_cmds_F77 | \
 
17833
    old_archive_from_new_cmds_F77 | \
 
17834
    archive_cmds_F77 | \
 
17835
    archive_expsym_cmds_F77 | \
 
17836
    module_cmds_F77 | \
 
17837
    module_expsym_cmds_F77 | \
 
17838
    old_archive_from_expsyms_cmds_F77 | \
 
17839
    export_symbols_cmds_F77 | \
 
17840
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17841
    postinstall_cmds | postuninstall_cmds | \
 
17842
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17843
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17844
      # Double-quote double-evaled strings.
 
17845
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17846
      ;;
 
17847
    *)
 
17848
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17849
      ;;
 
17850
    esac
 
17851
  done
 
17852
 
 
17853
  case $lt_echo in
 
17854
  *'\$0 --fallback-echo"')
 
17855
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17856
    ;;
 
17857
  esac
 
17858
 
 
17859
cfgfile="$ofile"
 
17860
 
 
17861
  cat <<__EOF__ >> "$cfgfile"
 
17862
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17863
 
 
17864
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17865
 
 
17866
# Shell to use when invoking shell scripts.
 
17867
SHELL=$lt_SHELL
 
17868
 
 
17869
# Whether or not to build shared libraries.
 
17870
build_libtool_libs=$enable_shared
 
17871
 
 
17872
# Whether or not to build static libraries.
 
17873
build_old_libs=$enable_static
 
17874
 
 
17875
# Whether or not to add -lc for building shared libraries.
 
17876
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
17877
 
 
17878
# Whether or not to disallow shared libs when runtime libs are static
 
17879
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
17880
 
 
17881
# Whether or not to optimize for fast installation.
 
17882
fast_install=$enable_fast_install
 
17883
 
 
17884
# The host system.
 
17885
host_alias=$host_alias
 
17886
host=$host
 
17887
 
 
17888
# An echo program that does not interpret backslashes.
 
17889
echo=$lt_echo
 
17890
 
 
17891
# The archiver.
 
17892
AR=$lt_AR
 
17893
AR_FLAGS=$lt_AR_FLAGS
 
17894
 
 
17895
# A C compiler.
 
17896
LTCC=$lt_LTCC
 
17897
 
 
17898
# A language-specific compiler.
 
17899
CC=$lt_compiler_F77
 
17900
 
 
17901
# Is the compiler the GNU C compiler?
 
17902
with_gcc=$GCC_F77
 
17903
 
 
17904
# An ERE matcher.
 
17905
EGREP=$lt_EGREP
 
17906
 
 
17907
# The linker used to build libraries.
 
17908
LD=$lt_LD_F77
 
17909
 
 
17910
# Whether we need hard or soft links.
 
17911
LN_S=$lt_LN_S
 
17912
 
 
17913
# A BSD-compatible nm program.
 
17914
NM=$lt_NM
 
17915
 
 
17916
# A symbol stripping program
 
17917
STRIP=$lt_STRIP
 
17918
 
 
17919
# Used to examine libraries when file_magic_cmd begins "file"
 
17920
MAGIC_CMD=$MAGIC_CMD
 
17921
 
 
17922
# Used on cygwin: DLL creation program.
 
17923
DLLTOOL="$DLLTOOL"
 
17924
 
 
17925
# Used on cygwin: object dumper.
 
17926
OBJDUMP="$OBJDUMP"
 
17927
 
 
17928
# Used on cygwin: assembler.
 
17929
AS="$AS"
 
17930
 
 
17931
# The name of the directory that contains temporary libtool files.
 
17932
objdir=$objdir
 
17933
 
 
17934
# How to create reloadable object files.
 
17935
reload_flag=$lt_reload_flag
 
17936
reload_cmds=$lt_reload_cmds
 
17937
 
 
17938
# How to pass a linker flag through the compiler.
 
17939
wl=$lt_lt_prog_compiler_wl_F77
 
17940
 
 
17941
# Object file suffix (normally "o").
 
17942
objext="$ac_objext"
 
17943
 
 
17944
# Old archive suffix (normally "a").
 
17945
libext="$libext"
 
17946
 
 
17947
# Shared library suffix (normally ".so").
 
17948
shrext_cmds='$shrext_cmds'
 
17949
 
 
17950
# Executable file suffix (normally "").
 
17951
exeext="$exeext"
 
17952
 
 
17953
# Additional compiler flags for building library objects.
 
17954
pic_flag=$lt_lt_prog_compiler_pic_F77
 
17955
pic_mode=$pic_mode
 
17956
 
 
17957
# What is the maximum length of a command?
 
17958
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17959
 
 
17960
# Does compiler simultaneously support -c and -o options?
 
17961
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
17962
 
 
17963
# Must we lock files when doing compilation ?
 
17964
need_locks=$lt_need_locks
 
17965
 
 
17966
# Do we need the lib prefix for modules?
 
17967
need_lib_prefix=$need_lib_prefix
 
17968
 
 
17969
# Do we need a version for libraries?
 
17970
need_version=$need_version
 
17971
 
 
17972
# Whether dlopen is supported.
 
17973
dlopen_support=$enable_dlopen
 
17974
 
 
17975
# Whether dlopen of programs is supported.
 
17976
dlopen_self=$enable_dlopen_self
 
17977
 
 
17978
# Whether dlopen of statically linked programs is supported.
 
17979
dlopen_self_static=$enable_dlopen_self_static
 
17980
 
 
17981
# Compiler flag to prevent dynamic linking.
 
17982
link_static_flag=$lt_lt_prog_compiler_static_F77
 
17983
 
 
17984
# Compiler flag to turn off builtin functions.
 
17985
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
17986
 
 
17987
# Compiler flag to allow reflexive dlopens.
 
17988
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
17989
 
 
17990
# Compiler flag to generate shared objects directly from archives.
 
17991
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
17992
 
 
17993
# Compiler flag to generate thread-safe objects.
 
17994
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
17995
 
 
17996
# Library versioning type.
 
17997
version_type=$version_type
 
17998
 
 
17999
# Format of library name prefix.
 
18000
libname_spec=$lt_libname_spec
 
18001
 
 
18002
# List of archive names.  First name is the real one, the rest are links.
 
18003
# The last name is the one that the linker finds with -lNAME.
 
18004
library_names_spec=$lt_library_names_spec
 
18005
 
 
18006
# The coded name of the library, if different from the real name.
 
18007
soname_spec=$lt_soname_spec
 
18008
 
 
18009
# Commands used to build and install an old-style archive.
 
18010
RANLIB=$lt_RANLIB
 
18011
old_archive_cmds=$lt_old_archive_cmds_F77
 
18012
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18013
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18014
 
 
18015
# Create an old-style archive from a shared archive.
 
18016
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
18017
 
 
18018
# Create a temporary old-style archive to link instead of a shared archive.
 
18019
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
18020
 
 
18021
# Commands used to build and install a shared archive.
 
18022
archive_cmds=$lt_archive_cmds_F77
 
18023
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
18024
postinstall_cmds=$lt_postinstall_cmds
 
18025
postuninstall_cmds=$lt_postuninstall_cmds
 
18026
 
 
18027
# Commands used to build a loadable module (assumed same as above if empty)
 
18028
module_cmds=$lt_module_cmds_F77
 
18029
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
18030
 
 
18031
# Commands to strip libraries.
 
18032
old_striplib=$lt_old_striplib
 
18033
striplib=$lt_striplib
 
18034
 
 
18035
# Dependencies to place before the objects being linked to create a
 
18036
# shared library.
 
18037
predep_objects=$lt_predep_objects_F77
 
18038
 
 
18039
# Dependencies to place after the objects being linked to create a
 
18040
# shared library.
 
18041
postdep_objects=$lt_postdep_objects_F77
 
18042
 
 
18043
# Dependencies to place before the objects being linked to create a
 
18044
# shared library.
 
18045
predeps=$lt_predeps_F77
 
18046
 
 
18047
# Dependencies to place after the objects being linked to create a
 
18048
# shared library.
 
18049
postdeps=$lt_postdeps_F77
 
18050
 
 
18051
# The library search path used internally by the compiler when linking
 
18052
# a shared library.
 
18053
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
18054
 
 
18055
# Method to check whether dependent libraries are shared objects.
 
18056
deplibs_check_method=$lt_deplibs_check_method
 
18057
 
 
18058
# Command to use when deplibs_check_method == file_magic.
 
18059
file_magic_cmd=$lt_file_magic_cmd
 
18060
 
 
18061
# Flag that allows shared libraries with undefined symbols to be built.
 
18062
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
18063
 
 
18064
# Flag that forces no undefined symbols.
 
18065
no_undefined_flag=$lt_no_undefined_flag_F77
 
18066
 
 
18067
# Commands used to finish a libtool library installation in a directory.
 
18068
finish_cmds=$lt_finish_cmds
 
18069
 
 
18070
# Same as above, but a single script fragment to be evaled but not shown.
 
18071
finish_eval=$lt_finish_eval
 
18072
 
 
18073
# Take the output of nm and produce a listing of raw symbols and C names.
 
18074
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18075
 
 
18076
# Transform the output of nm in a proper C declaration
 
18077
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18078
 
 
18079
# Transform the output of nm in a C name address pair
 
18080
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18081
 
 
18082
# This is the shared library runtime path variable.
 
18083
runpath_var=$runpath_var
 
18084
 
 
18085
# This is the shared library path variable.
 
18086
shlibpath_var=$shlibpath_var
 
18087
 
 
18088
# Is shlibpath searched before the hard-coded library search path?
 
18089
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18090
 
 
18091
# How to hardcode a shared library path into an executable.
 
18092
hardcode_action=$hardcode_action_F77
 
18093
 
 
18094
# Whether we should hardcode library paths into libraries.
 
18095
hardcode_into_libs=$hardcode_into_libs
 
18096
 
 
18097
# Flag to hardcode \$libdir into a binary during linking.
 
18098
# This must work even if \$libdir does not exist.
 
18099
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
18100
 
 
18101
# If ld is used when linking, flag to hardcode \$libdir into
 
18102
# a binary during linking. This must work even if \$libdir does
 
18103
# not exist.
 
18104
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
18105
 
 
18106
# Whether we need a single -rpath flag with a separated argument.
 
18107
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
18108
 
 
18109
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18110
# resulting binary.
 
18111
hardcode_direct=$hardcode_direct_F77
 
18112
 
 
18113
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18114
# resulting binary.
 
18115
hardcode_minus_L=$hardcode_minus_L_F77
 
18116
 
 
18117
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18118
# the resulting binary.
 
18119
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
18120
 
 
18121
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18122
# and all subsequent libraries and executables linked against it.
 
18123
hardcode_automatic=$hardcode_automatic_F77
 
18124
 
 
18125
# Variables whose values should be saved in libtool wrapper scripts and
 
18126
# restored at relink time.
 
18127
variables_saved_for_relink="$variables_saved_for_relink"
 
18128
 
 
18129
# Whether libtool must link a program against all its dependency libraries.
 
18130
link_all_deplibs=$link_all_deplibs_F77
 
18131
 
 
18132
# Compile-time system search path for libraries
 
18133
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18134
 
 
18135
# Run-time system search path for libraries
 
18136
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18137
 
 
18138
# Fix the shell variable \$srcfile for the compiler.
 
18139
fix_srcfile_path="$fix_srcfile_path_F77"
 
18140
 
 
18141
# Set to yes if exported symbols are required.
 
18142
always_export_symbols=$always_export_symbols_F77
 
18143
 
 
18144
# The commands to list exported symbols.
 
18145
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
18146
 
 
18147
# The commands to extract the exported symbol list from a shared archive.
 
18148
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18149
 
 
18150
# Symbols that should not be listed in the preloaded symbols.
 
18151
exclude_expsyms=$lt_exclude_expsyms_F77
 
18152
 
 
18153
# Symbols that must always be exported.
 
18154
include_expsyms=$lt_include_expsyms_F77
 
18155
 
 
18156
# ### END LIBTOOL TAG CONFIG: $tagname
 
18157
 
 
18158
__EOF__
 
18159
 
 
18160
 
 
18161
else
 
18162
  # If there is no Makefile yet, we rely on a make rule to execute
 
18163
  # `config.status --recheck' to rerun these tests and create the
 
18164
  # libtool script then.
 
18165
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18166
  if test -f "$ltmain_in"; then
 
18167
    test -f Makefile && make "$ltmain"
 
18168
  fi
 
18169
fi
 
18170
 
 
18171
 
 
18172
ac_ext=c
 
18173
ac_cpp='$CPP $CPPFLAGS'
 
18174
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18175
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18176
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18177
 
 
18178
CC="$lt_save_CC"
 
18179
 
 
18180
        else
 
18181
          tagname=""
 
18182
        fi
 
18183
        ;;
 
18184
 
 
18185
      GCJ)
 
18186
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
18187
          
 
18188
 
 
18189
 
 
18190
# Source file extension for Java test sources.
 
18191
ac_ext=java
 
18192
 
 
18193
# Object file extension for compiled Java test sources.
 
18194
objext=o
 
18195
objext_GCJ=$objext
 
18196
 
 
18197
# Code to be used in simple compile tests
 
18198
lt_simple_compile_test_code="class foo {}\n"
 
18199
 
 
18200
# Code to be used in simple link tests
 
18201
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
18202
 
 
18203
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18204
 
 
18205
# If no C compiler was specified, use CC.
 
18206
LTCC=${LTCC-"$CC"}
 
18207
 
 
18208
# Allow CC to be a program name with arguments.
 
18209
compiler=$CC
 
18210
 
 
18211
 
 
18212
# Allow CC to be a program name with arguments.
 
18213
lt_save_CC="$CC"
 
18214
CC=${GCJ-"gcj"}
 
18215
compiler=$CC
 
18216
compiler_GCJ=$CC
 
18217
 
 
18218
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
18219
archive_cmds_need_lc_GCJ=no
 
18220
 
 
18221
 
 
18222
lt_prog_compiler_no_builtin_flag_GCJ=
 
18223
 
 
18224
if test "$GCC" = yes; then
 
18225
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
18226
 
 
18227
  
 
18228
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
18229
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
18230
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
18231
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18232
else
 
18233
  lt_cv_prog_compiler_rtti_exceptions=no
 
18234
  ac_outfile=conftest.$ac_objext
 
18235
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18236
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
18237
   # Insert the option either (1) after the last *FLAGS variable, or
 
18238
   # (2) before a word containing "conftest.", or (3) at the end.
 
18239
   # Note that $ac_compile itself does not contain backslashes and begins
 
18240
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18241
   # The option is referenced via a variable to avoid confusing sed.
 
18242
   lt_compile=`echo "$ac_compile" | $SED \
 
18243
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
18244
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18245
   -e 's:$: $lt_compiler_flag:'`
 
18246
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
18247
   (eval "$lt_compile" 2>conftest.err)
 
18248
   ac_status=$?
 
18249
   cat conftest.err >&5
 
18250
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
18251
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
18252
     # The compiler can only warn and ignore the option if not recognized
 
18253
     # So say no if there are warnings
 
18254
     if test ! -s conftest.err; then
 
18255
       lt_cv_prog_compiler_rtti_exceptions=yes
 
18256
     fi
 
18257
   fi
 
18258
   $rm conftest*
 
18259
 
 
18260
fi
 
18261
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
18262
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
18263
 
 
18264
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
18265
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
18266
else
 
18267
    :
 
18268
fi
 
18269
 
 
18270
fi
 
18271
 
 
18272
lt_prog_compiler_wl_GCJ=
 
18273
lt_prog_compiler_pic_GCJ=
 
18274
lt_prog_compiler_static_GCJ=
 
18275
 
 
18276
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
18277
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
18278
 
 
18279
  if test "$GCC" = yes; then
 
18280
    lt_prog_compiler_wl_GCJ='-Wl,'
 
18281
    lt_prog_compiler_static_GCJ='-static'
 
18282
 
 
18283
    case $host_os in
 
18284
      aix*)
 
18285
      # All AIX code is PIC.
 
18286
      if test "$host_cpu" = ia64; then
 
18287
        # AIX 5 now supports IA64 processor
 
18288
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18289
      fi
 
18290
      ;;
 
18291
 
 
18292
    amigaos*)
 
18293
      # FIXME: we need at least 68020 code to build shared libraries, but
 
18294
      # adding the `-m68020' flag to GCC prevents building anything better,
 
18295
      # like `-m68040'.
 
18296
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
18297
      ;;
 
18298
 
 
18299
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
18300
      # PIC is the default for these OSes.
 
18301
      ;;
 
18302
 
 
18303
    mingw* | pw32* | os2*)
 
18304
      # This hack is so that the source file can tell whether it is being
 
18305
      # built for inclusion in a dll (and should export symbols for example).
 
18306
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
18307
      ;;
 
18308
 
 
18309
    darwin* | rhapsody*)
 
18310
      # PIC is the default on this platform
 
18311
      # Common symbols not allowed in MH_DYLIB files
 
18312
      lt_prog_compiler_pic_GCJ='-fno-common'
 
18313
      ;;
 
18314
 
 
18315
    msdosdjgpp*)
 
18316
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
18317
      # on systems that don't support them.
 
18318
      lt_prog_compiler_can_build_shared_GCJ=no
 
18319
      enable_shared=no
 
18320
      ;;
 
18321
 
 
18322
    sysv4*MP*)
 
18323
      if test -d /usr/nec; then
 
18324
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
18325
      fi
 
18326
      ;;
 
18327
 
 
18328
    hpux*)
 
18329
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
18330
      # not for PA HP-UX.
 
18331
      case "$host_cpu" in
 
18332
      hppa*64*|ia64*)
 
18333
        # +Z the default
 
18334
        ;;
 
18335
      *)
 
18336
        lt_prog_compiler_pic_GCJ='-fPIC'
 
18337
        ;;
 
18338
      esac
 
18339
      ;;
 
18340
 
 
18341
    *)
 
18342
      lt_prog_compiler_pic_GCJ='-fPIC'
 
18343
      ;;
 
18344
    esac
 
18345
  else
 
18346
    # PORTME Check for flag to pass linker flags through the system compiler.
 
18347
    case $host_os in
 
18348
    aix*)
 
18349
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18350
      if test "$host_cpu" = ia64; then
 
18351
        # AIX 5 now supports IA64 processor
 
18352
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18353
      else
 
18354
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
18355
      fi
 
18356
      ;;
 
18357
 
 
18358
    mingw* | pw32* | os2*)
 
18359
      # This hack is so that the source file can tell whether it is being
 
18360
      # built for inclusion in a dll (and should export symbols for example).
 
18361
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
18362
      ;;
 
18363
 
 
18364
    hpux9* | hpux10* | hpux11*)
 
18365
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18366
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
18367
      # not for PA HP-UX.
 
18368
      case "$host_cpu" in
 
18369
      hppa*64*|ia64*)
 
18370
        # +Z the default
 
18371
        ;;
 
18372
      *)
 
18373
        lt_prog_compiler_pic_GCJ='+Z'
 
18374
        ;;
 
18375
      esac
 
18376
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
18377
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
18378
      ;;
 
18379
 
 
18380
    irix5* | irix6* | nonstopux*)
 
18381
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18382
      # PIC (with -KPIC) is the default.
 
18383
      lt_prog_compiler_static_GCJ='-non_shared'
 
18384
      ;;
 
18385
 
 
18386
    newsos6)
 
18387
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18388
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18389
      ;;
 
18390
 
 
18391
    linux*)
 
18392
      case $CC in
 
18393
      icc* | ecc*)
 
18394
        lt_prog_compiler_wl_GCJ='-Wl,'
 
18395
        lt_prog_compiler_pic_GCJ='-KPIC'
 
18396
        lt_prog_compiler_static_GCJ='-static'
 
18397
        ;;
 
18398
      ccc*)
 
18399
        lt_prog_compiler_wl_GCJ='-Wl,'
 
18400
        # All Alpha code is PIC.
 
18401
        lt_prog_compiler_static_GCJ='-non_shared'
 
18402
        ;;
 
18403
      esac
 
18404
      ;;
 
18405
 
 
18406
    osf3* | osf4* | osf5*)
 
18407
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18408
      # All OSF/1 code is PIC.
 
18409
      lt_prog_compiler_static_GCJ='-non_shared'
 
18410
      ;;
 
18411
 
 
18412
    sco3.2v5*)
 
18413
      lt_prog_compiler_pic_GCJ='-Kpic'
 
18414
      lt_prog_compiler_static_GCJ='-dn'
 
18415
      ;;
 
18416
 
 
18417
    solaris*)
 
18418
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18419
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18420
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18421
      ;;
 
18422
 
 
18423
    sunos4*)
 
18424
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
18425
      lt_prog_compiler_pic_GCJ='-PIC'
 
18426
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18427
      ;;
 
18428
 
 
18429
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18430
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18431
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18432
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18433
      ;;
 
18434
 
 
18435
    sysv4*MP*)
 
18436
      if test -d /usr/nec ;then
 
18437
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
18438
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18439
      fi
 
18440
      ;;
 
18441
 
 
18442
    uts4*)
 
18443
      lt_prog_compiler_pic_GCJ='-pic'
 
18444
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18445
      ;;
 
18446
 
 
18447
    *)
 
18448
      lt_prog_compiler_can_build_shared_GCJ=no
 
18449
      ;;
 
18450
    esac
 
18451
  fi
 
18452
 
 
18453
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
18454
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
18455
 
 
18456
#
 
18457
# Check to make sure the PIC flag actually works.
 
18458
#
 
18459
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
18460
  
 
18461
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
18462
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
18463
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
18464
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18465
else
 
18466
  lt_prog_compiler_pic_works_GCJ=no
 
18467
  ac_outfile=conftest.$ac_objext
 
18468
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18469
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
18470
   # Insert the option either (1) after the last *FLAGS variable, or
 
18471
   # (2) before a word containing "conftest.", or (3) at the end.
 
18472
   # Note that $ac_compile itself does not contain backslashes and begins
 
18473
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18474
   # The option is referenced via a variable to avoid confusing sed.
 
18475
   lt_compile=`echo "$ac_compile" | $SED \
 
18476
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
18477
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18478
   -e 's:$: $lt_compiler_flag:'`
 
18479
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
18480
   (eval "$lt_compile" 2>conftest.err)
 
18481
   ac_status=$?
 
18482
   cat conftest.err >&5
 
18483
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
18484
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
18485
     # The compiler can only warn and ignore the option if not recognized
 
18486
     # So say no if there are warnings
 
18487
     if test ! -s conftest.err; then
 
18488
       lt_prog_compiler_pic_works_GCJ=yes
 
18489
     fi
 
18490
   fi
 
18491
   $rm conftest*
 
18492
 
 
18493
fi
 
18494
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
18495
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
18496
 
 
18497
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
18498
    case $lt_prog_compiler_pic_GCJ in
 
18499
     "" | " "*) ;;
 
18500
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
18501
     esac
 
18502
else
 
18503
    lt_prog_compiler_pic_GCJ=
 
18504
     lt_prog_compiler_can_build_shared_GCJ=no
 
18505
fi
 
18506
 
 
18507
fi
 
18508
case "$host_os" in
 
18509
  # For platforms which do not support PIC, -DPIC is meaningless:
 
18510
  *djgpp*)
 
18511
    lt_prog_compiler_pic_GCJ=
 
18512
    ;;
 
18513
  *)
 
18514
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
18515
    ;;
 
18516
esac
 
18517
 
 
18518
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
18519
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
18520
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
18521
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18522
else
 
18523
  lt_cv_prog_compiler_c_o_GCJ=no
 
18524
   $rm -r conftest 2>/dev/null
 
18525
   mkdir conftest
 
18526
   cd conftest
 
18527
   mkdir out
 
18528
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18529
 
 
18530
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
18531
   # Insert the option either (1) after the last *FLAGS variable, or
 
18532
   # (2) before a word containing "conftest.", or (3) at the end.
 
18533
   # Note that $ac_compile itself does not contain backslashes and begins
 
18534
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18535
   lt_compile=`echo "$ac_compile" | $SED \
 
18536
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
18537
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18538
   -e 's:$: $lt_compiler_flag:'`
 
18539
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
18540
   (eval "$lt_compile" 2>out/conftest.err)
 
18541
   ac_status=$?
 
18542
   cat out/conftest.err >&5
 
18543
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
18544
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
18545
   then
 
18546
     # The compiler can only warn and ignore the option if not recognized
 
18547
     # So say no if there are warnings
 
18548
     if test ! -s out/conftest.err; then
 
18549
       lt_cv_prog_compiler_c_o_GCJ=yes
 
18550
     fi
 
18551
   fi
 
18552
   chmod u+w .
 
18553
   $rm conftest*
 
18554
   # SGI C++ compiler will create directory out/ii_files/ for
 
18555
   # template instantiation
 
18556
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
18557
   $rm out/* && rmdir out
 
18558
   cd ..
 
18559
   rmdir conftest
 
18560
   $rm conftest*
 
18561
 
 
18562
fi
 
18563
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
18564
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
18565
 
 
18566
 
 
18567
hard_links="nottested"
 
18568
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
18569
  # do not overwrite the value of need_locks provided by the user
 
18570
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
18571
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
18572
  hard_links=yes
 
18573
  $rm conftest*
 
18574
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
18575
  touch conftest.a
 
18576
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
18577
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
18578
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
18579
echo "${ECHO_T}$hard_links" >&6
 
18580
  if test "$hard_links" = no; then
 
18581
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
18582
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
18583
    need_locks=warn
 
18584
  fi
 
18585
else
 
18586
  need_locks=no
 
18587
fi
 
18588
 
 
18589
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
18590
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
18591
 
 
18592
  runpath_var=
 
18593
  allow_undefined_flag_GCJ=
 
18594
  enable_shared_with_static_runtimes_GCJ=no
 
18595
  archive_cmds_GCJ=
 
18596
  archive_expsym_cmds_GCJ=
 
18597
  old_archive_From_new_cmds_GCJ=
 
18598
  old_archive_from_expsyms_cmds_GCJ=
 
18599
  export_dynamic_flag_spec_GCJ=
 
18600
  whole_archive_flag_spec_GCJ=
 
18601
  thread_safe_flag_spec_GCJ=
 
18602
  hardcode_libdir_flag_spec_GCJ=
 
18603
  hardcode_libdir_flag_spec_ld_GCJ=
 
18604
  hardcode_libdir_separator_GCJ=
 
18605
  hardcode_direct_GCJ=no
 
18606
  hardcode_minus_L_GCJ=no
 
18607
  hardcode_shlibpath_var_GCJ=unsupported
 
18608
  link_all_deplibs_GCJ=unknown
 
18609
  hardcode_automatic_GCJ=no
 
18610
  module_cmds_GCJ=
 
18611
  module_expsym_cmds_GCJ=
 
18612
  always_export_symbols_GCJ=no
 
18613
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
18614
  # include_expsyms should be a list of space-separated symbols to be *always*
 
18615
  # included in the symbol list
 
18616
  include_expsyms_GCJ=
 
18617
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
18618
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
18619
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
18620
  # as well as any symbol that contains `d'.
 
18621
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
18622
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
18623
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
18624
  # the symbol is explicitly referenced.  Since portable code cannot
 
18625
  # rely on this symbol name, it's probably fine to never include it in
 
18626
  # preloaded symbol tables.
 
18627
  extract_expsyms_cmds=
 
18628
 
 
18629
  case $host_os in
 
18630
  cygwin* | mingw* | pw32*)
 
18631
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
18632
    # When not using gcc, we currently assume that we are using
 
18633
    # Microsoft Visual C++.
 
18634
    if test "$GCC" != yes; then
 
18635
      with_gnu_ld=no
 
18636
    fi
 
18637
    ;;
 
18638
  openbsd*)
 
18639
    with_gnu_ld=no
 
18640
    ;;
 
18641
  esac
 
18642
 
 
18643
  ld_shlibs_GCJ=yes
 
18644
  if test "$with_gnu_ld" = yes; then
 
18645
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
18646
    wlarc='${wl}'
 
18647
 
 
18648
    # See if GNU ld supports shared libraries.
 
18649
    case $host_os in
 
18650
    aix3* | aix4* | aix5*)
 
18651
      # On AIX/PPC, the GNU linker is very broken
 
18652
      if test "$host_cpu" != ia64; then
 
18653
        ld_shlibs_GCJ=no
 
18654
        cat <<EOF 1>&2
 
18655
 
 
18656
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
18657
*** to be unable to reliably create shared libraries on AIX.
 
18658
*** Therefore, libtool is disabling shared libraries support.  If you
 
18659
*** really care for shared libraries, you may want to modify your PATH
 
18660
*** so that a non-GNU linker is found, and then restart.
 
18661
 
 
18662
EOF
 
18663
      fi
 
18664
      ;;
 
18665
 
 
18666
    amigaos*)
 
18667
      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)'
 
18668
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18669
      hardcode_minus_L_GCJ=yes
 
18670
 
 
18671
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
18672
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
18673
      # to version 4, is to share data among multiple programs linked
 
18674
      # with the same dynamic library.  Since this doesn't match the
 
18675
      # behavior of shared libraries on other platforms, we can't use
 
18676
      # them.
 
18677
      ld_shlibs_GCJ=no
 
18678
      ;;
 
18679
 
 
18680
    beos*)
 
18681
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18682
        allow_undefined_flag_GCJ=unsupported
 
18683
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
18684
        # support --undefined.  This deserves some investigation.  FIXME
 
18685
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18686
      else
 
18687
        ld_shlibs_GCJ=no
 
18688
      fi
 
18689
      ;;
 
18690
 
 
18691
    cygwin* | mingw* | pw32*)
 
18692
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
18693
      # as there is no search path for DLLs.
 
18694
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18695
      allow_undefined_flag_GCJ=unsupported
 
18696
      always_export_symbols_GCJ=no
 
18697
      enable_shared_with_static_runtimes_GCJ=yes
 
18698
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
18699
 
 
18700
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
18701
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
18702
        # If the export-symbols file already is a .def file (1st line
 
18703
        # is EXPORTS), use it as is; otherwise, prepend...
 
18704
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
18705
          cp $export_symbols $output_objdir/$soname.def;
 
18706
        else
 
18707
          echo EXPORTS > $output_objdir/$soname.def;
 
18708
          cat $export_symbols >> $output_objdir/$soname.def;
 
18709
        fi~
 
18710
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
18711
      else
 
18712
        ld_shlibs=no
 
18713
      fi
 
18714
      ;;
 
18715
 
 
18716
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
18717
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18718
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
18719
        wlarc=
 
18720
      else
 
18721
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18722
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18723
      fi
 
18724
      ;;
 
18725
 
 
18726
    solaris* | sysv5*)
 
18727
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
18728
        ld_shlibs_GCJ=no
 
18729
        cat <<EOF 1>&2
 
18730
 
 
18731
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
18732
*** create shared libraries on Solaris systems.  Therefore, libtool
 
18733
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
18734
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
18735
*** your PATH or compiler configuration so that the native linker is
 
18736
*** used, and then restart.
 
18737
 
 
18738
EOF
 
18739
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18740
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18741
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18742
      else
 
18743
        ld_shlibs_GCJ=no
 
18744
      fi
 
18745
      ;;
 
18746
 
 
18747
    sunos4*)
 
18748
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18749
      wlarc=
 
18750
      hardcode_direct_GCJ=yes
 
18751
      hardcode_shlibpath_var_GCJ=no
 
18752
      ;;
 
18753
 
 
18754
  linux*)
 
18755
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18756
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18757
        archive_cmds_GCJ="$tmp_archive_cmds"
 
18758
      supports_anon_versioning=no
 
18759
      case `$LD -v 2>/dev/null` in
 
18760
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
18761
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
18762
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
18763
        *\ 2.11.*) ;; # other 2.11 versions
 
18764
        *) supports_anon_versioning=yes ;;
 
18765
      esac
 
18766
      if test $supports_anon_versioning = yes; then
 
18767
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
18768
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
18769
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
18770
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
18771
      else
 
18772
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
18773
      fi
 
18774
      link_all_deplibs_GCJ=no
 
18775
    else
 
18776
      ld_shlibs_GCJ=no
 
18777
    fi
 
18778
    ;;
 
18779
 
 
18780
    *)
 
18781
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18782
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18783
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18784
      else
 
18785
        ld_shlibs_GCJ=no
 
18786
      fi
 
18787
      ;;
 
18788
    esac
 
18789
 
 
18790
    if test "$ld_shlibs_GCJ" = yes; then
 
18791
      runpath_var=LD_RUN_PATH
 
18792
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
18793
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
18794
      # ancient GNU ld didn't support --whole-archive et. al.
 
18795
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
18796
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
18797
      else
 
18798
        whole_archive_flag_spec_GCJ=
 
18799
      fi
 
18800
    fi
 
18801
  else
 
18802
    # PORTME fill in a description of your system's linker (not GNU ld)
 
18803
    case $host_os in
 
18804
    aix3*)
 
18805
      allow_undefined_flag_GCJ=unsupported
 
18806
      always_export_symbols_GCJ=yes
 
18807
      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'
 
18808
      # Note: this linker hardcodes the directories in LIBPATH if there
 
18809
      # are no directories specified by -L.
 
18810
      hardcode_minus_L_GCJ=yes
 
18811
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
18812
        # Neither direct hardcoding nor static linking is supported with a
 
18813
        # broken collect2.
 
18814
        hardcode_direct_GCJ=unsupported
 
18815
      fi
 
18816
      ;;
 
18817
 
 
18818
    aix4* | aix5*)
 
18819
      if test "$host_cpu" = ia64; then
 
18820
        # On IA64, the linker does run time linking by default, so we don't
 
18821
        # have to do anything special.
 
18822
        aix_use_runtimelinking=no
 
18823
        exp_sym_flag='-Bexport'
 
18824
        no_entry_flag=""
 
18825
      else
 
18826
        # If we're using GNU nm, then we don't want the "-C" option.
 
18827
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
18828
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
18829
          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'
 
18830
        else
 
18831
          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'
 
18832
        fi
 
18833
        aix_use_runtimelinking=no
 
18834
 
 
18835
        # Test if we are trying to use run time linking or normal
 
18836
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
18837
        # need to do runtime linking.
 
18838
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
18839
          for ld_flag in $LDFLAGS; do
 
18840
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
18841
            aix_use_runtimelinking=yes
 
18842
            break
 
18843
          fi
 
18844
          done
 
18845
        esac
 
18846
 
 
18847
        exp_sym_flag='-bexport'
 
18848
        no_entry_flag='-bnoentry'
 
18849
      fi
 
18850
 
 
18851
      # When large executables or shared objects are built, AIX ld can
 
18852
      # have problems creating the table of contents.  If linking a library
 
18853
      # or program results in "error TOC overflow" add -mminimal-toc to
 
18854
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
18855
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
18856
 
 
18857
      archive_cmds_GCJ=''
 
18858
      hardcode_direct_GCJ=yes
 
18859
      hardcode_libdir_separator_GCJ=':'
 
18860
      link_all_deplibs_GCJ=yes
 
18861
 
 
18862
      if test "$GCC" = yes; then
 
18863
        case $host_os in aix4.012|aix4.012.*)
 
18864
        # We only want to do this on AIX 4.2 and lower, the check
 
18865
        # below for broken collect2 doesn't work under 4.3+
 
18866
          collect2name=`${CC} -print-prog-name=collect2`
 
18867
          if test -f "$collect2name" && \
 
18868
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
18869
          then
 
18870
          # We have reworked collect2
 
18871
          hardcode_direct_GCJ=yes
 
18872
          else
 
18873
          # We have old collect2
 
18874
          hardcode_direct_GCJ=unsupported
 
18875
          # It fails to find uninstalled libraries when the uninstalled
 
18876
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
18877
          # to unsupported forces relinking
 
18878
          hardcode_minus_L_GCJ=yes
 
18879
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18880
          hardcode_libdir_separator_GCJ=
 
18881
          fi
 
18882
        esac
 
18883
        shared_flag='-shared'
 
18884
      else
 
18885
        # not using gcc
 
18886
        if test "$host_cpu" = ia64; then
 
18887
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
18888
        # chokes on -Wl,-G. The following line is correct:
 
18889
          shared_flag='-G'
 
18890
        else
 
18891
        if test "$aix_use_runtimelinking" = yes; then
 
18892
            shared_flag='${wl}-G'
 
18893
          else
 
18894
            shared_flag='${wl}-bM:SRE'
 
18895
        fi
 
18896
        fi
 
18897
      fi
 
18898
 
 
18899
      # It seems that -bexpall does not export symbols beginning with
 
18900
      # underscore (_), so it is better to generate a list of symbols to export.
 
18901
      always_export_symbols_GCJ=yes
 
18902
      if test "$aix_use_runtimelinking" = yes; then
 
18903
        # Warning - without using the other runtime loading flags (-brtl),
 
18904
        # -berok will link without error, but may produce a broken library.
 
18905
        allow_undefined_flag_GCJ='-berok'
 
18906
       # Determine the default libpath from the value encoded in an empty executable.
 
18907
       cat >conftest.$ac_ext <<_ACEOF
 
18908
/* confdefs.h.  */
 
18909
_ACEOF
 
18910
cat confdefs.h >>conftest.$ac_ext
 
18911
cat >>conftest.$ac_ext <<_ACEOF
 
18912
/* end confdefs.h.  */
 
18913
 
 
18914
int
 
18915
main ()
 
18916
{
 
18917
 
 
18918
  ;
 
18919
  return 0;
 
18920
}
 
18921
_ACEOF
 
18922
rm -f conftest.$ac_objext conftest$ac_exeext
 
18923
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18924
  (eval $ac_link) 2>conftest.er1
 
18925
  ac_status=$?
 
18926
  grep -v '^ *+' conftest.er1 >conftest.err
 
18927
  rm -f conftest.er1
 
18928
  cat conftest.err >&5
 
18929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18930
  (exit $ac_status); } &&
 
18931
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18933
  (eval $ac_try) 2>&5
 
18934
  ac_status=$?
 
18935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18936
  (exit $ac_status); }; } &&
 
18937
         { ac_try='test -s conftest$ac_exeext'
 
18938
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18939
  (eval $ac_try) 2>&5
 
18940
  ac_status=$?
 
18941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18942
  (exit $ac_status); }; }; then
 
18943
  
 
18944
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18945
}'`
 
18946
# Check for a 64-bit object if we didn't find anything.
 
18947
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; }
 
18948
}'`; fi
 
18949
else
 
18950
  echo "$as_me: failed program was:" >&5
 
18951
sed 's/^/| /' conftest.$ac_ext >&5
 
18952
 
 
18953
fi
 
18954
rm -f conftest.err conftest.$ac_objext \
 
18955
      conftest$ac_exeext conftest.$ac_ext
 
18956
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18957
 
 
18958
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18959
        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"
 
18960
       else
 
18961
        if test "$host_cpu" = ia64; then
 
18962
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
18963
          allow_undefined_flag_GCJ="-z nodefs"
 
18964
          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"
 
18965
        else
 
18966
         # Determine the default libpath from the value encoded in an empty executable.
 
18967
         cat >conftest.$ac_ext <<_ACEOF
 
18968
/* confdefs.h.  */
 
18969
_ACEOF
 
18970
cat confdefs.h >>conftest.$ac_ext
 
18971
cat >>conftest.$ac_ext <<_ACEOF
 
18972
/* end confdefs.h.  */
 
18973
 
 
18974
int
 
18975
main ()
 
18976
{
 
18977
 
 
18978
  ;
 
18979
  return 0;
 
18980
}
 
18981
_ACEOF
 
18982
rm -f conftest.$ac_objext conftest$ac_exeext
 
18983
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18984
  (eval $ac_link) 2>conftest.er1
 
18985
  ac_status=$?
 
18986
  grep -v '^ *+' conftest.er1 >conftest.err
 
18987
  rm -f conftest.er1
 
18988
  cat conftest.err >&5
 
18989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18990
  (exit $ac_status); } &&
 
18991
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18992
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18993
  (eval $ac_try) 2>&5
 
18994
  ac_status=$?
 
18995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18996
  (exit $ac_status); }; } &&
 
18997
         { ac_try='test -s conftest$ac_exeext'
 
18998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18999
  (eval $ac_try) 2>&5
 
19000
  ac_status=$?
 
19001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19002
  (exit $ac_status); }; }; then
 
19003
  
 
19004
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
19005
}'`
 
19006
# Check for a 64-bit object if we didn't find anything.
 
19007
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; }
 
19008
}'`; fi
 
19009
else
 
19010
  echo "$as_me: failed program was:" >&5
 
19011
sed 's/^/| /' conftest.$ac_ext >&5
 
19012
 
 
19013
fi
 
19014
rm -f conftest.err conftest.$ac_objext \
 
19015
      conftest$ac_exeext conftest.$ac_ext
 
19016
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
19017
 
 
19018
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
19019
          # Warning - without using the other run time loading flags,
 
19020
          # -berok will link without error, but may produce a broken library.
 
19021
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
19022
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
19023
          # -bexpall does not export symbols beginning with underscore (_)
 
19024
          always_export_symbols_GCJ=yes
 
19025
          # Exported symbols can be pulled into shared objects from archives
 
19026
          whole_archive_flag_spec_GCJ=' '
 
19027
          archive_cmds_need_lc_GCJ=yes
 
19028
          # This is similar to how AIX traditionally builds it's shared libraries.
 
19029
          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'
 
19030
        fi
 
19031
      fi
 
19032
      ;;
 
19033
 
 
19034
    amigaos*)
 
19035
      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)'
 
19036
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19037
      hardcode_minus_L_GCJ=yes
 
19038
      # see comment about different semantics on the GNU ld section
 
19039
      ld_shlibs_GCJ=no
 
19040
      ;;
 
19041
 
 
19042
    bsdi4*)
 
19043
      export_dynamic_flag_spec_GCJ=-rdynamic
 
19044
      ;;
 
19045
 
 
19046
    cygwin* | mingw* | pw32*)
 
19047
      # When not using gcc, we currently assume that we are using
 
19048
      # Microsoft Visual C++.
 
19049
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
19050
      # no search path for DLLs.
 
19051
      hardcode_libdir_flag_spec_GCJ=' '
 
19052
      allow_undefined_flag_GCJ=unsupported
 
19053
      # Tell ltmain to make .lib files, not .a files.
 
19054
      libext=lib
 
19055
      # Tell ltmain to make .dll files, not .so files.
 
19056
      shrext_cmds=".dll"
 
19057
      # FIXME: Setting linknames here is a bad hack.
 
19058
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
19059
      # The linker will automatically build a .lib file if we build a DLL.
 
19060
      old_archive_From_new_cmds_GCJ='true'
 
19061
      # FIXME: Should let the user specify the lib program.
 
19062
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
19063
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
19064
      enable_shared_with_static_runtimes_GCJ=yes
 
19065
      ;;
 
19066
 
 
19067
    darwin* | rhapsody*)
 
19068
    if test "$GXX" = yes ; then
 
19069
      archive_cmds_need_lc_GCJ=no
 
19070
      case "$host_os" in
 
19071
      rhapsody* | darwin1.[012])
 
19072
        allow_undefined_flag_GCJ='-undefined suppress'
 
19073
        ;;
 
19074
      *) # Darwin 1.3 on
 
19075
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
19076
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
19077
      else
 
19078
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
19079
          10.[012])
 
19080
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
19081
            ;;
 
19082
          10.*)
 
19083
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
19084
            ;;
 
19085
        esac
 
19086
      fi
 
19087
        ;;
 
19088
      esac
 
19089
        lt_int_apple_cc_single_mod=no
 
19090
        output_verbose_link_cmd='echo'
 
19091
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
19092
          lt_int_apple_cc_single_mod=yes
 
19093
        fi
 
19094
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
19095
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
19096
        else
 
19097
        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'
 
19098
      fi
 
19099
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
19100
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
19101
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
19102
          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}'
 
19103
        else
 
19104
          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}'
 
19105
        fi
 
19106
          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}'
 
19107
      hardcode_direct_GCJ=no
 
19108
      hardcode_automatic_GCJ=yes
 
19109
      hardcode_shlibpath_var_GCJ=unsupported
 
19110
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
19111
      link_all_deplibs_GCJ=yes
 
19112
    else
 
19113
      ld_shlibs_GCJ=no
 
19114
    fi
 
19115
      ;;
 
19116
 
 
19117
    dgux*)
 
19118
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19119
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19120
      hardcode_shlibpath_var_GCJ=no
 
19121
      ;;
 
19122
 
 
19123
    freebsd1*)
 
19124
      ld_shlibs_GCJ=no
 
19125
      ;;
 
19126
 
 
19127
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
19128
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
19129
    # does not break anything, and helps significantly (at the cost of a little
 
19130
    # extra space).
 
19131
    freebsd2.2*)
 
19132
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
19133
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19134
      hardcode_direct_GCJ=yes
 
19135
      hardcode_shlibpath_var_GCJ=no
 
19136
      ;;
 
19137
 
 
19138
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
19139
    freebsd2*)
 
19140
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
19141
      hardcode_direct_GCJ=yes
 
19142
      hardcode_minus_L_GCJ=yes
 
19143
      hardcode_shlibpath_var_GCJ=no
 
19144
      ;;
 
19145
 
 
19146
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
19147
    freebsd* | kfreebsd*-gnu)
 
19148
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
19149
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19150
      hardcode_direct_GCJ=yes
 
19151
      hardcode_shlibpath_var_GCJ=no
 
19152
      ;;
 
19153
 
 
19154
    hpux9*)
 
19155
      if test "$GCC" = yes; then
 
19156
        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'
 
19157
      else
 
19158
        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'
 
19159
      fi
 
19160
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19161
      hardcode_libdir_separator_GCJ=:
 
19162
      hardcode_direct_GCJ=yes
 
19163
 
 
19164
      # hardcode_minus_L: Not really in the search PATH,
 
19165
      # but as the default location of the library.
 
19166
      hardcode_minus_L_GCJ=yes
 
19167
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
19168
      ;;
 
19169
 
 
19170
    hpux10* | hpux11*)
 
19171
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
19172
        case "$host_cpu" in
 
19173
        hppa*64*|ia64*)
 
19174
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19175
          ;;
 
19176
        *)
 
19177
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
19178
          ;;
 
19179
        esac
 
19180
      else
 
19181
        case "$host_cpu" in
 
19182
        hppa*64*|ia64*)
 
19183
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19184
          ;;
 
19185
        *)
 
19186
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
19187
          ;;
 
19188
        esac
 
19189
      fi
 
19190
      if test "$with_gnu_ld" = no; then
 
19191
        case "$host_cpu" in
 
19192
        hppa*64*)
 
19193
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19194
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
19195
          hardcode_libdir_separator_GCJ=:
 
19196
          hardcode_direct_GCJ=no
 
19197
          hardcode_shlibpath_var_GCJ=no
 
19198
          ;;
 
19199
        ia64*)
 
19200
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19201
          hardcode_direct_GCJ=no
 
19202
          hardcode_shlibpath_var_GCJ=no
 
19203
 
 
19204
          # hardcode_minus_L: Not really in the search PATH,
 
19205
          # but as the default location of the library.
 
19206
          hardcode_minus_L_GCJ=yes
 
19207
          ;;
 
19208
        *)
 
19209
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19210
          hardcode_libdir_separator_GCJ=:
 
19211
          hardcode_direct_GCJ=yes
 
19212
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
19213
 
 
19214
          # hardcode_minus_L: Not really in the search PATH,
 
19215
          # but as the default location of the library.
 
19216
          hardcode_minus_L_GCJ=yes
 
19217
          ;;
 
19218
        esac
 
19219
      fi
 
19220
      ;;
 
19221
 
 
19222
    irix5* | irix6* | nonstopux*)
 
19223
      if test "$GCC" = yes; then
 
19224
        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'
 
19225
      else
 
19226
        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'
 
19227
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
19228
      fi
 
19229
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19230
      hardcode_libdir_separator_GCJ=:
 
19231
      link_all_deplibs_GCJ=yes
 
19232
      ;;
 
19233
 
 
19234
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
19235
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19236
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
19237
      else
 
19238
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
19239
      fi
 
19240
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19241
      hardcode_direct_GCJ=yes
 
19242
      hardcode_shlibpath_var_GCJ=no
 
19243
      ;;
 
19244
 
 
19245
    newsos6)
 
19246
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19247
      hardcode_direct_GCJ=yes
 
19248
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19249
      hardcode_libdir_separator_GCJ=:
 
19250
      hardcode_shlibpath_var_GCJ=no
 
19251
      ;;
 
19252
 
 
19253
    openbsd*)
 
19254
      hardcode_direct_GCJ=yes
 
19255
      hardcode_shlibpath_var_GCJ=no
 
19256
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19257
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
19258
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
19259
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
19260
      else
 
19261
       case $host_os in
 
19262
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
19263
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
19264
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19265
           ;;
 
19266
         *)
 
19267
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
19268
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
19269
           ;;
 
19270
       esac
 
19271
      fi
 
19272
      ;;
 
19273
 
 
19274
    os2*)
 
19275
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19276
      hardcode_minus_L_GCJ=yes
 
19277
      allow_undefined_flag_GCJ=unsupported
 
19278
      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'
 
19279
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
19280
      ;;
 
19281
 
 
19282
    osf3*)
 
19283
      if test "$GCC" = yes; then
 
19284
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
19285
        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'
 
19286
      else
 
19287
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
19288
        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'
 
19289
      fi
 
19290
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19291
      hardcode_libdir_separator_GCJ=:
 
19292
      ;;
 
19293
 
 
19294
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
19295
      if test "$GCC" = yes; then
 
19296
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
19297
        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'
 
19298
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19299
      else
 
19300
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
19301
        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'
 
19302
        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~
 
19303
        $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'
 
19304
 
 
19305
        # Both c and cxx compiler support -rpath directly
 
19306
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
19307
      fi
 
19308
      hardcode_libdir_separator_GCJ=:
 
19309
      ;;
 
19310
 
 
19311
    sco3.2v5*)
 
19312
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19313
      hardcode_shlibpath_var_GCJ=no
 
19314
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
19315
      runpath_var=LD_RUN_PATH
 
19316
      hardcode_runpath_var=yes
 
19317
      ;;
 
19318
 
 
19319
    solaris*)
 
19320
      no_undefined_flag_GCJ=' -z text'
 
19321
      if test "$GCC" = yes; then
 
19322
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19323
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
19324
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
19325
      else
 
19326
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19327
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
19328
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
19329
      fi
 
19330
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19331
      hardcode_shlibpath_var_GCJ=no
 
19332
      case $host_os in
 
19333
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
19334
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
19335
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
19336
      esac
 
19337
      link_all_deplibs_GCJ=yes
 
19338
      ;;
 
19339
 
 
19340
    sunos4*)
 
19341
      if test "x$host_vendor" = xsequent; then
 
19342
        # Use $CC to link under sequent, because it throws in some extra .o
 
19343
        # files that make .init and .fini sections work.
 
19344
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
19345
      else
 
19346
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
19347
      fi
 
19348
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19349
      hardcode_direct_GCJ=yes
 
19350
      hardcode_minus_L_GCJ=yes
 
19351
      hardcode_shlibpath_var_GCJ=no
 
19352
      ;;
 
19353
 
 
19354
    sysv4)
 
19355
      case $host_vendor in
 
19356
        sni)
 
19357
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19358
          hardcode_direct_GCJ=yes # is this really true???
 
19359
        ;;
 
19360
        siemens)
 
19361
          ## LD is ld it makes a PLAMLIB
 
19362
          ## CC just makes a GrossModule.
 
19363
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
19364
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
19365
          hardcode_direct_GCJ=no
 
19366
        ;;
 
19367
        motorola)
 
19368
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19369
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
19370
        ;;
 
19371
      esac
 
19372
      runpath_var='LD_RUN_PATH'
 
19373
      hardcode_shlibpath_var_GCJ=no
 
19374
      ;;
 
19375
 
 
19376
    sysv4.3*)
 
19377
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19378
      hardcode_shlibpath_var_GCJ=no
 
19379
      export_dynamic_flag_spec_GCJ='-Bexport'
 
19380
      ;;
 
19381
 
 
19382
    sysv4*MP*)
 
19383
      if test -d /usr/nec; then
 
19384
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19385
        hardcode_shlibpath_var_GCJ=no
 
19386
        runpath_var=LD_RUN_PATH
 
19387
        hardcode_runpath_var=yes
 
19388
        ld_shlibs_GCJ=yes
 
19389
      fi
 
19390
      ;;
 
19391
 
 
19392
    sysv4.2uw2*)
 
19393
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
19394
      hardcode_direct_GCJ=yes
 
19395
      hardcode_minus_L_GCJ=no
 
19396
      hardcode_shlibpath_var_GCJ=no
 
19397
      hardcode_runpath_var=yes
 
19398
      runpath_var=LD_RUN_PATH
 
19399
      ;;
 
19400
 
 
19401
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
19402
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
19403
      if test "$GCC" = yes; then
 
19404
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19405
      else
 
19406
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19407
      fi
 
19408
      runpath_var='LD_RUN_PATH'
 
19409
      hardcode_shlibpath_var_GCJ=no
 
19410
      ;;
 
19411
 
 
19412
    sysv5*)
 
19413
      no_undefined_flag_GCJ=' -z text'
 
19414
      # $CC -shared without GNU ld will not create a library from C++
 
19415
      # object files and a static libstdc++, better avoid it by now
 
19416
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19417
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
19418
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
19419
      hardcode_libdir_flag_spec_GCJ=
 
19420
      hardcode_shlibpath_var_GCJ=no
 
19421
      runpath_var='LD_RUN_PATH'
 
19422
      ;;
 
19423
 
 
19424
    uts4*)
 
19425
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19426
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19427
      hardcode_shlibpath_var_GCJ=no
 
19428
      ;;
 
19429
 
 
19430
    *)
 
19431
      ld_shlibs_GCJ=no
 
19432
      ;;
 
19433
    esac
 
19434
  fi
 
19435
 
 
19436
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
19437
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
19438
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
19439
 
 
19440
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
19441
if test "$GCC" = yes; then
 
19442
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
19443
fi
 
19444
 
 
19445
#
 
19446
# Do we need to explicitly link libc?
 
19447
#
 
19448
case "x$archive_cmds_need_lc_GCJ" in
 
19449
x|xyes)
 
19450
  # Assume -lc should be added
 
19451
  archive_cmds_need_lc_GCJ=yes
 
19452
 
 
19453
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
19454
    case $archive_cmds_GCJ in
 
19455
    *'~'*)
 
19456
      # FIXME: we may have to deal with multi-command sequences.
 
19457
      ;;
 
19458
    '$CC '*)
 
19459
      # Test whether the compiler implicitly links with -lc since on some
 
19460
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
19461
      # to ld, don't add -lc before -lgcc.
 
19462
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
19463
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
19464
      $rm conftest*
 
19465
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
19466
 
 
19467
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19468
  (eval $ac_compile) 2>&5
 
19469
  ac_status=$?
 
19470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19471
  (exit $ac_status); } 2>conftest.err; then
 
19472
        soname=conftest
 
19473
        lib=conftest
 
19474
        libobjs=conftest.$ac_objext
 
19475
        deplibs=
 
19476
        wl=$lt_prog_compiler_wl_GCJ
 
19477
        compiler_flags=-v
 
19478
        linker_flags=-v
 
19479
        verstring=
 
19480
        output_objdir=.
 
19481
        libname=conftest
 
19482
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
19483
        allow_undefined_flag_GCJ=
 
19484
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
19485
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
19486
  ac_status=$?
 
19487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19488
  (exit $ac_status); }
 
19489
        then
 
19490
          archive_cmds_need_lc_GCJ=no
 
19491
        else
 
19492
          archive_cmds_need_lc_GCJ=yes
 
19493
        fi
 
19494
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
19495
      else
 
19496
        cat conftest.err 1>&5
 
19497
      fi
 
19498
      $rm conftest*
 
19499
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
19500
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
19501
      ;;
 
19502
    esac
 
19503
  fi
 
19504
  ;;
 
19505
esac
 
19506
 
 
19507
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
19508
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
19509
library_names_spec=
 
19510
libname_spec='lib$name'
 
19511
soname_spec=
 
19512
shrext_cmds=".so"
 
19513
postinstall_cmds=
 
19514
postuninstall_cmds=
 
19515
finish_cmds=
 
19516
finish_eval=
 
19517
shlibpath_var=
 
19518
shlibpath_overrides_runpath=unknown
 
19519
version_type=none
 
19520
dynamic_linker="$host_os ld.so"
 
19521
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
19522
if test "$GCC" = yes; then
 
19523
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
19524
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
19525
    # if the path contains ";" then we assume it to be the separator
 
19526
    # otherwise default to the standard path separator (i.e. ":") - it is
 
19527
    # assumed that no part of a normal pathname contains ";" but that should
 
19528
    # okay in the real world where ";" in dirpaths is itself problematic.
 
19529
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
19530
  else
 
19531
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
19532
  fi
 
19533
else
 
19534
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
19535
fi
 
19536
need_lib_prefix=unknown
 
19537
hardcode_into_libs=no
 
19538
 
 
19539
# when you set need_version to no, make sure it does not cause -set_version
 
19540
# flags to be left without arguments
 
19541
need_version=unknown
 
19542
 
 
19543
case $host_os in
 
19544
aix3*)
 
19545
  version_type=linux
 
19546
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
19547
  shlibpath_var=LIBPATH
 
19548
 
 
19549
  # AIX 3 has no versioning support, so we append a major version to the name.
 
19550
  soname_spec='${libname}${release}${shared_ext}$major'
 
19551
  ;;
 
19552
 
 
19553
aix4* | aix5*)
 
19554
  version_type=linux
 
19555
  need_lib_prefix=no
 
19556
  need_version=no
 
19557
  hardcode_into_libs=yes
 
19558
  if test "$host_cpu" = ia64; then
 
19559
    # AIX 5 supports IA64
 
19560
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
19561
    shlibpath_var=LD_LIBRARY_PATH
 
19562
  else
 
19563
    # With GCC up to 2.95.x, collect2 would create an import file
 
19564
    # for dependence libraries.  The import file would start with
 
19565
    # the line `#! .'.  This would cause the generated library to
 
19566
    # depend on `.', always an invalid library.  This was fixed in
 
19567
    # development snapshots of GCC prior to 3.0.
 
19568
    case $host_os in
 
19569
      aix4 | aix4.[01] | aix4.[01].*)
 
19570
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
19571
           echo ' yes '
 
19572
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
19573
        :
 
19574
      else
 
19575
        can_build_shared=no
 
19576
      fi
 
19577
      ;;
 
19578
    esac
 
19579
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
19580
    # soname into executable. Probably we can add versioning support to
 
19581
    # collect2, so additional links can be useful in future.
 
19582
    if test "$aix_use_runtimelinking" = yes; then
 
19583
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
19584
      # instead of lib<name>.a to let people know that these are not
 
19585
      # typical AIX shared libraries.
 
19586
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19587
    else
 
19588
      # We preserve .a as extension for shared libraries through AIX4.2
 
19589
      # and later when we are not doing run time linking.
 
19590
      library_names_spec='${libname}${release}.a $libname.a'
 
19591
      soname_spec='${libname}${release}${shared_ext}$major'
 
19592
    fi
 
19593
    shlibpath_var=LIBPATH
 
19594
  fi
 
19595
  ;;
 
19596
 
 
19597
amigaos*)
 
19598
  library_names_spec='$libname.ixlibrary $libname.a'
 
19599
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
19600
  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'
 
19601
  ;;
 
19602
 
 
19603
beos*)
 
19604
  library_names_spec='${libname}${shared_ext}'
 
19605
  dynamic_linker="$host_os ld.so"
 
19606
  shlibpath_var=LIBRARY_PATH
 
19607
  ;;
 
19608
 
 
19609
bsdi4*)
 
19610
  version_type=linux
 
19611
  need_version=no
 
19612
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19613
  soname_spec='${libname}${release}${shared_ext}$major'
 
19614
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
19615
  shlibpath_var=LD_LIBRARY_PATH
 
19616
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
19617
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
19618
  # the default ld.so.conf also contains /usr/contrib/lib and
 
19619
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
19620
  # libtool to hard-code these into programs
 
19621
  ;;
 
19622
 
 
19623
cygwin* | mingw* | pw32*)
 
19624
  version_type=windows
 
19625
  shrext_cmds=".dll"
 
19626
  need_version=no
 
19627
  need_lib_prefix=no
 
19628
 
 
19629
  case $GCC,$host_os in
 
19630
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
19631
    library_names_spec='$libname.dll.a'
 
19632
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
19633
    postinstall_cmds='base_file=`basename \${file}`~
 
19634
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
19635
      dldir=$destdir/`dirname \$dlpath`~
 
19636
      test -d \$dldir || mkdir -p \$dldir~
 
19637
      $install_prog $dir/$dlname \$dldir/$dlname'
 
19638
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
19639
      dlpath=$dir/\$dldll~
 
19640
       $rm \$dlpath'
 
19641
    shlibpath_overrides_runpath=yes
 
19642
 
 
19643
    case $host_os in
 
19644
    cygwin*)
 
19645
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
19646
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19647
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
19648
      ;;
 
19649
    mingw*)
 
19650
      # MinGW DLLs use traditional 'lib' prefix
 
19651
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19652
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
19653
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
19654
        # It is most probably a Windows format PATH printed by
 
19655
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
19656
        # path with ; separators, and with drive letters. We can handle the
 
19657
        # drive letters (cygwin fileutils understands them), so leave them,
 
19658
        # especially as we might pass files found there to a mingw objdump,
 
19659
        # which wouldn't understand a cygwinified path. Ahh.
 
19660
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
19661
      else
 
19662
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
19663
      fi
 
19664
      ;;
 
19665
    pw32*)
 
19666
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
19667
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
19668
      ;;
 
19669
    esac
 
19670
    ;;
 
19671
 
 
19672
  *)
 
19673
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
19674
    ;;
 
19675
  esac
 
19676
  dynamic_linker='Win32 ld.exe'
 
19677
  # FIXME: first we should search . and the directory the executable is in
 
19678
  shlibpath_var=PATH
 
19679
  ;;
 
19680
 
 
19681
darwin* | rhapsody*)
 
19682
  dynamic_linker="$host_os dyld"
 
19683
  version_type=darwin
 
19684
  need_lib_prefix=no
 
19685
  need_version=no
 
19686
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
19687
  soname_spec='${libname}${release}${major}$shared_ext'
 
19688
  shlibpath_overrides_runpath=yes
 
19689
  shlibpath_var=DYLD_LIBRARY_PATH
 
19690
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
19691
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
19692
  if test "$GCC" = yes; then
 
19693
    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"`
 
19694
  else
 
19695
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
19696
  fi
 
19697
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
19698
  ;;
 
19699
 
 
19700
dgux*)
 
19701
  version_type=linux
 
19702
  need_lib_prefix=no
 
19703
  need_version=no
 
19704
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
19705
  soname_spec='${libname}${release}${shared_ext}$major'
 
19706
  shlibpath_var=LD_LIBRARY_PATH
 
19707
  ;;
 
19708
 
 
19709
freebsd1*)
 
19710
  dynamic_linker=no
 
19711
  ;;
 
19712
 
 
19713
kfreebsd*-gnu)
 
19714
  version_type=linux
 
19715
  need_lib_prefix=no
 
19716
  need_version=no
 
19717
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19718
  soname_spec='${libname}${release}${shared_ext}$major'
 
19719
  shlibpath_var=LD_LIBRARY_PATH
 
19720
  shlibpath_overrides_runpath=no
 
19721
  hardcode_into_libs=yes
 
19722
  dynamic_linker='GNU ld.so'
 
19723
  ;;
 
19724
 
 
19725
freebsd*)
 
19726
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
19727
  version_type=freebsd-$objformat
 
19728
  case $version_type in
 
19729
    freebsd-elf*)
 
19730
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19731
      need_version=no
 
19732
      need_lib_prefix=no
 
19733
      ;;
 
19734
    freebsd-*)
 
19735
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
19736
      need_version=yes
 
19737
      ;;
 
19738
  esac
 
19739
  shlibpath_var=LD_LIBRARY_PATH
 
19740
  case $host_os in
 
19741
  freebsd2*)
 
19742
    shlibpath_overrides_runpath=yes
 
19743
    ;;
 
19744
  freebsd3.01* | freebsdelf3.01*)
 
19745
    shlibpath_overrides_runpath=yes
 
19746
    hardcode_into_libs=yes
 
19747
    ;;
 
19748
  *) # from 3.2 on
 
19749
    shlibpath_overrides_runpath=no
 
19750
    hardcode_into_libs=yes
 
19751
    ;;
 
19752
  esac
 
19753
  ;;
 
19754
 
 
19755
gnu*)
 
19756
  version_type=linux
 
19757
  need_lib_prefix=no
 
19758
  need_version=no
 
19759
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
19760
  soname_spec='${libname}${release}${shared_ext}$major'
 
19761
  shlibpath_var=LD_LIBRARY_PATH
 
19762
  hardcode_into_libs=yes
 
19763
  ;;
 
19764
 
 
19765
hpux9* | hpux10* | hpux11*)
 
19766
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
19767
  # link against other versions.
 
19768
  version_type=sunos
 
19769
  need_lib_prefix=no
 
19770
  need_version=no
 
19771
  case "$host_cpu" in
 
19772
  ia64*)
 
19773
    shrext_cmds='.so'
 
19774
    hardcode_into_libs=yes
 
19775
    dynamic_linker="$host_os dld.so"
 
19776
    shlibpath_var=LD_LIBRARY_PATH
 
19777
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19778
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19779
    soname_spec='${libname}${release}${shared_ext}$major'
 
19780
    if test "X$HPUX_IA64_MODE" = X32; then
 
19781
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
19782
    else
 
19783
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
19784
    fi
 
19785
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19786
    ;;
 
19787
   hppa*64*)
 
19788
     shrext_cmds='.sl'
 
19789
     hardcode_into_libs=yes
 
19790
     dynamic_linker="$host_os dld.sl"
 
19791
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
19792
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19793
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19794
     soname_spec='${libname}${release}${shared_ext}$major'
 
19795
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
19796
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19797
     ;;
 
19798
   *)
 
19799
    shrext_cmds='.sl'
 
19800
    dynamic_linker="$host_os dld.sl"
 
19801
    shlibpath_var=SHLIB_PATH
 
19802
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
19803
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19804
    soname_spec='${libname}${release}${shared_ext}$major'
 
19805
    ;;
 
19806
  esac
 
19807
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
19808
  postinstall_cmds='chmod 555 $lib'
 
19809
  ;;
 
19810
 
 
19811
irix5* | irix6* | nonstopux*)
 
19812
  case $host_os in
 
19813
    nonstopux*) version_type=nonstopux ;;
 
19814
    *)
 
19815
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
19816
                version_type=linux
 
19817
        else
 
19818
                version_type=irix
 
19819
        fi ;;
 
19820
  esac
 
19821
  need_lib_prefix=no
 
19822
  need_version=no
 
19823
  soname_spec='${libname}${release}${shared_ext}$major'
 
19824
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19825
  case $host_os in
 
19826
  irix5* | nonstopux*)
 
19827
    libsuff= shlibsuff=
 
19828
    ;;
 
19829
  *)
 
19830
    case $LD in # libtool.m4 will add one of these switches to LD
 
19831
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
19832
      libsuff= shlibsuff= libmagic=32-bit;;
 
19833
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
19834
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
19835
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
19836
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
19837
    *) libsuff= shlibsuff= libmagic=never-match;;
 
19838
    esac
 
19839
    ;;
 
19840
  esac
 
19841
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
19842
  shlibpath_overrides_runpath=no
 
19843
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19844
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19845
  hardcode_into_libs=yes
 
19846
  ;;
 
19847
 
 
19848
# No shared lib support for Linux oldld, aout, or coff.
 
19849
linux*oldld* | linux*aout* | linux*coff*)
 
19850
  dynamic_linker=no
 
19851
  ;;
 
19852
 
 
19853
# This must be Linux ELF.
 
19854
linux*)
 
19855
  version_type=linux
 
19856
  need_lib_prefix=no
 
19857
  need_version=no
 
19858
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19859
  soname_spec='${libname}${release}${shared_ext}$major'
 
19860
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
19861
  shlibpath_var=LD_LIBRARY_PATH
 
19862
  shlibpath_overrides_runpath=no
 
19863
  # This implies no fast_install, which is unacceptable.
 
19864
  # Some rework will be needed to allow for fast_install
 
19865
  # before this can be enabled.
 
19866
  hardcode_into_libs=yes
 
19867
 
 
19868
  # Append ld.so.conf contents to the search path
 
19869
  if test -f /etc/ld.so.conf; then
 
19870
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
19871
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
19872
  fi
 
19873
 
 
19874
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
19875
  # powerpc, because MkLinux only supported shared libraries with the
 
19876
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
19877
  # most powerpc-linux boxes support dynamic linking these days and
 
19878
  # people can always --disable-shared, the test was removed, and we
 
19879
  # assume the GNU/Linux dynamic linker is in use.
 
19880
  dynamic_linker='GNU/Linux ld.so'
 
19881
  ;;
 
19882
 
 
19883
netbsdelf*-gnu)
 
19884
  version_type=linux
 
19885
  need_lib_prefix=no
 
19886
  need_version=no
 
19887
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19888
  soname_spec='${libname}${release}${shared_ext}$major'
 
19889
  shlibpath_var=LD_LIBRARY_PATH
 
19890
  shlibpath_overrides_runpath=no
 
19891
  hardcode_into_libs=yes
 
19892
  dynamic_linker='NetBSD ld.elf_so'
 
19893
  ;;
 
19894
 
 
19895
knetbsd*-gnu)
 
19896
  version_type=linux
 
19897
  need_lib_prefix=no
 
19898
  need_version=no
 
19899
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19900
  soname_spec='${libname}${release}${shared_ext}$major'
 
19901
  shlibpath_var=LD_LIBRARY_PATH
 
19902
  shlibpath_overrides_runpath=no
 
19903
  hardcode_into_libs=yes
 
19904
  dynamic_linker='GNU ld.so'
 
19905
  ;;
 
19906
 
 
19907
netbsd*)
 
19908
  version_type=sunos
 
19909
  need_lib_prefix=no
 
19910
  need_version=no
 
19911
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19912
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19913
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19914
    dynamic_linker='NetBSD (a.out) ld.so'
 
19915
  else
 
19916
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19917
    soname_spec='${libname}${release}${shared_ext}$major'
 
19918
    dynamic_linker='NetBSD ld.elf_so'
 
19919
  fi
 
19920
  shlibpath_var=LD_LIBRARY_PATH
 
19921
  shlibpath_overrides_runpath=yes
 
19922
  hardcode_into_libs=yes
 
19923
  ;;
 
19924
 
 
19925
newsos6)
 
19926
  version_type=linux
 
19927
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19928
  shlibpath_var=LD_LIBRARY_PATH
 
19929
  shlibpath_overrides_runpath=yes
 
19930
  ;;
 
19931
 
 
19932
nto-qnx*)
 
19933
  version_type=linux
 
19934
  need_lib_prefix=no
 
19935
  need_version=no
 
19936
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19937
  soname_spec='${libname}${release}${shared_ext}$major'
 
19938
  shlibpath_var=LD_LIBRARY_PATH
 
19939
  shlibpath_overrides_runpath=yes
 
19940
  ;;
 
19941
 
 
19942
openbsd*)
 
19943
  version_type=sunos
 
19944
  need_lib_prefix=no
 
19945
  need_version=yes
 
19946
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19947
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19948
  shlibpath_var=LD_LIBRARY_PATH
 
19949
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19950
    case $host_os in
 
19951
      openbsd2.[89] | openbsd2.[89].*)
 
19952
        shlibpath_overrides_runpath=no
 
19953
        ;;
 
19954
      *)
 
19955
        shlibpath_overrides_runpath=yes
 
19956
        ;;
 
19957
      esac
 
19958
  else
 
19959
    shlibpath_overrides_runpath=yes
 
19960
  fi
 
19961
  ;;
 
19962
 
 
19963
os2*)
 
19964
  libname_spec='$name'
 
19965
  shrext_cmds=".dll"
 
19966
  need_lib_prefix=no
 
19967
  library_names_spec='$libname${shared_ext} $libname.a'
 
19968
  dynamic_linker='OS/2 ld.exe'
 
19969
  shlibpath_var=LIBPATH
 
19970
  ;;
 
19971
 
 
19972
osf3* | osf4* | osf5*)
 
19973
  version_type=osf
 
19974
  need_lib_prefix=no
 
19975
  need_version=no
 
19976
  soname_spec='${libname}${release}${shared_ext}$major'
 
19977
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19978
  shlibpath_var=LD_LIBRARY_PATH
 
19979
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19980
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19981
  ;;
 
19982
 
 
19983
sco3.2v5*)
 
19984
  version_type=osf
 
19985
  soname_spec='${libname}${release}${shared_ext}$major'
 
19986
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19987
  shlibpath_var=LD_LIBRARY_PATH
 
19988
  ;;
 
19989
 
 
19990
solaris*)
 
19991
  version_type=linux
 
19992
  need_lib_prefix=no
 
19993
  need_version=no
 
19994
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19995
  soname_spec='${libname}${release}${shared_ext}$major'
 
19996
  shlibpath_var=LD_LIBRARY_PATH
 
19997
  shlibpath_overrides_runpath=yes
 
19998
  hardcode_into_libs=yes
 
19999
  # ldd complains unless libraries are executable
 
20000
  postinstall_cmds='chmod +x $lib'
 
20001
  ;;
 
20002
 
 
20003
sunos4*)
 
20004
  version_type=sunos
 
20005
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
20006
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
20007
  shlibpath_var=LD_LIBRARY_PATH
 
20008
  shlibpath_overrides_runpath=yes
 
20009
  if test "$with_gnu_ld" = yes; then
 
20010
    need_lib_prefix=no
 
20011
  fi
 
20012
  need_version=yes
 
20013
  ;;
 
20014
 
 
20015
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
20016
  version_type=linux
 
20017
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20018
  soname_spec='${libname}${release}${shared_ext}$major'
 
20019
  shlibpath_var=LD_LIBRARY_PATH
 
20020
  case $host_vendor in
 
20021
    sni)
 
20022
      shlibpath_overrides_runpath=no
 
20023
      need_lib_prefix=no
 
20024
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
20025
      runpath_var=LD_RUN_PATH
 
20026
      ;;
 
20027
    siemens)
 
20028
      need_lib_prefix=no
 
20029
      ;;
 
20030
    motorola)
 
20031
      need_lib_prefix=no
 
20032
      need_version=no
 
20033
      shlibpath_overrides_runpath=no
 
20034
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
20035
      ;;
 
20036
  esac
 
20037
  ;;
 
20038
 
 
20039
sysv4*MP*)
 
20040
  if test -d /usr/nec ;then
 
20041
    version_type=linux
 
20042
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
20043
    soname_spec='$libname${shared_ext}.$major'
 
20044
    shlibpath_var=LD_LIBRARY_PATH
 
20045
  fi
 
20046
  ;;
 
20047
 
 
20048
uts4*)
 
20049
  version_type=linux
 
20050
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20051
  soname_spec='${libname}${release}${shared_ext}$major'
 
20052
  shlibpath_var=LD_LIBRARY_PATH
 
20053
  ;;
 
20054
 
 
20055
*)
 
20056
  dynamic_linker=no
 
20057
  ;;
 
20058
esac
 
20059
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
20060
echo "${ECHO_T}$dynamic_linker" >&6
 
20061
test "$dynamic_linker" = no && can_build_shared=no
 
20062
 
 
20063
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
20064
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
20065
hardcode_action_GCJ=
 
20066
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
20067
   test -n "$runpath_var GCJ" || \
 
20068
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
20069
 
 
20070
  # We can hardcode non-existant directories.
 
20071
  if test "$hardcode_direct_GCJ" != no &&
 
20072
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
20073
     # have to relink, otherwise we might link with an installed library
 
20074
     # when we should be linking with a yet-to-be-installed one
 
20075
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
20076
     test "$hardcode_minus_L_GCJ" != no; then
 
20077
    # Linking always hardcodes the temporary library directory.
 
20078
    hardcode_action_GCJ=relink
 
20079
  else
 
20080
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
20081
    hardcode_action_GCJ=immediate
 
20082
  fi
 
20083
else
 
20084
  # We cannot hardcode anything, or else we can only hardcode existing
 
20085
  # directories.
 
20086
  hardcode_action_GCJ=unsupported
 
20087
fi
 
20088
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
20089
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
20090
 
 
20091
if test "$hardcode_action_GCJ" = relink; then
 
20092
  # Fast installation is not supported
 
20093
  enable_fast_install=no
 
20094
elif test "$shlibpath_overrides_runpath" = yes ||
 
20095
     test "$enable_shared" = no; then
 
20096
  # Fast installation is not necessary
 
20097
  enable_fast_install=needless
 
20098
fi
 
20099
 
 
20100
striplib=
 
20101
old_striplib=
 
20102
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
20103
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
20104
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
20105
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
20106
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
20107
  echo "$as_me:$LINENO: result: yes" >&5
 
20108
echo "${ECHO_T}yes" >&6
 
20109
else
 
20110
# FIXME - insert some real tests, host_os isn't really good enough
 
20111
  case $host_os in
 
20112
   darwin*)
 
20113
       if test -n "$STRIP" ; then
 
20114
         striplib="$STRIP -x"
 
20115
         echo "$as_me:$LINENO: result: yes" >&5
 
20116
echo "${ECHO_T}yes" >&6
 
20117
       else
 
20118
  echo "$as_me:$LINENO: result: no" >&5
 
20119
echo "${ECHO_T}no" >&6
 
20120
fi
 
20121
       ;;
 
20122
   *)
 
20123
  echo "$as_me:$LINENO: result: no" >&5
 
20124
echo "${ECHO_T}no" >&6
 
20125
    ;;
 
20126
  esac
 
20127
fi
 
20128
 
 
20129
if test "x$enable_dlopen" != xyes; then
 
20130
  enable_dlopen=unknown
 
20131
  enable_dlopen_self=unknown
 
20132
  enable_dlopen_self_static=unknown
 
20133
else
 
20134
  lt_cv_dlopen=no
 
20135
  lt_cv_dlopen_libs=
 
20136
 
 
20137
  case $host_os in
 
20138
  beos*)
 
20139
    lt_cv_dlopen="load_add_on"
 
20140
    lt_cv_dlopen_libs=
 
20141
    lt_cv_dlopen_self=yes
 
20142
    ;;
 
20143
 
 
20144
  mingw* | pw32*)
 
20145
    lt_cv_dlopen="LoadLibrary"
 
20146
    lt_cv_dlopen_libs=
 
20147
   ;;
 
20148
 
 
20149
  cygwin*)
 
20150
    lt_cv_dlopen="dlopen"
 
20151
    lt_cv_dlopen_libs=
 
20152
   ;;
 
20153
 
 
20154
  darwin*)
 
20155
  # if libdl is installed we need to link against it
 
20156
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
20157
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
20158
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
20159
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20160
else
 
20161
  ac_check_lib_save_LIBS=$LIBS
 
20162
LIBS="-ldl  $LIBS"
 
20163
cat >conftest.$ac_ext <<_ACEOF
 
20164
/* confdefs.h.  */
 
20165
_ACEOF
 
20166
cat confdefs.h >>conftest.$ac_ext
 
20167
cat >>conftest.$ac_ext <<_ACEOF
 
20168
/* end confdefs.h.  */
 
20169
 
 
20170
/* Override any gcc2 internal prototype to avoid an error.  */
 
20171
#ifdef __cplusplus
 
20172
extern "C"
 
20173
#endif
 
20174
/* We use char because int might match the return type of a gcc2
 
20175
   builtin and then its argument prototype would still apply.  */
 
20176
char dlopen ();
 
20177
int
 
20178
main ()
 
20179
{
 
20180
dlopen ();
 
20181
  ;
 
20182
  return 0;
 
20183
}
 
20184
_ACEOF
 
20185
rm -f conftest.$ac_objext conftest$ac_exeext
 
20186
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20187
  (eval $ac_link) 2>conftest.er1
 
20188
  ac_status=$?
 
20189
  grep -v '^ *+' conftest.er1 >conftest.err
 
20190
  rm -f conftest.er1
 
20191
  cat conftest.err >&5
 
20192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20193
  (exit $ac_status); } &&
 
20194
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20196
  (eval $ac_try) 2>&5
 
20197
  ac_status=$?
 
20198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20199
  (exit $ac_status); }; } &&
 
20200
         { ac_try='test -s conftest$ac_exeext'
 
20201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20202
  (eval $ac_try) 2>&5
 
20203
  ac_status=$?
 
20204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20205
  (exit $ac_status); }; }; then
 
20206
  ac_cv_lib_dl_dlopen=yes
 
20207
else
 
20208
  echo "$as_me: failed program was:" >&5
 
20209
sed 's/^/| /' conftest.$ac_ext >&5
 
20210
 
 
20211
ac_cv_lib_dl_dlopen=no
 
20212
fi
 
20213
rm -f conftest.err conftest.$ac_objext \
 
20214
      conftest$ac_exeext conftest.$ac_ext
 
20215
LIBS=$ac_check_lib_save_LIBS
 
20216
fi
 
20217
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
20218
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
20219
if test $ac_cv_lib_dl_dlopen = yes; then
 
20220
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
20221
else
 
20222
  
 
20223
    lt_cv_dlopen="dyld"
 
20224
    lt_cv_dlopen_libs=
 
20225
    lt_cv_dlopen_self=yes
 
20226
    
 
20227
fi
 
20228
 
 
20229
   ;;
 
20230
 
 
20231
  *)
 
20232
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
20233
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
20234
if test "${ac_cv_func_shl_load+set}" = set; then
 
20235
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20236
else
 
20237
  cat >conftest.$ac_ext <<_ACEOF
 
20238
/* confdefs.h.  */
 
20239
_ACEOF
 
20240
cat confdefs.h >>conftest.$ac_ext
 
20241
cat >>conftest.$ac_ext <<_ACEOF
 
20242
/* end confdefs.h.  */
 
20243
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
20244
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20245
#define shl_load innocuous_shl_load
 
20246
 
 
20247
/* System header to define __stub macros and hopefully few prototypes,
 
20248
    which can conflict with char shl_load (); below.
 
20249
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20250
    <limits.h> exists even on freestanding compilers.  */
 
20251
 
 
20252
#ifdef __STDC__
 
20253
# include <limits.h>
 
20254
#else
 
20255
# include <assert.h>
 
20256
#endif
 
20257
 
 
20258
#undef shl_load
 
20259
 
 
20260
/* Override any gcc2 internal prototype to avoid an error.  */
 
20261
#ifdef __cplusplus
 
20262
extern "C"
 
20263
{
 
20264
#endif
 
20265
/* We use char because int might match the return type of a gcc2
 
20266
   builtin and then its argument prototype would still apply.  */
 
20267
char shl_load ();
 
20268
/* The GNU C library defines this for functions which it implements
 
20269
    to always fail with ENOSYS.  Some functions are actually named
 
20270
    something starting with __ and the normal name is an alias.  */
 
20271
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
20272
choke me
 
20273
#else
 
20274
char (*f) () = shl_load;
 
20275
#endif
 
20276
#ifdef __cplusplus
 
20277
}
 
20278
#endif
 
20279
 
 
20280
int
 
20281
main ()
 
20282
{
 
20283
return f != shl_load;
 
20284
  ;
 
20285
  return 0;
 
20286
}
 
20287
_ACEOF
 
20288
rm -f conftest.$ac_objext conftest$ac_exeext
 
20289
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20290
  (eval $ac_link) 2>conftest.er1
 
20291
  ac_status=$?
 
20292
  grep -v '^ *+' conftest.er1 >conftest.err
 
20293
  rm -f conftest.er1
 
20294
  cat conftest.err >&5
 
20295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20296
  (exit $ac_status); } &&
 
20297
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20299
  (eval $ac_try) 2>&5
 
20300
  ac_status=$?
 
20301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20302
  (exit $ac_status); }; } &&
 
20303
         { ac_try='test -s conftest$ac_exeext'
 
20304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20305
  (eval $ac_try) 2>&5
 
20306
  ac_status=$?
 
20307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20308
  (exit $ac_status); }; }; then
 
20309
  ac_cv_func_shl_load=yes
 
20310
else
 
20311
  echo "$as_me: failed program was:" >&5
 
20312
sed 's/^/| /' conftest.$ac_ext >&5
 
20313
 
 
20314
ac_cv_func_shl_load=no
 
20315
fi
 
20316
rm -f conftest.err conftest.$ac_objext \
 
20317
      conftest$ac_exeext conftest.$ac_ext
 
20318
fi
 
20319
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
20320
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
20321
if test $ac_cv_func_shl_load = yes; then
 
20322
  lt_cv_dlopen="shl_load"
 
20323
else
 
20324
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
20325
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
20326
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
20327
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20328
else
 
20329
  ac_check_lib_save_LIBS=$LIBS
 
20330
LIBS="-ldld  $LIBS"
 
20331
cat >conftest.$ac_ext <<_ACEOF
 
20332
/* confdefs.h.  */
 
20333
_ACEOF
 
20334
cat confdefs.h >>conftest.$ac_ext
 
20335
cat >>conftest.$ac_ext <<_ACEOF
 
20336
/* end confdefs.h.  */
 
20337
 
 
20338
/* Override any gcc2 internal prototype to avoid an error.  */
 
20339
#ifdef __cplusplus
 
20340
extern "C"
 
20341
#endif
 
20342
/* We use char because int might match the return type of a gcc2
 
20343
   builtin and then its argument prototype would still apply.  */
 
20344
char shl_load ();
 
20345
int
 
20346
main ()
 
20347
{
 
20348
shl_load ();
 
20349
  ;
 
20350
  return 0;
 
20351
}
 
20352
_ACEOF
 
20353
rm -f conftest.$ac_objext conftest$ac_exeext
 
20354
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20355
  (eval $ac_link) 2>conftest.er1
 
20356
  ac_status=$?
 
20357
  grep -v '^ *+' conftest.er1 >conftest.err
 
20358
  rm -f conftest.er1
 
20359
  cat conftest.err >&5
 
20360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20361
  (exit $ac_status); } &&
 
20362
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20363
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20364
  (eval $ac_try) 2>&5
 
20365
  ac_status=$?
 
20366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20367
  (exit $ac_status); }; } &&
 
20368
         { ac_try='test -s conftest$ac_exeext'
 
20369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20370
  (eval $ac_try) 2>&5
 
20371
  ac_status=$?
 
20372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20373
  (exit $ac_status); }; }; then
 
20374
  ac_cv_lib_dld_shl_load=yes
 
20375
else
 
20376
  echo "$as_me: failed program was:" >&5
 
20377
sed 's/^/| /' conftest.$ac_ext >&5
 
20378
 
 
20379
ac_cv_lib_dld_shl_load=no
 
20380
fi
 
20381
rm -f conftest.err conftest.$ac_objext \
 
20382
      conftest$ac_exeext conftest.$ac_ext
 
20383
LIBS=$ac_check_lib_save_LIBS
 
20384
fi
 
20385
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
20386
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
20387
if test $ac_cv_lib_dld_shl_load = yes; then
 
20388
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
20389
else
 
20390
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
20391
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
20392
if test "${ac_cv_func_dlopen+set}" = set; then
 
20393
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20394
else
 
20395
  cat >conftest.$ac_ext <<_ACEOF
 
20396
/* confdefs.h.  */
 
20397
_ACEOF
 
20398
cat confdefs.h >>conftest.$ac_ext
 
20399
cat >>conftest.$ac_ext <<_ACEOF
 
20400
/* end confdefs.h.  */
 
20401
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
20402
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20403
#define dlopen innocuous_dlopen
 
20404
 
 
20405
/* System header to define __stub macros and hopefully few prototypes,
 
20406
    which can conflict with char dlopen (); below.
 
20407
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20408
    <limits.h> exists even on freestanding compilers.  */
 
20409
 
 
20410
#ifdef __STDC__
 
20411
# include <limits.h>
 
20412
#else
 
20413
# include <assert.h>
 
20414
#endif
 
20415
 
 
20416
#undef dlopen
 
20417
 
 
20418
/* Override any gcc2 internal prototype to avoid an error.  */
 
20419
#ifdef __cplusplus
 
20420
extern "C"
 
20421
{
 
20422
#endif
 
20423
/* We use char because int might match the return type of a gcc2
 
20424
   builtin and then its argument prototype would still apply.  */
 
20425
char dlopen ();
 
20426
/* The GNU C library defines this for functions which it implements
 
20427
    to always fail with ENOSYS.  Some functions are actually named
 
20428
    something starting with __ and the normal name is an alias.  */
 
20429
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
20430
choke me
 
20431
#else
 
20432
char (*f) () = dlopen;
 
20433
#endif
 
20434
#ifdef __cplusplus
 
20435
}
 
20436
#endif
 
20437
 
 
20438
int
 
20439
main ()
 
20440
{
 
20441
return f != dlopen;
 
20442
  ;
 
20443
  return 0;
 
20444
}
 
20445
_ACEOF
 
20446
rm -f conftest.$ac_objext conftest$ac_exeext
 
20447
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20448
  (eval $ac_link) 2>conftest.er1
 
20449
  ac_status=$?
 
20450
  grep -v '^ *+' conftest.er1 >conftest.err
 
20451
  rm -f conftest.er1
 
20452
  cat conftest.err >&5
 
20453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20454
  (exit $ac_status); } &&
 
20455
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20456
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20457
  (eval $ac_try) 2>&5
 
20458
  ac_status=$?
 
20459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20460
  (exit $ac_status); }; } &&
 
20461
         { ac_try='test -s conftest$ac_exeext'
 
20462
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20463
  (eval $ac_try) 2>&5
 
20464
  ac_status=$?
 
20465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20466
  (exit $ac_status); }; }; then
 
20467
  ac_cv_func_dlopen=yes
 
20468
else
 
20469
  echo "$as_me: failed program was:" >&5
 
20470
sed 's/^/| /' conftest.$ac_ext >&5
 
20471
 
 
20472
ac_cv_func_dlopen=no
 
20473
fi
 
20474
rm -f conftest.err conftest.$ac_objext \
 
20475
      conftest$ac_exeext conftest.$ac_ext
 
20476
fi
 
20477
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
20478
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
20479
if test $ac_cv_func_dlopen = yes; then
 
20480
  lt_cv_dlopen="dlopen"
 
20481
else
 
20482
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
20483
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
20484
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
20485
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20486
else
 
20487
  ac_check_lib_save_LIBS=$LIBS
 
20488
LIBS="-ldl  $LIBS"
 
20489
cat >conftest.$ac_ext <<_ACEOF
 
20490
/* confdefs.h.  */
 
20491
_ACEOF
 
20492
cat confdefs.h >>conftest.$ac_ext
 
20493
cat >>conftest.$ac_ext <<_ACEOF
 
20494
/* end confdefs.h.  */
 
20495
 
 
20496
/* Override any gcc2 internal prototype to avoid an error.  */
 
20497
#ifdef __cplusplus
 
20498
extern "C"
 
20499
#endif
 
20500
/* We use char because int might match the return type of a gcc2
 
20501
   builtin and then its argument prototype would still apply.  */
 
20502
char dlopen ();
 
20503
int
 
20504
main ()
 
20505
{
 
20506
dlopen ();
 
20507
  ;
 
20508
  return 0;
 
20509
}
 
20510
_ACEOF
 
20511
rm -f conftest.$ac_objext conftest$ac_exeext
 
20512
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20513
  (eval $ac_link) 2>conftest.er1
 
20514
  ac_status=$?
 
20515
  grep -v '^ *+' conftest.er1 >conftest.err
 
20516
  rm -f conftest.er1
 
20517
  cat conftest.err >&5
 
20518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20519
  (exit $ac_status); } &&
 
20520
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20521
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20522
  (eval $ac_try) 2>&5
 
20523
  ac_status=$?
 
20524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20525
  (exit $ac_status); }; } &&
 
20526
         { ac_try='test -s conftest$ac_exeext'
 
20527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20528
  (eval $ac_try) 2>&5
 
20529
  ac_status=$?
 
20530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20531
  (exit $ac_status); }; }; then
 
20532
  ac_cv_lib_dl_dlopen=yes
 
20533
else
 
20534
  echo "$as_me: failed program was:" >&5
 
20535
sed 's/^/| /' conftest.$ac_ext >&5
 
20536
 
 
20537
ac_cv_lib_dl_dlopen=no
 
20538
fi
 
20539
rm -f conftest.err conftest.$ac_objext \
 
20540
      conftest$ac_exeext conftest.$ac_ext
 
20541
LIBS=$ac_check_lib_save_LIBS
 
20542
fi
 
20543
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
20544
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
20545
if test $ac_cv_lib_dl_dlopen = yes; then
 
20546
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
20547
else
 
20548
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
20549
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
20550
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
20551
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20552
else
 
20553
  ac_check_lib_save_LIBS=$LIBS
 
20554
LIBS="-lsvld  $LIBS"
 
20555
cat >conftest.$ac_ext <<_ACEOF
 
20556
/* confdefs.h.  */
 
20557
_ACEOF
 
20558
cat confdefs.h >>conftest.$ac_ext
 
20559
cat >>conftest.$ac_ext <<_ACEOF
 
20560
/* end confdefs.h.  */
 
20561
 
 
20562
/* Override any gcc2 internal prototype to avoid an error.  */
 
20563
#ifdef __cplusplus
 
20564
extern "C"
 
20565
#endif
 
20566
/* We use char because int might match the return type of a gcc2
 
20567
   builtin and then its argument prototype would still apply.  */
 
20568
char dlopen ();
 
20569
int
 
20570
main ()
 
20571
{
 
20572
dlopen ();
 
20573
  ;
 
20574
  return 0;
 
20575
}
 
20576
_ACEOF
 
20577
rm -f conftest.$ac_objext conftest$ac_exeext
 
20578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20579
  (eval $ac_link) 2>conftest.er1
 
20580
  ac_status=$?
 
20581
  grep -v '^ *+' conftest.er1 >conftest.err
 
20582
  rm -f conftest.er1
 
20583
  cat conftest.err >&5
 
20584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20585
  (exit $ac_status); } &&
 
20586
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20587
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20588
  (eval $ac_try) 2>&5
 
20589
  ac_status=$?
 
20590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20591
  (exit $ac_status); }; } &&
 
20592
         { ac_try='test -s conftest$ac_exeext'
 
20593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20594
  (eval $ac_try) 2>&5
 
20595
  ac_status=$?
 
20596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20597
  (exit $ac_status); }; }; then
 
20598
  ac_cv_lib_svld_dlopen=yes
 
20599
else
 
20600
  echo "$as_me: failed program was:" >&5
 
20601
sed 's/^/| /' conftest.$ac_ext >&5
 
20602
 
 
20603
ac_cv_lib_svld_dlopen=no
 
20604
fi
 
20605
rm -f conftest.err conftest.$ac_objext \
 
20606
      conftest$ac_exeext conftest.$ac_ext
 
20607
LIBS=$ac_check_lib_save_LIBS
 
20608
fi
 
20609
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
20610
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
20611
if test $ac_cv_lib_svld_dlopen = yes; then
 
20612
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
20613
else
 
20614
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
20615
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
20616
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
20617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20618
else
 
20619
  ac_check_lib_save_LIBS=$LIBS
 
20620
LIBS="-ldld  $LIBS"
 
20621
cat >conftest.$ac_ext <<_ACEOF
 
20622
/* confdefs.h.  */
 
20623
_ACEOF
 
20624
cat confdefs.h >>conftest.$ac_ext
 
20625
cat >>conftest.$ac_ext <<_ACEOF
 
20626
/* end confdefs.h.  */
 
20627
 
 
20628
/* Override any gcc2 internal prototype to avoid an error.  */
 
20629
#ifdef __cplusplus
 
20630
extern "C"
 
20631
#endif
 
20632
/* We use char because int might match the return type of a gcc2
 
20633
   builtin and then its argument prototype would still apply.  */
 
20634
char dld_link ();
 
20635
int
 
20636
main ()
 
20637
{
 
20638
dld_link ();
 
20639
  ;
 
20640
  return 0;
 
20641
}
 
20642
_ACEOF
 
20643
rm -f conftest.$ac_objext conftest$ac_exeext
 
20644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20645
  (eval $ac_link) 2>conftest.er1
 
20646
  ac_status=$?
 
20647
  grep -v '^ *+' conftest.er1 >conftest.err
 
20648
  rm -f conftest.er1
 
20649
  cat conftest.err >&5
 
20650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20651
  (exit $ac_status); } &&
 
20652
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20653
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20654
  (eval $ac_try) 2>&5
 
20655
  ac_status=$?
 
20656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20657
  (exit $ac_status); }; } &&
 
20658
         { ac_try='test -s conftest$ac_exeext'
 
20659
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20660
  (eval $ac_try) 2>&5
 
20661
  ac_status=$?
 
20662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20663
  (exit $ac_status); }; }; then
 
20664
  ac_cv_lib_dld_dld_link=yes
 
20665
else
 
20666
  echo "$as_me: failed program was:" >&5
 
20667
sed 's/^/| /' conftest.$ac_ext >&5
 
20668
 
 
20669
ac_cv_lib_dld_dld_link=no
 
20670
fi
 
20671
rm -f conftest.err conftest.$ac_objext \
 
20672
      conftest$ac_exeext conftest.$ac_ext
 
20673
LIBS=$ac_check_lib_save_LIBS
 
20674
fi
 
20675
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
20676
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
20677
if test $ac_cv_lib_dld_dld_link = yes; then
 
20678
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
20679
fi
 
20680
 
 
20681
              
 
20682
fi
 
20683
 
 
20684
            
 
20685
fi
 
20686
 
 
20687
          
 
20688
fi
 
20689
 
 
20690
        
 
20691
fi
 
20692
 
 
20693
      
 
20694
fi
 
20695
 
 
20696
    ;;
 
20697
  esac
 
20698
 
 
20699
  if test "x$lt_cv_dlopen" != xno; then
 
20700
    enable_dlopen=yes
 
20701
  else
 
20702
    enable_dlopen=no
 
20703
  fi
 
20704
 
 
20705
  case $lt_cv_dlopen in
 
20706
  dlopen)
 
20707
    save_CPPFLAGS="$CPPFLAGS"
 
20708
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
20709
 
 
20710
    save_LDFLAGS="$LDFLAGS"
 
20711
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
20712
 
 
20713
    save_LIBS="$LIBS"
 
20714
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
20715
 
 
20716
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
20717
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
20718
if test "${lt_cv_dlopen_self+set}" = set; then
 
20719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20720
else
 
20721
          if test "$cross_compiling" = yes; then :
 
20722
  lt_cv_dlopen_self=cross
 
20723
else
 
20724
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
20725
  lt_status=$lt_dlunknown
 
20726
  cat > conftest.$ac_ext <<EOF
 
20727
#line __oline__ "configure"
 
20728
#include "confdefs.h"
 
20729
 
 
20730
#if HAVE_DLFCN_H
 
20731
#include <dlfcn.h>
 
20732
#endif
 
20733
 
 
20734
#include <stdio.h>
 
20735
 
 
20736
#ifdef RTLD_GLOBAL
 
20737
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
20738
#else
 
20739
#  ifdef DL_GLOBAL
 
20740
#    define LT_DLGLOBAL         DL_GLOBAL
 
20741
#  else
 
20742
#    define LT_DLGLOBAL         0
 
20743
#  endif
 
20744
#endif
 
20745
 
 
20746
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
20747
   find out it does not work in some platform. */
 
20748
#ifndef LT_DLLAZY_OR_NOW
 
20749
#  ifdef RTLD_LAZY
 
20750
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
20751
#  else
 
20752
#    ifdef DL_LAZY
 
20753
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
20754
#    else
 
20755
#      ifdef RTLD_NOW
 
20756
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
20757
#      else
 
20758
#        ifdef DL_NOW
 
20759
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
20760
#        else
 
20761
#          define LT_DLLAZY_OR_NOW      0
 
20762
#        endif
 
20763
#      endif
 
20764
#    endif
 
20765
#  endif
 
20766
#endif
 
20767
 
 
20768
#ifdef __cplusplus
 
20769
extern "C" void exit (int);
 
20770
#endif
 
20771
 
 
20772
void fnord() { int i=42;}
 
20773
int main ()
 
20774
{
 
20775
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
20776
  int status = $lt_dlunknown;
 
20777
 
 
20778
  if (self)
 
20779
    {
 
20780
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
20781
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
20782
      /* dlclose (self); */
 
20783
    }
 
20784
 
 
20785
    exit (status);
 
20786
}
 
20787
EOF
 
20788
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20789
  (eval $ac_link) 2>&5
 
20790
  ac_status=$?
 
20791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20792
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
20793
    (./conftest; exit; ) 2>/dev/null
 
20794
    lt_status=$?
 
20795
    case x$lt_status in
 
20796
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
20797
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
20798
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
20799
    esac
 
20800
  else :
 
20801
    # compilation failed
 
20802
    lt_cv_dlopen_self=no
 
20803
  fi
 
20804
fi
 
20805
rm -fr conftest*
 
20806
 
 
20807
    
 
20808
fi
 
20809
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
20810
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
20811
 
 
20812
    if test "x$lt_cv_dlopen_self" = xyes; then
 
20813
      LDFLAGS="$LDFLAGS $link_static_flag"
 
20814
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
20815
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
20816
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
20817
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20818
else
 
20819
          if test "$cross_compiling" = yes; then :
 
20820
  lt_cv_dlopen_self_static=cross
 
20821
else
 
20822
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
20823
  lt_status=$lt_dlunknown
 
20824
  cat > conftest.$ac_ext <<EOF
 
20825
#line __oline__ "configure"
 
20826
#include "confdefs.h"
 
20827
 
 
20828
#if HAVE_DLFCN_H
 
20829
#include <dlfcn.h>
 
20830
#endif
 
20831
 
 
20832
#include <stdio.h>
 
20833
 
 
20834
#ifdef RTLD_GLOBAL
 
20835
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
20836
#else
 
20837
#  ifdef DL_GLOBAL
 
20838
#    define LT_DLGLOBAL         DL_GLOBAL
 
20839
#  else
 
20840
#    define LT_DLGLOBAL         0
 
20841
#  endif
 
20842
#endif
 
20843
 
 
20844
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
20845
   find out it does not work in some platform. */
 
20846
#ifndef LT_DLLAZY_OR_NOW
 
20847
#  ifdef RTLD_LAZY
 
20848
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
20849
#  else
 
20850
#    ifdef DL_LAZY
 
20851
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
20852
#    else
 
20853
#      ifdef RTLD_NOW
 
20854
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
20855
#      else
 
20856
#        ifdef DL_NOW
 
20857
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
20858
#        else
 
20859
#          define LT_DLLAZY_OR_NOW      0
 
20860
#        endif
 
20861
#      endif
 
20862
#    endif
 
20863
#  endif
 
20864
#endif
 
20865
 
 
20866
#ifdef __cplusplus
 
20867
extern "C" void exit (int);
 
20868
#endif
 
20869
 
 
20870
void fnord() { int i=42;}
 
20871
int main ()
 
20872
{
 
20873
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
20874
  int status = $lt_dlunknown;
 
20875
 
 
20876
  if (self)
 
20877
    {
 
20878
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
20879
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
20880
      /* dlclose (self); */
 
20881
    }
 
20882
 
 
20883
    exit (status);
 
20884
}
 
20885
EOF
 
20886
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20887
  (eval $ac_link) 2>&5
 
20888
  ac_status=$?
 
20889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20890
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
20891
    (./conftest; exit; ) 2>/dev/null
 
20892
    lt_status=$?
 
20893
    case x$lt_status in
 
20894
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
20895
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
20896
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
20897
    esac
 
20898
  else :
 
20899
    # compilation failed
 
20900
    lt_cv_dlopen_self_static=no
 
20901
  fi
 
20902
fi
 
20903
rm -fr conftest*
 
20904
 
 
20905
      
 
20906
fi
 
20907
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
20908
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
20909
    fi
 
20910
 
 
20911
    CPPFLAGS="$save_CPPFLAGS"
 
20912
    LDFLAGS="$save_LDFLAGS"
 
20913
    LIBS="$save_LIBS"
 
20914
    ;;
 
20915
  esac
 
20916
 
 
20917
  case $lt_cv_dlopen_self in
 
20918
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
20919
  *) enable_dlopen_self=unknown ;;
 
20920
  esac
 
20921
 
 
20922
  case $lt_cv_dlopen_self_static in
 
20923
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
20924
  *) enable_dlopen_self_static=unknown ;;
 
20925
  esac
 
20926
fi
 
20927
 
 
20928
 
 
20929
# The else clause should only fire when bootstrapping the
 
20930
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
20931
# with your package, and you will get complaints that there are
 
20932
# no rules to generate ltmain.sh.
 
20933
if test -f "$ltmain"; then
 
20934
  # See if we are running on zsh, and set the options which allow our commands through
 
20935
  # without removal of \ escapes.
 
20936
  if test -n "${ZSH_VERSION+set}" ; then
 
20937
    setopt NO_GLOB_SUBST
 
20938
  fi
 
20939
  # Now quote all the things that may contain metacharacters while being
 
20940
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
20941
  # variables and quote the copies for generation of the libtool script.
 
20942
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
20943
    SED SHELL STRIP \
 
20944
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
20945
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
20946
    deplibs_check_method reload_flag reload_cmds need_locks \
 
20947
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
20948
    lt_cv_sys_global_symbol_to_c_name_address \
 
20949
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
20950
    old_postinstall_cmds old_postuninstall_cmds \
 
20951
    compiler_GCJ \
 
20952
    CC_GCJ \
 
20953
    LD_GCJ \
 
20954
    lt_prog_compiler_wl_GCJ \
 
20955
    lt_prog_compiler_pic_GCJ \
 
20956
    lt_prog_compiler_static_GCJ \
 
20957
    lt_prog_compiler_no_builtin_flag_GCJ \
 
20958
    export_dynamic_flag_spec_GCJ \
 
20959
    thread_safe_flag_spec_GCJ \
 
20960
    whole_archive_flag_spec_GCJ \
 
20961
    enable_shared_with_static_runtimes_GCJ \
 
20962
    old_archive_cmds_GCJ \
 
20963
    old_archive_from_new_cmds_GCJ \
 
20964
    predep_objects_GCJ \
 
20965
    postdep_objects_GCJ \
 
20966
    predeps_GCJ \
 
20967
    postdeps_GCJ \
 
20968
    compiler_lib_search_path_GCJ \
 
20969
    archive_cmds_GCJ \
 
20970
    archive_expsym_cmds_GCJ \
 
20971
    postinstall_cmds_GCJ \
 
20972
    postuninstall_cmds_GCJ \
 
20973
    old_archive_from_expsyms_cmds_GCJ \
 
20974
    allow_undefined_flag_GCJ \
 
20975
    no_undefined_flag_GCJ \
 
20976
    export_symbols_cmds_GCJ \
 
20977
    hardcode_libdir_flag_spec_GCJ \
 
20978
    hardcode_libdir_flag_spec_ld_GCJ \
 
20979
    hardcode_libdir_separator_GCJ \
 
20980
    hardcode_automatic_GCJ \
 
20981
    module_cmds_GCJ \
 
20982
    module_expsym_cmds_GCJ \
 
20983
    lt_cv_prog_compiler_c_o_GCJ \
 
20984
    exclude_expsyms_GCJ \
 
20985
    include_expsyms_GCJ; do
 
20986
 
 
20987
    case $var in
 
20988
    old_archive_cmds_GCJ | \
 
20989
    old_archive_from_new_cmds_GCJ | \
 
20990
    archive_cmds_GCJ | \
 
20991
    archive_expsym_cmds_GCJ | \
 
20992
    module_cmds_GCJ | \
 
20993
    module_expsym_cmds_GCJ | \
 
20994
    old_archive_from_expsyms_cmds_GCJ | \
 
20995
    export_symbols_cmds_GCJ | \
 
20996
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
20997
    postinstall_cmds | postuninstall_cmds | \
 
20998
    old_postinstall_cmds | old_postuninstall_cmds | \
 
20999
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
21000
      # Double-quote double-evaled strings.
 
21001
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
21002
      ;;
 
21003
    *)
 
21004
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
21005
      ;;
 
21006
    esac
 
21007
  done
 
21008
 
 
21009
  case $lt_echo in
 
21010
  *'\$0 --fallback-echo"')
 
21011
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
21012
    ;;
 
21013
  esac
 
21014
 
 
21015
cfgfile="$ofile"
 
21016
 
 
21017
  cat <<__EOF__ >> "$cfgfile"
 
21018
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
21019
 
 
21020
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
21021
 
 
21022
# Shell to use when invoking shell scripts.
 
21023
SHELL=$lt_SHELL
 
21024
 
 
21025
# Whether or not to build shared libraries.
 
21026
build_libtool_libs=$enable_shared
 
21027
 
 
21028
# Whether or not to build static libraries.
 
21029
build_old_libs=$enable_static
 
21030
 
 
21031
# Whether or not to add -lc for building shared libraries.
 
21032
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
21033
 
 
21034
# Whether or not to disallow shared libs when runtime libs are static
 
21035
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
21036
 
 
21037
# Whether or not to optimize for fast installation.
 
21038
fast_install=$enable_fast_install
 
21039
 
 
21040
# The host system.
 
21041
host_alias=$host_alias
 
21042
host=$host
 
21043
 
 
21044
# An echo program that does not interpret backslashes.
 
21045
echo=$lt_echo
 
21046
 
 
21047
# The archiver.
 
21048
AR=$lt_AR
 
21049
AR_FLAGS=$lt_AR_FLAGS
 
21050
 
 
21051
# A C compiler.
 
21052
LTCC=$lt_LTCC
 
21053
 
 
21054
# A language-specific compiler.
 
21055
CC=$lt_compiler_GCJ
 
21056
 
 
21057
# Is the compiler the GNU C compiler?
 
21058
with_gcc=$GCC_GCJ
 
21059
 
 
21060
# An ERE matcher.
 
21061
EGREP=$lt_EGREP
 
21062
 
 
21063
# The linker used to build libraries.
 
21064
LD=$lt_LD_GCJ
 
21065
 
 
21066
# Whether we need hard or soft links.
 
21067
LN_S=$lt_LN_S
 
21068
 
 
21069
# A BSD-compatible nm program.
 
21070
NM=$lt_NM
 
21071
 
 
21072
# A symbol stripping program
 
21073
STRIP=$lt_STRIP
 
21074
 
 
21075
# Used to examine libraries when file_magic_cmd begins "file"
 
21076
MAGIC_CMD=$MAGIC_CMD
 
21077
 
 
21078
# Used on cygwin: DLL creation program.
 
21079
DLLTOOL="$DLLTOOL"
 
21080
 
 
21081
# Used on cygwin: object dumper.
 
21082
OBJDUMP="$OBJDUMP"
 
21083
 
 
21084
# Used on cygwin: assembler.
 
21085
AS="$AS"
 
21086
 
 
21087
# The name of the directory that contains temporary libtool files.
 
21088
objdir=$objdir
 
21089
 
 
21090
# How to create reloadable object files.
 
21091
reload_flag=$lt_reload_flag
 
21092
reload_cmds=$lt_reload_cmds
 
21093
 
 
21094
# How to pass a linker flag through the compiler.
 
21095
wl=$lt_lt_prog_compiler_wl_GCJ
 
21096
 
 
21097
# Object file suffix (normally "o").
 
21098
objext="$ac_objext"
 
21099
 
 
21100
# Old archive suffix (normally "a").
 
21101
libext="$libext"
 
21102
 
 
21103
# Shared library suffix (normally ".so").
 
21104
shrext_cmds='$shrext_cmds'
 
21105
 
 
21106
# Executable file suffix (normally "").
 
21107
exeext="$exeext"
 
21108
 
 
21109
# Additional compiler flags for building library objects.
 
21110
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
21111
pic_mode=$pic_mode
 
21112
 
 
21113
# What is the maximum length of a command?
 
21114
max_cmd_len=$lt_cv_sys_max_cmd_len
 
21115
 
 
21116
# Does compiler simultaneously support -c and -o options?
 
21117
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
21118
 
 
21119
# Must we lock files when doing compilation ?
 
21120
need_locks=$lt_need_locks
 
21121
 
 
21122
# Do we need the lib prefix for modules?
 
21123
need_lib_prefix=$need_lib_prefix
 
21124
 
 
21125
# Do we need a version for libraries?
 
21126
need_version=$need_version
 
21127
 
 
21128
# Whether dlopen is supported.
 
21129
dlopen_support=$enable_dlopen
 
21130
 
 
21131
# Whether dlopen of programs is supported.
 
21132
dlopen_self=$enable_dlopen_self
 
21133
 
 
21134
# Whether dlopen of statically linked programs is supported.
 
21135
dlopen_self_static=$enable_dlopen_self_static
 
21136
 
 
21137
# Compiler flag to prevent dynamic linking.
 
21138
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
21139
 
 
21140
# Compiler flag to turn off builtin functions.
 
21141
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
21142
 
 
21143
# Compiler flag to allow reflexive dlopens.
 
21144
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
21145
 
 
21146
# Compiler flag to generate shared objects directly from archives.
 
21147
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
21148
 
 
21149
# Compiler flag to generate thread-safe objects.
 
21150
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
21151
 
 
21152
# Library versioning type.
 
21153
version_type=$version_type
 
21154
 
 
21155
# Format of library name prefix.
 
21156
libname_spec=$lt_libname_spec
 
21157
 
 
21158
# List of archive names.  First name is the real one, the rest are links.
 
21159
# The last name is the one that the linker finds with -lNAME.
 
21160
library_names_spec=$lt_library_names_spec
 
21161
 
 
21162
# The coded name of the library, if different from the real name.
 
21163
soname_spec=$lt_soname_spec
 
21164
 
 
21165
# Commands used to build and install an old-style archive.
 
21166
RANLIB=$lt_RANLIB
 
21167
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
21168
old_postinstall_cmds=$lt_old_postinstall_cmds
 
21169
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
21170
 
 
21171
# Create an old-style archive from a shared archive.
 
21172
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
21173
 
 
21174
# Create a temporary old-style archive to link instead of a shared archive.
 
21175
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
21176
 
 
21177
# Commands used to build and install a shared archive.
 
21178
archive_cmds=$lt_archive_cmds_GCJ
 
21179
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
21180
postinstall_cmds=$lt_postinstall_cmds
 
21181
postuninstall_cmds=$lt_postuninstall_cmds
 
21182
 
 
21183
# Commands used to build a loadable module (assumed same as above if empty)
 
21184
module_cmds=$lt_module_cmds_GCJ
 
21185
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
21186
 
 
21187
# Commands to strip libraries.
 
21188
old_striplib=$lt_old_striplib
 
21189
striplib=$lt_striplib
 
21190
 
 
21191
# Dependencies to place before the objects being linked to create a
 
21192
# shared library.
 
21193
predep_objects=$lt_predep_objects_GCJ
 
21194
 
 
21195
# Dependencies to place after the objects being linked to create a
 
21196
# shared library.
 
21197
postdep_objects=$lt_postdep_objects_GCJ
 
21198
 
 
21199
# Dependencies to place before the objects being linked to create a
 
21200
# shared library.
 
21201
predeps=$lt_predeps_GCJ
 
21202
 
 
21203
# Dependencies to place after the objects being linked to create a
 
21204
# shared library.
 
21205
postdeps=$lt_postdeps_GCJ
 
21206
 
 
21207
# The library search path used internally by the compiler when linking
 
21208
# a shared library.
 
21209
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
21210
 
 
21211
# Method to check whether dependent libraries are shared objects.
 
21212
deplibs_check_method=$lt_deplibs_check_method
 
21213
 
 
21214
# Command to use when deplibs_check_method == file_magic.
 
21215
file_magic_cmd=$lt_file_magic_cmd
 
21216
 
 
21217
# Flag that allows shared libraries with undefined symbols to be built.
 
21218
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
21219
 
 
21220
# Flag that forces no undefined symbols.
 
21221
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
21222
 
 
21223
# Commands used to finish a libtool library installation in a directory.
 
21224
finish_cmds=$lt_finish_cmds
 
21225
 
 
21226
# Same as above, but a single script fragment to be evaled but not shown.
 
21227
finish_eval=$lt_finish_eval
 
21228
 
 
21229
# Take the output of nm and produce a listing of raw symbols and C names.
 
21230
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
21231
 
 
21232
# Transform the output of nm in a proper C declaration
 
21233
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
21234
 
 
21235
# Transform the output of nm in a C name address pair
 
21236
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
21237
 
 
21238
# This is the shared library runtime path variable.
 
21239
runpath_var=$runpath_var
 
21240
 
 
21241
# This is the shared library path variable.
 
21242
shlibpath_var=$shlibpath_var
 
21243
 
 
21244
# Is shlibpath searched before the hard-coded library search path?
 
21245
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
21246
 
 
21247
# How to hardcode a shared library path into an executable.
 
21248
hardcode_action=$hardcode_action_GCJ
 
21249
 
 
21250
# Whether we should hardcode library paths into libraries.
 
21251
hardcode_into_libs=$hardcode_into_libs
 
21252
 
 
21253
# Flag to hardcode \$libdir into a binary during linking.
 
21254
# This must work even if \$libdir does not exist.
 
21255
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
21256
 
 
21257
# If ld is used when linking, flag to hardcode \$libdir into
 
21258
# a binary during linking. This must work even if \$libdir does
 
21259
# not exist.
 
21260
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
21261
 
 
21262
# Whether we need a single -rpath flag with a separated argument.
 
21263
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
21264
 
 
21265
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
21266
# resulting binary.
 
21267
hardcode_direct=$hardcode_direct_GCJ
 
21268
 
 
21269
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
21270
# resulting binary.
 
21271
hardcode_minus_L=$hardcode_minus_L_GCJ
 
21272
 
 
21273
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
21274
# the resulting binary.
 
21275
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
21276
 
 
21277
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
21278
# and all subsequent libraries and executables linked against it.
 
21279
hardcode_automatic=$hardcode_automatic_GCJ
 
21280
 
 
21281
# Variables whose values should be saved in libtool wrapper scripts and
 
21282
# restored at relink time.
 
21283
variables_saved_for_relink="$variables_saved_for_relink"
 
21284
 
 
21285
# Whether libtool must link a program against all its dependency libraries.
 
21286
link_all_deplibs=$link_all_deplibs_GCJ
 
21287
 
 
21288
# Compile-time system search path for libraries
 
21289
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
21290
 
 
21291
# Run-time system search path for libraries
 
21292
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
21293
 
 
21294
# Fix the shell variable \$srcfile for the compiler.
 
21295
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
21296
 
 
21297
# Set to yes if exported symbols are required.
 
21298
always_export_symbols=$always_export_symbols_GCJ
 
21299
 
 
21300
# The commands to list exported symbols.
 
21301
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
21302
 
 
21303
# The commands to extract the exported symbol list from a shared archive.
 
21304
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
21305
 
 
21306
# Symbols that should not be listed in the preloaded symbols.
 
21307
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
21308
 
 
21309
# Symbols that must always be exported.
 
21310
include_expsyms=$lt_include_expsyms_GCJ
 
21311
 
 
21312
# ### END LIBTOOL TAG CONFIG: $tagname
 
21313
 
 
21314
__EOF__
 
21315
 
 
21316
 
 
21317
else
 
21318
  # If there is no Makefile yet, we rely on a make rule to execute
 
21319
  # `config.status --recheck' to rerun these tests and create the
 
21320
  # libtool script then.
 
21321
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
21322
  if test -f "$ltmain_in"; then
 
21323
    test -f Makefile && make "$ltmain"
 
21324
  fi
 
21325
fi
 
21326
 
 
21327
 
 
21328
ac_ext=c
 
21329
ac_cpp='$CPP $CPPFLAGS'
 
21330
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21331
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21333
 
 
21334
CC="$lt_save_CC"
 
21335
 
 
21336
        else
 
21337
          tagname=""
 
21338
        fi
 
21339
        ;;
 
21340
 
 
21341
      RC)
 
21342
        
 
21343
 
 
21344
 
 
21345
# Source file extension for RC test sources.
 
21346
ac_ext=rc
 
21347
 
 
21348
# Object file extension for compiled RC test sources.
 
21349
objext=o
 
21350
objext_RC=$objext
 
21351
 
 
21352
# Code to be used in simple compile tests
 
21353
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
21354
 
 
21355
# Code to be used in simple link tests
 
21356
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
21357
 
 
21358
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
21359
 
 
21360
# If no C compiler was specified, use CC.
 
21361
LTCC=${LTCC-"$CC"}
 
21362
 
 
21363
# Allow CC to be a program name with arguments.
 
21364
compiler=$CC
 
21365
 
 
21366
 
 
21367
# Allow CC to be a program name with arguments.
 
21368
lt_save_CC="$CC"
 
21369
CC=${RC-"windres"}
 
21370
compiler=$CC
 
21371
compiler_RC=$CC
 
21372
lt_cv_prog_compiler_c_o_RC=yes
 
21373
 
 
21374
# The else clause should only fire when bootstrapping the
 
21375
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
21376
# with your package, and you will get complaints that there are
 
21377
# no rules to generate ltmain.sh.
 
21378
if test -f "$ltmain"; then
 
21379
  # See if we are running on zsh, and set the options which allow our commands through
 
21380
  # without removal of \ escapes.
 
21381
  if test -n "${ZSH_VERSION+set}" ; then
 
21382
    setopt NO_GLOB_SUBST
 
21383
  fi
 
21384
  # Now quote all the things that may contain metacharacters while being
 
21385
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
21386
  # variables and quote the copies for generation of the libtool script.
 
21387
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
21388
    SED SHELL STRIP \
 
21389
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
21390
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
21391
    deplibs_check_method reload_flag reload_cmds need_locks \
 
21392
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
21393
    lt_cv_sys_global_symbol_to_c_name_address \
 
21394
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
21395
    old_postinstall_cmds old_postuninstall_cmds \
 
21396
    compiler_RC \
 
21397
    CC_RC \
 
21398
    LD_RC \
 
21399
    lt_prog_compiler_wl_RC \
 
21400
    lt_prog_compiler_pic_RC \
 
21401
    lt_prog_compiler_static_RC \
 
21402
    lt_prog_compiler_no_builtin_flag_RC \
 
21403
    export_dynamic_flag_spec_RC \
 
21404
    thread_safe_flag_spec_RC \
 
21405
    whole_archive_flag_spec_RC \
 
21406
    enable_shared_with_static_runtimes_RC \
 
21407
    old_archive_cmds_RC \
 
21408
    old_archive_from_new_cmds_RC \
 
21409
    predep_objects_RC \
 
21410
    postdep_objects_RC \
 
21411
    predeps_RC \
 
21412
    postdeps_RC \
 
21413
    compiler_lib_search_path_RC \
 
21414
    archive_cmds_RC \
 
21415
    archive_expsym_cmds_RC \
 
21416
    postinstall_cmds_RC \
 
21417
    postuninstall_cmds_RC \
 
21418
    old_archive_from_expsyms_cmds_RC \
 
21419
    allow_undefined_flag_RC \
 
21420
    no_undefined_flag_RC \
 
21421
    export_symbols_cmds_RC \
 
21422
    hardcode_libdir_flag_spec_RC \
 
21423
    hardcode_libdir_flag_spec_ld_RC \
 
21424
    hardcode_libdir_separator_RC \
 
21425
    hardcode_automatic_RC \
 
21426
    module_cmds_RC \
 
21427
    module_expsym_cmds_RC \
 
21428
    lt_cv_prog_compiler_c_o_RC \
 
21429
    exclude_expsyms_RC \
 
21430
    include_expsyms_RC; do
 
21431
 
 
21432
    case $var in
 
21433
    old_archive_cmds_RC | \
 
21434
    old_archive_from_new_cmds_RC | \
 
21435
    archive_cmds_RC | \
 
21436
    archive_expsym_cmds_RC | \
 
21437
    module_cmds_RC | \
 
21438
    module_expsym_cmds_RC | \
 
21439
    old_archive_from_expsyms_cmds_RC | \
 
21440
    export_symbols_cmds_RC | \
 
21441
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
21442
    postinstall_cmds | postuninstall_cmds | \
 
21443
    old_postinstall_cmds | old_postuninstall_cmds | \
 
21444
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
21445
      # Double-quote double-evaled strings.
 
21446
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
21447
      ;;
 
21448
    *)
 
21449
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
21450
      ;;
 
21451
    esac
 
21452
  done
 
21453
 
 
21454
  case $lt_echo in
 
21455
  *'\$0 --fallback-echo"')
 
21456
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
21457
    ;;
 
21458
  esac
 
21459
 
 
21460
cfgfile="$ofile"
 
21461
 
 
21462
  cat <<__EOF__ >> "$cfgfile"
 
21463
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
21464
 
 
21465
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
21466
 
 
21467
# Shell to use when invoking shell scripts.
 
21468
SHELL=$lt_SHELL
 
21469
 
 
21470
# Whether or not to build shared libraries.
 
21471
build_libtool_libs=$enable_shared
 
21472
 
 
21473
# Whether or not to build static libraries.
 
21474
build_old_libs=$enable_static
 
21475
 
 
21476
# Whether or not to add -lc for building shared libraries.
 
21477
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
21478
 
 
21479
# Whether or not to disallow shared libs when runtime libs are static
 
21480
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
21481
 
 
21482
# Whether or not to optimize for fast installation.
 
21483
fast_install=$enable_fast_install
 
21484
 
 
21485
# The host system.
 
21486
host_alias=$host_alias
 
21487
host=$host
 
21488
 
 
21489
# An echo program that does not interpret backslashes.
 
21490
echo=$lt_echo
 
21491
 
 
21492
# The archiver.
 
21493
AR=$lt_AR
 
21494
AR_FLAGS=$lt_AR_FLAGS
 
21495
 
 
21496
# A C compiler.
 
21497
LTCC=$lt_LTCC
 
21498
 
 
21499
# A language-specific compiler.
 
21500
CC=$lt_compiler_RC
 
21501
 
 
21502
# Is the compiler the GNU C compiler?
 
21503
with_gcc=$GCC_RC
 
21504
 
 
21505
# An ERE matcher.
 
21506
EGREP=$lt_EGREP
 
21507
 
 
21508
# The linker used to build libraries.
 
21509
LD=$lt_LD_RC
 
21510
 
 
21511
# Whether we need hard or soft links.
 
21512
LN_S=$lt_LN_S
 
21513
 
 
21514
# A BSD-compatible nm program.
 
21515
NM=$lt_NM
 
21516
 
 
21517
# A symbol stripping program
 
21518
STRIP=$lt_STRIP
 
21519
 
 
21520
# Used to examine libraries when file_magic_cmd begins "file"
 
21521
MAGIC_CMD=$MAGIC_CMD
 
21522
 
 
21523
# Used on cygwin: DLL creation program.
 
21524
DLLTOOL="$DLLTOOL"
 
21525
 
 
21526
# Used on cygwin: object dumper.
 
21527
OBJDUMP="$OBJDUMP"
 
21528
 
 
21529
# Used on cygwin: assembler.
 
21530
AS="$AS"
 
21531
 
 
21532
# The name of the directory that contains temporary libtool files.
 
21533
objdir=$objdir
 
21534
 
 
21535
# How to create reloadable object files.
 
21536
reload_flag=$lt_reload_flag
 
21537
reload_cmds=$lt_reload_cmds
 
21538
 
 
21539
# How to pass a linker flag through the compiler.
 
21540
wl=$lt_lt_prog_compiler_wl_RC
 
21541
 
 
21542
# Object file suffix (normally "o").
 
21543
objext="$ac_objext"
 
21544
 
 
21545
# Old archive suffix (normally "a").
 
21546
libext="$libext"
 
21547
 
 
21548
# Shared library suffix (normally ".so").
 
21549
shrext_cmds='$shrext_cmds'
 
21550
 
 
21551
# Executable file suffix (normally "").
 
21552
exeext="$exeext"
 
21553
 
 
21554
# Additional compiler flags for building library objects.
 
21555
pic_flag=$lt_lt_prog_compiler_pic_RC
 
21556
pic_mode=$pic_mode
 
21557
 
 
21558
# What is the maximum length of a command?
 
21559
max_cmd_len=$lt_cv_sys_max_cmd_len
 
21560
 
 
21561
# Does compiler simultaneously support -c and -o options?
 
21562
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
21563
 
 
21564
# Must we lock files when doing compilation ?
 
21565
need_locks=$lt_need_locks
 
21566
 
 
21567
# Do we need the lib prefix for modules?
 
21568
need_lib_prefix=$need_lib_prefix
 
21569
 
 
21570
# Do we need a version for libraries?
 
21571
need_version=$need_version
 
21572
 
 
21573
# Whether dlopen is supported.
 
21574
dlopen_support=$enable_dlopen
 
21575
 
 
21576
# Whether dlopen of programs is supported.
 
21577
dlopen_self=$enable_dlopen_self
 
21578
 
 
21579
# Whether dlopen of statically linked programs is supported.
 
21580
dlopen_self_static=$enable_dlopen_self_static
 
21581
 
 
21582
# Compiler flag to prevent dynamic linking.
 
21583
link_static_flag=$lt_lt_prog_compiler_static_RC
 
21584
 
 
21585
# Compiler flag to turn off builtin functions.
 
21586
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
21587
 
 
21588
# Compiler flag to allow reflexive dlopens.
 
21589
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
21590
 
 
21591
# Compiler flag to generate shared objects directly from archives.
 
21592
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
21593
 
 
21594
# Compiler flag to generate thread-safe objects.
 
21595
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
21596
 
 
21597
# Library versioning type.
 
21598
version_type=$version_type
 
21599
 
 
21600
# Format of library name prefix.
 
21601
libname_spec=$lt_libname_spec
 
21602
 
 
21603
# List of archive names.  First name is the real one, the rest are links.
 
21604
# The last name is the one that the linker finds with -lNAME.
 
21605
library_names_spec=$lt_library_names_spec
 
21606
 
 
21607
# The coded name of the library, if different from the real name.
 
21608
soname_spec=$lt_soname_spec
 
21609
 
 
21610
# Commands used to build and install an old-style archive.
 
21611
RANLIB=$lt_RANLIB
 
21612
old_archive_cmds=$lt_old_archive_cmds_RC
 
21613
old_postinstall_cmds=$lt_old_postinstall_cmds
 
21614
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
21615
 
 
21616
# Create an old-style archive from a shared archive.
 
21617
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
21618
 
 
21619
# Create a temporary old-style archive to link instead of a shared archive.
 
21620
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
21621
 
 
21622
# Commands used to build and install a shared archive.
 
21623
archive_cmds=$lt_archive_cmds_RC
 
21624
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
21625
postinstall_cmds=$lt_postinstall_cmds
 
21626
postuninstall_cmds=$lt_postuninstall_cmds
 
21627
 
 
21628
# Commands used to build a loadable module (assumed same as above if empty)
 
21629
module_cmds=$lt_module_cmds_RC
 
21630
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
21631
 
 
21632
# Commands to strip libraries.
 
21633
old_striplib=$lt_old_striplib
 
21634
striplib=$lt_striplib
 
21635
 
 
21636
# Dependencies to place before the objects being linked to create a
 
21637
# shared library.
 
21638
predep_objects=$lt_predep_objects_RC
 
21639
 
 
21640
# Dependencies to place after the objects being linked to create a
 
21641
# shared library.
 
21642
postdep_objects=$lt_postdep_objects_RC
 
21643
 
 
21644
# Dependencies to place before the objects being linked to create a
 
21645
# shared library.
 
21646
predeps=$lt_predeps_RC
 
21647
 
 
21648
# Dependencies to place after the objects being linked to create a
 
21649
# shared library.
 
21650
postdeps=$lt_postdeps_RC
 
21651
 
 
21652
# The library search path used internally by the compiler when linking
 
21653
# a shared library.
 
21654
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
21655
 
 
21656
# Method to check whether dependent libraries are shared objects.
 
21657
deplibs_check_method=$lt_deplibs_check_method
 
21658
 
 
21659
# Command to use when deplibs_check_method == file_magic.
 
21660
file_magic_cmd=$lt_file_magic_cmd
 
21661
 
 
21662
# Flag that allows shared libraries with undefined symbols to be built.
 
21663
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
21664
 
 
21665
# Flag that forces no undefined symbols.
 
21666
no_undefined_flag=$lt_no_undefined_flag_RC
 
21667
 
 
21668
# Commands used to finish a libtool library installation in a directory.
 
21669
finish_cmds=$lt_finish_cmds
 
21670
 
 
21671
# Same as above, but a single script fragment to be evaled but not shown.
 
21672
finish_eval=$lt_finish_eval
 
21673
 
 
21674
# Take the output of nm and produce a listing of raw symbols and C names.
 
21675
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
21676
 
 
21677
# Transform the output of nm in a proper C declaration
 
21678
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
21679
 
 
21680
# Transform the output of nm in a C name address pair
 
21681
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
21682
 
 
21683
# This is the shared library runtime path variable.
 
21684
runpath_var=$runpath_var
 
21685
 
 
21686
# This is the shared library path variable.
 
21687
shlibpath_var=$shlibpath_var
 
21688
 
 
21689
# Is shlibpath searched before the hard-coded library search path?
 
21690
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
21691
 
 
21692
# How to hardcode a shared library path into an executable.
 
21693
hardcode_action=$hardcode_action_RC
 
21694
 
 
21695
# Whether we should hardcode library paths into libraries.
 
21696
hardcode_into_libs=$hardcode_into_libs
 
21697
 
 
21698
# Flag to hardcode \$libdir into a binary during linking.
 
21699
# This must work even if \$libdir does not exist.
 
21700
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
21701
 
 
21702
# If ld is used when linking, flag to hardcode \$libdir into
 
21703
# a binary during linking. This must work even if \$libdir does
 
21704
# not exist.
 
21705
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
21706
 
 
21707
# Whether we need a single -rpath flag with a separated argument.
 
21708
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
21709
 
 
21710
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
21711
# resulting binary.
 
21712
hardcode_direct=$hardcode_direct_RC
 
21713
 
 
21714
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
21715
# resulting binary.
 
21716
hardcode_minus_L=$hardcode_minus_L_RC
 
21717
 
 
21718
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
21719
# the resulting binary.
 
21720
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
21721
 
 
21722
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
21723
# and all subsequent libraries and executables linked against it.
 
21724
hardcode_automatic=$hardcode_automatic_RC
 
21725
 
 
21726
# Variables whose values should be saved in libtool wrapper scripts and
 
21727
# restored at relink time.
 
21728
variables_saved_for_relink="$variables_saved_for_relink"
 
21729
 
 
21730
# Whether libtool must link a program against all its dependency libraries.
 
21731
link_all_deplibs=$link_all_deplibs_RC
 
21732
 
 
21733
# Compile-time system search path for libraries
 
21734
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
21735
 
 
21736
# Run-time system search path for libraries
 
21737
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
21738
 
 
21739
# Fix the shell variable \$srcfile for the compiler.
 
21740
fix_srcfile_path="$fix_srcfile_path_RC"
 
21741
 
 
21742
# Set to yes if exported symbols are required.
 
21743
always_export_symbols=$always_export_symbols_RC
 
21744
 
 
21745
# The commands to list exported symbols.
 
21746
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
21747
 
 
21748
# The commands to extract the exported symbol list from a shared archive.
 
21749
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
21750
 
 
21751
# Symbols that should not be listed in the preloaded symbols.
 
21752
exclude_expsyms=$lt_exclude_expsyms_RC
 
21753
 
 
21754
# Symbols that must always be exported.
 
21755
include_expsyms=$lt_include_expsyms_RC
 
21756
 
 
21757
# ### END LIBTOOL TAG CONFIG: $tagname
 
21758
 
 
21759
__EOF__
 
21760
 
 
21761
 
 
21762
else
 
21763
  # If there is no Makefile yet, we rely on a make rule to execute
 
21764
  # `config.status --recheck' to rerun these tests and create the
 
21765
  # libtool script then.
 
21766
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
21767
  if test -f "$ltmain_in"; then
 
21768
    test -f Makefile && make "$ltmain"
 
21769
  fi
 
21770
fi
 
21771
 
 
21772
 
 
21773
ac_ext=c
 
21774
ac_cpp='$CPP $CPPFLAGS'
 
21775
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21776
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21777
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21778
 
 
21779
CC="$lt_save_CC"
 
21780
 
 
21781
        ;;
 
21782
 
 
21783
      *)
 
21784
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
21785
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
21786
   { (exit 1); exit 1; }; }
 
21787
        ;;
 
21788
      esac
 
21789
 
 
21790
      # Append the new tag name to the list of available tags.
 
21791
      if test -n "$tagname" ; then
 
21792
      available_tags="$available_tags $tagname"
 
21793
    fi
 
21794
    fi
 
21795
  done
 
21796
  IFS="$lt_save_ifs"
 
21797
 
 
21798
  # Now substitute the updated list of available tags.
 
21799
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
21800
    mv "${ofile}T" "$ofile"
 
21801
    chmod +x "$ofile"
 
21802
  else
 
21803
    rm -f "${ofile}T"
 
21804
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
21805
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
21806
   { (exit 1); exit 1; }; }
 
21807
  fi
 
21808
fi
 
21809
 
 
21810
 
 
21811
 
 
21812
# This can be used to rebuild libtool when needed
 
21813
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
21814
 
 
21815
# Always use our own libtool.
 
21816
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
21817
 
 
21818
# Prevent multiple expansion
 
21819
 
 
21820
 
 
21821
 
 
21822
 
 
21823
 
 
21824
 
 
21825
 
 
21826
 
 
21827
 
 
21828
 
 
21829
 
 
21830
  
 
21831
 
 
21832
  
 
21833
 
 
21834
 
 
21835
  
 
21836
       
 
21837
       
 
21838
 
 
21839
 
 
21840
WARN_CFLAGS=""
 
21841
build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
 
21842
# Check whether --enable-build-warnings or --disable-build-warnings was given.
 
21843
if test "${enable_build_warnings+set}" = set; then
 
21844
  enableval="$enable_build_warnings"
 
21845
  
 
21846
fi; 
 
21847
if test x"$build_warnings" = xyes; then
 
21848
    if test x"$GCC" = xyes; then
 
21849
        WARN_CFLAGS="${build_warnings}"
 
21850
    fi
 
21851
fi
 
21852
 
 
21853
 
 
21854
 
 
21855
                                                                                                              ac_config_files="$ac_config_files Makefile src/Judy1/Makefile src/JudyCommon/Makefile src/JudyHS/Makefile src/JudyL/Makefile src/JudySL/Makefile src/Makefile src/obj/Makefile tool/Makefile doc/Makefile test/Makefile"
 
21856
 
 
21857
 
 
21858
 
 
21859
cat >confcache <<\_ACEOF
 
21860
# This file is a shell script that caches the results of configure
 
21861
# tests run on this system so they can be shared between configure
 
21862
# scripts and configure runs, see configure's option --config-cache.
 
21863
# It is not useful on other systems.  If it contains results you don't
 
21864
# want to keep, you may remove or edit it.
 
21865
#
 
21866
# config.status only pays attention to the cache file if you give it
 
21867
# the --recheck option to rerun configure.
 
21868
#
 
21869
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
21870
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
21871
# following values.
 
21872
 
 
21873
_ACEOF
 
21874
 
 
21875
# The following way of writing the cache mishandles newlines in values,
 
21876
# but we know of no workaround that is simple, portable, and efficient.
 
21877
# So, don't put newlines in cache variables' values.
 
21878
# Ultrix sh set writes to stderr and can't be redirected directly,
 
21879
# and sets the high bit in the cache file unless we assign to the vars.
 
21880
{
 
21881
  (set) 2>&1 |
 
21882
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
21883
    *ac_space=\ *)
 
21884
      # `set' does not quote correctly, so add quotes (double-quote
 
21885
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
21886
      sed -n \
 
21887
        "s/'/'\\\\''/g;
 
21888
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
21889
      ;;
 
21890
    *)
 
21891
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
21892
      sed -n \
 
21893
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
21894
      ;;
 
21895
    esac;
 
21896
} |
 
21897
  sed '
 
21898
     t clear
 
21899
     : clear
 
21900
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
21901
     t end
 
21902
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
21903
     : end' >>confcache
 
21904
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
21905
  if test -w $cache_file; then
 
21906
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
21907
    cat confcache >$cache_file
 
21908
  else
 
21909
    echo "not updating unwritable cache $cache_file"
 
21910
  fi
 
21911
fi
 
21912
rm -f confcache
 
21913
 
 
21914
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
21915
# Let make expand exec_prefix.
 
21916
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
21917
 
 
21918
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
21919
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
21920
# trailing colons and then remove the whole line if VPATH becomes empty
 
21921
# (actually we leave an empty line to preserve line numbers).
 
21922
if test "x$srcdir" = x.; then
 
21923
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
21924
s/:*\$(srcdir):*/:/;
 
21925
s/:*\${srcdir}:*/:/;
 
21926
s/:*@srcdir@:*/:/;
 
21927
s/^\([^=]*=[     ]*\):*/\1/;
 
21928
s/:*$//;
 
21929
s/^[^=]*=[       ]*$//;
 
21930
}'
 
21931
fi
 
21932
 
 
21933
DEFS=-DHAVE_CONFIG_H
 
21934
 
 
21935
ac_libobjs=
 
21936
ac_ltlibobjs=
 
21937
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
 
21938
  # 1. Remove the extension, and $U if already installed.
 
21939
  ac_i=`echo "$ac_i" |
 
21940
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
21941
  # 2. Add them.
 
21942
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
21943
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
21944
done
 
21945
LIB@&t@OBJS=$ac_libobjs
 
21946
 
 
21947
LTLIBOBJS=$ac_ltlibobjs
 
21948
 
 
21949
 
 
21950
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
21951
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
21952
Usually this means the macro was only invoked conditionally." >&5
 
21953
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
21954
Usually this means the macro was only invoked conditionally." >&2;}
 
21955
   { (exit 1); exit 1; }; }
 
21956
fi
 
21957
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
21958
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
21959
Usually this means the macro was only invoked conditionally." >&5
 
21960
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
21961
Usually this means the macro was only invoked conditionally." >&2;}
 
21962
   { (exit 1); exit 1; }; }
 
21963
fi
 
21964
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
21965
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
21966
Usually this means the macro was only invoked conditionally." >&5
 
21967
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
21968
Usually this means the macro was only invoked conditionally." >&2;}
 
21969
   { (exit 1); exit 1; }; }
 
21970
fi
 
21971
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
21972
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
21973
Usually this means the macro was only invoked conditionally." >&5
 
21974
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
21975
Usually this means the macro was only invoked conditionally." >&2;}
 
21976
   { (exit 1); exit 1; }; }
 
21977
fi
 
21978
 
 
21979
: ${CONFIG_STATUS=./config.status}
 
21980
ac_clean_files_save=$ac_clean_files
 
21981
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
21982
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
21983
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
21984
cat >$CONFIG_STATUS <<_ACEOF
 
21985
#! $SHELL
 
21986
# Generated by $as_me.
 
21987
# Run this file to recreate the current configuration.
 
21988
# Compiler output produced by configure, useful for debugging
 
21989
# configure, is in config.log if it exists.
 
21990
 
 
21991
debug=false
 
21992
ac_cs_recheck=false
 
21993
ac_cs_silent=false
 
21994
SHELL=\${CONFIG_SHELL-$SHELL}
 
21995
_ACEOF
 
21996
 
 
21997
cat >>$CONFIG_STATUS <<\_ACEOF
 
21998
## --------------------- ##
 
21999
## M4sh Initialization.  ##
 
22000
## --------------------- ##
 
22001
 
 
22002
# Be Bourne compatible
 
22003
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
22004
  emulate sh
 
22005
  NULLCMD=:
 
22006
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
22007
  # is contrary to our usage.  Disable this feature.
 
22008
  alias -g '${1+"$@"}'='"$@"'
 
22009
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22010
  set -o posix
 
22011
fi
 
22012
DUALCASE=1; export DUALCASE # for MKS sh
 
22013
 
 
22014
# Support unset when possible.
 
22015
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
22016
  as_unset=unset
 
22017
else
 
22018
  as_unset=false
 
22019
fi
 
22020
 
 
22021
 
 
22022
# Work around bugs in pre-3.0 UWIN ksh.
 
22023
$as_unset ENV MAIL MAILPATH
 
22024
PS1='$ '
 
22025
PS2='> '
 
22026
PS4='+ '
 
22027
 
 
22028
# NLS nuisances.
 
22029
for as_var in \
 
22030
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
22031
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
22032
  LC_TELEPHONE LC_TIME
 
22033
do
 
22034
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
22035
    eval $as_var=C; export $as_var
 
22036
  else
 
22037
    $as_unset $as_var
 
22038
  fi
 
22039
done
 
22040
 
 
22041
# Required to use basename.
 
22042
if expr a : '\(a\)' >/dev/null 2>&1; then
 
22043
  as_expr=expr
 
22044
else
 
22045
  as_expr=false
 
22046
fi
 
22047
 
 
22048
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
22049
  as_basename=basename
 
22050
else
 
22051
  as_basename=false
 
22052
fi
 
22053
 
 
22054
 
 
22055
# Name of the executable.
 
22056
as_me=`$as_basename "$0" ||
 
22057
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
22058
         X"$0" : 'X\(//\)$' \| \
 
22059
         X"$0" : 'X\(/\)$' \| \
 
22060
         .     : '\(.\)' 2>/dev/null ||
 
22061
echo X/"$0" |
 
22062
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
22063
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
22064
          /^X\/\(\/\).*/{ s//\1/; q; }
 
22065
          s/.*/./; q'`
 
22066
 
 
22067
 
 
22068
# PATH needs CR, and LINENO needs CR and PATH.
 
22069
# Avoid depending upon Character Ranges.
 
22070
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
22071
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
22072
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
22073
as_cr_digits='0123456789'
 
22074
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
22075
 
 
22076
# The user is always right.
 
22077
if test "${PATH_SEPARATOR+set}" != set; then
 
22078
  echo "#! /bin/sh" >conf$$.sh
 
22079
  echo  "exit 0"   >>conf$$.sh
 
22080
  chmod +x conf$$.sh
 
22081
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
22082
    PATH_SEPARATOR=';'
 
22083
  else
 
22084
    PATH_SEPARATOR=:
 
22085
  fi
 
22086
  rm -f conf$$.sh
 
22087
fi
 
22088
 
 
22089
 
 
22090
  as_lineno_1=$LINENO
 
22091
  as_lineno_2=$LINENO
 
22092
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
22093
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22094
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
22095
  # Find who we are.  Look in the path if we contain no path at all
 
22096
  # relative or not.
 
22097
  case $0 in
 
22098
    *[\\/]* ) as_myself=$0 ;;
 
22099
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22100
for as_dir in $PATH
 
22101
do
 
22102
  IFS=$as_save_IFS
 
22103
  test -z "$as_dir" && as_dir=.
 
22104
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
22105
done
 
22106
 
 
22107
       ;;
 
22108
  esac
 
22109
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
22110
  # in which case we are not to be found in the path.
 
22111
  if test "x$as_myself" = x; then
 
22112
    as_myself=$0
 
22113
  fi
 
22114
  if test ! -f "$as_myself"; then
 
22115
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
22116
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
22117
   { (exit 1); exit 1; }; }
 
22118
  fi
 
22119
  case $CONFIG_SHELL in
 
22120
  '')
 
22121
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22122
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
22123
do
 
22124
  IFS=$as_save_IFS
 
22125
  test -z "$as_dir" && as_dir=.
 
22126
  for as_base in sh bash ksh sh5; do
 
22127
         case $as_dir in
 
22128
         /*)
 
22129
           if ("$as_dir/$as_base" -c '
 
22130
  as_lineno_1=$LINENO
 
22131
  as_lineno_2=$LINENO
 
22132
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
22133
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22134
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
22135
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
22136
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
22137
             CONFIG_SHELL=$as_dir/$as_base
 
22138
             export CONFIG_SHELL
 
22139
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
22140
           fi;;
 
22141
         esac
 
22142
       done
 
22143
done
 
22144
;;
 
22145
  esac
 
22146
 
 
22147
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
22148
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
22149
  # line-number line before each line; the second 'sed' does the real
 
22150
  # work.  The second script uses 'N' to pair each line-number line
 
22151
  # with the numbered line, and appends trailing '-' during
 
22152
  # substitution so that $LINENO is not a special case at line end.
 
22153
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
22154
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
22155
  sed '=' <$as_myself |
 
22156
    sed '
 
22157
      N
 
22158
      s,$,-,
 
22159
      : loop
 
22160
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
22161
      t loop
 
22162
      s,-$,,
 
22163
      s,^['$as_cr_digits']*\n,,
 
22164
    ' >$as_me.lineno &&
 
22165
  chmod +x $as_me.lineno ||
 
22166
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
22167
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
22168
   { (exit 1); exit 1; }; }
 
22169
 
 
22170
  # Don't try to exec as it changes $[0], causing all sort of problems
 
22171
  # (the dirname of $[0] is not the place where we might find the
 
22172
  # original and so on.  Autoconf is especially sensible to this).
 
22173
  . ./$as_me.lineno
 
22174
  # Exit status is that of the last command.
 
22175
  exit
 
22176
}
 
22177
 
 
22178
 
 
22179
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
22180
  *c*,-n*) ECHO_N= ECHO_C='
 
22181
' ECHO_T='      ' ;;
 
22182
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
22183
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
22184
esac
 
22185
 
 
22186
if expr a : '\(a\)' >/dev/null 2>&1; then
 
22187
  as_expr=expr
 
22188
else
 
22189
  as_expr=false
 
22190
fi
 
22191
 
 
22192
rm -f conf$$ conf$$.exe conf$$.file
 
22193
echo >conf$$.file
 
22194
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
22195
  # We could just check for DJGPP; but this test a) works b) is more generic
 
22196
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
22197
  if test -f conf$$.exe; then
 
22198
    # Don't use ln at all; we don't have any links
 
22199
    as_ln_s='cp -p'
 
22200
  else
 
22201
    as_ln_s='ln -s'
 
22202
  fi
 
22203
elif ln conf$$.file conf$$ 2>/dev/null; then
 
22204
  as_ln_s=ln
 
22205
else
 
22206
  as_ln_s='cp -p'
 
22207
fi
 
22208
rm -f conf$$ conf$$.exe conf$$.file
 
22209
 
 
22210
if mkdir -p . 2>/dev/null; then
 
22211
  as_mkdir_p=:
 
22212
else
 
22213
  test -d ./-p && rmdir ./-p
 
22214
  as_mkdir_p=false
 
22215
fi
 
22216
 
 
22217
as_executable_p="test -f"
 
22218
 
 
22219
# Sed expression to map a string onto a valid CPP name.
 
22220
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
22221
 
 
22222
# Sed expression to map a string onto a valid variable name.
 
22223
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
22224
 
 
22225
 
 
22226
# IFS
 
22227
# We need space, tab and new line, in precisely that order.
 
22228
as_nl='
 
22229
'
 
22230
IFS="   $as_nl"
 
22231
 
 
22232
# CDPATH.
 
22233
$as_unset CDPATH
 
22234
 
 
22235
exec 6>&1
 
22236
 
 
22237
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
22238
# report actual input values of CONFIG_FILES etc. instead of their
 
22239
# values after options handling.  Logging --version etc. is OK.
 
22240
exec 5>>config.log
 
22241
{
 
22242
  echo
 
22243
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
 
22244
@%:@@%:@ Running $as_me. @%:@@%:@
 
22245
_ASBOX
 
22246
} >&5
 
22247
cat >&5 <<_CSEOF
 
22248
 
 
22249
This file was extended by Judy $as_me 1.0.0, which was
 
22250
generated by GNU Autoconf 2.59.  Invocation command line was
 
22251
 
 
22252
  CONFIG_FILES    = $CONFIG_FILES
 
22253
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
22254
  CONFIG_LINKS    = $CONFIG_LINKS
 
22255
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
22256
  $ $0 $@
 
22257
 
 
22258
_CSEOF
 
22259
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
22260
echo >&5
 
22261
_ACEOF
 
22262
 
 
22263
# Files that config.status was made for.
 
22264
if test -n "$ac_config_files"; then
 
22265
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
22266
fi
 
22267
 
 
22268
if test -n "$ac_config_headers"; then
 
22269
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
22270
fi
 
22271
 
 
22272
if test -n "$ac_config_links"; then
 
22273
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
22274
fi
 
22275
 
 
22276
if test -n "$ac_config_commands"; then
 
22277
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
22278
fi
 
22279
 
 
22280
cat >>$CONFIG_STATUS <<\_ACEOF
 
22281
 
 
22282
ac_cs_usage="\
 
22283
\`$as_me' instantiates files from templates according to the
 
22284
current configuration.
 
22285
 
 
22286
Usage: $0 [OPTIONS] [FILE]...
 
22287
 
 
22288
  -h, --help       print this help, then exit
 
22289
  -V, --version    print version number, then exit
 
22290
  -q, --quiet      do not print progress messages
 
22291
  -d, --debug      don't remove temporary files
 
22292
      --recheck    update $as_me by reconfiguring in the same conditions
 
22293
  --file=FILE[:TEMPLATE]
 
22294
                   instantiate the configuration file FILE
 
22295
  --header=FILE[:TEMPLATE]
 
22296
                   instantiate the configuration header FILE
 
22297
 
 
22298
Configuration files:
 
22299
$config_files
 
22300
 
 
22301
Configuration headers:
 
22302
$config_headers
 
22303
 
 
22304
Configuration commands:
 
22305
$config_commands
 
22306
 
 
22307
Report bugs to <bug-autoconf@gnu.org>."
 
22308
_ACEOF
 
22309
 
 
22310
cat >>$CONFIG_STATUS <<_ACEOF
 
22311
ac_cs_version="\\
 
22312
Judy config.status 1.0.0
 
22313
configured by $0, generated by GNU Autoconf 2.59,
 
22314
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
22315
 
 
22316
Copyright (C) 2003 Free Software Foundation, Inc.
 
22317
This config.status script is free software; the Free Software Foundation
 
22318
gives unlimited permission to copy, distribute and modify it."
 
22319
srcdir=$srcdir
 
22320
INSTALL="$INSTALL"
 
22321
_ACEOF
 
22322
 
 
22323
cat >>$CONFIG_STATUS <<\_ACEOF
 
22324
# If no file are specified by the user, then we need to provide default
 
22325
# value.  By we need to know if files were specified by the user.
 
22326
ac_need_defaults=:
 
22327
while test $# != 0
 
22328
do
 
22329
  case $1 in
 
22330
  --*=*)
 
22331
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
22332
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
22333
    ac_shift=:
 
22334
    ;;
 
22335
  -*)
 
22336
    ac_option=$1
 
22337
    ac_optarg=$2
 
22338
    ac_shift=shift
 
22339
    ;;
 
22340
  *) # This is not an option, so the user has probably given explicit
 
22341
     # arguments.
 
22342
     ac_option=$1
 
22343
     ac_need_defaults=false;;
 
22344
  esac
 
22345
 
 
22346
  case $ac_option in
 
22347
  # Handling of the options.
 
22348
_ACEOF
 
22349
cat >>$CONFIG_STATUS <<\_ACEOF
 
22350
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
22351
    ac_cs_recheck=: ;;
 
22352
  --version | --vers* | -V )
 
22353
    echo "$ac_cs_version"; exit 0 ;;
 
22354
  --he | --h)
 
22355
    # Conflict between --help and --header
 
22356
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
22357
Try \`$0 --help' for more information." >&5
 
22358
echo "$as_me: error: ambiguous option: $1
 
22359
Try \`$0 --help' for more information." >&2;}
 
22360
   { (exit 1); exit 1; }; };;
 
22361
  --help | --hel | -h )
 
22362
    echo "$ac_cs_usage"; exit 0 ;;
 
22363
  --debug | --d* | -d )
 
22364
    debug=: ;;
 
22365
  --file | --fil | --fi | --f )
 
22366
    $ac_shift
 
22367
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
22368
    ac_need_defaults=false;;
 
22369
  --header | --heade | --head | --hea )
 
22370
    $ac_shift
 
22371
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
22372
    ac_need_defaults=false;;
 
22373
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
22374
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
22375
    ac_cs_silent=: ;;
 
22376
 
 
22377
  # This is an error.
 
22378
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
22379
Try \`$0 --help' for more information." >&5
 
22380
echo "$as_me: error: unrecognized option: $1
 
22381
Try \`$0 --help' for more information." >&2;}
 
22382
   { (exit 1); exit 1; }; } ;;
 
22383
 
 
22384
  *) ac_config_targets="$ac_config_targets $1" ;;
 
22385
 
 
22386
  esac
 
22387
  shift
 
22388
done
 
22389
 
 
22390
ac_configure_extra_args=
 
22391
 
 
22392
if $ac_cs_silent; then
 
22393
  exec 6>/dev/null
 
22394
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
22395
fi
 
22396
 
 
22397
_ACEOF
 
22398
cat >>$CONFIG_STATUS <<_ACEOF
 
22399
if \$ac_cs_recheck; then
 
22400
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
22401
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
22402
fi
 
22403
 
 
22404
_ACEOF
 
22405
 
 
22406
cat >>$CONFIG_STATUS <<_ACEOF
 
22407
#
 
22408
# INIT-COMMANDS section.
 
22409
#
 
22410
 
 
22411
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
22412
 
 
22413
_ACEOF
 
22414
 
 
22415
 
 
22416
 
 
22417
cat >>$CONFIG_STATUS <<\_ACEOF
 
22418
for ac_config_target in $ac_config_targets
 
22419
do
 
22420
  case "$ac_config_target" in
 
22421
  # Handling of arguments.
 
22422
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
22423
  "src/Judy1/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Judy1/Makefile" ;;
 
22424
  "src/JudyCommon/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/JudyCommon/Makefile" ;;
 
22425
  "src/JudyHS/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/JudyHS/Makefile" ;;
 
22426
  "src/JudyL/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/JudyL/Makefile" ;;
 
22427
  "src/JudySL/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/JudySL/Makefile" ;;
 
22428
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
22429
  "src/obj/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/obj/Makefile" ;;
 
22430
  "tool/Makefile" ) CONFIG_FILES="$CONFIG_FILES tool/Makefile" ;;
 
22431
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
22432
  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 
22433
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
22434
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
22435
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
22436
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
22437
   { (exit 1); exit 1; }; };;
 
22438
  esac
 
22439
done
 
22440
 
 
22441
# If the user did not use the arguments to specify the items to instantiate,
 
22442
# then the envvar interface is used.  Set only those that are not.
 
22443
# We use the long form for the default assignment because of an extremely
 
22444
# bizarre bug on SunOS 4.1.3.
 
22445
if $ac_need_defaults; then
 
22446
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
22447
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
22448
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
22449
fi
 
22450
 
 
22451
# Have a temporary directory for convenience.  Make it in the build tree
 
22452
# simply because there is no reason to put it here, and in addition,
 
22453
# creating and moving files from /tmp can sometimes cause problems.
 
22454
# Create a temporary directory, and hook for its removal unless debugging.
 
22455
$debug ||
 
22456
{
 
22457
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
22458
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
22459
}
 
22460
 
 
22461
# Create a (secure) tmp directory for tmp files.
 
22462
 
 
22463
{
 
22464
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
22465
  test -n "$tmp" && test -d "$tmp"
 
22466
}  ||
 
22467
{
 
22468
  tmp=./confstat$$-$RANDOM
 
22469
  (umask 077 && mkdir $tmp)
 
22470
} ||
 
22471
{
 
22472
   echo "$me: cannot create a temporary directory in ." >&2
 
22473
   { (exit 1); exit 1; }
 
22474
}
 
22475
 
 
22476
_ACEOF
 
22477
 
 
22478
cat >>$CONFIG_STATUS <<_ACEOF
 
22479
 
 
22480
#
 
22481
# CONFIG_FILES section.
 
22482
#
 
22483
 
 
22484
# No need to generate the scripts if there are no CONFIG_FILES.
 
22485
# This happens for instance when ./config.status config.h
 
22486
if test -n "\$CONFIG_FILES"; then
 
22487
  # Protect against being on the right side of a sed subst in config.status.
 
22488
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
22489
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
22490
s,@SHELL@,$SHELL,;t t
 
22491
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
22492
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
22493
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
22494
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
22495
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
22496
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
22497
s,@exec_prefix@,$exec_prefix,;t t
 
22498
s,@prefix@,$prefix,;t t
 
22499
s,@program_transform_name@,$program_transform_name,;t t
 
22500
s,@bindir@,$bindir,;t t
 
22501
s,@sbindir@,$sbindir,;t t
 
22502
s,@libexecdir@,$libexecdir,;t t
 
22503
s,@datadir@,$datadir,;t t
 
22504
s,@sysconfdir@,$sysconfdir,;t t
 
22505
s,@sharedstatedir@,$sharedstatedir,;t t
 
22506
s,@localstatedir@,$localstatedir,;t t
 
22507
s,@libdir@,$libdir,;t t
 
22508
s,@includedir@,$includedir,;t t
 
22509
s,@oldincludedir@,$oldincludedir,;t t
 
22510
s,@infodir@,$infodir,;t t
 
22511
s,@mandir@,$mandir,;t t
 
22512
s,@build_alias@,$build_alias,;t t
 
22513
s,@host_alias@,$host_alias,;t t
 
22514
s,@target_alias@,$target_alias,;t t
 
22515
s,@DEFS@,$DEFS,;t t
 
22516
s,@ECHO_C@,$ECHO_C,;t t
 
22517
s,@ECHO_N@,$ECHO_N,;t t
 
22518
s,@ECHO_T@,$ECHO_T,;t t
 
22519
s,@LIBS@,$LIBS,;t t
 
22520
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
22521
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
22522
s,@MAINT@,$MAINT,;t t
 
22523
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
22524
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
22525
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
22526
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
22527
s,@PACKAGE@,$PACKAGE,;t t
 
22528
s,@VERSION@,$VERSION,;t t
 
22529
s,@ACLOCAL@,$ACLOCAL,;t t
 
22530
s,@AUTOCONF@,$AUTOCONF,;t t
 
22531
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
22532
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
22533
s,@MAKEINFO@,$MAKEINFO,;t t
 
22534
s,@install_sh@,$install_sh,;t t
 
22535
s,@STRIP@,$STRIP,;t t
 
22536
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
22537
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
22538
s,@mkdir_p@,$mkdir_p,;t t
 
22539
s,@AWK@,$AWK,;t t
 
22540
s,@SET_MAKE@,$SET_MAKE,;t t
 
22541
s,@am__leading_dot@,$am__leading_dot,;t t
 
22542
s,@AMTAR@,$AMTAR,;t t
 
22543
s,@am__tar@,$am__tar,;t t
 
22544
s,@am__untar@,$am__untar,;t t
 
22545
s,@VERSION_INFO@,$VERSION_INFO,;t t
 
22546
s,@FLAVOR@,$FLAVOR,;t t
 
22547
s,@CC@,$CC,;t t
 
22548
s,@CFLAGS@,$CFLAGS,;t t
 
22549
s,@LDFLAGS@,$LDFLAGS,;t t
 
22550
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
22551
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
22552
s,@EXEEXT@,$EXEEXT,;t t
 
22553
s,@OBJEXT@,$OBJEXT,;t t
 
22554
s,@DEPDIR@,$DEPDIR,;t t
 
22555
s,@am__include@,$am__include,;t t
 
22556
s,@am__quote@,$am__quote,;t t
 
22557
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
22558
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
22559
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
22560
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
22561
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
22562
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
22563
s,@CPP@,$CPP,;t t
 
22564
s,@LN_S@,$LN_S,;t t
 
22565
s,@EGREP@,$EGREP,;t t
 
22566
s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
 
22567
s,@AR@,$AR,;t t
 
22568
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
22569
s,@LD@,$LD,;t t
 
22570
s,@ac_ct_LD@,$ac_ct_LD,;t t
 
22571
s,@RANLIB@,$RANLIB,;t t
 
22572
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
22573
s,@build@,$build,;t t
 
22574
s,@build_cpu@,$build_cpu,;t t
 
22575
s,@build_vendor@,$build_vendor,;t t
 
22576
s,@build_os@,$build_os,;t t
 
22577
s,@host@,$host,;t t
 
22578
s,@host_cpu@,$host_cpu,;t t
 
22579
s,@host_vendor@,$host_vendor,;t t
 
22580
s,@host_os@,$host_os,;t t
 
22581
s,@ECHO@,$ECHO,;t t
 
22582
s,@CXX@,$CXX,;t t
 
22583
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
22584
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
22585
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
22586
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
22587
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
22588
s,@CXXCPP@,$CXXCPP,;t t
 
22589
s,@F77@,$F77,;t t
 
22590
s,@FFLAGS@,$FFLAGS,;t t
 
22591
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
22592
s,@LIBTOOL@,$LIBTOOL,;t t
 
22593
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
 
22594
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
22595
CEOF
 
22596
 
 
22597
_ACEOF
 
22598
 
 
22599
  cat >>$CONFIG_STATUS <<\_ACEOF
 
22600
  # Split the substitutions into bite-sized pieces for seds with
 
22601
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
22602
  ac_max_sed_lines=48
 
22603
  ac_sed_frag=1 # Number of current file.
 
22604
  ac_beg=1 # First line for current file.
 
22605
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
22606
  ac_more_lines=:
 
22607
  ac_sed_cmds=
 
22608
  while $ac_more_lines; do
 
22609
    if test $ac_beg -gt 1; then
 
22610
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
22611
    else
 
22612
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
22613
    fi
 
22614
    if test ! -s $tmp/subs.frag; then
 
22615
      ac_more_lines=false
 
22616
    else
 
22617
      # The purpose of the label and of the branching condition is to
 
22618
      # speed up the sed processing (if there are no `@' at all, there
 
22619
      # is no need to browse any of the substitutions).
 
22620
      # These are the two extra sed commands mentioned above.
 
22621
      (echo ':t
 
22622
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
22623
      if test -z "$ac_sed_cmds"; then
 
22624
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
22625
      else
 
22626
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
22627
      fi
 
22628
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
22629
      ac_beg=$ac_end
 
22630
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
22631
    fi
 
22632
  done
 
22633
  if test -z "$ac_sed_cmds"; then
 
22634
    ac_sed_cmds=cat
 
22635
  fi
 
22636
fi # test -n "$CONFIG_FILES"
 
22637
 
 
22638
_ACEOF
 
22639
cat >>$CONFIG_STATUS <<\_ACEOF
 
22640
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
22641
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
22642
  case $ac_file in
 
22643
  - | *:- | *:-:* ) # input from stdin
 
22644
        cat >$tmp/stdin
 
22645
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22646
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22647
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22648
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22649
  * )   ac_file_in=$ac_file.in ;;
 
22650
  esac
 
22651
 
 
22652
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
22653
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
22654
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22655
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
22656
         X"$ac_file" : 'X\(//\)$' \| \
 
22657
         X"$ac_file" : 'X\(/\)' \| \
 
22658
         .     : '\(.\)' 2>/dev/null ||
 
22659
echo X"$ac_file" |
 
22660
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22661
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22662
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22663
          /^X\(\/\).*/{ s//\1/; q; }
 
22664
          s/.*/./; q'`
 
22665
  { if $as_mkdir_p; then
 
22666
    mkdir -p "$ac_dir"
 
22667
  else
 
22668
    as_dir="$ac_dir"
 
22669
    as_dirs=
 
22670
    while test ! -d "$as_dir"; do
 
22671
      as_dirs="$as_dir $as_dirs"
 
22672
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22673
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22674
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22675
         X"$as_dir" : 'X\(//\)$' \| \
 
22676
         X"$as_dir" : 'X\(/\)' \| \
 
22677
         .     : '\(.\)' 2>/dev/null ||
 
22678
echo X"$as_dir" |
 
22679
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22680
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22681
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22682
          /^X\(\/\).*/{ s//\1/; q; }
 
22683
          s/.*/./; q'`
 
22684
    done
 
22685
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22686
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
22687
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
22688
   { (exit 1); exit 1; }; }; }
 
22689
 
 
22690
  ac_builddir=.
 
22691
 
 
22692
if test "$ac_dir" != .; then
 
22693
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
22694
  # A "../" for each directory in $ac_dir_suffix.
 
22695
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
22696
else
 
22697
  ac_dir_suffix= ac_top_builddir=
 
22698
fi
 
22699
 
 
22700
case $srcdir in
 
22701
  .)  # No --srcdir option.  We are building in place.
 
22702
    ac_srcdir=.
 
22703
    if test -z "$ac_top_builddir"; then
 
22704
       ac_top_srcdir=.
 
22705
    else
 
22706
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
22707
    fi ;;
 
22708
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
22709
    ac_srcdir=$srcdir$ac_dir_suffix;
 
22710
    ac_top_srcdir=$srcdir ;;
 
22711
  *) # Relative path.
 
22712
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
22713
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
22714
esac
 
22715
 
 
22716
# Do not use `cd foo && pwd` to compute absolute paths, because
 
22717
# the directories may not exist.
 
22718
case `pwd` in
 
22719
.) ac_abs_builddir="$ac_dir";;
 
22720
*)
 
22721
  case "$ac_dir" in
 
22722
  .) ac_abs_builddir=`pwd`;;
 
22723
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
22724
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
22725
  esac;;
 
22726
esac
 
22727
case $ac_abs_builddir in
 
22728
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22729
*)
 
22730
  case ${ac_top_builddir}. in
 
22731
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
22732
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22733
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
22734
  esac;;
 
22735
esac
 
22736
case $ac_abs_builddir in
 
22737
.) ac_abs_srcdir=$ac_srcdir;;
 
22738
*)
 
22739
  case $ac_srcdir in
 
22740
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
22741
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
22742
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
22743
  esac;;
 
22744
esac
 
22745
case $ac_abs_builddir in
 
22746
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22747
*)
 
22748
  case $ac_top_srcdir in
 
22749
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
22750
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22751
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
22752
  esac;;
 
22753
esac
 
22754
 
 
22755
 
 
22756
  case $INSTALL in
 
22757
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
22758
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
22759
  esac
 
22760
 
 
22761
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
22762
  # use $as_me), people would be surprised to read:
 
22763
  #    /* config.h.  Generated by config.status.  */
 
22764
  if test x"$ac_file" = x-; then
 
22765
    configure_input=
 
22766
  else
 
22767
    configure_input="$ac_file.  "
 
22768
  fi
 
22769
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
22770
                                     sed 's,.*/,,'` by configure."
 
22771
 
 
22772
  # First look for the input files in the build tree, otherwise in the
 
22773
  # src tree.
 
22774
  ac_file_inputs=`IFS=:
 
22775
    for f in $ac_file_in; do
 
22776
      case $f in
 
22777
      -) echo $tmp/stdin ;;
 
22778
      [\\/$]*)
 
22779
         # Absolute (can't be DOS-style, as IFS=:)
 
22780
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22781
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22782
   { (exit 1); exit 1; }; }
 
22783
         echo "$f";;
 
22784
      *) # Relative
 
22785
         if test -f "$f"; then
 
22786
           # Build tree
 
22787
           echo "$f"
 
22788
         elif test -f "$srcdir/$f"; then
 
22789
           # Source tree
 
22790
           echo "$srcdir/$f"
 
22791
         else
 
22792
           # /dev/null tree
 
22793
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22794
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22795
   { (exit 1); exit 1; }; }
 
22796
         fi;;
 
22797
      esac
 
22798
    done` || { (exit 1); exit 1; }
 
22799
 
 
22800
  if test x"$ac_file" != x-; then
 
22801
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22802
echo "$as_me: creating $ac_file" >&6;}
 
22803
    rm -f "$ac_file"
 
22804
  fi
 
22805
_ACEOF
 
22806
cat >>$CONFIG_STATUS <<_ACEOF
 
22807
  sed "$ac_vpsub
 
22808
$extrasub
 
22809
_ACEOF
 
22810
cat >>$CONFIG_STATUS <<\_ACEOF
 
22811
:t
 
22812
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
22813
s,@configure_input@,$configure_input,;t t
 
22814
s,@srcdir@,$ac_srcdir,;t t
 
22815
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
22816
s,@top_srcdir@,$ac_top_srcdir,;t t
 
22817
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
22818
s,@builddir@,$ac_builddir,;t t
 
22819
s,@abs_builddir@,$ac_abs_builddir,;t t
 
22820
s,@top_builddir@,$ac_top_builddir,;t t
 
22821
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
22822
s,@INSTALL@,$ac_INSTALL,;t t
 
22823
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
22824
  rm -f $tmp/stdin
 
22825
  if test x"$ac_file" != x-; then
 
22826
    mv $tmp/out $ac_file
 
22827
  else
 
22828
    cat $tmp/out
 
22829
    rm -f $tmp/out
 
22830
  fi
 
22831
 
 
22832
done
 
22833
_ACEOF
 
22834
cat >>$CONFIG_STATUS <<\_ACEOF
 
22835
 
 
22836
#
 
22837
# CONFIG_HEADER section.
 
22838
#
 
22839
 
 
22840
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
22841
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
22842
#
 
22843
# ac_d sets the value in "#define NAME VALUE" lines.
 
22844
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
22845
ac_dB='[         ].*$,\1#\2'
 
22846
ac_dC=' '
 
22847
ac_dD=',;t'
 
22848
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
22849
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
22850
ac_uB='$,\1#\2define\3'
 
22851
ac_uC=' '
 
22852
ac_uD=',;t'
 
22853
 
 
22854
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
22855
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
22856
  case $ac_file in
 
22857
  - | *:- | *:-:* ) # input from stdin
 
22858
        cat >$tmp/stdin
 
22859
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22860
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22861
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22862
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22863
  * )   ac_file_in=$ac_file.in ;;
 
22864
  esac
 
22865
 
 
22866
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22867
echo "$as_me: creating $ac_file" >&6;}
 
22868
 
 
22869
  # First look for the input files in the build tree, otherwise in the
 
22870
  # src tree.
 
22871
  ac_file_inputs=`IFS=:
 
22872
    for f in $ac_file_in; do
 
22873
      case $f in
 
22874
      -) echo $tmp/stdin ;;
 
22875
      [\\/$]*)
 
22876
         # Absolute (can't be DOS-style, as IFS=:)
 
22877
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22878
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22879
   { (exit 1); exit 1; }; }
 
22880
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
22881
         echo "$f";;
 
22882
      *) # Relative
 
22883
         if test -f "$f"; then
 
22884
           # Build tree
 
22885
           echo "$f"
 
22886
         elif test -f "$srcdir/$f"; then
 
22887
           # Source tree
 
22888
           echo "$srcdir/$f"
 
22889
         else
 
22890
           # /dev/null tree
 
22891
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22892
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22893
   { (exit 1); exit 1; }; }
 
22894
         fi;;
 
22895
      esac
 
22896
    done` || { (exit 1); exit 1; }
 
22897
  # Remove the trailing spaces.
 
22898
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
22899
 
 
22900
_ACEOF
 
22901
 
 
22902
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
22903
# `conftest.undefs', that substitutes the proper values into
 
22904
# config.h.in to produce config.h.  The first handles `#define'
 
22905
# templates, and the second `#undef' templates.
 
22906
# And first: Protect against being on the right side of a sed subst in
 
22907
# config.status.  Protect against being in an unquoted here document
 
22908
# in config.status.
 
22909
rm -f conftest.defines conftest.undefs
 
22910
# Using a here document instead of a string reduces the quoting nightmare.
 
22911
# Putting comments in sed scripts is not portable.
 
22912
#
 
22913
# `end' is used to avoid that the second main sed command (meant for
 
22914
# 0-ary CPP macros) applies to n-ary macro definitions.
 
22915
# See the Autoconf documentation for `clear'.
 
22916
cat >confdef2sed.sed <<\_ACEOF
 
22917
s/[\\&,]/\\&/g
 
22918
s,[\\$`],\\&,g
 
22919
t clear
 
22920
: clear
 
22921
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
22922
t end
 
22923
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
22924
: end
 
22925
_ACEOF
 
22926
# If some macros were called several times there might be several times
 
22927
# the same #defines, which is useless.  Nevertheless, we may not want to
 
22928
# sort them, since we want the *last* AC-DEFINE to be honored.
 
22929
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
22930
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
22931
rm -f confdef2sed.sed
 
22932
 
 
22933
# This sed command replaces #undef with comments.  This is necessary, for
 
22934
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
22935
# on some systems where configure will not decide to define it.
 
22936
cat >>conftest.undefs <<\_ACEOF
 
22937
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
22938
_ACEOF
 
22939
 
 
22940
# Break up conftest.defines because some shells have a limit on the size
 
22941
# of here documents, and old seds have small limits too (100 cmds).
 
22942
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
22943
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
22944
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
22945
echo '  :' >>$CONFIG_STATUS
 
22946
rm -f conftest.tail
 
22947
while grep . conftest.defines >/dev/null
 
22948
do
 
22949
  # Write a limited-size here document to $tmp/defines.sed.
 
22950
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
22951
  # Speed up: don't consider the non `#define' lines.
 
22952
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
22953
  # Work around the forget-to-reset-the-flag bug.
 
22954
  echo 't clr' >>$CONFIG_STATUS
 
22955
  echo ': clr' >>$CONFIG_STATUS
 
22956
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
22957
  echo 'CEOF
 
22958
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
22959
  rm -f $tmp/in
 
22960
  mv $tmp/out $tmp/in
 
22961
' >>$CONFIG_STATUS
 
22962
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
22963
  rm -f conftest.defines
 
22964
  mv conftest.tail conftest.defines
 
22965
done
 
22966
rm -f conftest.defines
 
22967
echo '  fi # grep' >>$CONFIG_STATUS
 
22968
echo >>$CONFIG_STATUS
 
22969
 
 
22970
# Break up conftest.undefs because some shells have a limit on the size
 
22971
# of here documents, and old seds have small limits too (100 cmds).
 
22972
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
22973
rm -f conftest.tail
 
22974
while grep . conftest.undefs >/dev/null
 
22975
do
 
22976
  # Write a limited-size here document to $tmp/undefs.sed.
 
22977
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
22978
  # Speed up: don't consider the non `#undef'
 
22979
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
22980
  # Work around the forget-to-reset-the-flag bug.
 
22981
  echo 't clr' >>$CONFIG_STATUS
 
22982
  echo ': clr' >>$CONFIG_STATUS
 
22983
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
22984
  echo 'CEOF
 
22985
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
22986
  rm -f $tmp/in
 
22987
  mv $tmp/out $tmp/in
 
22988
' >>$CONFIG_STATUS
 
22989
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
22990
  rm -f conftest.undefs
 
22991
  mv conftest.tail conftest.undefs
 
22992
done
 
22993
rm -f conftest.undefs
 
22994
 
 
22995
cat >>$CONFIG_STATUS <<\_ACEOF
 
22996
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
22997
  # use $as_me), people would be surprised to read:
 
22998
  #    /* config.h.  Generated by config.status.  */
 
22999
  if test x"$ac_file" = x-; then
 
23000
    echo "/* Generated by configure.  */" >$tmp/config.h
 
23001
  else
 
23002
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
23003
  fi
 
23004
  cat $tmp/in >>$tmp/config.h
 
23005
  rm -f $tmp/in
 
23006
  if test x"$ac_file" != x-; then
 
23007
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
23008
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
23009
echo "$as_me: $ac_file is unchanged" >&6;}
 
23010
    else
 
23011
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
23012
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23013
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23014
         X"$ac_file" : 'X\(//\)$' \| \
 
23015
         X"$ac_file" : 'X\(/\)' \| \
 
23016
         .     : '\(.\)' 2>/dev/null ||
 
23017
echo X"$ac_file" |
 
23018
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23019
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23020
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23021
          /^X\(\/\).*/{ s//\1/; q; }
 
23022
          s/.*/./; q'`
 
23023
      { if $as_mkdir_p; then
 
23024
    mkdir -p "$ac_dir"
 
23025
  else
 
23026
    as_dir="$ac_dir"
 
23027
    as_dirs=
 
23028
    while test ! -d "$as_dir"; do
 
23029
      as_dirs="$as_dir $as_dirs"
 
23030
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23031
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23032
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23033
         X"$as_dir" : 'X\(//\)$' \| \
 
23034
         X"$as_dir" : 'X\(/\)' \| \
 
23035
         .     : '\(.\)' 2>/dev/null ||
 
23036
echo X"$as_dir" |
 
23037
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23038
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23039
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23040
          /^X\(\/\).*/{ s//\1/; q; }
 
23041
          s/.*/./; q'`
 
23042
    done
 
23043
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23044
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23045
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23046
   { (exit 1); exit 1; }; }; }
 
23047
 
 
23048
      rm -f $ac_file
 
23049
      mv $tmp/config.h $ac_file
 
23050
    fi
 
23051
  else
 
23052
    cat $tmp/config.h
 
23053
    rm -f $tmp/config.h
 
23054
  fi
 
23055
# Compute $ac_file's index in $config_headers.
 
23056
_am_stamp_count=1
 
23057
for _am_header in $config_headers :; do
 
23058
  case $_am_header in
 
23059
    $ac_file | $ac_file:* )
 
23060
      break ;;
 
23061
    * )
 
23062
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
23063
  esac
 
23064
done
 
23065
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
23066
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23067
         X$ac_file : 'X\(//\)[^/]' \| \
 
23068
         X$ac_file : 'X\(//\)$' \| \
 
23069
         X$ac_file : 'X\(/\)' \| \
 
23070
         .     : '\(.\)' 2>/dev/null ||
 
23071
echo X$ac_file |
 
23072
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23073
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23074
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23075
          /^X\(\/\).*/{ s//\1/; q; }
 
23076
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
23077
done
 
23078
_ACEOF
 
23079
cat >>$CONFIG_STATUS <<\_ACEOF
 
23080
 
 
23081
#
 
23082
# CONFIG_COMMANDS section.
 
23083
#
 
23084
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
23085
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
23086
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23087
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
23088
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23089
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
23090
         X"$ac_dest" : 'X\(//\)$' \| \
 
23091
         X"$ac_dest" : 'X\(/\)' \| \
 
23092
         .     : '\(.\)' 2>/dev/null ||
 
23093
echo X"$ac_dest" |
 
23094
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23095
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23096
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23097
          /^X\(\/\).*/{ s//\1/; q; }
 
23098
          s/.*/./; q'`
 
23099
  { if $as_mkdir_p; then
 
23100
    mkdir -p "$ac_dir"
 
23101
  else
 
23102
    as_dir="$ac_dir"
 
23103
    as_dirs=
 
23104
    while test ! -d "$as_dir"; do
 
23105
      as_dirs="$as_dir $as_dirs"
 
23106
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23107
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23108
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23109
         X"$as_dir" : 'X\(//\)$' \| \
 
23110
         X"$as_dir" : 'X\(/\)' \| \
 
23111
         .     : '\(.\)' 2>/dev/null ||
 
23112
echo X"$as_dir" |
 
23113
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23114
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23115
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23116
          /^X\(\/\).*/{ s//\1/; q; }
 
23117
          s/.*/./; q'`
 
23118
    done
 
23119
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23120
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23121
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23122
   { (exit 1); exit 1; }; }; }
 
23123
 
 
23124
  ac_builddir=.
 
23125
 
 
23126
if test "$ac_dir" != .; then
 
23127
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
23128
  # A "../" for each directory in $ac_dir_suffix.
 
23129
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
23130
else
 
23131
  ac_dir_suffix= ac_top_builddir=
 
23132
fi
 
23133
 
 
23134
case $srcdir in
 
23135
  .)  # No --srcdir option.  We are building in place.
 
23136
    ac_srcdir=.
 
23137
    if test -z "$ac_top_builddir"; then
 
23138
       ac_top_srcdir=.
 
23139
    else
 
23140
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
23141
    fi ;;
 
23142
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
23143
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23144
    ac_top_srcdir=$srcdir ;;
 
23145
  *) # Relative path.
 
23146
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
23147
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
23148
esac
 
23149
 
 
23150
# Do not use `cd foo && pwd` to compute absolute paths, because
 
23151
# the directories may not exist.
 
23152
case `pwd` in
 
23153
.) ac_abs_builddir="$ac_dir";;
 
23154
*)
 
23155
  case "$ac_dir" in
 
23156
  .) ac_abs_builddir=`pwd`;;
 
23157
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
23158
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
23159
  esac;;
 
23160
esac
 
23161
case $ac_abs_builddir in
 
23162
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23163
*)
 
23164
  case ${ac_top_builddir}. in
 
23165
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
23166
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23167
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
23168
  esac;;
 
23169
esac
 
23170
case $ac_abs_builddir in
 
23171
.) ac_abs_srcdir=$ac_srcdir;;
 
23172
*)
 
23173
  case $ac_srcdir in
 
23174
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
23175
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
23176
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
23177
  esac;;
 
23178
esac
 
23179
case $ac_abs_builddir in
 
23180
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23181
*)
 
23182
  case $ac_top_srcdir in
 
23183
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
23184
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23185
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
23186
  esac;;
 
23187
esac
 
23188
 
 
23189
 
 
23190
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
23191
echo "$as_me: executing $ac_dest commands" >&6;}
 
23192
  case $ac_dest in
 
23193
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
23194
  # Strip MF so we end up with the name of the file.
 
23195
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
23196
  # Check whether this is an Automake generated Makefile or not.
 
23197
  # We used to match only the files named `Makefile.in', but
 
23198
  # some people rename them; so instead we look at the file content.
 
23199
  # Grep'ing the first line is not enough: some people post-process
 
23200
  # each Makefile.in and add a new line on top of each file to say so.
 
23201
  # So let's grep whole file.
 
23202
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
23203
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
23204
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23205
         X"$mf" : 'X\(//\)[^/]' \| \
 
23206
         X"$mf" : 'X\(//\)$' \| \
 
23207
         X"$mf" : 'X\(/\)' \| \
 
23208
         .     : '\(.\)' 2>/dev/null ||
 
23209
echo X"$mf" |
 
23210
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23211
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23212
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23213
          /^X\(\/\).*/{ s//\1/; q; }
 
23214
          s/.*/./; q'`
 
23215
  else
 
23216
    continue
 
23217
  fi
 
23218
  # Extract the definition of DEPDIR, am__include, and am__quote
 
23219
  # from the Makefile without running `make'.
 
23220
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
23221
  test -z "$DEPDIR" && continue
 
23222
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
23223
  test -z "am__include" && continue
 
23224
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
23225
  # When using ansi2knr, U may be empty or an underscore; expand it
 
23226
  U=`sed -n 's/^U = //p' < "$mf"`
 
23227
  # Find all dependency output files, they are included files with
 
23228
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
23229
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
23230
  # expansion.
 
23231
  for file in `sed -n "
 
23232
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
23233
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
23234
    # Make sure the directory exists.
 
23235
    test -f "$dirpart/$file" && continue
 
23236
    fdir=`(dirname "$file") 2>/dev/null ||
 
23237
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23238
         X"$file" : 'X\(//\)[^/]' \| \
 
23239
         X"$file" : 'X\(//\)$' \| \
 
23240
         X"$file" : 'X\(/\)' \| \
 
23241
         .     : '\(.\)' 2>/dev/null ||
 
23242
echo X"$file" |
 
23243
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23244
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23245
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23246
          /^X\(\/\).*/{ s//\1/; q; }
 
23247
          s/.*/./; q'`
 
23248
    { if $as_mkdir_p; then
 
23249
    mkdir -p $dirpart/$fdir
 
23250
  else
 
23251
    as_dir=$dirpart/$fdir
 
23252
    as_dirs=
 
23253
    while test ! -d "$as_dir"; do
 
23254
      as_dirs="$as_dir $as_dirs"
 
23255
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23256
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23257
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23258
         X"$as_dir" : 'X\(//\)$' \| \
 
23259
         X"$as_dir" : 'X\(/\)' \| \
 
23260
         .     : '\(.\)' 2>/dev/null ||
 
23261
echo X"$as_dir" |
 
23262
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23263
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23264
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23265
          /^X\(\/\).*/{ s//\1/; q; }
 
23266
          s/.*/./; q'`
 
23267
    done
 
23268
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23269
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
23270
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
23271
   { (exit 1); exit 1; }; }; }
 
23272
 
 
23273
    # echo "creating $dirpart/$file"
 
23274
    echo '# dummy' > "$dirpart/$file"
 
23275
  done
 
23276
done
 
23277
 ;;
 
23278
  esac
 
23279
done
 
23280
_ACEOF
 
23281
 
 
23282
cat >>$CONFIG_STATUS <<\_ACEOF
 
23283
 
 
23284
{ (exit 0); exit 0; }
 
23285
_ACEOF
 
23286
chmod +x $CONFIG_STATUS
 
23287
ac_clean_files=$ac_clean_files_save
 
23288
 
 
23289
 
 
23290
# configure is writing to config.log, and then calls config.status.
 
23291
# config.status does its own redirection, appending to config.log.
 
23292
# Unfortunately, on DOS this fails, as config.log is still kept open
 
23293
# by configure, so config.status won't be able to write to it; its
 
23294
# output is simply discarded.  So we exec the FD to /dev/null,
 
23295
# effectively closing config.log, so it can be properly (re)opened and
 
23296
# appended to by config.status.  When coming back to configure, we
 
23297
# need to make the FD available again.
 
23298
if test "$no_create" != yes; then
 
23299
  ac_cs_success=:
 
23300
  ac_config_status_args=
 
23301
  test "$silent" = yes &&
 
23302
    ac_config_status_args="$ac_config_status_args --quiet"
 
23303
  exec 5>/dev/null
 
23304
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
23305
  exec 5>>config.log
 
23306
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
23307
  # would make configure fail if this is the last instruction.
 
23308
  $ac_cs_success || { (exit 1); exit 1; }
 
23309
fi
 
23310