OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-binutils/] [binutils-2.19.1/] [gas/] [configure] - Blame information for rev 13

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 jlechner
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
4
#
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization.  ##
10
## --------------------- ##
11
 
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
  emulate sh
15
  NULLCMD=:
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
  # is contrary to our usage.  Disable this feature.
18
  alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
  set -o posix
21
fi
22
DUALCASE=1; export DUALCASE # for MKS sh
23
 
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
  as_unset=unset
27
else
28
  as_unset=false
29
fi
30
 
31
 
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
34
PS1='$ '
35
PS2='> '
36
PS4='+ '
37
 
38
# NLS nuisances.
39
for as_var in \
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
  LC_TELEPHONE LC_TIME
43
do
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
    eval $as_var=C; export $as_var
46
  else
47
    $as_unset $as_var
48
  fi
49
done
50
 
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
53
  as_expr=expr
54
else
55
  as_expr=false
56
fi
57
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59
  as_basename=basename
60
else
61
  as_basename=false
62
fi
63
 
64
 
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
         X"$0" : 'X\(//\)$' \| \
69
         X"$0" : 'X\(/\)$' \| \
70
         .     : '\(.\)' 2>/dev/null ||
71
echo X/"$0" |
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
74
          /^X\/\(\/\).*/{ s//\1/; q; }
75
          s/.*/./; q'`
76
 
77
 
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
85
 
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
  echo "#! /bin/sh" >conf$$.sh
89
  echo  "exit 0"   >>conf$$.sh
90
  chmod +x conf$$.sh
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92
    PATH_SEPARATOR=';'
93
  else
94
    PATH_SEPARATOR=:
95
  fi
96
  rm -f conf$$.sh
97
fi
98
 
99
 
100
  as_lineno_1=$LINENO
101
  as_lineno_2=$LINENO
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105
  # Find who we are.  Look in the path if we contain no path at all
106
  # relative or not.
107
  case $0 in
108
    *[\\/]* ) as_myself=$0 ;;
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
for as_dir in $PATH
111
do
112
  IFS=$as_save_IFS
113
  test -z "$as_dir" && as_dir=.
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
done
116
 
117
       ;;
118
  esac
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
120
  # in which case we are not to be found in the path.
121
  if test "x$as_myself" = x; then
122
    as_myself=$0
123
  fi
124
  if test ! -f "$as_myself"; then
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
   { (exit 1); exit 1; }; }
127
  fi
128
  case $CONFIG_SHELL in
129
  '')
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
do
133
  IFS=$as_save_IFS
134
  test -z "$as_dir" && as_dir=.
135
  for as_base in sh bash ksh sh5; do
136
         case $as_dir in
137
         /*)
138
           if ("$as_dir/$as_base" -c '
139
  as_lineno_1=$LINENO
140
  as_lineno_2=$LINENO
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
             CONFIG_SHELL=$as_dir/$as_base
147
             export CONFIG_SHELL
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149
           fi;;
150
         esac
151
       done
152
done
153
;;
154
  esac
155
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
  # line-number line before each line; the second 'sed' does the real
159
  # work.  The second script uses 'N' to pair each line-number line
160
  # with the numbered line, and appends trailing '-' during
161
  # substitution so that $LINENO is not a special case at line end.
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
  sed '=' <$as_myself |
165
    sed '
166
      N
167
      s,$,-,
168
      : loop
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170
      t loop
171
      s,-$,,
172
      s,^['$as_cr_digits']*\n,,
173
    ' >$as_me.lineno &&
174
  chmod +x $as_me.lineno ||
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
   { (exit 1); exit 1; }; }
177
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
179
  # (the dirname of $[0] is not the place where we might find the
180
  # original and so on.  Autoconf is especially sensible to this).
181
  . ./$as_me.lineno
182
  # Exit status is that of the last command.
183
  exit
184
}
185
 
186
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
  *c*,-n*) ECHO_N= ECHO_C='
189
' ECHO_T='      ' ;;
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192
esac
193
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
195
  as_expr=expr
196
else
197
  as_expr=false
198
fi
199
 
200
rm -f conf$$ conf$$.exe conf$$.file
201
echo >conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
  # We could just check for DJGPP; but this test a) works b) is more generic
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
  if test -f conf$$.exe; then
206
    # Don't use ln at all; we don't have any links
207
    as_ln_s='cp -p'
208
  else
209
    as_ln_s='ln -s'
210
  fi
211
elif ln conf$$.file conf$$ 2>/dev/null; then
212
  as_ln_s=ln
213
else
214
  as_ln_s='cp -p'
215
fi
216
rm -f conf$$ conf$$.exe conf$$.file
217
 
218
if mkdir -p . 2>/dev/null; then
219
  as_mkdir_p=:
220
else
221
  test -d ./-p && rmdir ./-p
222
  as_mkdir_p=false
223
fi
224
 
225
as_executable_p="test -f"
226
 
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
 
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
 
233
 
234
# IFS
235
# We need space, tab and new line, in precisely that order.
236
as_nl='
237
'
238
IFS="   $as_nl"
239
 
240
# CDPATH.
241
$as_unset CDPATH
242
 
243
 
244
 
245
# Check that we are running under the correct shell.
246
SHELL=${CONFIG_SHELL-/bin/sh}
247
 
248
case X$lt_ECHO in
249
X*--fallback-echo)
250
  # Remove one level of quotation (which was required for Make).
251
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252
  ;;
253
esac
254
 
255
ECHO=${lt_ECHO-echo}
256
if test "X$1" = X--no-reexec; then
257
  # Discard the --no-reexec flag, and continue.
258
  shift
259
elif test "X$1" = X--fallback-echo; then
260
  # Avoid inline document here, it may be left over
261
  :
262
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263
  # Yippee, $ECHO works!
264
  :
265
else
266
  # Restart under the correct shell.
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
268
fi
269
 
270
if test "X$1" = X--fallback-echo; then
271
  # used as fallback echo
272
  shift
273
  cat <<_LT_EOF
274
$*
275
_LT_EOF
276
  exit 0
277
fi
278
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
280
# if CDPATH is set.
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
 
283
if test -z "$lt_ECHO"; then
284
  if test "X${echo_test_string+set}" != Xset; then
285
    # find a string as large as possible, as long as the shell can cope with it
286
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290
      then
291
        break
292
      fi
293
    done
294
  fi
295
 
296
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298
     test "X$echo_testing_string" = "X$echo_test_string"; then
299
    :
300
  else
301
    # The Solaris, AIX, and Digital Unix default echo programs unquote
302
    # backslashes.  This makes it impossible to quote backslashes using
303
    #   echo "$something" | sed 's/\\/\\\\/g'
304
    #
305
    # So, first we look for a working echo in the user's PATH.
306
 
307
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308
    for dir in $PATH /usr/ucb; do
309
      IFS="$lt_save_ifs"
310
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313
         test "X$echo_testing_string" = "X$echo_test_string"; then
314
        ECHO="$dir/echo"
315
        break
316
      fi
317
    done
318
    IFS="$lt_save_ifs"
319
 
320
    if test "X$ECHO" = Xecho; then
321
      # We didn't find a better echo, so look for alternatives.
322
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324
         test "X$echo_testing_string" = "X$echo_test_string"; then
325
        # This shell has a builtin print -r that does the trick.
326
        ECHO='print -r'
327
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328
           test "X$CONFIG_SHELL" != X/bin/ksh; then
329
        # If we have ksh, try running configure again with it.
330
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331
        export ORIGINAL_CONFIG_SHELL
332
        CONFIG_SHELL=/bin/ksh
333
        export CONFIG_SHELL
334
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335
      else
336
        # Try using printf.
337
        ECHO='printf %s\n'
338
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340
           test "X$echo_testing_string" = "X$echo_test_string"; then
341
          # Cool, printf works
342
          :
343
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344
             test "X$echo_testing_string" = 'X\t' &&
345
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346
             test "X$echo_testing_string" = "X$echo_test_string"; then
347
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348
          export CONFIG_SHELL
349
          SHELL="$CONFIG_SHELL"
350
          export SHELL
351
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
352
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353
             test "X$echo_testing_string" = 'X\t' &&
354
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355
             test "X$echo_testing_string" = "X$echo_test_string"; then
356
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
357
        else
358
          # maybe with a smaller string...
359
          prev=:
360
 
361
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363
            then
364
              break
365
            fi
366
            prev="$cmd"
367
          done
368
 
369
          if test "$prev" != 'sed 50q "$0"'; then
370
            echo_test_string=`eval $prev`
371
            export echo_test_string
372
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373
          else
374
            # Oops.  We lost completely, so just stick with echo.
375
            ECHO=echo
376
          fi
377
        fi
378
      fi
379
    fi
380
  fi
381
fi
382
 
383
# Copy echo and quote the copy suitably for passing to libtool from
384
# the Makefile, instead of quoting the original, which is used later.
385
lt_ECHO=$ECHO
386
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388
fi
389
 
390
 
391
 
392
 
393
# Name of the host.
394
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395
# so uname gets run too.
396
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
 
398
exec 6>&1
399
 
400
#
401
# Initializations.
402
#
403
ac_default_prefix=/usr/local
404
ac_config_libobj_dir=.
405
cross_compiling=no
406
subdirs=
407
MFLAGS=
408
MAKEFLAGS=
409
SHELL=${CONFIG_SHELL-/bin/sh}
410
 
411
# Maximum number of lines to put in a shell here document.
412
# This variable seems obsolete.  It should probably be removed, and
413
# only ac_max_sed_lines should be used.
414
: ${ac_max_here_lines=38}
415
 
416
# Identity of this package.
417
PACKAGE_NAME=
418
PACKAGE_TARNAME=
419
PACKAGE_VERSION=
420
PACKAGE_STRING=
421
PACKAGE_BUGREPORT=
422
 
423
ac_unique_file="as.h"
424
# Factoring default headers for most tests.
425
ac_includes_default="\
426
#include 
427
#if HAVE_SYS_TYPES_H
428
# include 
429
#endif
430
#if HAVE_SYS_STAT_H
431
# include 
432
#endif
433
#if STDC_HEADERS
434
# include 
435
# include 
436
#else
437
# if HAVE_STDLIB_H
438
#  include 
439
# endif
440
#endif
441
#if HAVE_STRING_H
442
# if !STDC_HEADERS && HAVE_MEMORY_H
443
#  include 
444
# endif
445
# include 
446
#endif
447
#if HAVE_STRINGS_H
448
# include 
449
#endif
450
#if HAVE_INTTYPES_H
451
# include 
452
#else
453
# if HAVE_STDINT_H
454
#  include 
455
# endif
456
#endif
457
#if HAVE_UNISTD_H
458
# include 
459
#endif"
460
 
461
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE ALLOCA LIBM datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462
ac_subst_files=''
463
ac_pwd=`pwd`
464
 
465
# Initialize some variables set by options.
466
ac_init_help=
467
ac_init_version=false
468
# The variables have the same names as the options, with
469
# dashes changed to underlines.
470
cache_file=/dev/null
471
exec_prefix=NONE
472
no_create=
473
no_recursion=
474
prefix=NONE
475
program_prefix=NONE
476
program_suffix=NONE
477
program_transform_name=s,x,x,
478
silent=
479
site=
480
srcdir=
481
verbose=
482
x_includes=NONE
483
x_libraries=NONE
484
 
485
# Installation directory options.
486
# These are left unexpanded so users can "make install exec_prefix=/foo"
487
# and all the variables that are supposed to be based on exec_prefix
488
# by default will actually change.
489
# Use braces instead of parens because sh, perl, etc. also accept them.
490
bindir='${exec_prefix}/bin'
491
sbindir='${exec_prefix}/sbin'
492
libexecdir='${exec_prefix}/libexec'
493
datadir='${prefix}/share'
494
sysconfdir='${prefix}/etc'
495
sharedstatedir='${prefix}/com'
496
localstatedir='${prefix}/var'
497
libdir='${exec_prefix}/lib'
498
includedir='${prefix}/include'
499
oldincludedir='/usr/include'
500
infodir='${prefix}/info'
501
mandir='${prefix}/man'
502
 
503
ac_prev=
504
for ac_option
505
do
506
  # If the previous option needs an argument, assign it.
507
  if test -n "$ac_prev"; then
508
    eval "$ac_prev=\$ac_option"
509
    ac_prev=
510
    continue
511
  fi
512
 
513
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
 
515
  # Accept the important Cygnus configure options, so we can diagnose typos.
516
 
517
  case $ac_option in
518
 
519
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
520
    ac_prev=bindir ;;
521
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522
    bindir=$ac_optarg ;;
523
 
524
  -build | --build | --buil | --bui | --bu)
525
    ac_prev=build_alias ;;
526
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527
    build_alias=$ac_optarg ;;
528
 
529
  -cache-file | --cache-file | --cache-fil | --cache-fi \
530
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531
    ac_prev=cache_file ;;
532
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534
    cache_file=$ac_optarg ;;
535
 
536
  --config-cache | -C)
537
    cache_file=config.cache ;;
538
 
539
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540
    ac_prev=datadir ;;
541
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542
  | --da=*)
543
    datadir=$ac_optarg ;;
544
 
545
  -disable-* | --disable-*)
546
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547
    # Reject names that are not valid shell variable names.
548
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550
   { (exit 1); exit 1; }; }
551
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552
    eval "enable_$ac_feature=no" ;;
553
 
554
  -enable-* | --enable-*)
555
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556
    # Reject names that are not valid shell variable names.
557
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559
   { (exit 1); exit 1; }; }
560
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561
    case $ac_option in
562
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563
      *) ac_optarg=yes ;;
564
    esac
565
    eval "enable_$ac_feature='$ac_optarg'" ;;
566
 
567
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569
  | --exec | --exe | --ex)
570
    ac_prev=exec_prefix ;;
571
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573
  | --exec=* | --exe=* | --ex=*)
574
    exec_prefix=$ac_optarg ;;
575
 
576
  -gas | --gas | --ga | --g)
577
    # Obsolete; use --with-gas.
578
    with_gas=yes ;;
579
 
580
  -help | --help | --hel | --he | -h)
581
    ac_init_help=long ;;
582
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583
    ac_init_help=recursive ;;
584
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585
    ac_init_help=short ;;
586
 
587
  -host | --host | --hos | --ho)
588
    ac_prev=host_alias ;;
589
  -host=* | --host=* | --hos=* | --ho=*)
590
    host_alias=$ac_optarg ;;
591
 
592
  -includedir | --includedir | --includedi | --included | --include \
593
  | --includ | --inclu | --incl | --inc)
594
    ac_prev=includedir ;;
595
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596
  | --includ=* | --inclu=* | --incl=* | --inc=*)
597
    includedir=$ac_optarg ;;
598
 
599
  -infodir | --infodir | --infodi | --infod | --info | --inf)
600
    ac_prev=infodir ;;
601
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602
    infodir=$ac_optarg ;;
603
 
604
  -libdir | --libdir | --libdi | --libd)
605
    ac_prev=libdir ;;
606
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
607
    libdir=$ac_optarg ;;
608
 
609
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610
  | --libexe | --libex | --libe)
611
    ac_prev=libexecdir ;;
612
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613
  | --libexe=* | --libex=* | --libe=*)
614
    libexecdir=$ac_optarg ;;
615
 
616
  -localstatedir | --localstatedir | --localstatedi | --localstated \
617
  | --localstate | --localstat | --localsta | --localst \
618
  | --locals | --local | --loca | --loc | --lo)
619
    ac_prev=localstatedir ;;
620
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623
    localstatedir=$ac_optarg ;;
624
 
625
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626
    ac_prev=mandir ;;
627
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628
    mandir=$ac_optarg ;;
629
 
630
  -nfp | --nfp | --nf)
631
    # Obsolete; use --without-fp.
632
    with_fp=no ;;
633
 
634
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635
  | --no-cr | --no-c | -n)
636
    no_create=yes ;;
637
 
638
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640
    no_recursion=yes ;;
641
 
642
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644
  | --oldin | --oldi | --old | --ol | --o)
645
    ac_prev=oldincludedir ;;
646
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649
    oldincludedir=$ac_optarg ;;
650
 
651
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652
    ac_prev=prefix ;;
653
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654
    prefix=$ac_optarg ;;
655
 
656
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
657
  | --program-pre | --program-pr | --program-p)
658
    ac_prev=program_prefix ;;
659
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
660
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661
    program_prefix=$ac_optarg ;;
662
 
663
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
664
  | --program-suf | --program-su | --program-s)
665
    ac_prev=program_suffix ;;
666
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
667
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668
    program_suffix=$ac_optarg ;;
669
 
670
  -program-transform-name | --program-transform-name \
671
  | --program-transform-nam | --program-transform-na \
672
  | --program-transform-n | --program-transform- \
673
  | --program-transform | --program-transfor \
674
  | --program-transfo | --program-transf \
675
  | --program-trans | --program-tran \
676
  | --progr-tra | --program-tr | --program-t)
677
    ac_prev=program_transform_name ;;
678
  -program-transform-name=* | --program-transform-name=* \
679
  | --program-transform-nam=* | --program-transform-na=* \
680
  | --program-transform-n=* | --program-transform-=* \
681
  | --program-transform=* | --program-transfor=* \
682
  | --program-transfo=* | --program-transf=* \
683
  | --program-trans=* | --program-tran=* \
684
  | --progr-tra=* | --program-tr=* | --program-t=*)
685
    program_transform_name=$ac_optarg ;;
686
 
687
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688
  | -silent | --silent | --silen | --sile | --sil)
689
    silent=yes ;;
690
 
691
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692
    ac_prev=sbindir ;;
693
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694
  | --sbi=* | --sb=*)
695
    sbindir=$ac_optarg ;;
696
 
697
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
698
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699
  | --sharedst | --shareds | --shared | --share | --shar \
700
  | --sha | --sh)
701
    ac_prev=sharedstatedir ;;
702
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705
  | --sha=* | --sh=*)
706
    sharedstatedir=$ac_optarg ;;
707
 
708
  -site | --site | --sit)
709
    ac_prev=site ;;
710
  -site=* | --site=* | --sit=*)
711
    site=$ac_optarg ;;
712
 
713
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714
    ac_prev=srcdir ;;
715
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716
    srcdir=$ac_optarg ;;
717
 
718
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719
  | --syscon | --sysco | --sysc | --sys | --sy)
720
    ac_prev=sysconfdir ;;
721
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723
    sysconfdir=$ac_optarg ;;
724
 
725
  -target | --target | --targe | --targ | --tar | --ta | --t)
726
    ac_prev=target_alias ;;
727
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728
    target_alias=$ac_optarg ;;
729
 
730
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
731
    verbose=yes ;;
732
 
733
  -version | --version | --versio | --versi | --vers | -V)
734
    ac_init_version=: ;;
735
 
736
  -with-* | --with-*)
737
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738
    # Reject names that are not valid shell variable names.
739
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740
      { echo "$as_me: error: invalid package name: $ac_package" >&2
741
   { (exit 1); exit 1; }; }
742
    ac_package=`echo $ac_package| sed 's/-/_/g'`
743
    case $ac_option in
744
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745
      *) ac_optarg=yes ;;
746
    esac
747
    eval "with_$ac_package='$ac_optarg'" ;;
748
 
749
  -without-* | --without-*)
750
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751
    # Reject names that are not valid shell variable names.
752
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753
      { echo "$as_me: error: invalid package name: $ac_package" >&2
754
   { (exit 1); exit 1; }; }
755
    ac_package=`echo $ac_package | sed 's/-/_/g'`
756
    eval "with_$ac_package=no" ;;
757
 
758
  --x)
759
    # Obsolete; use --with-x.
760
    with_x=yes ;;
761
 
762
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763
  | --x-incl | --x-inc | --x-in | --x-i)
764
    ac_prev=x_includes ;;
765
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767
    x_includes=$ac_optarg ;;
768
 
769
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
770
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771
    ac_prev=x_libraries ;;
772
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774
    x_libraries=$ac_optarg ;;
775
 
776
  -*) { echo "$as_me: error: unrecognized option: $ac_option
777
Try \`$0 --help' for more information." >&2
778
   { (exit 1); exit 1; }; }
779
    ;;
780
 
781
  *=*)
782
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783
    # Reject names that are not valid shell variable names.
784
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786
   { (exit 1); exit 1; }; }
787
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788
    eval "$ac_envvar='$ac_optarg'"
789
    export $ac_envvar ;;
790
 
791
  *)
792
    # FIXME: should be removed in autoconf 3.0.
793
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797
    ;;
798
 
799
  esac
800
done
801
 
802
if test -n "$ac_prev"; then
803
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804
  { echo "$as_me: error: missing argument to $ac_option" >&2
805
   { (exit 1); exit 1; }; }
806
fi
807
 
808
# Be sure to have absolute paths.
809
for ac_var in exec_prefix prefix
810
do
811
  eval ac_val=$`echo $ac_var`
812
  case $ac_val in
813
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815
   { (exit 1); exit 1; }; };;
816
  esac
817
done
818
 
819
# Be sure to have absolute paths.
820
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821
              localstatedir libdir includedir oldincludedir infodir mandir
822
do
823
  eval ac_val=$`echo $ac_var`
824
  case $ac_val in
825
    [\\/$]* | ?:[\\/]* ) ;;
826
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827
   { (exit 1); exit 1; }; };;
828
  esac
829
done
830
 
831
# There might be people who depend on the old broken behavior: `$host'
832
# used to hold the argument of --host etc.
833
# FIXME: To remove some day.
834
build=$build_alias
835
host=$host_alias
836
target=$target_alias
837
 
838
# FIXME: To remove some day.
839
if test "x$host_alias" != x; then
840
  if test "x$build_alias" = x; then
841
    cross_compiling=maybe
842
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843
    If a cross compiler is detected then cross compile mode will be used." >&2
844
  elif test "x$build_alias" != "x$host_alias"; then
845
    cross_compiling=yes
846
  fi
847
fi
848
 
849
ac_tool_prefix=
850
test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
 
852
test "$silent" = yes && exec 6>/dev/null
853
 
854
 
855
# Find the source files, if location was not specified.
856
if test -z "$srcdir"; then
857
  ac_srcdir_defaulted=yes
858
  # Try the directory containing this script, then its parent.
859
  ac_confdir=`(dirname "$0") 2>/dev/null ||
860
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861
         X"$0" : 'X\(//\)[^/]' \| \
862
         X"$0" : 'X\(//\)$' \| \
863
         X"$0" : 'X\(/\)' \| \
864
         .     : '\(.\)' 2>/dev/null ||
865
echo X"$0" |
866
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868
          /^X\(\/\/\)$/{ s//\1/; q; }
869
          /^X\(\/\).*/{ s//\1/; q; }
870
          s/.*/./; q'`
871
  srcdir=$ac_confdir
872
  if test ! -r $srcdir/$ac_unique_file; then
873
    srcdir=..
874
  fi
875
else
876
  ac_srcdir_defaulted=no
877
fi
878
if test ! -r $srcdir/$ac_unique_file; then
879
  if test "$ac_srcdir_defaulted" = yes; then
880
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881
   { (exit 1); exit 1; }; }
882
  else
883
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884
   { (exit 1); exit 1; }; }
885
  fi
886
fi
887
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889
   { (exit 1); exit 1; }; }
890
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891
ac_env_build_alias_set=${build_alias+set}
892
ac_env_build_alias_value=$build_alias
893
ac_cv_env_build_alias_set=${build_alias+set}
894
ac_cv_env_build_alias_value=$build_alias
895
ac_env_host_alias_set=${host_alias+set}
896
ac_env_host_alias_value=$host_alias
897
ac_cv_env_host_alias_set=${host_alias+set}
898
ac_cv_env_host_alias_value=$host_alias
899
ac_env_target_alias_set=${target_alias+set}
900
ac_env_target_alias_value=$target_alias
901
ac_cv_env_target_alias_set=${target_alias+set}
902
ac_cv_env_target_alias_value=$target_alias
903
ac_env_CC_set=${CC+set}
904
ac_env_CC_value=$CC
905
ac_cv_env_CC_set=${CC+set}
906
ac_cv_env_CC_value=$CC
907
ac_env_CFLAGS_set=${CFLAGS+set}
908
ac_env_CFLAGS_value=$CFLAGS
909
ac_cv_env_CFLAGS_set=${CFLAGS+set}
910
ac_cv_env_CFLAGS_value=$CFLAGS
911
ac_env_LDFLAGS_set=${LDFLAGS+set}
912
ac_env_LDFLAGS_value=$LDFLAGS
913
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914
ac_cv_env_LDFLAGS_value=$LDFLAGS
915
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916
ac_env_CPPFLAGS_value=$CPPFLAGS
917
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919
ac_env_CPP_set=${CPP+set}
920
ac_env_CPP_value=$CPP
921
ac_cv_env_CPP_set=${CPP+set}
922
ac_cv_env_CPP_value=$CPP
923
 
924
#
925
# Report the --help message.
926
#
927
if test "$ac_init_help" = "long"; then
928
  # Omit some internal or obsolete options to make the list less imposing.
929
  # This message is too long to be a string in the A/UX 3.1 sh.
930
  cat <<_ACEOF
931
\`configure' configures this package to adapt to many kinds of systems.
932
 
933
Usage: $0 [OPTION]... [VAR=VALUE]...
934
 
935
To assign environment variables (e.g., CC, CFLAGS...), specify them as
936
VAR=VALUE.  See below for descriptions of some of the useful variables.
937
 
938
Defaults for the options are specified in brackets.
939
 
940
Configuration:
941
  -h, --help              display this help and exit
942
      --help=short        display options specific to this package
943
      --help=recursive    display the short help of all the included packages
944
  -V, --version           display version information and exit
945
  -q, --quiet, --silent   do not print \`checking...' messages
946
      --cache-file=FILE   cache test results in FILE [disabled]
947
  -C, --config-cache      alias for \`--cache-file=config.cache'
948
  -n, --no-create         do not create output files
949
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
950
 
951
_ACEOF
952
 
953
  cat <<_ACEOF
954
Installation directories:
955
  --prefix=PREFIX         install architecture-independent files in PREFIX
956
                          [$ac_default_prefix]
957
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
958
                          [PREFIX]
959
 
960
By default, \`make install' will install all the files in
961
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
962
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963
for instance \`--prefix=\$HOME'.
964
 
965
For better control, use the options below.
966
 
967
Fine tuning of the installation directories:
968
  --bindir=DIR           user executables [EPREFIX/bin]
969
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
970
  --libexecdir=DIR       program executables [EPREFIX/libexec]
971
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
972
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
973
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
974
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
975
  --libdir=DIR           object code libraries [EPREFIX/lib]
976
  --includedir=DIR       C header files [PREFIX/include]
977
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
978
  --infodir=DIR          info documentation [PREFIX/info]
979
  --mandir=DIR           man documentation [PREFIX/man]
980
_ACEOF
981
 
982
  cat <<\_ACEOF
983
 
984
Program names:
985
  --program-prefix=PREFIX            prepend PREFIX to installed program names
986
  --program-suffix=SUFFIX            append SUFFIX to installed program names
987
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
988
 
989
System types:
990
  --build=BUILD     configure for building on BUILD [guessed]
991
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
992
  --target=TARGET   configure for building compilers for TARGET [HOST]
993
_ACEOF
994
fi
995
 
996
if test -n "$ac_init_help"; then
997
 
998
  cat <<\_ACEOF
999
 
1000
Optional Features:
1001
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1002
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1003
  --disable-dependency-tracking  speeds up one-time build
1004
  --enable-dependency-tracking   do not reject slow dependency extractors
1005
  --enable-shared[=PKGS]
1006
                          build shared libraries [default=yes]
1007
  --enable-static[=PKGS]
1008
                          build static libraries [default=yes]
1009
  --enable-fast-install[=PKGS]
1010
                          optimize for fast installation [default=yes]
1011
  --disable-libtool-lock  avoid locking (might break parallel builds)
1012
  --enable-targets        alternative target configurations besides the primary
1013
  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
1014
  --enable-checking       enable run-time checks
1015
  --enable-werror         treat compile warnings as errors
1016
  --enable-build-warnings enable build-time compiler warnings
1017
  --disable-nls           do not use Native Language Support
1018
  --enable-maintainer-mode  enable make rules and dependencies not useful
1019
                          (and sometimes confusing) to the casual installer
1020
 
1021
Optional Packages:
1022
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1023
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1024
  --with-pic              try to use only PIC/non-PIC objects [default=use
1025
                          both]
1026
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1027
 
1028
Some influential environment variables:
1029
  CC          C compiler command
1030
  CFLAGS      C compiler flags
1031
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1032
              nonstandard directory 
1033
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
1034
              headers in a nonstandard directory 
1035
  CPP         C preprocessor
1036
 
1037
Use these variables to override the choices made by `configure' or to help
1038
it to find libraries and programs with nonstandard names/locations.
1039
 
1040
_ACEOF
1041
fi
1042
 
1043
if test "$ac_init_help" = "recursive"; then
1044
  # If there are subdirs, report their specific --help.
1045
  ac_popdir=`pwd`
1046
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047
    test -d $ac_dir || continue
1048
    ac_builddir=.
1049
 
1050
if test "$ac_dir" != .; then
1051
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052
  # A "../" for each directory in $ac_dir_suffix.
1053
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054
else
1055
  ac_dir_suffix= ac_top_builddir=
1056
fi
1057
 
1058
case $srcdir in
1059
  .)  # No --srcdir option.  We are building in place.
1060
    ac_srcdir=.
1061
    if test -z "$ac_top_builddir"; then
1062
       ac_top_srcdir=.
1063
    else
1064
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1065
    fi ;;
1066
  [\\/]* | ?:[\\/]* )  # Absolute path.
1067
    ac_srcdir=$srcdir$ac_dir_suffix;
1068
    ac_top_srcdir=$srcdir ;;
1069
  *) # Relative path.
1070
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1072
esac
1073
 
1074
# Do not use `cd foo && pwd` to compute absolute paths, because
1075
# the directories may not exist.
1076
case `pwd` in
1077
.) ac_abs_builddir="$ac_dir";;
1078
*)
1079
  case "$ac_dir" in
1080
  .) ac_abs_builddir=`pwd`;;
1081
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083
  esac;;
1084
esac
1085
case $ac_abs_builddir in
1086
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1087
*)
1088
  case ${ac_top_builddir}. in
1089
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1090
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092
  esac;;
1093
esac
1094
case $ac_abs_builddir in
1095
.) ac_abs_srcdir=$ac_srcdir;;
1096
*)
1097
  case $ac_srcdir in
1098
  .) ac_abs_srcdir=$ac_abs_builddir;;
1099
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101
  esac;;
1102
esac
1103
case $ac_abs_builddir in
1104
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1105
*)
1106
  case $ac_top_srcdir in
1107
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110
  esac;;
1111
esac
1112
 
1113
    cd $ac_dir
1114
    # Check for guested configure; otherwise get Cygnus style configure.
1115
    if test -f $ac_srcdir/configure.gnu; then
1116
      echo
1117
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1118
    elif test -f $ac_srcdir/configure; then
1119
      echo
1120
      $SHELL $ac_srcdir/configure  --help=recursive
1121
    elif test -f $ac_srcdir/configure.ac ||
1122
           test -f $ac_srcdir/configure.in; then
1123
      echo
1124
      $ac_configure --help
1125
    else
1126
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127
    fi
1128
    cd $ac_popdir
1129
  done
1130
fi
1131
 
1132
test -n "$ac_init_help" && exit 0
1133
if $ac_init_version; then
1134
  cat <<\_ACEOF
1135
 
1136
Copyright (C) 2003 Free Software Foundation, Inc.
1137
This configure script is free software; the Free Software Foundation
1138
gives unlimited permission to copy, distribute and modify it.
1139
_ACEOF
1140
  exit 0
1141
fi
1142
exec 5>config.log
1143
cat >&5 <<_ACEOF
1144
This file contains any messages produced by compilers while
1145
running configure, to aid debugging if configure makes a mistake.
1146
 
1147
It was created by $as_me, which was
1148
generated by GNU Autoconf 2.59.  Invocation command line was
1149
 
1150
  $ $0 $@
1151
 
1152
_ACEOF
1153
{
1154
cat <<_ASUNAME
1155
## --------- ##
1156
## Platform. ##
1157
## --------- ##
1158
 
1159
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
 
1165
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1167
 
1168
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1169
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1170
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1172
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1173
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1174
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1175
 
1176
_ASUNAME
1177
 
1178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179
for as_dir in $PATH
1180
do
1181
  IFS=$as_save_IFS
1182
  test -z "$as_dir" && as_dir=.
1183
  echo "PATH: $as_dir"
1184
done
1185
 
1186
} >&5
1187
 
1188
cat >&5 <<_ACEOF
1189
 
1190
 
1191
## ----------- ##
1192
## Core tests. ##
1193
## ----------- ##
1194
 
1195
_ACEOF
1196
 
1197
 
1198
# Keep a trace of the command line.
1199
# Strip out --no-create and --no-recursion so they do not pile up.
1200
# Strip out --silent because we don't want to record it for future runs.
1201
# Also quote any args containing shell meta-characters.
1202
# Make two passes to allow for proper duplicate-argument suppression.
1203
ac_configure_args=
1204
ac_configure_args0=
1205
ac_configure_args1=
1206
ac_sep=
1207
ac_must_keep_next=false
1208
for ac_pass in 1 2
1209
do
1210
  for ac_arg
1211
  do
1212
    case $ac_arg in
1213
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215
    | -silent | --silent | --silen | --sile | --sil)
1216
      continue ;;
1217
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219
    esac
1220
    case $ac_pass in
1221
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222
    2)
1223
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224
      if test $ac_must_keep_next = true; then
1225
        ac_must_keep_next=false # Got value, back to normal.
1226
      else
1227
        case $ac_arg in
1228
          *=* | --config-cache | -C | -disable-* | --disable-* \
1229
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231
          | -with-* | --with-* | -without-* | --without-* | --x)
1232
            case "$ac_configure_args0 " in
1233
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234
            esac
1235
            ;;
1236
          -* ) ac_must_keep_next=true ;;
1237
        esac
1238
      fi
1239
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240
      # Get rid of the leading space.
1241
      ac_sep=" "
1242
      ;;
1243
    esac
1244
  done
1245
done
1246
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
 
1249
# When interrupted or exit'd, cleanup temporary files, and complete
1250
# config.log.  We remove comments because anyway the quotes in there
1251
# would cause problems or look ugly.
1252
# WARNING: Be sure not to use single quotes in there, as some shells,
1253
# such as our DU 5.0 friend, will then `close' the trap.
1254
trap 'exit_status=$?
1255
  # Save into config.log some information that might help in debugging.
1256
  {
1257
    echo
1258
 
1259
    cat <<\_ASBOX
1260
## ---------------- ##
1261
## Cache variables. ##
1262
## ---------------- ##
1263
_ASBOX
1264
    echo
1265
    # The following way of writing the cache mishandles newlines in values,
1266
{
1267
  (set) 2>&1 |
1268
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269
    *ac_space=\ *)
1270
      sed -n \
1271
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273
      ;;
1274
    *)
1275
      sed -n \
1276
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277
      ;;
1278
    esac;
1279
}
1280
    echo
1281
 
1282
    cat <<\_ASBOX
1283
## ----------------- ##
1284
## Output variables. ##
1285
## ----------------- ##
1286
_ASBOX
1287
    echo
1288
    for ac_var in $ac_subst_vars
1289
    do
1290
      eval ac_val=$`echo $ac_var`
1291
      echo "$ac_var='"'"'$ac_val'"'"'"
1292
    done | sort
1293
    echo
1294
 
1295
    if test -n "$ac_subst_files"; then
1296
      cat <<\_ASBOX
1297
## ------------- ##
1298
## Output files. ##
1299
## ------------- ##
1300
_ASBOX
1301
      echo
1302
      for ac_var in $ac_subst_files
1303
      do
1304
        eval ac_val=$`echo $ac_var`
1305
        echo "$ac_var='"'"'$ac_val'"'"'"
1306
      done | sort
1307
      echo
1308
    fi
1309
 
1310
    if test -s confdefs.h; then
1311
      cat <<\_ASBOX
1312
## ----------- ##
1313
## confdefs.h. ##
1314
## ----------- ##
1315
_ASBOX
1316
      echo
1317
      sed "/^$/d" confdefs.h | sort
1318
      echo
1319
    fi
1320
    test "$ac_signal" != 0 &&
1321
      echo "$as_me: caught signal $ac_signal"
1322
    echo "$as_me: exit $exit_status"
1323
  } >&5
1324
  rm -f core *.core &&
1325
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326
    exit $exit_status
1327
     ' 0
1328
for ac_signal in 1 2 13 15; do
1329
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330
done
1331
ac_signal=0
1332
 
1333
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1334
rm -rf conftest* confdefs.h
1335
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336
echo >confdefs.h
1337
 
1338
# Predefined preprocessor variables.
1339
 
1340
cat >>confdefs.h <<_ACEOF
1341
#define PACKAGE_NAME "$PACKAGE_NAME"
1342
_ACEOF
1343
 
1344
 
1345
cat >>confdefs.h <<_ACEOF
1346
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347
_ACEOF
1348
 
1349
 
1350
cat >>confdefs.h <<_ACEOF
1351
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1352
_ACEOF
1353
 
1354
 
1355
cat >>confdefs.h <<_ACEOF
1356
#define PACKAGE_STRING "$PACKAGE_STRING"
1357
_ACEOF
1358
 
1359
 
1360
cat >>confdefs.h <<_ACEOF
1361
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362
_ACEOF
1363
 
1364
 
1365
# Let the site file select an alternate cache file if it wants to.
1366
# Prefer explicitly selected file to automatically selected ones.
1367
if test -z "$CONFIG_SITE"; then
1368
  if test "x$prefix" != xNONE; then
1369
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370
  else
1371
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372
  fi
1373
fi
1374
for ac_site_file in $CONFIG_SITE; do
1375
  if test -r "$ac_site_file"; then
1376
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377
echo "$as_me: loading site script $ac_site_file" >&6;}
1378
    sed 's/^/| /' "$ac_site_file" >&5
1379
    . "$ac_site_file"
1380
  fi
1381
done
1382
 
1383
if test -r "$cache_file"; then
1384
  # Some versions of bash will fail to source /dev/null (special
1385
  # files actually), so we avoid doing that.
1386
  if test -f "$cache_file"; then
1387
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388
echo "$as_me: loading cache $cache_file" >&6;}
1389
    case $cache_file in
1390
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1391
      *)                      . ./$cache_file;;
1392
    esac
1393
  fi
1394
else
1395
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396
echo "$as_me: creating cache $cache_file" >&6;}
1397
  >$cache_file
1398
fi
1399
 
1400
# Check that the precious variables saved in the cache have kept the same
1401
# value.
1402
ac_cache_corrupted=false
1403
for ac_var in `(set) 2>&1 |
1404
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406
  eval ac_new_set=\$ac_env_${ac_var}_set
1407
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408
  eval ac_new_val="\$ac_env_${ac_var}_value"
1409
  case $ac_old_set,$ac_new_set in
1410
    set,)
1411
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413
      ac_cache_corrupted=: ;;
1414
    ,set)
1415
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417
      ac_cache_corrupted=: ;;
1418
    ,);;
1419
    *)
1420
      if test "x$ac_old_val" != "x$ac_new_val"; then
1421
        # differences in whitespace do not lead to failure.
1422
        ac_old_val_w=`echo x $ac_old_val`
1423
        ac_new_val_w=`echo x $ac_new_val`
1424
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
1425
          { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427
          ac_cache_corrupted=:
1428
        else
1429
          { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1430
echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1431
          eval $ac_var=\$ac_old_val
1432
        fi
1433
        { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1434
echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1435
        { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1436
echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1437
      fi;;
1438
  esac
1439
  # Pass precious variables to config.status.
1440
  if test "$ac_new_set" = set; then
1441
    case $ac_new_val in
1442
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444
    *) ac_arg=$ac_var=$ac_new_val ;;
1445
    esac
1446
    case " $ac_configure_args " in
1447
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1448
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1449
    esac
1450
  fi
1451
done
1452
if $ac_cache_corrupted; then
1453
  { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1454
echo "$as_me: error: in \`$ac_pwd':" >&2;}
1455
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459
   { (exit 1); exit 1; }; }
1460
fi
1461
 
1462
ac_ext=c
1463
ac_cpp='$CPP $CPPFLAGS'
1464
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467
 
1468
 
1469
 
1470
 
1471
 
1472
 
1473
 
1474
 
1475
 
1476
 
1477
 
1478
 
1479
 
1480
 
1481
 
1482
 
1483
 
1484
 
1485
 
1486
 
1487
 
1488
 
1489
 
1490
 
1491
ac_aux_dir=
1492
for ac_dir in .. $srcdir/..; do
1493
  if test -f $ac_dir/install-sh; then
1494
    ac_aux_dir=$ac_dir
1495
    ac_install_sh="$ac_aux_dir/install-sh -c"
1496
    break
1497
  elif test -f $ac_dir/install.sh; then
1498
    ac_aux_dir=$ac_dir
1499
    ac_install_sh="$ac_aux_dir/install.sh -c"
1500
    break
1501
  elif test -f $ac_dir/shtool; then
1502
    ac_aux_dir=$ac_dir
1503
    ac_install_sh="$ac_aux_dir/shtool install -c"
1504
    break
1505
  fi
1506
done
1507
if test -z "$ac_aux_dir"; then
1508
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1509
echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1510
   { (exit 1); exit 1; }; }
1511
fi
1512
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1513
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1514
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1515
 
1516
# Make sure we can run config.sub.
1517
$ac_config_sub sun4 >/dev/null 2>&1 ||
1518
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1519
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1520
   { (exit 1); exit 1; }; }
1521
 
1522
echo "$as_me:$LINENO: checking build system type" >&5
1523
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1524
if test "${ac_cv_build+set}" = set; then
1525
  echo $ECHO_N "(cached) $ECHO_C" >&6
1526
else
1527
  ac_cv_build_alias=$build_alias
1528
test -z "$ac_cv_build_alias" &&
1529
  ac_cv_build_alias=`$ac_config_guess`
1530
test -z "$ac_cv_build_alias" &&
1531
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1532
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1533
   { (exit 1); exit 1; }; }
1534
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1535
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1536
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1537
   { (exit 1); exit 1; }; }
1538
 
1539
fi
1540
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1541
echo "${ECHO_T}$ac_cv_build" >&6
1542
build=$ac_cv_build
1543
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1544
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1545
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546
 
1547
 
1548
echo "$as_me:$LINENO: checking host system type" >&5
1549
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1550
if test "${ac_cv_host+set}" = set; then
1551
  echo $ECHO_N "(cached) $ECHO_C" >&6
1552
else
1553
  ac_cv_host_alias=$host_alias
1554
test -z "$ac_cv_host_alias" &&
1555
  ac_cv_host_alias=$ac_cv_build_alias
1556
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1557
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1558
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1559
   { (exit 1); exit 1; }; }
1560
 
1561
fi
1562
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1563
echo "${ECHO_T}$ac_cv_host" >&6
1564
host=$ac_cv_host
1565
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1566
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1567
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1568
 
1569
 
1570
echo "$as_me:$LINENO: checking target system type" >&5
1571
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1572
if test "${ac_cv_target+set}" = set; then
1573
  echo $ECHO_N "(cached) $ECHO_C" >&6
1574
else
1575
  ac_cv_target_alias=$target_alias
1576
test "x$ac_cv_target_alias" = "x" &&
1577
  ac_cv_target_alias=$ac_cv_host_alias
1578
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1579
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1580
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1581
   { (exit 1); exit 1; }; }
1582
 
1583
fi
1584
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1585
echo "${ECHO_T}$ac_cv_target" >&6
1586
target=$ac_cv_target
1587
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1588
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1589
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1590
 
1591
 
1592
# The aliases save the names the user supplied, while $host etc.
1593
# will get canonicalized.
1594
test -n "$target_alias" &&
1595
  test "$program_prefix$program_suffix$program_transform_name" = \
1596
    NONENONEs,x,x, &&
1597
  program_prefix=${target_alias}-
1598
ac_ext=c
1599
ac_cpp='$CPP $CPPFLAGS'
1600
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1601
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1602
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1603
if test -n "$ac_tool_prefix"; then
1604
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1605
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1606
echo "$as_me:$LINENO: checking for $ac_word" >&5
1607
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608
if test "${ac_cv_prog_CC+set}" = set; then
1609
  echo $ECHO_N "(cached) $ECHO_C" >&6
1610
else
1611
  if test -n "$CC"; then
1612
  ac_cv_prog_CC="$CC" # Let the user override the test.
1613
else
1614
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615
for as_dir in $PATH
1616
do
1617
  IFS=$as_save_IFS
1618
  test -z "$as_dir" && as_dir=.
1619
  for ac_exec_ext in '' $ac_executable_extensions; do
1620
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1622
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623
    break 2
1624
  fi
1625
done
1626
done
1627
 
1628
fi
1629
fi
1630
CC=$ac_cv_prog_CC
1631
if test -n "$CC"; then
1632
  echo "$as_me:$LINENO: result: $CC" >&5
1633
echo "${ECHO_T}$CC" >&6
1634
else
1635
  echo "$as_me:$LINENO: result: no" >&5
1636
echo "${ECHO_T}no" >&6
1637
fi
1638
 
1639
fi
1640
if test -z "$ac_cv_prog_CC"; then
1641
  ac_ct_CC=$CC
1642
  # Extract the first word of "gcc", so it can be a program name with args.
1643
set dummy gcc; ac_word=$2
1644
echo "$as_me:$LINENO: checking for $ac_word" >&5
1645
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647
  echo $ECHO_N "(cached) $ECHO_C" >&6
1648
else
1649
  if test -n "$ac_ct_CC"; then
1650
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651
else
1652
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653
for as_dir in $PATH
1654
do
1655
  IFS=$as_save_IFS
1656
  test -z "$as_dir" && as_dir=.
1657
  for ac_exec_ext in '' $ac_executable_extensions; do
1658
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659
    ac_cv_prog_ac_ct_CC="gcc"
1660
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661
    break 2
1662
  fi
1663
done
1664
done
1665
 
1666
fi
1667
fi
1668
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669
if test -n "$ac_ct_CC"; then
1670
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671
echo "${ECHO_T}$ac_ct_CC" >&6
1672
else
1673
  echo "$as_me:$LINENO: result: no" >&5
1674
echo "${ECHO_T}no" >&6
1675
fi
1676
 
1677
  CC=$ac_ct_CC
1678
else
1679
  CC="$ac_cv_prog_CC"
1680
fi
1681
 
1682
if test -z "$CC"; then
1683
  if test -n "$ac_tool_prefix"; then
1684
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1685
set dummy ${ac_tool_prefix}cc; ac_word=$2
1686
echo "$as_me:$LINENO: checking for $ac_word" >&5
1687
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688
if test "${ac_cv_prog_CC+set}" = set; then
1689
  echo $ECHO_N "(cached) $ECHO_C" >&6
1690
else
1691
  if test -n "$CC"; then
1692
  ac_cv_prog_CC="$CC" # Let the user override the test.
1693
else
1694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695
for as_dir in $PATH
1696
do
1697
  IFS=$as_save_IFS
1698
  test -z "$as_dir" && as_dir=.
1699
  for ac_exec_ext in '' $ac_executable_extensions; do
1700
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1702
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703
    break 2
1704
  fi
1705
done
1706
done
1707
 
1708
fi
1709
fi
1710
CC=$ac_cv_prog_CC
1711
if test -n "$CC"; then
1712
  echo "$as_me:$LINENO: result: $CC" >&5
1713
echo "${ECHO_T}$CC" >&6
1714
else
1715
  echo "$as_me:$LINENO: result: no" >&5
1716
echo "${ECHO_T}no" >&6
1717
fi
1718
 
1719
fi
1720
if test -z "$ac_cv_prog_CC"; then
1721
  ac_ct_CC=$CC
1722
  # Extract the first word of "cc", so it can be a program name with args.
1723
set dummy cc; ac_word=$2
1724
echo "$as_me:$LINENO: checking for $ac_word" >&5
1725
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1727
  echo $ECHO_N "(cached) $ECHO_C" >&6
1728
else
1729
  if test -n "$ac_ct_CC"; then
1730
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1731
else
1732
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733
for as_dir in $PATH
1734
do
1735
  IFS=$as_save_IFS
1736
  test -z "$as_dir" && as_dir=.
1737
  for ac_exec_ext in '' $ac_executable_extensions; do
1738
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739
    ac_cv_prog_ac_ct_CC="cc"
1740
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741
    break 2
1742
  fi
1743
done
1744
done
1745
 
1746
fi
1747
fi
1748
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1749
if test -n "$ac_ct_CC"; then
1750
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751
echo "${ECHO_T}$ac_ct_CC" >&6
1752
else
1753
  echo "$as_me:$LINENO: result: no" >&5
1754
echo "${ECHO_T}no" >&6
1755
fi
1756
 
1757
  CC=$ac_ct_CC
1758
else
1759
  CC="$ac_cv_prog_CC"
1760
fi
1761
 
1762
fi
1763
if test -z "$CC"; then
1764
  # Extract the first word of "cc", so it can be a program name with args.
1765
set dummy cc; ac_word=$2
1766
echo "$as_me:$LINENO: checking for $ac_word" >&5
1767
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768
if test "${ac_cv_prog_CC+set}" = set; then
1769
  echo $ECHO_N "(cached) $ECHO_C" >&6
1770
else
1771
  if test -n "$CC"; then
1772
  ac_cv_prog_CC="$CC" # Let the user override the test.
1773
else
1774
  ac_prog_rejected=no
1775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776
for as_dir in $PATH
1777
do
1778
  IFS=$as_save_IFS
1779
  test -z "$as_dir" && as_dir=.
1780
  for ac_exec_ext in '' $ac_executable_extensions; do
1781
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1783
       ac_prog_rejected=yes
1784
       continue
1785
     fi
1786
    ac_cv_prog_CC="cc"
1787
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788
    break 2
1789
  fi
1790
done
1791
done
1792
 
1793
if test $ac_prog_rejected = yes; then
1794
  # We found a bogon in the path, so make sure we never use it.
1795
  set dummy $ac_cv_prog_CC
1796
  shift
1797
  if test $# != 0; then
1798
    # We chose a different compiler from the bogus one.
1799
    # However, it has the same basename, so the bogon will be chosen
1800
    # first if we set CC to just the basename; use the full file name.
1801
    shift
1802
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1803
  fi
1804
fi
1805
fi
1806
fi
1807
CC=$ac_cv_prog_CC
1808
if test -n "$CC"; then
1809
  echo "$as_me:$LINENO: result: $CC" >&5
1810
echo "${ECHO_T}$CC" >&6
1811
else
1812
  echo "$as_me:$LINENO: result: no" >&5
1813
echo "${ECHO_T}no" >&6
1814
fi
1815
 
1816
fi
1817
if test -z "$CC"; then
1818
  if test -n "$ac_tool_prefix"; then
1819
  for ac_prog in cl
1820
  do
1821
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1822
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1823
echo "$as_me:$LINENO: checking for $ac_word" >&5
1824
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825
if test "${ac_cv_prog_CC+set}" = set; then
1826
  echo $ECHO_N "(cached) $ECHO_C" >&6
1827
else
1828
  if test -n "$CC"; then
1829
  ac_cv_prog_CC="$CC" # Let the user override the test.
1830
else
1831
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832
for as_dir in $PATH
1833
do
1834
  IFS=$as_save_IFS
1835
  test -z "$as_dir" && as_dir=.
1836
  for ac_exec_ext in '' $ac_executable_extensions; do
1837
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1839
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840
    break 2
1841
  fi
1842
done
1843
done
1844
 
1845
fi
1846
fi
1847
CC=$ac_cv_prog_CC
1848
if test -n "$CC"; then
1849
  echo "$as_me:$LINENO: result: $CC" >&5
1850
echo "${ECHO_T}$CC" >&6
1851
else
1852
  echo "$as_me:$LINENO: result: no" >&5
1853
echo "${ECHO_T}no" >&6
1854
fi
1855
 
1856
    test -n "$CC" && break
1857
  done
1858
fi
1859
if test -z "$CC"; then
1860
  ac_ct_CC=$CC
1861
  for ac_prog in cl
1862
do
1863
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1864
set dummy $ac_prog; ac_word=$2
1865
echo "$as_me:$LINENO: checking for $ac_word" >&5
1866
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1868
  echo $ECHO_N "(cached) $ECHO_C" >&6
1869
else
1870
  if test -n "$ac_ct_CC"; then
1871
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1872
else
1873
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874
for as_dir in $PATH
1875
do
1876
  IFS=$as_save_IFS
1877
  test -z "$as_dir" && as_dir=.
1878
  for ac_exec_ext in '' $ac_executable_extensions; do
1879
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880
    ac_cv_prog_ac_ct_CC="$ac_prog"
1881
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882
    break 2
1883
  fi
1884
done
1885
done
1886
 
1887
fi
1888
fi
1889
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1890
if test -n "$ac_ct_CC"; then
1891
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1892
echo "${ECHO_T}$ac_ct_CC" >&6
1893
else
1894
  echo "$as_me:$LINENO: result: no" >&5
1895
echo "${ECHO_T}no" >&6
1896
fi
1897
 
1898
  test -n "$ac_ct_CC" && break
1899
done
1900
 
1901
  CC=$ac_ct_CC
1902
fi
1903
 
1904
fi
1905
 
1906
 
1907
test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1908
echo "$as_me: error: in \`$ac_pwd':" >&2;}
1909
{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1910
See \`config.log' for more details." >&5
1911
echo "$as_me: error: no acceptable C compiler found in \$PATH
1912
See \`config.log' for more details." >&2;}
1913
   { (exit 1); exit 1; }; }; }
1914
 
1915
# Provide some information about the compiler.
1916
echo "$as_me:$LINENO:" \
1917
     "checking for C compiler version" >&5
1918
ac_compiler=`set X $ac_compile; echo $2`
1919
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
1920
  (eval $ac_compiler --version &5) 2>&5
1921
  ac_status=$?
1922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923
  (exit $ac_status); }
1924
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
1925
  (eval $ac_compiler -v &5) 2>&5
1926
  ac_status=$?
1927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928
  (exit $ac_status); }
1929
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
1930
  (eval $ac_compiler -V &5) 2>&5
1931
  ac_status=$?
1932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933
  (exit $ac_status); }
1934
 
1935
cat >conftest.$ac_ext <<_ACEOF
1936
/* confdefs.h.  */
1937
_ACEOF
1938
cat confdefs.h >>conftest.$ac_ext
1939
cat >>conftest.$ac_ext <<_ACEOF
1940
/* end confdefs.h.  */
1941
 
1942
int
1943
main ()
1944
{
1945
 
1946
  ;
1947
  return 0;
1948
}
1949
_ACEOF
1950
ac_clean_files_save=$ac_clean_files
1951
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1952
# Try to create an executable without -o first, disregard a.out.
1953
# It will help us diagnose broken compilers, and finding out an intuition
1954
# of exeext.
1955
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1956
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1957
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1958
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1959
  (eval $ac_link_default) 2>&5
1960
  ac_status=$?
1961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962
  (exit $ac_status); }; then
1963
  # Find the output, starting from the most likely.  This scheme is
1964
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1965
# resort.
1966
 
1967
# Be careful to initialize this variable, since it used to be cached.
1968
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1969
ac_cv_exeext=
1970
# b.out is created by i960 compilers.
1971
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1972
do
1973
  test -f "$ac_file" || continue
1974
  case $ac_file in
1975
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1976
        ;;
1977
    conftest.$ac_ext )
1978
        # This is the source file.
1979
        ;;
1980
    [ab].out )
1981
        # We found the default executable, but exeext='' is most
1982
        # certainly right.
1983
        break;;
1984
    *.* )
1985
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1986
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1987
        # but it would be cool to find out if it's true.  Does anybody
1988
        # maintain Libtool? --akim.
1989
        export ac_cv_exeext
1990
        break;;
1991
    * )
1992
        break;;
1993
  esac
1994
done
1995
else
1996
  echo "$as_me: failed program was:" >&5
1997
sed 's/^/| /' conftest.$ac_ext >&5
1998
 
1999
{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2000
echo "$as_me: error: in \`$ac_pwd':" >&2;}
2001
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2002
See \`config.log' for more details." >&5
2003
echo "$as_me: error: C compiler cannot create executables
2004
See \`config.log' for more details." >&2;}
2005
   { (exit 77); exit 77; }; }; }
2006
fi
2007
 
2008
ac_exeext=$ac_cv_exeext
2009
echo "$as_me:$LINENO: result: $ac_file" >&5
2010
echo "${ECHO_T}$ac_file" >&6
2011
 
2012
# Check the compiler produces executables we can run.  If not, either
2013
# the compiler is broken, or we cross compile.
2014
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2015
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2016
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2017
# If not cross compiling, check that we can run a simple program.
2018
if test "$cross_compiling" != yes; then
2019
  if { ac_try='./$ac_file'
2020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021
  (eval $ac_try) 2>&5
2022
  ac_status=$?
2023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024
  (exit $ac_status); }; }; then
2025
    cross_compiling=no
2026
  else
2027
    if test "$cross_compiling" = maybe; then
2028
        cross_compiling=yes
2029
    else
2030
        { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2031
echo "$as_me: error: in \`$ac_pwd':" >&2;}
2032
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2033
If you meant to cross compile, use \`--host'.
2034
See \`config.log' for more details." >&5
2035
echo "$as_me: error: cannot run C compiled programs.
2036
If you meant to cross compile, use \`--host'.
2037
See \`config.log' for more details." >&2;}
2038
   { (exit 1); exit 1; }; }; }
2039
    fi
2040
  fi
2041
fi
2042
echo "$as_me:$LINENO: result: yes" >&5
2043
echo "${ECHO_T}yes" >&6
2044
 
2045
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2046
ac_clean_files=$ac_clean_files_save
2047
# Check the compiler produces executables we can run.  If not, either
2048
# the compiler is broken, or we cross compile.
2049
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2050
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2051
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2052
echo "${ECHO_T}$cross_compiling" >&6
2053
 
2054
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2055
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2056
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2057
  (eval $ac_link) 2>&5
2058
  ac_status=$?
2059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060
  (exit $ac_status); }; then
2061
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2062
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2063
# work properly (i.e., refer to `conftest.exe'), while it won't with
2064
# `rm'.
2065
for ac_file in conftest.exe conftest conftest.*; do
2066
  test -f "$ac_file" || continue
2067
  case $ac_file in
2068
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2069
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2070
          export ac_cv_exeext
2071
          break;;
2072
    * ) break;;
2073
  esac
2074
done
2075
else
2076
  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2077
echo "$as_me: error: in \`$ac_pwd':" >&2;}
2078
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2079
See \`config.log' for more details." >&5
2080
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2081
See \`config.log' for more details." >&2;}
2082
   { (exit 1); exit 1; }; }; }
2083
fi
2084
 
2085
rm -f conftest$ac_cv_exeext
2086
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2087
echo "${ECHO_T}$ac_cv_exeext" >&6
2088
 
2089
rm -f conftest.$ac_ext
2090
EXEEXT=$ac_cv_exeext
2091
ac_exeext=$EXEEXT
2092
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2093
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2094
if test "${ac_cv_objext+set}" = set; then
2095
  echo $ECHO_N "(cached) $ECHO_C" >&6
2096
else
2097
  cat >conftest.$ac_ext <<_ACEOF
2098
/* confdefs.h.  */
2099
_ACEOF
2100
cat confdefs.h >>conftest.$ac_ext
2101
cat >>conftest.$ac_ext <<_ACEOF
2102
/* end confdefs.h.  */
2103
 
2104
int
2105
main ()
2106
{
2107
 
2108
  ;
2109
  return 0;
2110
}
2111
_ACEOF
2112
rm -f conftest.o conftest.obj
2113
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2114
  (eval $ac_compile) 2>&5
2115
  ac_status=$?
2116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117
  (exit $ac_status); }; then
2118
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2119
  case $ac_file in
2120
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2121
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2122
       break;;
2123
  esac
2124
done
2125
else
2126
  echo "$as_me: failed program was:" >&5
2127
sed 's/^/| /' conftest.$ac_ext >&5
2128
 
2129
{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2130
echo "$as_me: error: in \`$ac_pwd':" >&2;}
2131
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2132
See \`config.log' for more details." >&5
2133
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2134
See \`config.log' for more details." >&2;}
2135
   { (exit 1); exit 1; }; }; }
2136
fi
2137
 
2138
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2139
fi
2140
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2141
echo "${ECHO_T}$ac_cv_objext" >&6
2142
OBJEXT=$ac_cv_objext
2143
ac_objext=$OBJEXT
2144
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2145
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2146
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2147
  echo $ECHO_N "(cached) $ECHO_C" >&6
2148
else
2149
  cat >conftest.$ac_ext <<_ACEOF
2150
/* confdefs.h.  */
2151
_ACEOF
2152
cat confdefs.h >>conftest.$ac_ext
2153
cat >>conftest.$ac_ext <<_ACEOF
2154
/* end confdefs.h.  */
2155
 
2156
int
2157
main ()
2158
{
2159
#ifndef __GNUC__
2160
       choke me
2161
#endif
2162
 
2163
  ;
2164
  return 0;
2165
}
2166
_ACEOF
2167
rm -f conftest.$ac_objext
2168
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169
  (eval $ac_compile) 2>conftest.er1
2170
  ac_status=$?
2171
  grep -v '^ *+' conftest.er1 >conftest.err
2172
  rm -f conftest.er1
2173
  cat conftest.err >&5
2174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175
  (exit $ac_status); } &&
2176
         { ac_try='test -z "$ac_c_werror_flag"
2177
                         || test ! -s conftest.err'
2178
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179
  (eval $ac_try) 2>&5
2180
  ac_status=$?
2181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182
  (exit $ac_status); }; } &&
2183
         { ac_try='test -s conftest.$ac_objext'
2184
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185
  (eval $ac_try) 2>&5
2186
  ac_status=$?
2187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188
  (exit $ac_status); }; }; then
2189
  ac_compiler_gnu=yes
2190
else
2191
  echo "$as_me: failed program was:" >&5
2192
sed 's/^/| /' conftest.$ac_ext >&5
2193
 
2194
ac_compiler_gnu=no
2195
fi
2196
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2197
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2198
 
2199
fi
2200
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2201
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2202
GCC=`test $ac_compiler_gnu = yes && echo yes`
2203
ac_test_CFLAGS=${CFLAGS+set}
2204
ac_save_CFLAGS=$CFLAGS
2205
CFLAGS="-g"
2206
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2207
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2208
if test "${ac_cv_prog_cc_g+set}" = set; then
2209
  echo $ECHO_N "(cached) $ECHO_C" >&6
2210
else
2211
  cat >conftest.$ac_ext <<_ACEOF
2212
/* confdefs.h.  */
2213
_ACEOF
2214
cat confdefs.h >>conftest.$ac_ext
2215
cat >>conftest.$ac_ext <<_ACEOF
2216
/* end confdefs.h.  */
2217
 
2218
int
2219
main ()
2220
{
2221
 
2222
  ;
2223
  return 0;
2224
}
2225
_ACEOF
2226
rm -f conftest.$ac_objext
2227
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228
  (eval $ac_compile) 2>conftest.er1
2229
  ac_status=$?
2230
  grep -v '^ *+' conftest.er1 >conftest.err
2231
  rm -f conftest.er1
2232
  cat conftest.err >&5
2233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234
  (exit $ac_status); } &&
2235
         { ac_try='test -z "$ac_c_werror_flag"
2236
                         || test ! -s conftest.err'
2237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238
  (eval $ac_try) 2>&5
2239
  ac_status=$?
2240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241
  (exit $ac_status); }; } &&
2242
         { ac_try='test -s conftest.$ac_objext'
2243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244
  (eval $ac_try) 2>&5
2245
  ac_status=$?
2246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247
  (exit $ac_status); }; }; then
2248
  ac_cv_prog_cc_g=yes
2249
else
2250
  echo "$as_me: failed program was:" >&5
2251
sed 's/^/| /' conftest.$ac_ext >&5
2252
 
2253
ac_cv_prog_cc_g=no
2254
fi
2255
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2256
fi
2257
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2258
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2259
if test "$ac_test_CFLAGS" = set; then
2260
  CFLAGS=$ac_save_CFLAGS
2261
elif test $ac_cv_prog_cc_g = yes; then
2262
  if test "$GCC" = yes; then
2263
    CFLAGS="-g -O2"
2264
  else
2265
    CFLAGS="-g"
2266
  fi
2267
else
2268
  if test "$GCC" = yes; then
2269
    CFLAGS="-O2"
2270
  else
2271
    CFLAGS=
2272
  fi
2273
fi
2274
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2275
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2276
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2277
  echo $ECHO_N "(cached) $ECHO_C" >&6
2278
else
2279
  ac_cv_prog_cc_stdc=no
2280
ac_save_CC=$CC
2281
cat >conftest.$ac_ext <<_ACEOF
2282
/* confdefs.h.  */
2283
_ACEOF
2284
cat confdefs.h >>conftest.$ac_ext
2285
cat >>conftest.$ac_ext <<_ACEOF
2286
/* end confdefs.h.  */
2287
#include 
2288
#include 
2289
#include 
2290
#include 
2291
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2292
struct buf { int x; };
2293
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2294
static char *e (p, i)
2295
     char **p;
2296
     int i;
2297
{
2298
  return p[i];
2299
}
2300
static char *f (char * (*g) (char **, int), char **p, ...)
2301
{
2302
  char *s;
2303
  va_list v;
2304
  va_start (v,p);
2305
  s = g (p, va_arg (v,int));
2306
  va_end (v);
2307
  return s;
2308
}
2309
 
2310
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2311
   function prototypes and stuff, but not '\xHH' hex character constants.
2312
   These don't provoke an error unfortunately, instead are silently treated
2313
   as 'x'.  The following induces an error, until -std1 is added to get
2314
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2315
   array size at least.  It's necessary to write '\x00'==0 to get something
2316
   that's true only with -std1.  */
2317
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2318
 
2319
int test (int i, double x);
2320
struct s1 {int (*f) (int a);};
2321
struct s2 {int (*f) (double a);};
2322
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2323
int argc;
2324
char **argv;
2325
int
2326
main ()
2327
{
2328
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2329
  ;
2330
  return 0;
2331
}
2332
_ACEOF
2333
# Don't try gcc -ansi; that turns off useful extensions and
2334
# breaks some systems' header files.
2335
# AIX                   -qlanglvl=ansi
2336
# Ultrix and OSF/1      -std1
2337
# HP-UX 10.20 and later -Ae
2338
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2339
# SVR4                  -Xc -D__EXTENSIONS__
2340
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2341
do
2342
  CC="$ac_save_CC $ac_arg"
2343
  rm -f conftest.$ac_objext
2344
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345
  (eval $ac_compile) 2>conftest.er1
2346
  ac_status=$?
2347
  grep -v '^ *+' conftest.er1 >conftest.err
2348
  rm -f conftest.er1
2349
  cat conftest.err >&5
2350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351
  (exit $ac_status); } &&
2352
         { ac_try='test -z "$ac_c_werror_flag"
2353
                         || test ! -s conftest.err'
2354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355
  (eval $ac_try) 2>&5
2356
  ac_status=$?
2357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358
  (exit $ac_status); }; } &&
2359
         { ac_try='test -s conftest.$ac_objext'
2360
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361
  (eval $ac_try) 2>&5
2362
  ac_status=$?
2363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364
  (exit $ac_status); }; }; then
2365
  ac_cv_prog_cc_stdc=$ac_arg
2366
break
2367
else
2368
  echo "$as_me: failed program was:" >&5
2369
sed 's/^/| /' conftest.$ac_ext >&5
2370
 
2371
fi
2372
rm -f conftest.err conftest.$ac_objext
2373
done
2374
rm -f conftest.$ac_ext conftest.$ac_objext
2375
CC=$ac_save_CC
2376
 
2377
fi
2378
 
2379
case "x$ac_cv_prog_cc_stdc" in
2380
  x|xno)
2381
    echo "$as_me:$LINENO: result: none needed" >&5
2382
echo "${ECHO_T}none needed" >&6 ;;
2383
  *)
2384
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2385
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2386
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2387
esac
2388
 
2389
# Some people use a C++ compiler to compile C.  Since we use `exit',
2390
# in C++ we need to declare it.  In case someone uses the same compiler
2391
# for both compiling C and C++ we need to have the C++ compiler decide
2392
# the declaration of exit, since it's the most demanding environment.
2393
cat >conftest.$ac_ext <<_ACEOF
2394
#ifndef __cplusplus
2395
  choke me
2396
#endif
2397
_ACEOF
2398
rm -f conftest.$ac_objext
2399
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400
  (eval $ac_compile) 2>conftest.er1
2401
  ac_status=$?
2402
  grep -v '^ *+' conftest.er1 >conftest.err
2403
  rm -f conftest.er1
2404
  cat conftest.err >&5
2405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406
  (exit $ac_status); } &&
2407
         { ac_try='test -z "$ac_c_werror_flag"
2408
                         || test ! -s conftest.err'
2409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410
  (eval $ac_try) 2>&5
2411
  ac_status=$?
2412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413
  (exit $ac_status); }; } &&
2414
         { ac_try='test -s conftest.$ac_objext'
2415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416
  (eval $ac_try) 2>&5
2417
  ac_status=$?
2418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419
  (exit $ac_status); }; }; then
2420
  for ac_declaration in \
2421
   '' \
2422
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2423
   'extern "C" void std::exit (int); using std::exit;' \
2424
   'extern "C" void exit (int) throw ();' \
2425
   'extern "C" void exit (int);' \
2426
   'void exit (int);'
2427
do
2428
  cat >conftest.$ac_ext <<_ACEOF
2429
/* confdefs.h.  */
2430
_ACEOF
2431
cat confdefs.h >>conftest.$ac_ext
2432
cat >>conftest.$ac_ext <<_ACEOF
2433
/* end confdefs.h.  */
2434
$ac_declaration
2435
#include 
2436
int
2437
main ()
2438
{
2439
exit (42);
2440
  ;
2441
  return 0;
2442
}
2443
_ACEOF
2444
rm -f conftest.$ac_objext
2445
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446
  (eval $ac_compile) 2>conftest.er1
2447
  ac_status=$?
2448
  grep -v '^ *+' conftest.er1 >conftest.err
2449
  rm -f conftest.er1
2450
  cat conftest.err >&5
2451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452
  (exit $ac_status); } &&
2453
         { ac_try='test -z "$ac_c_werror_flag"
2454
                         || test ! -s conftest.err'
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); }; } &&
2460
         { ac_try='test -s conftest.$ac_objext'
2461
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462
  (eval $ac_try) 2>&5
2463
  ac_status=$?
2464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465
  (exit $ac_status); }; }; then
2466
  :
2467
else
2468
  echo "$as_me: failed program was:" >&5
2469
sed 's/^/| /' conftest.$ac_ext >&5
2470
 
2471
continue
2472
fi
2473
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2474
  cat >conftest.$ac_ext <<_ACEOF
2475
/* confdefs.h.  */
2476
_ACEOF
2477
cat confdefs.h >>conftest.$ac_ext
2478
cat >>conftest.$ac_ext <<_ACEOF
2479
/* end confdefs.h.  */
2480
$ac_declaration
2481
int
2482
main ()
2483
{
2484
exit (42);
2485
  ;
2486
  return 0;
2487
}
2488
_ACEOF
2489
rm -f conftest.$ac_objext
2490
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491
  (eval $ac_compile) 2>conftest.er1
2492
  ac_status=$?
2493
  grep -v '^ *+' conftest.er1 >conftest.err
2494
  rm -f conftest.er1
2495
  cat conftest.err >&5
2496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497
  (exit $ac_status); } &&
2498
         { ac_try='test -z "$ac_c_werror_flag"
2499
                         || test ! -s conftest.err'
2500
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501
  (eval $ac_try) 2>&5
2502
  ac_status=$?
2503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504
  (exit $ac_status); }; } &&
2505
         { ac_try='test -s conftest.$ac_objext'
2506
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507
  (eval $ac_try) 2>&5
2508
  ac_status=$?
2509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510
  (exit $ac_status); }; }; then
2511
  break
2512
else
2513
  echo "$as_me: failed program was:" >&5
2514
sed 's/^/| /' conftest.$ac_ext >&5
2515
 
2516
fi
2517
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518
done
2519
rm -f conftest*
2520
if test -n "$ac_declaration"; then
2521
  echo '#ifdef __cplusplus' >>confdefs.h
2522
  echo $ac_declaration      >>confdefs.h
2523
  echo '#endif'             >>confdefs.h
2524
fi
2525
 
2526
else
2527
  echo "$as_me: failed program was:" >&5
2528
sed 's/^/| /' conftest.$ac_ext >&5
2529
 
2530
fi
2531
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532
ac_ext=c
2533
ac_cpp='$CPP $CPPFLAGS'
2534
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537
 
2538
 
2539
echo "$as_me:$LINENO: checking for library containing strerror" >&5
2540
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2541
if test "${ac_cv_search_strerror+set}" = set; then
2542
  echo $ECHO_N "(cached) $ECHO_C" >&6
2543
else
2544
  ac_func_search_save_LIBS=$LIBS
2545
ac_cv_search_strerror=no
2546
cat >conftest.$ac_ext <<_ACEOF
2547
/* confdefs.h.  */
2548
_ACEOF
2549
cat confdefs.h >>conftest.$ac_ext
2550
cat >>conftest.$ac_ext <<_ACEOF
2551
/* end confdefs.h.  */
2552
 
2553
/* Override any gcc2 internal prototype to avoid an error.  */
2554
#ifdef __cplusplus
2555
extern "C"
2556
#endif
2557
/* We use char because int might match the return type of a gcc2
2558
   builtin and then its argument prototype would still apply.  */
2559
char strerror ();
2560
int
2561
main ()
2562
{
2563
strerror ();
2564
  ;
2565
  return 0;
2566
}
2567
_ACEOF
2568
rm -f conftest.$ac_objext conftest$ac_exeext
2569
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2570
  (eval $ac_link) 2>conftest.er1
2571
  ac_status=$?
2572
  grep -v '^ *+' conftest.er1 >conftest.err
2573
  rm -f conftest.er1
2574
  cat conftest.err >&5
2575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576
  (exit $ac_status); } &&
2577
         { ac_try='test -z "$ac_c_werror_flag"
2578
                         || test ! -s conftest.err'
2579
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580
  (eval $ac_try) 2>&5
2581
  ac_status=$?
2582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583
  (exit $ac_status); }; } &&
2584
         { ac_try='test -s conftest$ac_exeext'
2585
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586
  (eval $ac_try) 2>&5
2587
  ac_status=$?
2588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589
  (exit $ac_status); }; }; then
2590
  ac_cv_search_strerror="none required"
2591
else
2592
  echo "$as_me: failed program was:" >&5
2593
sed 's/^/| /' conftest.$ac_ext >&5
2594
 
2595
fi
2596
rm -f conftest.err conftest.$ac_objext \
2597
      conftest$ac_exeext conftest.$ac_ext
2598
if test "$ac_cv_search_strerror" = no; then
2599
  for ac_lib in cposix; do
2600
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2601
    cat >conftest.$ac_ext <<_ACEOF
2602
/* confdefs.h.  */
2603
_ACEOF
2604
cat confdefs.h >>conftest.$ac_ext
2605
cat >>conftest.$ac_ext <<_ACEOF
2606
/* end confdefs.h.  */
2607
 
2608
/* Override any gcc2 internal prototype to avoid an error.  */
2609
#ifdef __cplusplus
2610
extern "C"
2611
#endif
2612
/* We use char because int might match the return type of a gcc2
2613
   builtin and then its argument prototype would still apply.  */
2614
char strerror ();
2615
int
2616
main ()
2617
{
2618
strerror ();
2619
  ;
2620
  return 0;
2621
}
2622
_ACEOF
2623
rm -f conftest.$ac_objext conftest$ac_exeext
2624
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2625
  (eval $ac_link) 2>conftest.er1
2626
  ac_status=$?
2627
  grep -v '^ *+' conftest.er1 >conftest.err
2628
  rm -f conftest.er1
2629
  cat conftest.err >&5
2630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631
  (exit $ac_status); } &&
2632
         { ac_try='test -z "$ac_c_werror_flag"
2633
                         || test ! -s conftest.err'
2634
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635
  (eval $ac_try) 2>&5
2636
  ac_status=$?
2637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638
  (exit $ac_status); }; } &&
2639
         { ac_try='test -s conftest$ac_exeext'
2640
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641
  (eval $ac_try) 2>&5
2642
  ac_status=$?
2643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644
  (exit $ac_status); }; }; then
2645
  ac_cv_search_strerror="-l$ac_lib"
2646
break
2647
else
2648
  echo "$as_me: failed program was:" >&5
2649
sed 's/^/| /' conftest.$ac_ext >&5
2650
 
2651
fi
2652
rm -f conftest.err conftest.$ac_objext \
2653
      conftest$ac_exeext conftest.$ac_ext
2654
  done
2655
fi
2656
LIBS=$ac_func_search_save_LIBS
2657
fi
2658
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2659
echo "${ECHO_T}$ac_cv_search_strerror" >&6
2660
if test "$ac_cv_search_strerror" != no; then
2661
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2662
 
2663
fi
2664
 
2665
 
2666
BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2667
am__api_version="1.9"
2668
# Find a good install program.  We prefer a C program (faster),
2669
# so one script is as good as another.  But avoid the broken or
2670
# incompatible versions:
2671
# SysV /etc/install, /usr/sbin/install
2672
# SunOS /usr/etc/install
2673
# IRIX /sbin/install
2674
# AIX /bin/install
2675
# AmigaOS /C/install, which installs bootblocks on floppy discs
2676
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2677
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2678
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2679
# OS/2's system install, which has a completely different semantic
2680
# ./install, which can be erroneously created by make from ./install.sh.
2681
# Reject install programs that cannot install multiple files.
2682
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2683
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2684
if test -z "$INSTALL"; then
2685
if test "${ac_cv_path_install+set}" = set; then
2686
  echo $ECHO_N "(cached) $ECHO_C" >&6
2687
else
2688
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689
for as_dir in $PATH
2690
do
2691
  IFS=$as_save_IFS
2692
  test -z "$as_dir" && as_dir=.
2693
  # Account for people who put trailing slashes in PATH elements.
2694
case $as_dir/ in
2695
  ./ | .// | /cC/* | \
2696
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2697
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2698
  /usr/ucb/* ) ;;
2699
  *)
2700
    # OSF1 and SCO ODT 3.0 have their own names for install.
2701
    # Don't use installbsd from OSF since it installs stuff as root
2702
    # by default.
2703
    for ac_prog in ginstall scoinst install; do
2704
      for ac_exec_ext in '' $ac_executable_extensions; do
2705
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2706
          if test $ac_prog = install &&
2707
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2708
            # AIX install.  It has an incompatible calling convention.
2709
            :
2710
          elif test $ac_prog = install &&
2711
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712
            # program-specific install script used by HP pwplus--don't use.
2713
            :
2714
          else
2715
            rm -rf conftest.one conftest.two conftest.dir
2716
            echo one > conftest.one
2717
            echo two > conftest.two
2718
            mkdir conftest.dir
2719
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2720
              test -s conftest.one && test -s conftest.two &&
2721
              test -s conftest.dir/conftest.one &&
2722
              test -s conftest.dir/conftest.two
2723
            then
2724
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2725
              break 3
2726
            fi
2727
          fi
2728
        fi
2729
      done
2730
    done
2731
    ;;
2732
esac
2733
done
2734
 
2735
rm -rf conftest.one conftest.two conftest.dir
2736
 
2737
fi
2738
  if test "${ac_cv_path_install+set}" = set; then
2739
    INSTALL=$ac_cv_path_install
2740
  else
2741
    # As a last resort, use the slow shell script.  Don't cache a
2742
    # value for INSTALL within a source directory, because that will
2743
    # break other packages using the cache if that directory is
2744
    # removed, or if the value is a relative name.
2745
    INSTALL=$ac_install_sh
2746
  fi
2747
fi
2748
echo "$as_me:$LINENO: result: $INSTALL" >&5
2749
echo "${ECHO_T}$INSTALL" >&6
2750
 
2751
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2752
# It thinks the first close brace ends the variable substitution.
2753
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2754
 
2755
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2756
 
2757
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2758
 
2759
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2760
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2761
# Just in case
2762
sleep 1
2763
echo timestamp > conftest.file
2764
# Do `set' in a subshell so we don't clobber the current shell's
2765
# arguments.  Must try -L first in case configure is actually a
2766
# symlink; some systems play weird games with the mod time of symlinks
2767
# (eg FreeBSD returns the mod time of the symlink's containing
2768
# directory).
2769
if (
2770
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2771
   if test "$*" = "X"; then
2772
      # -L didn't work.
2773
      set X `ls -t $srcdir/configure conftest.file`
2774
   fi
2775
   rm -f conftest.file
2776
   if test "$*" != "X $srcdir/configure conftest.file" \
2777
      && test "$*" != "X conftest.file $srcdir/configure"; then
2778
 
2779
      # If neither matched, then we have a broken ls.  This can happen
2780
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2781
      # broken ls alias from the environment.  This has actually
2782
      # happened.  Such a system could not be considered "sane".
2783
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2784
alias in your environment" >&5
2785
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2786
alias in your environment" >&2;}
2787
   { (exit 1); exit 1; }; }
2788
   fi
2789
 
2790
   test "$2" = conftest.file
2791
   )
2792
then
2793
   # Ok.
2794
   :
2795
else
2796
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2797
Check your system clock" >&5
2798
echo "$as_me: error: newly created file is older than distributed files!
2799
Check your system clock" >&2;}
2800
   { (exit 1); exit 1; }; }
2801
fi
2802
echo "$as_me:$LINENO: result: yes" >&5
2803
echo "${ECHO_T}yes" >&6
2804
test "$program_prefix" != NONE &&
2805
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2806
# Use a double $ so make ignores it.
2807
test "$program_suffix" != NONE &&
2808
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2809
# Double any \ or $.  echo might interpret backslashes.
2810
# By default was `s,x,x', remove it if useless.
2811
cat <<\_ACEOF >conftest.sed
2812
s/[\\$]/&&/g;s/;s,x,x,$//
2813
_ACEOF
2814
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2815
rm conftest.sed
2816
 
2817
# expand $ac_aux_dir to an absolute path
2818
am_aux_dir=`cd $ac_aux_dir && pwd`
2819
 
2820
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2821
# Use eval to expand $SHELL
2822
if eval "$MISSING --run true"; then
2823
  am_missing_run="$MISSING --run "
2824
else
2825
  am_missing_run=
2826
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2827
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2828
fi
2829
 
2830
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2831
  # We used to keeping the `.' as first argument, in order to
2832
  # allow $(mkdir_p) to be used without argument.  As in
2833
  #   $(mkdir_p) $(somedir)
2834
  # where $(somedir) is conditionally defined.  However this is wrong
2835
  # for two reasons:
2836
  #  1. if the package is installed by a user who cannot write `.'
2837
  #     make install will fail,
2838
  #  2. the above comment should most certainly read
2839
  #     $(mkdir_p) $(DESTDIR)$(somedir)
2840
  #     so it does not work when $(somedir) is undefined and
2841
  #     $(DESTDIR) is not.
2842
  #  To support the latter case, we have to write
2843
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2844
  #  so the `.' trick is pointless.
2845
  mkdir_p='mkdir -p --'
2846
else
2847
  # On NextStep and OpenStep, the `mkdir' command does not
2848
  # recognize any option.  It will interpret all options as
2849
  # directories to create, and then abort because `.' already
2850
  # exists.
2851
  for d in ./-p ./--version;
2852
  do
2853
    test -d $d && rmdir $d
2854
  done
2855
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2856
  if test -f "$ac_aux_dir/mkinstalldirs"; then
2857
    mkdir_p='$(mkinstalldirs)'
2858
  else
2859
    mkdir_p='$(install_sh) -d'
2860
  fi
2861
fi
2862
 
2863
for ac_prog in gawk mawk nawk awk
2864
do
2865
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2866
set dummy $ac_prog; ac_word=$2
2867
echo "$as_me:$LINENO: checking for $ac_word" >&5
2868
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869
if test "${ac_cv_prog_AWK+set}" = set; then
2870
  echo $ECHO_N "(cached) $ECHO_C" >&6
2871
else
2872
  if test -n "$AWK"; then
2873
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2874
else
2875
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876
for as_dir in $PATH
2877
do
2878
  IFS=$as_save_IFS
2879
  test -z "$as_dir" && as_dir=.
2880
  for ac_exec_ext in '' $ac_executable_extensions; do
2881
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882
    ac_cv_prog_AWK="$ac_prog"
2883
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884
    break 2
2885
  fi
2886
done
2887
done
2888
 
2889
fi
2890
fi
2891
AWK=$ac_cv_prog_AWK
2892
if test -n "$AWK"; then
2893
  echo "$as_me:$LINENO: result: $AWK" >&5
2894
echo "${ECHO_T}$AWK" >&6
2895
else
2896
  echo "$as_me:$LINENO: result: no" >&5
2897
echo "${ECHO_T}no" >&6
2898
fi
2899
 
2900
  test -n "$AWK" && break
2901
done
2902
 
2903
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2904
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2905
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2906
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2907
  echo $ECHO_N "(cached) $ECHO_C" >&6
2908
else
2909
  cat >conftest.make <<\_ACEOF
2910
all:
2911
        @echo 'ac_maketemp="$(MAKE)"'
2912
_ACEOF
2913
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2914
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2915
if test -n "$ac_maketemp"; then
2916
  eval ac_cv_prog_make_${ac_make}_set=yes
2917
else
2918
  eval ac_cv_prog_make_${ac_make}_set=no
2919
fi
2920
rm -f conftest.make
2921
fi
2922
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2923
  echo "$as_me:$LINENO: result: yes" >&5
2924
echo "${ECHO_T}yes" >&6
2925
  SET_MAKE=
2926
else
2927
  echo "$as_me:$LINENO: result: no" >&5
2928
echo "${ECHO_T}no" >&6
2929
  SET_MAKE="MAKE=${MAKE-make}"
2930
fi
2931
 
2932
rm -rf .tst 2>/dev/null
2933
mkdir .tst 2>/dev/null
2934
if test -d .tst; then
2935
  am__leading_dot=.
2936
else
2937
  am__leading_dot=_
2938
fi
2939
rmdir .tst 2>/dev/null
2940
 
2941
DEPDIR="${am__leading_dot}deps"
2942
 
2943
          ac_config_commands="$ac_config_commands depfiles"
2944
 
2945
 
2946
am_make=${MAKE-make}
2947
cat > confinc << 'END'
2948
am__doit:
2949
        @echo done
2950
.PHONY: am__doit
2951
END
2952
# If we don't find an include directive, just comment out the code.
2953
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2954
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2955
am__include="#"
2956
am__quote=
2957
_am_result=none
2958
# First try GNU make style include.
2959
echo "include confinc" > confmf
2960
# We grep out `Entering directory' and `Leaving directory'
2961
# messages which can occur if `w' ends up in MAKEFLAGS.
2962
# In particular we don't look at `^make:' because GNU make might
2963
# be invoked under some other name (usually "gmake"), in which
2964
# case it prints its new name instead of `make'.
2965
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2966
   am__include=include
2967
   am__quote=
2968
   _am_result=GNU
2969
fi
2970
# Now try BSD make style include.
2971
if test "$am__include" = "#"; then
2972
   echo '.include "confinc"' > confmf
2973
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2974
      am__include=.include
2975
      am__quote="\""
2976
      _am_result=BSD
2977
   fi
2978
fi
2979
 
2980
 
2981
echo "$as_me:$LINENO: result: $_am_result" >&5
2982
echo "${ECHO_T}$_am_result" >&6
2983
rm -f confinc confmf
2984
 
2985
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2986
if test "${enable_dependency_tracking+set}" = set; then
2987
  enableval="$enable_dependency_tracking"
2988
 
2989
fi;
2990
if test "x$enable_dependency_tracking" != xno; then
2991
  am_depcomp="$ac_aux_dir/depcomp"
2992
  AMDEPBACKSLASH='\'
2993
fi
2994
 
2995
 
2996
if test "x$enable_dependency_tracking" != xno; then
2997
  AMDEP_TRUE=
2998
  AMDEP_FALSE='#'
2999
else
3000
  AMDEP_TRUE='#'
3001
  AMDEP_FALSE=
3002
fi
3003
 
3004
 
3005
 
3006
# test to see if srcdir already configured
3007
if test "`cd $srcdir && pwd`" != "`pwd`" &&
3008
   test -f $srcdir/config.status; then
3009
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3010
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3011
   { (exit 1); exit 1; }; }
3012
fi
3013
 
3014
# test whether we have cygpath
3015
if test -z "$CYGPATH_W"; then
3016
  if (cygpath --version) >/dev/null 2>/dev/null; then
3017
    CYGPATH_W='cygpath -w'
3018
  else
3019
    CYGPATH_W=echo
3020
  fi
3021
fi
3022
 
3023
 
3024
# Define the identity of the package.
3025
 PACKAGE=gas
3026
 VERSION=${BFD_VERSION}
3027
 
3028
 
3029
cat >>confdefs.h <<_ACEOF
3030
#define PACKAGE "$PACKAGE"
3031
_ACEOF
3032
 
3033
 
3034
cat >>confdefs.h <<_ACEOF
3035
#define VERSION "$VERSION"
3036
_ACEOF
3037
 
3038
# Some tools Automake needs.
3039
 
3040
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3041
 
3042
 
3043
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3044
 
3045
 
3046
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3047
 
3048
 
3049
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3050
 
3051
 
3052
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3053
 
3054
install_sh=${install_sh-"$am_aux_dir/install-sh"}
3055
 
3056
# Installed binaries are usually stripped using `strip' when the user
3057
# run `make install-strip'.  However `strip' might not be the right
3058
# tool to use in cross-compilation environments, therefore Automake
3059
# will honor the `STRIP' environment variable to overrule this program.
3060
if test "$cross_compiling" != no; then
3061
  if test -n "$ac_tool_prefix"; then
3062
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3063
set dummy ${ac_tool_prefix}strip; ac_word=$2
3064
echo "$as_me:$LINENO: checking for $ac_word" >&5
3065
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3066
if test "${ac_cv_prog_STRIP+set}" = set; then
3067
  echo $ECHO_N "(cached) $ECHO_C" >&6
3068
else
3069
  if test -n "$STRIP"; then
3070
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3071
else
3072
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073
for as_dir in $PATH
3074
do
3075
  IFS=$as_save_IFS
3076
  test -z "$as_dir" && as_dir=.
3077
  for ac_exec_ext in '' $ac_executable_extensions; do
3078
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3080
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081
    break 2
3082
  fi
3083
done
3084
done
3085
 
3086
fi
3087
fi
3088
STRIP=$ac_cv_prog_STRIP
3089
if test -n "$STRIP"; then
3090
  echo "$as_me:$LINENO: result: $STRIP" >&5
3091
echo "${ECHO_T}$STRIP" >&6
3092
else
3093
  echo "$as_me:$LINENO: result: no" >&5
3094
echo "${ECHO_T}no" >&6
3095
fi
3096
 
3097
fi
3098
if test -z "$ac_cv_prog_STRIP"; then
3099
  ac_ct_STRIP=$STRIP
3100
  # Extract the first word of "strip", so it can be a program name with args.
3101
set dummy strip; ac_word=$2
3102
echo "$as_me:$LINENO: checking for $ac_word" >&5
3103
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3105
  echo $ECHO_N "(cached) $ECHO_C" >&6
3106
else
3107
  if test -n "$ac_ct_STRIP"; then
3108
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3109
else
3110
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111
for as_dir in $PATH
3112
do
3113
  IFS=$as_save_IFS
3114
  test -z "$as_dir" && as_dir=.
3115
  for ac_exec_ext in '' $ac_executable_extensions; do
3116
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117
    ac_cv_prog_ac_ct_STRIP="strip"
3118
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119
    break 2
3120
  fi
3121
done
3122
done
3123
 
3124
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3125
fi
3126
fi
3127
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3128
if test -n "$ac_ct_STRIP"; then
3129
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3130
echo "${ECHO_T}$ac_ct_STRIP" >&6
3131
else
3132
  echo "$as_me:$LINENO: result: no" >&5
3133
echo "${ECHO_T}no" >&6
3134
fi
3135
 
3136
  STRIP=$ac_ct_STRIP
3137
else
3138
  STRIP="$ac_cv_prog_STRIP"
3139
fi
3140
 
3141
fi
3142
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3143
 
3144
# We need awk for the "check" target.  The system "awk" is bad on
3145
# some platforms.
3146
# Always define AMTAR for backward compatibility.
3147
 
3148
AMTAR=${AMTAR-"${am_missing_run}tar"}
3149
 
3150
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3151
 
3152
 
3153
 
3154
 
3155
depcc="$CC"   am_compiler_list=
3156
 
3157
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3158
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3159
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3160
  echo $ECHO_N "(cached) $ECHO_C" >&6
3161
else
3162
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3163
  # We make a subdir and do the tests there.  Otherwise we can end up
3164
  # making bogus files that we don't know about and never remove.  For
3165
  # instance it was reported that on HP-UX the gcc test will end up
3166
  # making a dummy file named `D' -- because `-MD' means `put the output
3167
  # in D'.
3168
  mkdir conftest.dir
3169
  # Copy depcomp to subdir because otherwise we won't find it if we're
3170
  # using a relative directory.
3171
  cp "$am_depcomp" conftest.dir
3172
  cd conftest.dir
3173
  # We will build objects and dependencies in a subdirectory because
3174
  # it helps to detect inapplicable dependency modes.  For instance
3175
  # both Tru64's cc and ICC support -MD to output dependencies as a
3176
  # side effect of compilation, but ICC will put the dependencies in
3177
  # the current directory while Tru64 will put them in the object
3178
  # directory.
3179
  mkdir sub
3180
 
3181
  am_cv_CC_dependencies_compiler_type=none
3182
  if test "$am_compiler_list" = ""; then
3183
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3184
  fi
3185
  for depmode in $am_compiler_list; do
3186
    # Setup a source with many dependencies, because some compilers
3187
    # like to wrap large dependency lists on column 80 (with \), and
3188
    # we should not choose a depcomp mode which is confused by this.
3189
    #
3190
    # We need to recreate these files for each test, as the compiler may
3191
    # overwrite some of them when testing with obscure command lines.
3192
    # This happens at least with the AIX C compiler.
3193
    : > sub/conftest.c
3194
    for i in 1 2 3 4 5 6; do
3195
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3196
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3197
      # Solaris 8's {/usr,}/bin/sh.
3198
      touch sub/conftst$i.h
3199
    done
3200
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3201
 
3202
    case $depmode in
3203
    nosideeffect)
3204
      # after this tag, mechanisms are not by side-effect, so they'll
3205
      # only be used when explicitly requested
3206
      if test "x$enable_dependency_tracking" = xyes; then
3207
        continue
3208
      else
3209
        break
3210
      fi
3211
      ;;
3212
    none) break ;;
3213
    esac
3214
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3215
    # mode.  It turns out that the SunPro C++ compiler does not properly
3216
    # handle `-M -o', and we need to detect this.
3217
    if depmode=$depmode \
3218
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3219
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3220
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3221
         >/dev/null 2>conftest.err &&
3222
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3223
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3224
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3225
      # icc doesn't choke on unknown options, it will just issue warnings
3226
      # or remarks (even with -Werror).  So we grep stderr for any message
3227
      # that says an option was ignored or not supported.
3228
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3229
      #   icc: Command line warning: ignoring option '-M'; no argument required
3230
      # The diagnosis changed in icc 8.0:
3231
      #   icc: Command line remark: option '-MP' not supported
3232
      if (grep 'ignoring option' conftest.err ||
3233
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3234
        am_cv_CC_dependencies_compiler_type=$depmode
3235
        break
3236
      fi
3237
    fi
3238
  done
3239
 
3240
  cd ..
3241
  rm -rf conftest.dir
3242
else
3243
  am_cv_CC_dependencies_compiler_type=none
3244
fi
3245
 
3246
fi
3247
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3248
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3249
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3250
 
3251
 
3252
 
3253
if
3254
  test "x$enable_dependency_tracking" != xno \
3255
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3256
  am__fastdepCC_TRUE=
3257
  am__fastdepCC_FALSE='#'
3258
else
3259
  am__fastdepCC_TRUE='#'
3260
  am__fastdepCC_FALSE=
3261
fi
3262
 
3263
 
3264
 
3265
 
3266
ac_ext=c
3267
ac_cpp='$CPP $CPPFLAGS'
3268
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271
if test -n "$ac_tool_prefix"; then
3272
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3273
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3274
echo "$as_me:$LINENO: checking for $ac_word" >&5
3275
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3276
if test "${ac_cv_prog_CC+set}" = set; then
3277
  echo $ECHO_N "(cached) $ECHO_C" >&6
3278
else
3279
  if test -n "$CC"; then
3280
  ac_cv_prog_CC="$CC" # Let the user override the test.
3281
else
3282
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283
for as_dir in $PATH
3284
do
3285
  IFS=$as_save_IFS
3286
  test -z "$as_dir" && as_dir=.
3287
  for ac_exec_ext in '' $ac_executable_extensions; do
3288
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3290
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291
    break 2
3292
  fi
3293
done
3294
done
3295
 
3296
fi
3297
fi
3298
CC=$ac_cv_prog_CC
3299
if test -n "$CC"; then
3300
  echo "$as_me:$LINENO: result: $CC" >&5
3301
echo "${ECHO_T}$CC" >&6
3302
else
3303
  echo "$as_me:$LINENO: result: no" >&5
3304
echo "${ECHO_T}no" >&6
3305
fi
3306
 
3307
fi
3308
if test -z "$ac_cv_prog_CC"; then
3309
  ac_ct_CC=$CC
3310
  # Extract the first word of "gcc", so it can be a program name with args.
3311
set dummy gcc; ac_word=$2
3312
echo "$as_me:$LINENO: checking for $ac_word" >&5
3313
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3314
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3315
  echo $ECHO_N "(cached) $ECHO_C" >&6
3316
else
3317
  if test -n "$ac_ct_CC"; then
3318
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319
else
3320
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321
for as_dir in $PATH
3322
do
3323
  IFS=$as_save_IFS
3324
  test -z "$as_dir" && as_dir=.
3325
  for ac_exec_ext in '' $ac_executable_extensions; do
3326
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327
    ac_cv_prog_ac_ct_CC="gcc"
3328
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329
    break 2
3330
  fi
3331
done
3332
done
3333
 
3334
fi
3335
fi
3336
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337
if test -n "$ac_ct_CC"; then
3338
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3339
echo "${ECHO_T}$ac_ct_CC" >&6
3340
else
3341
  echo "$as_me:$LINENO: result: no" >&5
3342
echo "${ECHO_T}no" >&6
3343
fi
3344
 
3345
  CC=$ac_ct_CC
3346
else
3347
  CC="$ac_cv_prog_CC"
3348
fi
3349
 
3350
if test -z "$CC"; then
3351
  if test -n "$ac_tool_prefix"; then
3352
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3353
set dummy ${ac_tool_prefix}cc; ac_word=$2
3354
echo "$as_me:$LINENO: checking for $ac_word" >&5
3355
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356
if test "${ac_cv_prog_CC+set}" = set; then
3357
  echo $ECHO_N "(cached) $ECHO_C" >&6
3358
else
3359
  if test -n "$CC"; then
3360
  ac_cv_prog_CC="$CC" # Let the user override the test.
3361
else
3362
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363
for as_dir in $PATH
3364
do
3365
  IFS=$as_save_IFS
3366
  test -z "$as_dir" && as_dir=.
3367
  for ac_exec_ext in '' $ac_executable_extensions; do
3368
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3370
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371
    break 2
3372
  fi
3373
done
3374
done
3375
 
3376
fi
3377
fi
3378
CC=$ac_cv_prog_CC
3379
if test -n "$CC"; then
3380
  echo "$as_me:$LINENO: result: $CC" >&5
3381
echo "${ECHO_T}$CC" >&6
3382
else
3383
  echo "$as_me:$LINENO: result: no" >&5
3384
echo "${ECHO_T}no" >&6
3385
fi
3386
 
3387
fi
3388
if test -z "$ac_cv_prog_CC"; then
3389
  ac_ct_CC=$CC
3390
  # Extract the first word of "cc", so it can be a program name with args.
3391
set dummy cc; ac_word=$2
3392
echo "$as_me:$LINENO: checking for $ac_word" >&5
3393
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3395
  echo $ECHO_N "(cached) $ECHO_C" >&6
3396
else
3397
  if test -n "$ac_ct_CC"; then
3398
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399
else
3400
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401
for as_dir in $PATH
3402
do
3403
  IFS=$as_save_IFS
3404
  test -z "$as_dir" && as_dir=.
3405
  for ac_exec_ext in '' $ac_executable_extensions; do
3406
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407
    ac_cv_prog_ac_ct_CC="cc"
3408
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409
    break 2
3410
  fi
3411
done
3412
done
3413
 
3414
fi
3415
fi
3416
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3417
if test -n "$ac_ct_CC"; then
3418
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3419
echo "${ECHO_T}$ac_ct_CC" >&6
3420
else
3421
  echo "$as_me:$LINENO: result: no" >&5
3422
echo "${ECHO_T}no" >&6
3423
fi
3424
 
3425
  CC=$ac_ct_CC
3426
else
3427
  CC="$ac_cv_prog_CC"
3428
fi
3429
 
3430
fi
3431
if test -z "$CC"; then
3432
  # Extract the first word of "cc", so it can be a program name with args.
3433
set dummy cc; ac_word=$2
3434
echo "$as_me:$LINENO: checking for $ac_word" >&5
3435
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3436
if test "${ac_cv_prog_CC+set}" = set; then
3437
  echo $ECHO_N "(cached) $ECHO_C" >&6
3438
else
3439
  if test -n "$CC"; then
3440
  ac_cv_prog_CC="$CC" # Let the user override the test.
3441
else
3442
  ac_prog_rejected=no
3443
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444
for as_dir in $PATH
3445
do
3446
  IFS=$as_save_IFS
3447
  test -z "$as_dir" && as_dir=.
3448
  for ac_exec_ext in '' $ac_executable_extensions; do
3449
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3451
       ac_prog_rejected=yes
3452
       continue
3453
     fi
3454
    ac_cv_prog_CC="cc"
3455
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456
    break 2
3457
  fi
3458
done
3459
done
3460
 
3461
if test $ac_prog_rejected = yes; then
3462
  # We found a bogon in the path, so make sure we never use it.
3463
  set dummy $ac_cv_prog_CC
3464
  shift
3465
  if test $# != 0; then
3466
    # We chose a different compiler from the bogus one.
3467
    # However, it has the same basename, so the bogon will be chosen
3468
    # first if we set CC to just the basename; use the full file name.
3469
    shift
3470
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3471
  fi
3472
fi
3473
fi
3474
fi
3475
CC=$ac_cv_prog_CC
3476
if test -n "$CC"; then
3477
  echo "$as_me:$LINENO: result: $CC" >&5
3478
echo "${ECHO_T}$CC" >&6
3479
else
3480
  echo "$as_me:$LINENO: result: no" >&5
3481
echo "${ECHO_T}no" >&6
3482
fi
3483
 
3484
fi
3485
if test -z "$CC"; then
3486
  if test -n "$ac_tool_prefix"; then
3487
  for ac_prog in cl
3488
  do
3489
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3490
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3491
echo "$as_me:$LINENO: checking for $ac_word" >&5
3492
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3493
if test "${ac_cv_prog_CC+set}" = set; then
3494
  echo $ECHO_N "(cached) $ECHO_C" >&6
3495
else
3496
  if test -n "$CC"; then
3497
  ac_cv_prog_CC="$CC" # Let the user override the test.
3498
else
3499
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500
for as_dir in $PATH
3501
do
3502
  IFS=$as_save_IFS
3503
  test -z "$as_dir" && as_dir=.
3504
  for ac_exec_ext in '' $ac_executable_extensions; do
3505
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3507
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3508
    break 2
3509
  fi
3510
done
3511
done
3512
 
3513
fi
3514
fi
3515
CC=$ac_cv_prog_CC
3516
if test -n "$CC"; then
3517
  echo "$as_me:$LINENO: result: $CC" >&5
3518
echo "${ECHO_T}$CC" >&6
3519
else
3520
  echo "$as_me:$LINENO: result: no" >&5
3521
echo "${ECHO_T}no" >&6
3522
fi
3523
 
3524
    test -n "$CC" && break
3525
  done
3526
fi
3527
if test -z "$CC"; then
3528
  ac_ct_CC=$CC
3529
  for ac_prog in cl
3530
do
3531
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3532
set dummy $ac_prog; ac_word=$2
3533
echo "$as_me:$LINENO: checking for $ac_word" >&5
3534
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3535
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3536
  echo $ECHO_N "(cached) $ECHO_C" >&6
3537
else
3538
  if test -n "$ac_ct_CC"; then
3539
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540
else
3541
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542
for as_dir in $PATH
3543
do
3544
  IFS=$as_save_IFS
3545
  test -z "$as_dir" && as_dir=.
3546
  for ac_exec_ext in '' $ac_executable_extensions; do
3547
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548
    ac_cv_prog_ac_ct_CC="$ac_prog"
3549
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550
    break 2
3551
  fi
3552
done
3553
done
3554
 
3555
fi
3556
fi
3557
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3558
if test -n "$ac_ct_CC"; then
3559
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3560
echo "${ECHO_T}$ac_ct_CC" >&6
3561
else
3562
  echo "$as_me:$LINENO: result: no" >&5
3563
echo "${ECHO_T}no" >&6
3564
fi
3565
 
3566
  test -n "$ac_ct_CC" && break
3567
done
3568
 
3569
  CC=$ac_ct_CC
3570
fi
3571
 
3572
fi
3573
 
3574
 
3575
test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3576
echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577
{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3578
See \`config.log' for more details." >&5
3579
echo "$as_me: error: no acceptable C compiler found in \$PATH
3580
See \`config.log' for more details." >&2;}
3581
   { (exit 1); exit 1; }; }; }
3582
 
3583
# Provide some information about the compiler.
3584
echo "$as_me:$LINENO:" \
3585
     "checking for C compiler version" >&5
3586
ac_compiler=`set X $ac_compile; echo $2`
3587
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3588
  (eval $ac_compiler --version &5) 2>&5
3589
  ac_status=$?
3590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591
  (exit $ac_status); }
3592
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3593
  (eval $ac_compiler -v &5) 2>&5
3594
  ac_status=$?
3595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596
  (exit $ac_status); }
3597
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3598
  (eval $ac_compiler -V &5) 2>&5
3599
  ac_status=$?
3600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601
  (exit $ac_status); }
3602
 
3603
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3604
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3605
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3606
  echo $ECHO_N "(cached) $ECHO_C" >&6
3607
else
3608
  cat >conftest.$ac_ext <<_ACEOF
3609
/* confdefs.h.  */
3610
_ACEOF
3611
cat confdefs.h >>conftest.$ac_ext
3612
cat >>conftest.$ac_ext <<_ACEOF
3613
/* end confdefs.h.  */
3614
 
3615
int
3616
main ()
3617
{
3618
#ifndef __GNUC__
3619
       choke me
3620
#endif
3621
 
3622
  ;
3623
  return 0;
3624
}
3625
_ACEOF
3626
rm -f conftest.$ac_objext
3627
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3628
  (eval $ac_compile) 2>conftest.er1
3629
  ac_status=$?
3630
  grep -v '^ *+' conftest.er1 >conftest.err
3631
  rm -f conftest.er1
3632
  cat conftest.err >&5
3633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634
  (exit $ac_status); } &&
3635
         { ac_try='test -z "$ac_c_werror_flag"
3636
                         || test ! -s conftest.err'
3637
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638
  (eval $ac_try) 2>&5
3639
  ac_status=$?
3640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641
  (exit $ac_status); }; } &&
3642
         { ac_try='test -s conftest.$ac_objext'
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
  ac_compiler_gnu=yes
3649
else
3650
  echo "$as_me: failed program was:" >&5
3651
sed 's/^/| /' conftest.$ac_ext >&5
3652
 
3653
ac_compiler_gnu=no
3654
fi
3655
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3656
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3657
 
3658
fi
3659
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3660
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3661
GCC=`test $ac_compiler_gnu = yes && echo yes`
3662
ac_test_CFLAGS=${CFLAGS+set}
3663
ac_save_CFLAGS=$CFLAGS
3664
CFLAGS="-g"
3665
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3666
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3667
if test "${ac_cv_prog_cc_g+set}" = set; then
3668
  echo $ECHO_N "(cached) $ECHO_C" >&6
3669
else
3670
  cat >conftest.$ac_ext <<_ACEOF
3671
/* confdefs.h.  */
3672
_ACEOF
3673
cat confdefs.h >>conftest.$ac_ext
3674
cat >>conftest.$ac_ext <<_ACEOF
3675
/* end confdefs.h.  */
3676
 
3677
int
3678
main ()
3679
{
3680
 
3681
  ;
3682
  return 0;
3683
}
3684
_ACEOF
3685
rm -f conftest.$ac_objext
3686
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3687
  (eval $ac_compile) 2>conftest.er1
3688
  ac_status=$?
3689
  grep -v '^ *+' conftest.er1 >conftest.err
3690
  rm -f conftest.er1
3691
  cat conftest.err >&5
3692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693
  (exit $ac_status); } &&
3694
         { ac_try='test -z "$ac_c_werror_flag"
3695
                         || test ! -s conftest.err'
3696
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697
  (eval $ac_try) 2>&5
3698
  ac_status=$?
3699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700
  (exit $ac_status); }; } &&
3701
         { ac_try='test -s conftest.$ac_objext'
3702
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703
  (eval $ac_try) 2>&5
3704
  ac_status=$?
3705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706
  (exit $ac_status); }; }; then
3707
  ac_cv_prog_cc_g=yes
3708
else
3709
  echo "$as_me: failed program was:" >&5
3710
sed 's/^/| /' conftest.$ac_ext >&5
3711
 
3712
ac_cv_prog_cc_g=no
3713
fi
3714
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3715
fi
3716
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3717
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3718
if test "$ac_test_CFLAGS" = set; then
3719
  CFLAGS=$ac_save_CFLAGS
3720
elif test $ac_cv_prog_cc_g = yes; then
3721
  if test "$GCC" = yes; then
3722
    CFLAGS="-g -O2"
3723
  else
3724
    CFLAGS="-g"
3725
  fi
3726
else
3727
  if test "$GCC" = yes; then
3728
    CFLAGS="-O2"
3729
  else
3730
    CFLAGS=
3731
  fi
3732
fi
3733
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3734
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3735
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3736
  echo $ECHO_N "(cached) $ECHO_C" >&6
3737
else
3738
  ac_cv_prog_cc_stdc=no
3739
ac_save_CC=$CC
3740
cat >conftest.$ac_ext <<_ACEOF
3741
/* confdefs.h.  */
3742
_ACEOF
3743
cat confdefs.h >>conftest.$ac_ext
3744
cat >>conftest.$ac_ext <<_ACEOF
3745
/* end confdefs.h.  */
3746
#include 
3747
#include 
3748
#include 
3749
#include 
3750
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3751
struct buf { int x; };
3752
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3753
static char *e (p, i)
3754
     char **p;
3755
     int i;
3756
{
3757
  return p[i];
3758
}
3759
static char *f (char * (*g) (char **, int), char **p, ...)
3760
{
3761
  char *s;
3762
  va_list v;
3763
  va_start (v,p);
3764
  s = g (p, va_arg (v,int));
3765
  va_end (v);
3766
  return s;
3767
}
3768
 
3769
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3770
   function prototypes and stuff, but not '\xHH' hex character constants.
3771
   These don't provoke an error unfortunately, instead are silently treated
3772
   as 'x'.  The following induces an error, until -std1 is added to get
3773
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3774
   array size at least.  It's necessary to write '\x00'==0 to get something
3775
   that's true only with -std1.  */
3776
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3777
 
3778
int test (int i, double x);
3779
struct s1 {int (*f) (int a);};
3780
struct s2 {int (*f) (double a);};
3781
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3782
int argc;
3783
char **argv;
3784
int
3785
main ()
3786
{
3787
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3788
  ;
3789
  return 0;
3790
}
3791
_ACEOF
3792
# Don't try gcc -ansi; that turns off useful extensions and
3793
# breaks some systems' header files.
3794
# AIX                   -qlanglvl=ansi
3795
# Ultrix and OSF/1      -std1
3796
# HP-UX 10.20 and later -Ae
3797
# HP-UX older versions  -Aa -D_HPUX_SOURCE
3798
# SVR4                  -Xc -D__EXTENSIONS__
3799
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3800
do
3801
  CC="$ac_save_CC $ac_arg"
3802
  rm -f conftest.$ac_objext
3803
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804
  (eval $ac_compile) 2>conftest.er1
3805
  ac_status=$?
3806
  grep -v '^ *+' conftest.er1 >conftest.err
3807
  rm -f conftest.er1
3808
  cat conftest.err >&5
3809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810
  (exit $ac_status); } &&
3811
         { ac_try='test -z "$ac_c_werror_flag"
3812
                         || test ! -s conftest.err'
3813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814
  (eval $ac_try) 2>&5
3815
  ac_status=$?
3816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817
  (exit $ac_status); }; } &&
3818
         { ac_try='test -s conftest.$ac_objext'
3819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820
  (eval $ac_try) 2>&5
3821
  ac_status=$?
3822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823
  (exit $ac_status); }; }; then
3824
  ac_cv_prog_cc_stdc=$ac_arg
3825
break
3826
else
3827
  echo "$as_me: failed program was:" >&5
3828
sed 's/^/| /' conftest.$ac_ext >&5
3829
 
3830
fi
3831
rm -f conftest.err conftest.$ac_objext
3832
done
3833
rm -f conftest.$ac_ext conftest.$ac_objext
3834
CC=$ac_save_CC
3835
 
3836
fi
3837
 
3838
case "x$ac_cv_prog_cc_stdc" in
3839
  x|xno)
3840
    echo "$as_me:$LINENO: result: none needed" >&5
3841
echo "${ECHO_T}none needed" >&6 ;;
3842
  *)
3843
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3844
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3845
    CC="$CC $ac_cv_prog_cc_stdc" ;;
3846
esac
3847
 
3848
# Some people use a C++ compiler to compile C.  Since we use `exit',
3849
# in C++ we need to declare it.  In case someone uses the same compiler
3850
# for both compiling C and C++ we need to have the C++ compiler decide
3851
# the declaration of exit, since it's the most demanding environment.
3852
cat >conftest.$ac_ext <<_ACEOF
3853
#ifndef __cplusplus
3854
  choke me
3855
#endif
3856
_ACEOF
3857
rm -f conftest.$ac_objext
3858
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3859
  (eval $ac_compile) 2>conftest.er1
3860
  ac_status=$?
3861
  grep -v '^ *+' conftest.er1 >conftest.err
3862
  rm -f conftest.er1
3863
  cat conftest.err >&5
3864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865
  (exit $ac_status); } &&
3866
         { ac_try='test -z "$ac_c_werror_flag"
3867
                         || test ! -s conftest.err'
3868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869
  (eval $ac_try) 2>&5
3870
  ac_status=$?
3871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872
  (exit $ac_status); }; } &&
3873
         { ac_try='test -s conftest.$ac_objext'
3874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875
  (eval $ac_try) 2>&5
3876
  ac_status=$?
3877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878
  (exit $ac_status); }; }; then
3879
  for ac_declaration in \
3880
   '' \
3881
   'extern "C" void std::exit (int) throw (); using std::exit;' \
3882
   'extern "C" void std::exit (int); using std::exit;' \
3883
   'extern "C" void exit (int) throw ();' \
3884
   'extern "C" void exit (int);' \
3885
   'void exit (int);'
3886
do
3887
  cat >conftest.$ac_ext <<_ACEOF
3888
/* confdefs.h.  */
3889
_ACEOF
3890
cat confdefs.h >>conftest.$ac_ext
3891
cat >>conftest.$ac_ext <<_ACEOF
3892
/* end confdefs.h.  */
3893
$ac_declaration
3894
#include 
3895
int
3896
main ()
3897
{
3898
exit (42);
3899
  ;
3900
  return 0;
3901
}
3902
_ACEOF
3903
rm -f conftest.$ac_objext
3904
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3905
  (eval $ac_compile) 2>conftest.er1
3906
  ac_status=$?
3907
  grep -v '^ *+' conftest.er1 >conftest.err
3908
  rm -f conftest.er1
3909
  cat conftest.err >&5
3910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911
  (exit $ac_status); } &&
3912
         { ac_try='test -z "$ac_c_werror_flag"
3913
                         || test ! -s conftest.err'
3914
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915
  (eval $ac_try) 2>&5
3916
  ac_status=$?
3917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918
  (exit $ac_status); }; } &&
3919
         { ac_try='test -s conftest.$ac_objext'
3920
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921
  (eval $ac_try) 2>&5
3922
  ac_status=$?
3923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924
  (exit $ac_status); }; }; then
3925
  :
3926
else
3927
  echo "$as_me: failed program was:" >&5
3928
sed 's/^/| /' conftest.$ac_ext >&5
3929
 
3930
continue
3931
fi
3932
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3933
  cat >conftest.$ac_ext <<_ACEOF
3934
/* confdefs.h.  */
3935
_ACEOF
3936
cat confdefs.h >>conftest.$ac_ext
3937
cat >>conftest.$ac_ext <<_ACEOF
3938
/* end confdefs.h.  */
3939
$ac_declaration
3940
int
3941
main ()
3942
{
3943
exit (42);
3944
  ;
3945
  return 0;
3946
}
3947
_ACEOF
3948
rm -f conftest.$ac_objext
3949
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3950
  (eval $ac_compile) 2>conftest.er1
3951
  ac_status=$?
3952
  grep -v '^ *+' conftest.er1 >conftest.err
3953
  rm -f conftest.er1
3954
  cat conftest.err >&5
3955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956
  (exit $ac_status); } &&
3957
         { ac_try='test -z "$ac_c_werror_flag"
3958
                         || test ! -s conftest.err'
3959
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960
  (eval $ac_try) 2>&5
3961
  ac_status=$?
3962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963
  (exit $ac_status); }; } &&
3964
         { ac_try='test -s conftest.$ac_objext'
3965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966
  (eval $ac_try) 2>&5
3967
  ac_status=$?
3968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969
  (exit $ac_status); }; }; then
3970
  break
3971
else
3972
  echo "$as_me: failed program was:" >&5
3973
sed 's/^/| /' conftest.$ac_ext >&5
3974
 
3975
fi
3976
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3977
done
3978
rm -f conftest*
3979
if test -n "$ac_declaration"; then
3980
  echo '#ifdef __cplusplus' >>confdefs.h
3981
  echo $ac_declaration      >>confdefs.h
3982
  echo '#endif'             >>confdefs.h
3983
fi
3984
 
3985
else
3986
  echo "$as_me: failed program was:" >&5
3987
sed 's/^/| /' conftest.$ac_ext >&5
3988
 
3989
fi
3990
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3991
ac_ext=c
3992
ac_cpp='$CPP $CPPFLAGS'
3993
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996
 
3997
 
3998
cat >>confdefs.h <<\_ACEOF
3999
#define _GNU_SOURCE 1
4000
_ACEOF
4001
 
4002
 
4003
ac_ext=c
4004
ac_cpp='$CPP $CPPFLAGS'
4005
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4009
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4010
# On Suns, sometimes $CPP names a directory.
4011
if test -n "$CPP" && test -d "$CPP"; then
4012
  CPP=
4013
fi
4014
if test -z "$CPP"; then
4015
  if test "${ac_cv_prog_CPP+set}" = set; then
4016
  echo $ECHO_N "(cached) $ECHO_C" >&6
4017
else
4018
      # Double quotes because CPP needs to be expanded
4019
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4020
    do
4021
      ac_preproc_ok=false
4022
for ac_c_preproc_warn_flag in '' yes
4023
do
4024
  # Use a header file that comes with gcc, so configuring glibc
4025
  # with a fresh cross-compiler works.
4026
  # Prefer  to  if __STDC__ is defined, since
4027
  #  exists even on freestanding compilers.
4028
  # On the NeXT, cc -E runs the code through the compiler's parser,
4029
  # not just through cpp. "Syntax error" is here to catch this case.
4030
  cat >conftest.$ac_ext <<_ACEOF
4031
/* confdefs.h.  */
4032
_ACEOF
4033
cat confdefs.h >>conftest.$ac_ext
4034
cat >>conftest.$ac_ext <<_ACEOF
4035
/* end confdefs.h.  */
4036
#ifdef __STDC__
4037
# include 
4038
#else
4039
# include 
4040
#endif
4041
                     Syntax error
4042
_ACEOF
4043
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4044
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4045
  ac_status=$?
4046
  grep -v '^ *+' conftest.er1 >conftest.err
4047
  rm -f conftest.er1
4048
  cat conftest.err >&5
4049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050
  (exit $ac_status); } >/dev/null; then
4051
  if test -s conftest.err; then
4052
    ac_cpp_err=$ac_c_preproc_warn_flag
4053
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4054
  else
4055
    ac_cpp_err=
4056
  fi
4057
else
4058
  ac_cpp_err=yes
4059
fi
4060
if test -z "$ac_cpp_err"; then
4061
  :
4062
else
4063
  echo "$as_me: failed program was:" >&5
4064
sed 's/^/| /' conftest.$ac_ext >&5
4065
 
4066
  # Broken: fails on valid input.
4067
continue
4068
fi
4069
rm -f conftest.err conftest.$ac_ext
4070
 
4071
  # OK, works on sane cases.  Now check whether non-existent headers
4072
  # can be detected and how.
4073
  cat >conftest.$ac_ext <<_ACEOF
4074
/* confdefs.h.  */
4075
_ACEOF
4076
cat confdefs.h >>conftest.$ac_ext
4077
cat >>conftest.$ac_ext <<_ACEOF
4078
/* end confdefs.h.  */
4079
#include 
4080
_ACEOF
4081
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4082
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4083
  ac_status=$?
4084
  grep -v '^ *+' conftest.er1 >conftest.err
4085
  rm -f conftest.er1
4086
  cat conftest.err >&5
4087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088
  (exit $ac_status); } >/dev/null; then
4089
  if test -s conftest.err; then
4090
    ac_cpp_err=$ac_c_preproc_warn_flag
4091
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4092
  else
4093
    ac_cpp_err=
4094
  fi
4095
else
4096
  ac_cpp_err=yes
4097
fi
4098
if test -z "$ac_cpp_err"; then
4099
  # Broken: success on invalid input.
4100
continue
4101
else
4102
  echo "$as_me: failed program was:" >&5
4103
sed 's/^/| /' conftest.$ac_ext >&5
4104
 
4105
  # Passes both tests.
4106
ac_preproc_ok=:
4107
break
4108
fi
4109
rm -f conftest.err conftest.$ac_ext
4110
 
4111
done
4112
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4113
rm -f conftest.err conftest.$ac_ext
4114
if $ac_preproc_ok; then
4115
  break
4116
fi
4117
 
4118
    done
4119
    ac_cv_prog_CPP=$CPP
4120
 
4121
fi
4122
  CPP=$ac_cv_prog_CPP
4123
else
4124
  ac_cv_prog_CPP=$CPP
4125
fi
4126
echo "$as_me:$LINENO: result: $CPP" >&5
4127
echo "${ECHO_T}$CPP" >&6
4128
ac_preproc_ok=false
4129
for ac_c_preproc_warn_flag in '' yes
4130
do
4131
  # Use a header file that comes with gcc, so configuring glibc
4132
  # with a fresh cross-compiler works.
4133
  # Prefer  to  if __STDC__ is defined, since
4134
  #  exists even on freestanding compilers.
4135
  # On the NeXT, cc -E runs the code through the compiler's parser,
4136
  # not just through cpp. "Syntax error" is here to catch this case.
4137
  cat >conftest.$ac_ext <<_ACEOF
4138
/* confdefs.h.  */
4139
_ACEOF
4140
cat confdefs.h >>conftest.$ac_ext
4141
cat >>conftest.$ac_ext <<_ACEOF
4142
/* end confdefs.h.  */
4143
#ifdef __STDC__
4144
# include 
4145
#else
4146
# include 
4147
#endif
4148
                     Syntax error
4149
_ACEOF
4150
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4151
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4152
  ac_status=$?
4153
  grep -v '^ *+' conftest.er1 >conftest.err
4154
  rm -f conftest.er1
4155
  cat conftest.err >&5
4156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157
  (exit $ac_status); } >/dev/null; then
4158
  if test -s conftest.err; then
4159
    ac_cpp_err=$ac_c_preproc_warn_flag
4160
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4161
  else
4162
    ac_cpp_err=
4163
  fi
4164
else
4165
  ac_cpp_err=yes
4166
fi
4167
if test -z "$ac_cpp_err"; then
4168
  :
4169
else
4170
  echo "$as_me: failed program was:" >&5
4171
sed 's/^/| /' conftest.$ac_ext >&5
4172
 
4173
  # Broken: fails on valid input.
4174
continue
4175
fi
4176
rm -f conftest.err conftest.$ac_ext
4177
 
4178
  # OK, works on sane cases.  Now check whether non-existent headers
4179
  # can be detected and how.
4180
  cat >conftest.$ac_ext <<_ACEOF
4181
/* confdefs.h.  */
4182
_ACEOF
4183
cat confdefs.h >>conftest.$ac_ext
4184
cat >>conftest.$ac_ext <<_ACEOF
4185
/* end confdefs.h.  */
4186
#include 
4187
_ACEOF
4188
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4189
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4190
  ac_status=$?
4191
  grep -v '^ *+' conftest.er1 >conftest.err
4192
  rm -f conftest.er1
4193
  cat conftest.err >&5
4194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195
  (exit $ac_status); } >/dev/null; then
4196
  if test -s conftest.err; then
4197
    ac_cpp_err=$ac_c_preproc_warn_flag
4198
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4199
  else
4200
    ac_cpp_err=
4201
  fi
4202
else
4203
  ac_cpp_err=yes
4204
fi
4205
if test -z "$ac_cpp_err"; then
4206
  # Broken: success on invalid input.
4207
continue
4208
else
4209
  echo "$as_me: failed program was:" >&5
4210
sed 's/^/| /' conftest.$ac_ext >&5
4211
 
4212
  # Passes both tests.
4213
ac_preproc_ok=:
4214
break
4215
fi
4216
rm -f conftest.err conftest.$ac_ext
4217
 
4218
done
4219
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4220
rm -f conftest.err conftest.$ac_ext
4221
if $ac_preproc_ok; then
4222
  :
4223
else
4224
  { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4225
echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4227
See \`config.log' for more details." >&5
4228
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4229
See \`config.log' for more details." >&2;}
4230
   { (exit 1); exit 1; }; }; }
4231
fi
4232
 
4233
ac_ext=c
4234
ac_cpp='$CPP $CPPFLAGS'
4235
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238
 
4239
 
4240
echo "$as_me:$LINENO: checking for egrep" >&5
4241
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4242
if test "${ac_cv_prog_egrep+set}" = set; then
4243
  echo $ECHO_N "(cached) $ECHO_C" >&6
4244
else
4245
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4246
    then ac_cv_prog_egrep='grep -E'
4247
    else ac_cv_prog_egrep='egrep'
4248
    fi
4249
fi
4250
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4251
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4252
 EGREP=$ac_cv_prog_egrep
4253
 
4254
 
4255
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4256
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4257
if test "${ac_cv_header_stdc+set}" = set; then
4258
  echo $ECHO_N "(cached) $ECHO_C" >&6
4259
else
4260
  cat >conftest.$ac_ext <<_ACEOF
4261
/* confdefs.h.  */
4262
_ACEOF
4263
cat confdefs.h >>conftest.$ac_ext
4264
cat >>conftest.$ac_ext <<_ACEOF
4265
/* end confdefs.h.  */
4266
#include 
4267
#include 
4268
#include 
4269
#include 
4270
 
4271
int
4272
main ()
4273
{
4274
 
4275
  ;
4276
  return 0;
4277
}
4278
_ACEOF
4279
rm -f conftest.$ac_objext
4280
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4281
  (eval $ac_compile) 2>conftest.er1
4282
  ac_status=$?
4283
  grep -v '^ *+' conftest.er1 >conftest.err
4284
  rm -f conftest.er1
4285
  cat conftest.err >&5
4286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287
  (exit $ac_status); } &&
4288
         { ac_try='test -z "$ac_c_werror_flag"
4289
                         || test ! -s conftest.err'
4290
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4291
  (eval $ac_try) 2>&5
4292
  ac_status=$?
4293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294
  (exit $ac_status); }; } &&
4295
         { ac_try='test -s conftest.$ac_objext'
4296
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297
  (eval $ac_try) 2>&5
4298
  ac_status=$?
4299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300
  (exit $ac_status); }; }; then
4301
  ac_cv_header_stdc=yes
4302
else
4303
  echo "$as_me: failed program was:" >&5
4304
sed 's/^/| /' conftest.$ac_ext >&5
4305
 
4306
ac_cv_header_stdc=no
4307
fi
4308
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4309
 
4310
if test $ac_cv_header_stdc = yes; then
4311
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4312
  cat >conftest.$ac_ext <<_ACEOF
4313
/* confdefs.h.  */
4314
_ACEOF
4315
cat confdefs.h >>conftest.$ac_ext
4316
cat >>conftest.$ac_ext <<_ACEOF
4317
/* end confdefs.h.  */
4318
#include 
4319
 
4320
_ACEOF
4321
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4322
  $EGREP "memchr" >/dev/null 2>&1; then
4323
  :
4324
else
4325
  ac_cv_header_stdc=no
4326
fi
4327
rm -f conftest*
4328
 
4329
fi
4330
 
4331
if test $ac_cv_header_stdc = yes; then
4332
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4333
  cat >conftest.$ac_ext <<_ACEOF
4334
/* confdefs.h.  */
4335
_ACEOF
4336
cat confdefs.h >>conftest.$ac_ext
4337
cat >>conftest.$ac_ext <<_ACEOF
4338
/* end confdefs.h.  */
4339
#include 
4340
 
4341
_ACEOF
4342
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4343
  $EGREP "free" >/dev/null 2>&1; then
4344
  :
4345
else
4346
  ac_cv_header_stdc=no
4347
fi
4348
rm -f conftest*
4349
 
4350
fi
4351
 
4352
if test $ac_cv_header_stdc = yes; then
4353
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4354
  if test "$cross_compiling" = yes; then
4355
  :
4356
else
4357
  cat >conftest.$ac_ext <<_ACEOF
4358
/* confdefs.h.  */
4359
_ACEOF
4360
cat confdefs.h >>conftest.$ac_ext
4361
cat >>conftest.$ac_ext <<_ACEOF
4362
/* end confdefs.h.  */
4363
#include 
4364
#if ((' ' & 0x0FF) == 0x020)
4365
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4366
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4367
#else
4368
# define ISLOWER(c) \
4369
                   (('a' <= (c) && (c) <= 'i') \
4370
                     || ('j' <= (c) && (c) <= 'r') \
4371
                     || ('s' <= (c) && (c) <= 'z'))
4372
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4373
#endif
4374
 
4375
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4376
int
4377
main ()
4378
{
4379
  int i;
4380
  for (i = 0; i < 256; i++)
4381
    if (XOR (islower (i), ISLOWER (i))
4382
        || toupper (i) != TOUPPER (i))
4383
      exit(2);
4384
  exit (0);
4385
}
4386
_ACEOF
4387
rm -f conftest$ac_exeext
4388
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4389
  (eval $ac_link) 2>&5
4390
  ac_status=$?
4391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4393
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394
  (eval $ac_try) 2>&5
4395
  ac_status=$?
4396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397
  (exit $ac_status); }; }; then
4398
  :
4399
else
4400
  echo "$as_me: program exited with status $ac_status" >&5
4401
echo "$as_me: failed program was:" >&5
4402
sed 's/^/| /' conftest.$ac_ext >&5
4403
 
4404
( exit $ac_status )
4405
ac_cv_header_stdc=no
4406
fi
4407
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4408
fi
4409
fi
4410
fi
4411
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4412
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4413
if test $ac_cv_header_stdc = yes; then
4414
 
4415
cat >>confdefs.h <<\_ACEOF
4416
#define STDC_HEADERS 1
4417
_ACEOF
4418
 
4419
fi
4420
 
4421
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4422
 
4423
 
4424
 
4425
 
4426
 
4427
 
4428
 
4429
 
4430
 
4431
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4432
                  inttypes.h stdint.h unistd.h
4433
do
4434
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4435
echo "$as_me:$LINENO: checking for $ac_header" >&5
4436
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4437
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4438
  echo $ECHO_N "(cached) $ECHO_C" >&6
4439
else
4440
  cat >conftest.$ac_ext <<_ACEOF
4441
/* confdefs.h.  */
4442
_ACEOF
4443
cat confdefs.h >>conftest.$ac_ext
4444
cat >>conftest.$ac_ext <<_ACEOF
4445
/* end confdefs.h.  */
4446
$ac_includes_default
4447
 
4448
#include <$ac_header>
4449
_ACEOF
4450
rm -f conftest.$ac_objext
4451
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452
  (eval $ac_compile) 2>conftest.er1
4453
  ac_status=$?
4454
  grep -v '^ *+' conftest.er1 >conftest.err
4455
  rm -f conftest.er1
4456
  cat conftest.err >&5
4457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458
  (exit $ac_status); } &&
4459
         { ac_try='test -z "$ac_c_werror_flag"
4460
                         || test ! -s conftest.err'
4461
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462
  (eval $ac_try) 2>&5
4463
  ac_status=$?
4464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465
  (exit $ac_status); }; } &&
4466
         { ac_try='test -s conftest.$ac_objext'
4467
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468
  (eval $ac_try) 2>&5
4469
  ac_status=$?
4470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471
  (exit $ac_status); }; }; then
4472
  eval "$as_ac_Header=yes"
4473
else
4474
  echo "$as_me: failed program was:" >&5
4475
sed 's/^/| /' conftest.$ac_ext >&5
4476
 
4477
eval "$as_ac_Header=no"
4478
fi
4479
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4480
fi
4481
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4482
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4483
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4484
  cat >>confdefs.h <<_ACEOF
4485
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4486
_ACEOF
4487
 
4488
fi
4489
 
4490
done
4491
 
4492
 
4493
 
4494
  if test "${ac_cv_header_minix_config_h+set}" = set; then
4495
  echo "$as_me:$LINENO: checking for minix/config.h" >&5
4496
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4497
if test "${ac_cv_header_minix_config_h+set}" = set; then
4498
  echo $ECHO_N "(cached) $ECHO_C" >&6
4499
fi
4500
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4501
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4502
else
4503
  # Is the header compilable?
4504
echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4505
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4506
cat >conftest.$ac_ext <<_ACEOF
4507
/* confdefs.h.  */
4508
_ACEOF
4509
cat confdefs.h >>conftest.$ac_ext
4510
cat >>conftest.$ac_ext <<_ACEOF
4511
/* end confdefs.h.  */
4512
$ac_includes_default
4513
#include 
4514
_ACEOF
4515
rm -f conftest.$ac_objext
4516
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517
  (eval $ac_compile) 2>conftest.er1
4518
  ac_status=$?
4519
  grep -v '^ *+' conftest.er1 >conftest.err
4520
  rm -f conftest.er1
4521
  cat conftest.err >&5
4522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523
  (exit $ac_status); } &&
4524
         { ac_try='test -z "$ac_c_werror_flag"
4525
                         || test ! -s conftest.err'
4526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527
  (eval $ac_try) 2>&5
4528
  ac_status=$?
4529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530
  (exit $ac_status); }; } &&
4531
         { ac_try='test -s conftest.$ac_objext'
4532
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533
  (eval $ac_try) 2>&5
4534
  ac_status=$?
4535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536
  (exit $ac_status); }; }; then
4537
  ac_header_compiler=yes
4538
else
4539
  echo "$as_me: failed program was:" >&5
4540
sed 's/^/| /' conftest.$ac_ext >&5
4541
 
4542
ac_header_compiler=no
4543
fi
4544
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4545
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4546
echo "${ECHO_T}$ac_header_compiler" >&6
4547
 
4548
# Is the header present?
4549
echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4550
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4551
cat >conftest.$ac_ext <<_ACEOF
4552
/* confdefs.h.  */
4553
_ACEOF
4554
cat confdefs.h >>conftest.$ac_ext
4555
cat >>conftest.$ac_ext <<_ACEOF
4556
/* end confdefs.h.  */
4557
#include 
4558
_ACEOF
4559
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4560
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4561
  ac_status=$?
4562
  grep -v '^ *+' conftest.er1 >conftest.err
4563
  rm -f conftest.er1
4564
  cat conftest.err >&5
4565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566
  (exit $ac_status); } >/dev/null; then
4567
  if test -s conftest.err; then
4568
    ac_cpp_err=$ac_c_preproc_warn_flag
4569
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4570
  else
4571
    ac_cpp_err=
4572
  fi
4573
else
4574
  ac_cpp_err=yes
4575
fi
4576
if test -z "$ac_cpp_err"; then
4577
  ac_header_preproc=yes
4578
else
4579
  echo "$as_me: failed program was:" >&5
4580
sed 's/^/| /' conftest.$ac_ext >&5
4581
 
4582
  ac_header_preproc=no
4583
fi
4584
rm -f conftest.err conftest.$ac_ext
4585
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4586
echo "${ECHO_T}$ac_header_preproc" >&6
4587
 
4588
# So?  What about this header?
4589
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4590
  yes:no: )
4591
    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4592
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4593
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4594
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4595
    ac_header_preproc=yes
4596
    ;;
4597
  no:yes:* )
4598
    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4599
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4600
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4601
echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4602
    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4603
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4604
    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4605
echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4606
    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4607
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4608
    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4609
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4610
    (
4611
      cat <<\_ASBOX
4612
## ------------------------------------------ ##
4613
## Report this to the AC_PACKAGE_NAME lists.  ##
4614
## ------------------------------------------ ##
4615
_ASBOX
4616
    ) |
4617
      sed "s/^/$as_me: WARNING:     /" >&2
4618
    ;;
4619
esac
4620
echo "$as_me:$LINENO: checking for minix/config.h" >&5
4621
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4622
if test "${ac_cv_header_minix_config_h+set}" = set; then
4623
  echo $ECHO_N "(cached) $ECHO_C" >&6
4624
else
4625
  ac_cv_header_minix_config_h=$ac_header_preproc
4626
fi
4627
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4628
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4629
 
4630
fi
4631
if test $ac_cv_header_minix_config_h = yes; then
4632
  MINIX=yes
4633
else
4634
  MINIX=
4635
fi
4636
 
4637
 
4638
  if test "$MINIX" = yes; then
4639
 
4640
cat >>confdefs.h <<\_ACEOF
4641
#define _POSIX_SOURCE 1
4642
_ACEOF
4643
 
4644
 
4645
cat >>confdefs.h <<\_ACEOF
4646
#define _POSIX_1_SOURCE 2
4647
_ACEOF
4648
 
4649
 
4650
cat >>confdefs.h <<\_ACEOF
4651
#define _MINIX 1
4652
_ACEOF
4653
 
4654
  fi
4655
 
4656
 
4657
 
4658
  echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4659
echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4660
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4661
  echo $ECHO_N "(cached) $ECHO_C" >&6
4662
else
4663
  cat >conftest.$ac_ext <<_ACEOF
4664
/* confdefs.h.  */
4665
_ACEOF
4666
cat confdefs.h >>conftest.$ac_ext
4667
cat >>conftest.$ac_ext <<_ACEOF
4668
/* end confdefs.h.  */
4669
 
4670
#         define __EXTENSIONS__ 1
4671
          $ac_includes_default
4672
int
4673
main ()
4674
{
4675
 
4676
  ;
4677
  return 0;
4678
}
4679
_ACEOF
4680
rm -f conftest.$ac_objext
4681
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4682
  (eval $ac_compile) 2>conftest.er1
4683
  ac_status=$?
4684
  grep -v '^ *+' conftest.er1 >conftest.err
4685
  rm -f conftest.er1
4686
  cat conftest.err >&5
4687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688
  (exit $ac_status); } &&
4689
         { ac_try='test -z "$ac_c_werror_flag"
4690
                         || test ! -s conftest.err'
4691
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692
  (eval $ac_try) 2>&5
4693
  ac_status=$?
4694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695
  (exit $ac_status); }; } &&
4696
         { ac_try='test -s conftest.$ac_objext'
4697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698
  (eval $ac_try) 2>&5
4699
  ac_status=$?
4700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701
  (exit $ac_status); }; }; then
4702
  ac_cv_safe_to_define___extensions__=yes
4703
else
4704
  echo "$as_me: failed program was:" >&5
4705
sed 's/^/| /' conftest.$ac_ext >&5
4706
 
4707
ac_cv_safe_to_define___extensions__=no
4708
fi
4709
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4710
fi
4711
echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4712
echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4713
  test $ac_cv_safe_to_define___extensions__ = yes &&
4714
    cat >>confdefs.h <<\_ACEOF
4715
#define __EXTENSIONS__ 1
4716
_ACEOF
4717
 
4718
  cat >>confdefs.h <<\_ACEOF
4719
#define _ALL_SOURCE 1
4720
_ACEOF
4721
 
4722
  cat >>confdefs.h <<\_ACEOF
4723
#define _GNU_SOURCE 1
4724
_ACEOF
4725
 
4726
  cat >>confdefs.h <<\_ACEOF
4727
#define _POSIX_PTHREAD_SEMANTICS 1
4728
_ACEOF
4729
 
4730
  cat >>confdefs.h <<\_ACEOF
4731
#define _TANDEM_SOURCE 1
4732
_ACEOF
4733
 
4734
 
4735
 
4736
 
4737
 
4738
macro_version='2.1a'
4739
macro_revision='1.2435'
4740
 
4741
 
4742
 
4743
 
4744
 
4745
 
4746
 
4747
 
4748
 
4749
 
4750
 
4751
 
4752
ltmain="$ac_aux_dir/ltmain.sh"
4753
 
4754
# Set options
4755
 
4756
enable_dlopen=no
4757
 
4758
 
4759
enable_win32_dll=no
4760
 
4761
 
4762
# Check whether --enable-shared or --disable-shared was given.
4763
if test "${enable_shared+set}" = set; then
4764
  enableval="$enable_shared"
4765
  p=${PACKAGE-default}
4766
    case $enableval in
4767
    yes) enable_shared=yes ;;
4768
    no) enable_shared=no ;;
4769
    *)
4770
      enable_shared=no
4771
      # Look at the argument we got.  We use all the common list separators.
4772
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4773
      for pkg in $enableval; do
4774
        IFS="$lt_save_ifs"
4775
        if test "X$pkg" = "X$p"; then
4776
          enable_shared=yes
4777
        fi
4778
      done
4779
      IFS="$lt_save_ifs"
4780
      ;;
4781
    esac
4782
else
4783
  enable_shared=yes
4784
fi;
4785
 
4786
 
4787
 
4788
 
4789
 
4790
 
4791
 
4792
 
4793
# Check whether --enable-static or --disable-static was given.
4794
if test "${enable_static+set}" = set; then
4795
  enableval="$enable_static"
4796
  p=${PACKAGE-default}
4797
    case $enableval in
4798
    yes) enable_static=yes ;;
4799
    no) enable_static=no ;;
4800
    *)
4801
     enable_static=no
4802
      # Look at the argument we got.  We use all the common list separators.
4803
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4804
      for pkg in $enableval; do
4805
        IFS="$lt_save_ifs"
4806
        if test "X$pkg" = "X$p"; then
4807
          enable_static=yes
4808
        fi
4809
      done
4810
      IFS="$lt_save_ifs"
4811
      ;;
4812
    esac
4813
else
4814
  enable_static=yes
4815
fi;
4816
 
4817
 
4818
 
4819
 
4820
 
4821
 
4822
 
4823
 
4824
 
4825
# Check whether --with-pic or --without-pic was given.
4826
if test "${with_pic+set}" = set; then
4827
  withval="$with_pic"
4828
  pic_mode="$withval"
4829
else
4830
  pic_mode=default
4831
fi;
4832
 
4833
test -z "$pic_mode" && pic_mode=default
4834
 
4835
 
4836
 
4837
 
4838
 
4839
 
4840
 
4841
# Check whether --enable-fast-install or --disable-fast-install was given.
4842
if test "${enable_fast_install+set}" = set; then
4843
  enableval="$enable_fast_install"
4844
  p=${PACKAGE-default}
4845
    case $enableval in
4846
    yes) enable_fast_install=yes ;;
4847
    no) enable_fast_install=no ;;
4848
    *)
4849
      enable_fast_install=no
4850
      # Look at the argument we got.  We use all the common list separators.
4851
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4852
      for pkg in $enableval; do
4853
        IFS="$lt_save_ifs"
4854
        if test "X$pkg" = "X$p"; then
4855
          enable_fast_install=yes
4856
        fi
4857
      done
4858
      IFS="$lt_save_ifs"
4859
      ;;
4860
    esac
4861
else
4862
  enable_fast_install=yes
4863
fi;
4864
 
4865
 
4866
 
4867
 
4868
 
4869
 
4870
 
4871
 
4872
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4873
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4874
if test "${lt_cv_path_SED+set}" = set; then
4875
  echo $ECHO_N "(cached) $ECHO_C" >&6
4876
else
4877
  # Loop through the user's path and test for sed and gsed.
4878
# Then use that list of sed's as ones to test for truncation.
4879
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880
for as_dir in $PATH
4881
do
4882
  IFS=$as_save_IFS
4883
  test -z "$as_dir" && as_dir=.
4884
  for lt_ac_prog in sed gsed; do
4885
    for ac_exec_ext in '' $ac_executable_extensions; do
4886
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4887
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4888
      fi
4889
    done
4890
  done
4891
done
4892
IFS=$as_save_IFS
4893
lt_ac_max=0
4894
lt_ac_count=0
4895
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4896
# along with /bin/sed that truncates output.
4897
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4898
  test ! -f $lt_ac_sed && continue
4899
  cat /dev/null > conftest.in
4900
  lt_ac_count=0
4901
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4902
  # Check for GNU sed and select it if it is found.
4903
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4904
    lt_cv_path_SED=$lt_ac_sed
4905
    break
4906
  fi
4907
  while true; do
4908
    cat conftest.in conftest.in >conftest.tmp
4909
    mv conftest.tmp conftest.in
4910
    cp conftest.in conftest.nl
4911
    echo >>conftest.nl
4912
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4913
    cmp -s conftest.out conftest.nl || break
4914
    # 10000 chars as input seems more than enough
4915
    test $lt_ac_count -gt 10 && break
4916
    lt_ac_count=`expr $lt_ac_count + 1`
4917
    if test $lt_ac_count -gt $lt_ac_max; then
4918
      lt_ac_max=$lt_ac_count
4919
      lt_cv_path_SED=$lt_ac_sed
4920
    fi
4921
  done
4922
done
4923
 
4924
fi
4925
 
4926
SED=$lt_cv_path_SED
4927
 
4928
echo "$as_me:$LINENO: result: $SED" >&5
4929
echo "${ECHO_T}$SED" >&6
4930
 
4931
test -z "$SED" && SED=sed
4932
Xsed="$SED -e 1s/^X//"
4933
 
4934
 
4935
 
4936
 
4937
 
4938
 
4939
 
4940
 
4941
 
4942
 
4943
 
4944
echo "$as_me:$LINENO: checking for fgrep" >&5
4945
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4946
if test "${ac_cv_prog_fgrep+set}" = set; then
4947
  echo $ECHO_N "(cached) $ECHO_C" >&6
4948
else
4949
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4950
    then ac_cv_prog_fgrep='grep -F'
4951
    else ac_cv_prog_fgrep='fgrep'
4952
    fi
4953
fi
4954
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4955
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4956
 FGREP=$ac_cv_prog_fgrep
4957
 
4958
 
4959
test -z "$GREP" && GREP=grep
4960
 
4961
 
4962
 
4963
 
4964
 
4965
 
4966
 
4967
 
4968
 
4969
 
4970
 
4971
 
4972
 
4973
 
4974
 
4975
 
4976
 
4977
 
4978
 
4979
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4980
if test "${with_gnu_ld+set}" = set; then
4981
  withval="$with_gnu_ld"
4982
  test "$withval" = no || with_gnu_ld=yes
4983
else
4984
  with_gnu_ld=no
4985
fi;
4986
ac_prog=ld
4987
if test "$GCC" = yes; then
4988
  # Check if gcc -print-prog-name=ld gives a path.
4989
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4990
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4991
  case $host in
4992
  *-*-mingw*)
4993
    # gcc leaves a trailing carriage return which upsets mingw
4994
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4995
  *)
4996
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4997
  esac
4998
  case $ac_prog in
4999
    # Accept absolute paths.
5000
    [\\/]* | ?:[\\/]*)
5001
      re_direlt='/[^/][^/]*/\.\./'
5002
      # Canonicalize the pathname of ld
5003
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5004
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5005
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5006
      done
5007
      test -z "$LD" && LD="$ac_prog"
5008
      ;;
5009
  "")
5010
    # If it fails, then pretend we aren't using GCC.
5011
    ac_prog=ld
5012
    ;;
5013
  *)
5014
    # If it is relative, then search for the first ld in PATH.
5015
    with_gnu_ld=unknown
5016
    ;;
5017
  esac
5018
elif test "$with_gnu_ld" = yes; then
5019
  echo "$as_me:$LINENO: checking for GNU ld" >&5
5020
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5021
else
5022
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5023
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5024
fi
5025
if test "${lt_cv_path_LD+set}" = set; then
5026
  echo $ECHO_N "(cached) $ECHO_C" >&6
5027
else
5028
  if test -z "$LD"; then
5029
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5030
  for ac_dir in $PATH; do
5031
    IFS="$lt_save_ifs"
5032
    test -z "$ac_dir" && ac_dir=.
5033
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5034
      lt_cv_path_LD="$ac_dir/$ac_prog"
5035
      # Check to see if the program is GNU ld.  I'd rather use --version,
5036
      # but apparently some variants of GNU ld only accept -v.
5037
      # Break only if it was the GNU/non-GNU ld that we prefer.
5038
      case `"$lt_cv_path_LD" -v 2>&1 
5039
      *GNU* | *'with BFD'*)
5040
        test "$with_gnu_ld" != no && break
5041
        ;;
5042
      *)
5043
        test "$with_gnu_ld" != yes && break
5044
        ;;
5045
      esac
5046
    fi
5047
  done
5048
  IFS="$lt_save_ifs"
5049
else
5050
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5051
fi
5052
fi
5053
 
5054
LD="$lt_cv_path_LD"
5055
if test -n "$LD"; then
5056
  echo "$as_me:$LINENO: result: $LD" >&5
5057
echo "${ECHO_T}$LD" >&6
5058
else
5059
  echo "$as_me:$LINENO: result: no" >&5
5060
echo "${ECHO_T}no" >&6
5061
fi
5062
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5063
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5064
   { (exit 1); exit 1; }; }
5065
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5066
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5067
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5068
  echo $ECHO_N "(cached) $ECHO_C" >&6
5069
else
5070
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5071
case `$LD -v 2>&1 
5072
*GNU* | *'with BFD'*)
5073
  lt_cv_prog_gnu_ld=yes
5074
  ;;
5075
*)
5076
  lt_cv_prog_gnu_ld=no
5077
  ;;
5078
esac
5079
fi
5080
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5081
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5082
with_gnu_ld=$lt_cv_prog_gnu_ld
5083
 
5084
 
5085
 
5086
 
5087
 
5088
 
5089
 
5090
 
5091
 
5092
 
5093
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5094
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5095
if test "${lt_cv_path_NM+set}" = set; then
5096
  echo $ECHO_N "(cached) $ECHO_C" >&6
5097
else
5098
  if test -n "$NM"; then
5099
  # Let the user override the test.
5100
  lt_cv_path_NM="$NM"
5101
else
5102
  lt_nm_to_check="${ac_tool_prefix}nm"
5103
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5104
    lt_nm_to_check="$lt_nm_to_check nm"
5105
  fi
5106
  for lt_tmp_nm in $lt_nm_to_check; do
5107
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5108
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5109
      IFS="$lt_save_ifs"
5110
      test -z "$ac_dir" && ac_dir=.
5111
      tmp_nm="$ac_dir/$lt_tmp_nm"
5112
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5113
        # Check to see if the nm accepts a BSD-compat flag.
5114
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5115
        #   nm: unknown option "B" ignored
5116
        # Tru64's nm complains that /dev/null is an invalid object file
5117
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5118
        */dev/null* | *'Invalid file or object type'*)
5119
          lt_cv_path_NM="$tmp_nm -B"
5120
          break
5121
          ;;
5122
        *)
5123
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5124
          */dev/null*)
5125
            lt_cv_path_NM="$tmp_nm -p"
5126
            break
5127
            ;;
5128
          *)
5129
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5130
            continue # so that we can try to find one that supports BSD flags
5131
            ;;
5132
          esac
5133
          ;;
5134
        esac
5135
      fi
5136
    done
5137
    IFS="$lt_save_ifs"
5138
  done
5139
  : ${lt_cv_path_NM=no}
5140
fi
5141
fi
5142
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5143
echo "${ECHO_T}$lt_cv_path_NM" >&6
5144
if test "$lt_cv_path_NM" != "no"; then
5145
  NM="$lt_cv_path_NM"
5146
else
5147
  # Didn't find any BSD compatible name lister, look for dumpbin.
5148
  if test -n "$ac_tool_prefix"; then
5149
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5150
  do
5151
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5152
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5153
echo "$as_me:$LINENO: checking for $ac_word" >&5
5154
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5155
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5156
  echo $ECHO_N "(cached) $ECHO_C" >&6
5157
else
5158
  if test -n "$DUMPBIN"; then
5159
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5160
else
5161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162
for as_dir in $PATH
5163
do
5164
  IFS=$as_save_IFS
5165
  test -z "$as_dir" && as_dir=.
5166
  for ac_exec_ext in '' $ac_executable_extensions; do
5167
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5169
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170
    break 2
5171
  fi
5172
done
5173
done
5174
 
5175
fi
5176
fi
5177
DUMPBIN=$ac_cv_prog_DUMPBIN
5178
if test -n "$DUMPBIN"; then
5179
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5180
echo "${ECHO_T}$DUMPBIN" >&6
5181
else
5182
  echo "$as_me:$LINENO: result: no" >&5
5183
echo "${ECHO_T}no" >&6
5184
fi
5185
 
5186
    test -n "$DUMPBIN" && break
5187
  done
5188
fi
5189
if test -z "$DUMPBIN"; then
5190
  ac_ct_DUMPBIN=$DUMPBIN
5191
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5192
do
5193
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5194
set dummy $ac_prog; ac_word=$2
5195
echo "$as_me:$LINENO: checking for $ac_word" >&5
5196
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5198
  echo $ECHO_N "(cached) $ECHO_C" >&6
5199
else
5200
  if test -n "$ac_ct_DUMPBIN"; then
5201
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5202
else
5203
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204
for as_dir in $PATH
5205
do
5206
  IFS=$as_save_IFS
5207
  test -z "$as_dir" && as_dir=.
5208
  for ac_exec_ext in '' $ac_executable_extensions; do
5209
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5211
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212
    break 2
5213
  fi
5214
done
5215
done
5216
 
5217
fi
5218
fi
5219
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5220
if test -n "$ac_ct_DUMPBIN"; then
5221
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5222
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5223
else
5224
  echo "$as_me:$LINENO: result: no" >&5
5225
echo "${ECHO_T}no" >&6
5226
fi
5227
 
5228
  test -n "$ac_ct_DUMPBIN" && break
5229
done
5230
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5231
 
5232
  DUMPBIN=$ac_ct_DUMPBIN
5233
fi
5234
 
5235
 
5236
  if test "$DUMPBIN" != ":"; then
5237
    NM="$DUMPBIN"
5238
  fi
5239
fi
5240
test -z "$NM" && NM=nm
5241
 
5242
 
5243
 
5244
 
5245
 
5246
 
5247
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5248
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5249
if test "${lt_cv_nm_interface+set}" = set; then
5250
  echo $ECHO_N "(cached) $ECHO_C" >&6
5251
else
5252
  lt_cv_nm_interface="BSD nm"
5253
  echo "int some_variable = 0;" > conftest.$ac_ext
5254
  (eval echo "\"\$as_me:5254: $ac_compile\"" >&5)
5255
  (eval "$ac_compile" 2>conftest.err)
5256
  cat conftest.err >&5
5257
  (eval echo "\"\$as_me:5257: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5258
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5259
  cat conftest.err >&5
5260
  (eval echo "\"\$as_me:5260: output\"" >&5)
5261
  cat conftest.out >&5
5262
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5263
    lt_cv_nm_interface="MS dumpbin"
5264
  fi
5265
  rm -f conftest*
5266
fi
5267
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5268
echo "${ECHO_T}$lt_cv_nm_interface" >&6
5269
 
5270
echo "$as_me:$LINENO: checking whether ln -s works" >&5
5271
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5272
LN_S=$as_ln_s
5273
if test "$LN_S" = "ln -s"; then
5274
  echo "$as_me:$LINENO: result: yes" >&5
5275
echo "${ECHO_T}yes" >&6
5276
else
5277
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5278
echo "${ECHO_T}no, using $LN_S" >&6
5279
fi
5280
 
5281
# find the maximum length of command line arguments
5282
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5283
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5284
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5285
  echo $ECHO_N "(cached) $ECHO_C" >&6
5286
else
5287
    i=0
5288
  teststring="ABCD"
5289
 
5290
  case $build_os in
5291
  msdosdjgpp*)
5292
    # On DJGPP, this test can blow up pretty badly due to problems in libc
5293
    # (any single argument exceeding 2000 bytes causes a buffer overrun
5294
    # during glob expansion).  Even if it were fixed, the result of this
5295
    # check would be larger than it should be.
5296
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5297
    ;;
5298
 
5299
  gnu*)
5300
    # Under GNU Hurd, this test is not required because there is
5301
    # no limit to the length of command line arguments.
5302
    # Libtool will interpret -1 as no limit whatsoever
5303
    lt_cv_sys_max_cmd_len=-1;
5304
    ;;
5305
 
5306
  cygwin* | mingw*)
5307
    # On Win9x/ME, this test blows up -- it succeeds, but takes
5308
    # about 5 minutes as the teststring grows exponentially.
5309
    # Worse, since 9x/ME are not pre-emptively multitasking,
5310
    # you end up with a "frozen" computer, even though with patience
5311
    # the test eventually succeeds (with a max line length of 256k).
5312
    # Instead, let's just punt: use the minimum linelength reported by
5313
    # all of the supported platforms: 8192 (on NT/2K/XP).
5314
    lt_cv_sys_max_cmd_len=8192;
5315
    ;;
5316
 
5317
  amigaos*)
5318
    # On AmigaOS with pdksh, this test takes hours, literally.
5319
    # So we just punt and use a minimum line length of 8192.
5320
    lt_cv_sys_max_cmd_len=8192;
5321
    ;;
5322
 
5323
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5324
    # This has been around since 386BSD, at least.  Likely further.
5325
    if test -x /sbin/sysctl; then
5326
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5327
    elif test -x /usr/sbin/sysctl; then
5328
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5329
    else
5330
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5331
    fi
5332
    # And add a safety zone
5333
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5334
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5335
    ;;
5336
 
5337
  interix*)
5338
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5339
    lt_cv_sys_max_cmd_len=196608
5340
    ;;
5341
 
5342
  osf*)
5343
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5344
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5345
    # nice to cause kernel panics so lets avoid the loop below.
5346
    # First set a reasonable default.
5347
    lt_cv_sys_max_cmd_len=16384
5348
    #
5349
    if test -x /sbin/sysconfig; then
5350
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5351
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5352
      esac
5353
    fi
5354
    ;;
5355
  sco3.2v5*)
5356
    lt_cv_sys_max_cmd_len=102400
5357
    ;;
5358
  sysv5* | sco5v6* | sysv4.2uw2*)
5359
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5360
    if test -n "$kargmax"; then
5361
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5362
    else
5363
      lt_cv_sys_max_cmd_len=32768
5364
    fi
5365
    ;;
5366
  *)
5367
    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5368
    if test -n $lt_cv_sys_max_cmd_len; then
5369
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5370
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5371
    else
5372
      # Make teststring a little bigger before we do anything with it.
5373
      # a 1K string should be a reasonable start.
5374
      for i in 1 2 3 4 5 6 7 8 ; do
5375
        teststring=$teststring$teststring
5376
      done
5377
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5378
      # If test is not a shell built-in, we'll probably end up computing a
5379
      # maximum length that is only half of the actual maximum length, but
5380
      # we can't tell.
5381
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5382
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5383
              test $i != 17 # 1/2 MB should be enough
5384
      do
5385
        i=`expr $i + 1`
5386
        teststring=$teststring$teststring
5387
      done
5388
      # Only check the string length outside the loop.
5389
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5390
      teststring=
5391
      # Add a significant safety factor because C++ compilers can tack on
5392
      # massive amounts of additional arguments before passing them to the
5393
      # linker.  It appears as though 1/2 is a usable value.
5394
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5395
    fi
5396
    ;;
5397
  esac
5398
 
5399
fi
5400
 
5401
if test -n $lt_cv_sys_max_cmd_len ; then
5402
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5403
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5404
else
5405
  echo "$as_me:$LINENO: result: none" >&5
5406
echo "${ECHO_T}none" >&6
5407
fi
5408
max_cmd_len=$lt_cv_sys_max_cmd_len
5409
 
5410
 
5411
 
5412
 
5413
 
5414
 
5415
 
5416
: ${CP="cp -f"}
5417
: ${MV="mv -f"}
5418
: ${RM="rm -f"}
5419
 
5420
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5421
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5422
# Try some XSI features
5423
xsi_shell=no
5424
( _lt_dummy="a/b/c"
5425
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5426
      = c,a/b,, ) >/dev/null 2>&1 \
5427
  && xsi_shell=yes
5428
echo "$as_me:$LINENO: result: $xsi_shell" >&5
5429
echo "${ECHO_T}$xsi_shell" >&6
5430
 
5431
 
5432
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5433
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5434
lt_shell_append=no
5435
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5436
    >/dev/null 2>&1 \
5437
  && lt_shell_append=yes
5438
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5439
echo "${ECHO_T}$lt_shell_append" >&6
5440
 
5441
 
5442
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5443
  lt_unset=unset
5444
else
5445
  lt_unset=false
5446
fi
5447
 
5448
 
5449
 
5450
 
5451
 
5452
# test EBCDIC or ASCII
5453
case `echo X|tr X '\101'` in
5454
 A) # ASCII based system
5455
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5456
  lt_SP2NL='tr \040 \012'
5457
  lt_NL2SP='tr \015\012 \040\040'
5458
  ;;
5459
 *) # EBCDIC based system
5460
  lt_SP2NL='tr \100 \n'
5461
  lt_NL2SP='tr \r\n \100\100'
5462
  ;;
5463
esac
5464
 
5465
 
5466
 
5467
 
5468
 
5469
 
5470
 
5471
 
5472
 
5473
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5474
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5475
if test "${lt_cv_ld_reload_flag+set}" = set; then
5476
  echo $ECHO_N "(cached) $ECHO_C" >&6
5477
else
5478
  lt_cv_ld_reload_flag='-r'
5479
fi
5480
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5481
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5482
reload_flag=$lt_cv_ld_reload_flag
5483
case $reload_flag in
5484
"" | " "*) ;;
5485
*) reload_flag=" $reload_flag" ;;
5486
esac
5487
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5488
case $host_os in
5489
  darwin*)
5490
    if test "$GCC" = yes; then
5491
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5492
    else
5493
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5494
    fi
5495
    ;;
5496
esac
5497
 
5498
 
5499
 
5500
 
5501
 
5502
 
5503
 
5504
 
5505
 
5506
 
5507
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5508
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5509
if test "${lt_cv_deplibs_check_method+set}" = set; then
5510
  echo $ECHO_N "(cached) $ECHO_C" >&6
5511
else
5512
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5513
lt_cv_file_magic_test_file=
5514
lt_cv_deplibs_check_method='unknown'
5515
# Need to set the preceding variable on all platforms that support
5516
# interlibrary dependencies.
5517
# 'none' -- dependencies not supported.
5518
# `unknown' -- same as none, but documents that we really don't know.
5519
# 'pass_all' -- all dependencies passed with no checks.
5520
# 'test_compile' -- check by making test program.
5521
# 'file_magic [[regex]]' -- check by looking for files in library path
5522
# which responds to the $file_magic_cmd with a given extended regex.
5523
# If you have `file' or equivalent on your system and you're not sure
5524
# whether `pass_all' will *always* work, you probably want this one.
5525
 
5526
case $host_os in
5527
aix[4-9]*)
5528
  lt_cv_deplibs_check_method=pass_all
5529
  ;;
5530
 
5531
beos*)
5532
  lt_cv_deplibs_check_method=pass_all
5533
  ;;
5534
 
5535
bsdi[45]*)
5536
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5537
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5538
  lt_cv_file_magic_test_file=/shlib/libc.so
5539
  ;;
5540
 
5541
cygwin*)
5542
  # func_win32_libid is a shell function defined in ltmain.sh
5543
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5544
  lt_cv_file_magic_cmd='func_win32_libid'
5545
  ;;
5546
 
5547
mingw* | pw32*)
5548
  # Base MSYS/MinGW do not provide the 'file' command needed by
5549
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5550
  # unless we find 'file', for example because we are cross-compiling.
5551
  if ( file / ) >/dev/null 2>&1; then
5552
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5553
    lt_cv_file_magic_cmd='func_win32_libid'
5554
  else
5555
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5556
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5557
  fi
5558
  ;;
5559
 
5560
darwin* | rhapsody*)
5561
  lt_cv_deplibs_check_method=pass_all
5562
  ;;
5563
 
5564
freebsd* | dragonfly*)
5565
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5566
    case $host_cpu in
5567
    i*86 )
5568
      # Not sure whether the presence of OpenBSD here was a mistake.
5569
      # Let's accept both of them until this is cleared up.
5570
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5571
      lt_cv_file_magic_cmd=/usr/bin/file
5572
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5573
      ;;
5574
    esac
5575
  else
5576
    lt_cv_deplibs_check_method=pass_all
5577
  fi
5578
  ;;
5579
 
5580
gnu*)
5581
  lt_cv_deplibs_check_method=pass_all
5582
  ;;
5583
 
5584
hpux10.20* | hpux11*)
5585
  lt_cv_file_magic_cmd=/usr/bin/file
5586
  case $host_cpu in
5587
  ia64*)
5588
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5589
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5590
    ;;
5591
  hppa*64*)
5592
    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]'
5593
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5594
    ;;
5595
  *)
5596
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5597
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5598
    ;;
5599
  esac
5600
  ;;
5601
 
5602
interix[3-9]*)
5603
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5604
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5605
  ;;
5606
 
5607
irix5* | irix6* | nonstopux*)
5608
  case $LD in
5609
  *-32|*"-32 ") libmagic=32-bit;;
5610
  *-n32|*"-n32 ") libmagic=N32;;
5611
  *-64|*"-64 ") libmagic=64-bit;;
5612
  *) libmagic=never-match;;
5613
  esac
5614
  lt_cv_deplibs_check_method=pass_all
5615
  ;;
5616
 
5617
# This must be Linux ELF.
5618
linux* | k*bsd*-gnu)
5619
  lt_cv_deplibs_check_method=pass_all
5620
  ;;
5621
 
5622
netbsd*)
5623
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5624
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5625
  else
5626
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5627
  fi
5628
  ;;
5629
 
5630
newos6*)
5631
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5632
  lt_cv_file_magic_cmd=/usr/bin/file
5633
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5634
  ;;
5635
 
5636
*nto* | *qnx*)
5637
  lt_cv_deplibs_check_method=pass_all
5638
  ;;
5639
 
5640
openbsd*)
5641
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5642
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5643
  else
5644
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5645
  fi
5646
  ;;
5647
 
5648
osf3* | osf4* | osf5*)
5649
  lt_cv_deplibs_check_method=pass_all
5650
  ;;
5651
 
5652
rdos*)
5653
  lt_cv_deplibs_check_method=pass_all
5654
  ;;
5655
 
5656
solaris*)
5657
  lt_cv_deplibs_check_method=pass_all
5658
  ;;
5659
 
5660
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5661
  lt_cv_deplibs_check_method=pass_all
5662
  ;;
5663
 
5664
sysv4 | sysv4.3*)
5665
  case $host_vendor in
5666
  motorola)
5667
    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]'
5668
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5669
    ;;
5670
  ncr)
5671
    lt_cv_deplibs_check_method=pass_all
5672
    ;;
5673
  sequent)
5674
    lt_cv_file_magic_cmd='/bin/file'
5675
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5676
    ;;
5677
  sni)
5678
    lt_cv_file_magic_cmd='/bin/file'
5679
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5680
    lt_cv_file_magic_test_file=/lib/libc.so
5681
    ;;
5682
  siemens)
5683
    lt_cv_deplibs_check_method=pass_all
5684
    ;;
5685
  pc)
5686
    lt_cv_deplibs_check_method=pass_all
5687
    ;;
5688
  esac
5689
  ;;
5690
 
5691
tpf*)
5692
  lt_cv_deplibs_check_method=pass_all
5693
  ;;
5694
esac
5695
 
5696
fi
5697
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5698
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5699
file_magic_cmd=$lt_cv_file_magic_cmd
5700
deplibs_check_method=$lt_cv_deplibs_check_method
5701
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5702
 
5703
 
5704
 
5705
 
5706
 
5707
 
5708
 
5709
 
5710
 
5711
 
5712
 
5713
 
5714
if test -n "$ac_tool_prefix"; then
5715
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5716
set dummy ${ac_tool_prefix}ar; ac_word=$2
5717
echo "$as_me:$LINENO: checking for $ac_word" >&5
5718
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5719
if test "${ac_cv_prog_AR+set}" = set; then
5720
  echo $ECHO_N "(cached) $ECHO_C" >&6
5721
else
5722
  if test -n "$AR"; then
5723
  ac_cv_prog_AR="$AR" # Let the user override the test.
5724
else
5725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726
for as_dir in $PATH
5727
do
5728
  IFS=$as_save_IFS
5729
  test -z "$as_dir" && as_dir=.
5730
  for ac_exec_ext in '' $ac_executable_extensions; do
5731
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5733
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734
    break 2
5735
  fi
5736
done
5737
done
5738
 
5739
fi
5740
fi
5741
AR=$ac_cv_prog_AR
5742
if test -n "$AR"; then
5743
  echo "$as_me:$LINENO: result: $AR" >&5
5744
echo "${ECHO_T}$AR" >&6
5745
else
5746
  echo "$as_me:$LINENO: result: no" >&5
5747
echo "${ECHO_T}no" >&6
5748
fi
5749
 
5750
fi
5751
if test -z "$ac_cv_prog_AR"; then
5752
  ac_ct_AR=$AR
5753
  # Extract the first word of "ar", so it can be a program name with args.
5754
set dummy ar; ac_word=$2
5755
echo "$as_me:$LINENO: checking for $ac_word" >&5
5756
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5757
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5758
  echo $ECHO_N "(cached) $ECHO_C" >&6
5759
else
5760
  if test -n "$ac_ct_AR"; then
5761
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5762
else
5763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764
for as_dir in $PATH
5765
do
5766
  IFS=$as_save_IFS
5767
  test -z "$as_dir" && as_dir=.
5768
  for ac_exec_ext in '' $ac_executable_extensions; do
5769
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770
    ac_cv_prog_ac_ct_AR="ar"
5771
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772
    break 2
5773
  fi
5774
done
5775
done
5776
 
5777
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5778
fi
5779
fi
5780
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5781
if test -n "$ac_ct_AR"; then
5782
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5783
echo "${ECHO_T}$ac_ct_AR" >&6
5784
else
5785
  echo "$as_me:$LINENO: result: no" >&5
5786
echo "${ECHO_T}no" >&6
5787
fi
5788
 
5789
  AR=$ac_ct_AR
5790
else
5791
  AR="$ac_cv_prog_AR"
5792
fi
5793
 
5794
test -z "$AR" && AR=ar
5795
test -z "$AR_FLAGS" && AR_FLAGS=cru
5796
 
5797
 
5798
 
5799
 
5800
 
5801
 
5802
 
5803
 
5804
 
5805
 
5806
 
5807
if test -n "$ac_tool_prefix"; then
5808
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5809
set dummy ${ac_tool_prefix}strip; ac_word=$2
5810
echo "$as_me:$LINENO: checking for $ac_word" >&5
5811
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812
if test "${ac_cv_prog_STRIP+set}" = set; then
5813
  echo $ECHO_N "(cached) $ECHO_C" >&6
5814
else
5815
  if test -n "$STRIP"; then
5816
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5817
else
5818
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819
for as_dir in $PATH
5820
do
5821
  IFS=$as_save_IFS
5822
  test -z "$as_dir" && as_dir=.
5823
  for ac_exec_ext in '' $ac_executable_extensions; do
5824
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5826
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827
    break 2
5828
  fi
5829
done
5830
done
5831
 
5832
fi
5833
fi
5834
STRIP=$ac_cv_prog_STRIP
5835
if test -n "$STRIP"; then
5836
  echo "$as_me:$LINENO: result: $STRIP" >&5
5837
echo "${ECHO_T}$STRIP" >&6
5838
else
5839
  echo "$as_me:$LINENO: result: no" >&5
5840
echo "${ECHO_T}no" >&6
5841
fi
5842
 
5843
fi
5844
if test -z "$ac_cv_prog_STRIP"; then
5845
  ac_ct_STRIP=$STRIP
5846
  # Extract the first word of "strip", so it can be a program name with args.
5847
set dummy strip; ac_word=$2
5848
echo "$as_me:$LINENO: checking for $ac_word" >&5
5849
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5851
  echo $ECHO_N "(cached) $ECHO_C" >&6
5852
else
5853
  if test -n "$ac_ct_STRIP"; then
5854
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5855
else
5856
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857
for as_dir in $PATH
5858
do
5859
  IFS=$as_save_IFS
5860
  test -z "$as_dir" && as_dir=.
5861
  for ac_exec_ext in '' $ac_executable_extensions; do
5862
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863
    ac_cv_prog_ac_ct_STRIP="strip"
5864
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865
    break 2
5866
  fi
5867
done
5868
done
5869
 
5870
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5871
fi
5872
fi
5873
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5874
if test -n "$ac_ct_STRIP"; then
5875
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5876
echo "${ECHO_T}$ac_ct_STRIP" >&6
5877
else
5878
  echo "$as_me:$LINENO: result: no" >&5
5879
echo "${ECHO_T}no" >&6
5880
fi
5881
 
5882
  STRIP=$ac_ct_STRIP
5883
else
5884
  STRIP="$ac_cv_prog_STRIP"
5885
fi
5886
 
5887
test -z "$STRIP" && STRIP=:
5888
 
5889
 
5890
 
5891
 
5892
 
5893
 
5894
if test -n "$ac_tool_prefix"; then
5895
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5896
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5897
echo "$as_me:$LINENO: checking for $ac_word" >&5
5898
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5899
if test "${ac_cv_prog_RANLIB+set}" = set; then
5900
  echo $ECHO_N "(cached) $ECHO_C" >&6
5901
else
5902
  if test -n "$RANLIB"; then
5903
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5904
else
5905
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906
for as_dir in $PATH
5907
do
5908
  IFS=$as_save_IFS
5909
  test -z "$as_dir" && as_dir=.
5910
  for ac_exec_ext in '' $ac_executable_extensions; do
5911
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5913
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914
    break 2
5915
  fi
5916
done
5917
done
5918
 
5919
fi
5920
fi
5921
RANLIB=$ac_cv_prog_RANLIB
5922
if test -n "$RANLIB"; then
5923
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5924
echo "${ECHO_T}$RANLIB" >&6
5925
else
5926
  echo "$as_me:$LINENO: result: no" >&5
5927
echo "${ECHO_T}no" >&6
5928
fi
5929
 
5930
fi
5931
if test -z "$ac_cv_prog_RANLIB"; then
5932
  ac_ct_RANLIB=$RANLIB
5933
  # Extract the first word of "ranlib", so it can be a program name with args.
5934
set dummy ranlib; ac_word=$2
5935
echo "$as_me:$LINENO: checking for $ac_word" >&5
5936
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5937
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5938
  echo $ECHO_N "(cached) $ECHO_C" >&6
5939
else
5940
  if test -n "$ac_ct_RANLIB"; then
5941
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5942
else
5943
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944
for as_dir in $PATH
5945
do
5946
  IFS=$as_save_IFS
5947
  test -z "$as_dir" && as_dir=.
5948
  for ac_exec_ext in '' $ac_executable_extensions; do
5949
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5950
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5951
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952
    break 2
5953
  fi
5954
done
5955
done
5956
 
5957
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5958
fi
5959
fi
5960
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5961
if test -n "$ac_ct_RANLIB"; then
5962
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5963
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5964
else
5965
  echo "$as_me:$LINENO: result: no" >&5
5966
echo "${ECHO_T}no" >&6
5967
fi
5968
 
5969
  RANLIB=$ac_ct_RANLIB
5970
else
5971
  RANLIB="$ac_cv_prog_RANLIB"
5972
fi
5973
 
5974
test -z "$RANLIB" && RANLIB=:
5975
 
5976
 
5977
 
5978
 
5979
 
5980
 
5981
# Determine commands to create old-style static archives.
5982
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5983
old_postinstall_cmds='chmod 644 $oldlib'
5984
old_postuninstall_cmds=
5985
 
5986
if test -n "$RANLIB"; then
5987
  case $host_os in
5988
  openbsd*)
5989
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5990
    ;;
5991
  *)
5992
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5993
    ;;
5994
  esac
5995
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5996
fi
5997
 
5998
 
5999
 
6000
 
6001
 
6002
 
6003
 
6004
 
6005
 
6006
 
6007
 
6008
 
6009
 
6010
 
6011
 
6012
 
6013
 
6014
 
6015
 
6016
 
6017
 
6018
 
6019
 
6020
 
6021
 
6022
 
6023
 
6024
 
6025
 
6026
 
6027
 
6028
 
6029
 
6030
 
6031
# If no C compiler was specified, use CC.
6032
LTCC=${LTCC-"$CC"}
6033
 
6034
# If no C compiler flags were specified, use CFLAGS.
6035
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6036
 
6037
# Allow CC to be a program name with arguments.
6038
compiler=$CC
6039
 
6040
 
6041
# Check for command to grab the raw symbol name followed by C symbol from nm.
6042
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6043
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6044
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6045
  echo $ECHO_N "(cached) $ECHO_C" >&6
6046
else
6047
 
6048
# These are sane defaults that work on at least a few old systems.
6049
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6050
 
6051
# Character class describing NM global symbol codes.
6052
symcode='[BCDEGRST]'
6053
 
6054
# Regexp to match symbols that can be accessed directly from C.
6055
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6056
 
6057
# Define system-specific variables.
6058
case $host_os in
6059
aix*)
6060
  symcode='[BCDT]'
6061
  ;;
6062
cygwin* | mingw* | pw32*)
6063
  symcode='[ABCDGISTW]'
6064
  ;;
6065
hpux*)
6066
  if test "$host_cpu" = ia64; then
6067
    symcode='[ABCDEGRST]'
6068
  fi
6069
  ;;
6070
irix* | nonstopux*)
6071
  symcode='[BCDEGRST]'
6072
  ;;
6073
osf*)
6074
  symcode='[BCDEGQRST]'
6075
  ;;
6076
solaris*)
6077
  symcode='[BDRT]'
6078
  ;;
6079
sco3.2v5*)
6080
  symcode='[DT]'
6081
  ;;
6082
sysv4.2uw2*)
6083
  symcode='[DT]'
6084
  ;;
6085
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6086
  symcode='[ABDT]'
6087
  ;;
6088
sysv4)
6089
  symcode='[DFNSTU]'
6090
  ;;
6091
esac
6092
 
6093
# If we're using GNU nm, then use its standard symbol codes.
6094
case `$NM -V 2>&1` in
6095
*GNU* | *'with BFD'*)
6096
  symcode='[ABCDGIRSTW]' ;;
6097
esac
6098
 
6099
# Transform an extracted symbol line into a proper C declaration.
6100
# Some systems (esp. on ia64) link data and code symbols differently,
6101
# so use this general approach.
6102
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6103
 
6104
# Transform an extracted symbol line into symbol name and symbol address
6105
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6106
 
6107
# Handle CRLF in mingw tool chain
6108
opt_cr=
6109
case $build_os in
6110
mingw*)
6111
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6112
  ;;
6113
esac
6114
 
6115
# Try without a prefix underscore, then with it.
6116
for ac_symprfx in "" "_"; do
6117
 
6118
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6119
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6120
 
6121
  # Write the raw and C identifiers.
6122
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6123
    # Fake it for dumpbin and say T for any non-static function
6124
    # and D for any global variable.
6125
    # Also find C++ and __fastcall symbols from MSVC++,
6126
    # which start with @ or ?.
6127
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6128
"     {last_section=section; section=\$ 3};"\
6129
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6130
"     \$ 0!~/External *\|/{next};"\
6131
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6132
"     {if(hide[section]) next};"\
6133
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6134
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6135
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6136
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6137
"     ' prfx=^$ac_symprfx"
6138
  else
6139
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6140
  fi
6141
 
6142
  # Check to see that the pipe works correctly.
6143
  pipe_works=no
6144
 
6145
  rm -f conftest*
6146
  cat > conftest.$ac_ext <<_LT_EOF
6147
#ifdef __cplusplus
6148
extern "C" {
6149
#endif
6150
char nm_test_var;
6151
void nm_test_func(void);
6152
void nm_test_func(void){}
6153
#ifdef __cplusplus
6154
}
6155
#endif
6156
int main(){nm_test_var='a';nm_test_func();return(0);}
6157
_LT_EOF
6158
 
6159
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160
  (eval $ac_compile) 2>&5
6161
  ac_status=$?
6162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163
  (exit $ac_status); }; then
6164
    # Now try to grab the symbols.
6165
    nlist=conftest.nm
6166
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6167
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6168
  ac_status=$?
6169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170
  (exit $ac_status); } && test -s "$nlist"; then
6171
      # Try sorting and uniquifying the output.
6172
      if sort "$nlist" | uniq > "$nlist"T; then
6173
        mv -f "$nlist"T "$nlist"
6174
      else
6175
        rm -f "$nlist"T
6176
      fi
6177
 
6178
      # Make sure that we snagged all the symbols we need.
6179
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6180
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6181
          cat <<_LT_EOF > conftest.$ac_ext
6182
#ifdef __cplusplus
6183
extern "C" {
6184
#endif
6185
 
6186
_LT_EOF
6187
          # Now generate the symbol file.
6188
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6189
 
6190
          cat <<_LT_EOF >> conftest.$ac_ext
6191
 
6192
/* The mapping between symbol names and symbols.  */
6193
const struct {
6194
  const char *name;
6195
  void       *address;
6196
}
6197
lt__PROGRAM__LTX_preloaded_symbols[] =
6198
{
6199
  { "@PROGRAM@", (void *) 0 },
6200
_LT_EOF
6201
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6202
          cat <<\_LT_EOF >> conftest.$ac_ext
6203
  {0, (void *) 0}
6204
};
6205
 
6206
/* This works around a problem in FreeBSD linker */
6207
#ifdef FREEBSD_WORKAROUND
6208
static const void *lt_preloaded_setup() {
6209
  return lt__PROGRAM__LTX_preloaded_symbols;
6210
}
6211
#endif
6212
 
6213
#ifdef __cplusplus
6214
}
6215
#endif
6216
_LT_EOF
6217
          # Now try linking the two files.
6218
          mv conftest.$ac_objext conftstm.$ac_objext
6219
          lt_save_LIBS="$LIBS"
6220
          lt_save_CFLAGS="$CFLAGS"
6221
          LIBS="conftstm.$ac_objext"
6222
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6223
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6224
  (eval $ac_link) 2>&5
6225
  ac_status=$?
6226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6228
            pipe_works=yes
6229
          fi
6230
          LIBS="$lt_save_LIBS"
6231
          CFLAGS="$lt_save_CFLAGS"
6232
        else
6233
          echo "cannot find nm_test_func in $nlist" >&5
6234
        fi
6235
      else
6236
        echo "cannot find nm_test_var in $nlist" >&5
6237
      fi
6238
    else
6239
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6240
    fi
6241
  else
6242
    echo "$progname: failed program was:" >&5
6243
    cat conftest.$ac_ext >&5
6244
  fi
6245
  rm -f conftest* conftst*
6246
 
6247
  # Do not use the global_symbol_pipe unless it works.
6248
  if test "$pipe_works" = yes; then
6249
    break
6250
  else
6251
    lt_cv_sys_global_symbol_pipe=
6252
  fi
6253
done
6254
 
6255
fi
6256
 
6257
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6258
  lt_cv_sys_global_symbol_to_cdecl=
6259
fi
6260
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6261
  echo "$as_me:$LINENO: result: failed" >&5
6262
echo "${ECHO_T}failed" >&6
6263
else
6264
  echo "$as_me:$LINENO: result: ok" >&5
6265
echo "${ECHO_T}ok" >&6
6266
fi
6267
 
6268
 
6269
 
6270
 
6271
 
6272
 
6273
 
6274
 
6275
 
6276
 
6277
 
6278
 
6279
 
6280
 
6281
 
6282
 
6283
 
6284
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6285
if test "${enable_libtool_lock+set}" = set; then
6286
  enableval="$enable_libtool_lock"
6287
 
6288
fi;
6289
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6290
 
6291
# Some flags need to be propagated to the compiler or linker for good
6292
# libtool support.
6293
case $host in
6294
ia64-*-hpux*)
6295
  # Find out which ABI we are using.
6296
  echo 'int i;' > conftest.$ac_ext
6297
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6298
  (eval $ac_compile) 2>&5
6299
  ac_status=$?
6300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301
  (exit $ac_status); }; then
6302
    case `/usr/bin/file conftest.$ac_objext` in
6303
      *ELF-32*)
6304
        HPUX_IA64_MODE="32"
6305
        ;;
6306
      *ELF-64*)
6307
        HPUX_IA64_MODE="64"
6308
        ;;
6309
    esac
6310
  fi
6311
  rm -rf conftest*
6312
  ;;
6313
*-*-irix6*)
6314
  # Find out which ABI we are using.
6315
  echo '#line 6315 "configure"' > conftest.$ac_ext
6316
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317
  (eval $ac_compile) 2>&5
6318
  ac_status=$?
6319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320
  (exit $ac_status); }; then
6321
    if test "$lt_cv_prog_gnu_ld" = yes; then
6322
      case `/usr/bin/file conftest.$ac_objext` in
6323
        *32-bit*)
6324
          LD="${LD-ld} -melf32bsmip"
6325
          ;;
6326
        *N32*)
6327
          LD="${LD-ld} -melf32bmipn32"
6328
          ;;
6329
        *64-bit*)
6330
          LD="${LD-ld} -melf64bmip"
6331
        ;;
6332
      esac
6333
    else
6334
      case `/usr/bin/file conftest.$ac_objext` in
6335
        *32-bit*)
6336
          LD="${LD-ld} -32"
6337
          ;;
6338
        *N32*)
6339
          LD="${LD-ld} -n32"
6340
          ;;
6341
        *64-bit*)
6342
          LD="${LD-ld} -64"
6343
          ;;
6344
      esac
6345
    fi
6346
  fi
6347
  rm -rf conftest*
6348
  ;;
6349
 
6350
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6351
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6352
  # Find out which ABI we are using.
6353
  echo 'int i;' > conftest.$ac_ext
6354
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355
  (eval $ac_compile) 2>&5
6356
  ac_status=$?
6357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358
  (exit $ac_status); }; then
6359
    case `/usr/bin/file conftest.o` in
6360
      *32-bit*)
6361
        case $host in
6362
          x86_64-*kfreebsd*-gnu)
6363
            LD="${LD-ld} -m elf_i386_fbsd"
6364
            ;;
6365
          x86_64-*linux*)
6366
            LD="${LD-ld} -m elf_i386"
6367
            ;;
6368
          ppc64-*linux*|powerpc64-*linux*)
6369
            LD="${LD-ld} -m elf32ppclinux"
6370
            ;;
6371
          s390x-*linux*)
6372
            LD="${LD-ld} -m elf_s390"
6373
            ;;
6374
          sparc64-*linux*)
6375
            LD="${LD-ld} -m elf32_sparc"
6376
            ;;
6377
        esac
6378
        ;;
6379
      *64-bit*)
6380
        case $host in
6381
          x86_64-*kfreebsd*-gnu)
6382
            LD="${LD-ld} -m elf_x86_64_fbsd"
6383
            ;;
6384
          x86_64-*linux*)
6385
            LD="${LD-ld} -m elf_x86_64"
6386
            ;;
6387
          ppc*-*linux*|powerpc*-*linux*)
6388
            LD="${LD-ld} -m elf64ppc"
6389
            ;;
6390
          s390*-*linux*|s390*-*tpf*)
6391
            LD="${LD-ld} -m elf64_s390"
6392
            ;;
6393
          sparc*-*linux*)
6394
            LD="${LD-ld} -m elf64_sparc"
6395
            ;;
6396
        esac
6397
        ;;
6398
    esac
6399
  fi
6400
  rm -rf conftest*
6401
  ;;
6402
 
6403
*-*-sco3.2v5*)
6404
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6405
  SAVE_CFLAGS="$CFLAGS"
6406
  CFLAGS="$CFLAGS -belf"
6407
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6408
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6409
if test "${lt_cv_cc_needs_belf+set}" = set; then
6410
  echo $ECHO_N "(cached) $ECHO_C" >&6
6411
else
6412
  ac_ext=c
6413
ac_cpp='$CPP $CPPFLAGS'
6414
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6415
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6416
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6417
 
6418
     cat >conftest.$ac_ext <<_ACEOF
6419
/* confdefs.h.  */
6420
_ACEOF
6421
cat confdefs.h >>conftest.$ac_ext
6422
cat >>conftest.$ac_ext <<_ACEOF
6423
/* end confdefs.h.  */
6424
 
6425
int
6426
main ()
6427
{
6428
 
6429
  ;
6430
  return 0;
6431
}
6432
_ACEOF
6433
rm -f conftest.$ac_objext conftest$ac_exeext
6434
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6435
  (eval $ac_link) 2>conftest.er1
6436
  ac_status=$?
6437
  grep -v '^ *+' conftest.er1 >conftest.err
6438
  rm -f conftest.er1
6439
  cat conftest.err >&5
6440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441
  (exit $ac_status); } &&
6442
         { ac_try='test -z "$ac_c_werror_flag"
6443
                         || test ! -s conftest.err'
6444
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445
  (eval $ac_try) 2>&5
6446
  ac_status=$?
6447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448
  (exit $ac_status); }; } &&
6449
         { ac_try='test -s conftest$ac_exeext'
6450
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451
  (eval $ac_try) 2>&5
6452
  ac_status=$?
6453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454
  (exit $ac_status); }; }; then
6455
  lt_cv_cc_needs_belf=yes
6456
else
6457
  echo "$as_me: failed program was:" >&5
6458
sed 's/^/| /' conftest.$ac_ext >&5
6459
 
6460
lt_cv_cc_needs_belf=no
6461
fi
6462
rm -f conftest.err conftest.$ac_objext \
6463
      conftest$ac_exeext conftest.$ac_ext
6464
     ac_ext=c
6465
ac_cpp='$CPP $CPPFLAGS'
6466
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6467
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6468
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6469
 
6470
fi
6471
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6472
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6473
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6474
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6475
    CFLAGS="$SAVE_CFLAGS"
6476
  fi
6477
  ;;
6478
sparc*-*solaris*)
6479
  # Find out which ABI we are using.
6480
  echo 'int i;' > conftest.$ac_ext
6481
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482
  (eval $ac_compile) 2>&5
6483
  ac_status=$?
6484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485
  (exit $ac_status); }; then
6486
    case `/usr/bin/file conftest.o` in
6487
    *64-bit*)
6488
      case $lt_cv_prog_gnu_ld in
6489
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6490
      *)    LD="${LD-ld} -64" ;;
6491
      esac
6492
      ;;
6493
    esac
6494
  fi
6495
  rm -rf conftest*
6496
  ;;
6497
esac
6498
 
6499
need_locks="$enable_libtool_lock"
6500
 
6501
 
6502
for ac_header in dlfcn.h
6503
do
6504
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6505
echo "$as_me:$LINENO: checking for $ac_header" >&5
6506
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6507
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6508
  echo $ECHO_N "(cached) $ECHO_C" >&6
6509
else
6510
  cat >conftest.$ac_ext <<_ACEOF
6511
/* confdefs.h.  */
6512
_ACEOF
6513
cat confdefs.h >>conftest.$ac_ext
6514
cat >>conftest.$ac_ext <<_ACEOF
6515
/* end confdefs.h.  */
6516
$ac_includes_default
6517
 
6518
#include <$ac_header>
6519
_ACEOF
6520
rm -f conftest.$ac_objext
6521
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6522
  (eval $ac_compile) 2>conftest.er1
6523
  ac_status=$?
6524
  grep -v '^ *+' conftest.er1 >conftest.err
6525
  rm -f conftest.er1
6526
  cat conftest.err >&5
6527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528
  (exit $ac_status); } &&
6529
         { ac_try='test -z "$ac_c_werror_flag"
6530
                         || test ! -s conftest.err'
6531
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532
  (eval $ac_try) 2>&5
6533
  ac_status=$?
6534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535
  (exit $ac_status); }; } &&
6536
         { ac_try='test -s conftest.$ac_objext'
6537
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538
  (eval $ac_try) 2>&5
6539
  ac_status=$?
6540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541
  (exit $ac_status); }; }; then
6542
  eval "$as_ac_Header=yes"
6543
else
6544
  echo "$as_me: failed program was:" >&5
6545
sed 's/^/| /' conftest.$ac_ext >&5
6546
 
6547
eval "$as_ac_Header=no"
6548
fi
6549
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6550
fi
6551
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6552
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6553
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6554
  cat >>confdefs.h <<_ACEOF
6555
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6556
_ACEOF
6557
 
6558
fi
6559
 
6560
done
6561
 
6562
 
6563
 
6564
# This can be used to rebuild libtool when needed
6565
LIBTOOL_DEPS="$ltmain"
6566
 
6567
# Always use our own libtool.
6568
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6569
 
6570
 
6571
 
6572
 
6573
 
6574
 
6575
 
6576
 
6577
 
6578
 
6579
 
6580
 
6581
 
6582
 
6583
 
6584
 
6585
 
6586
 
6587
 
6588
 
6589
 
6590
 
6591
 
6592
 
6593
 
6594
test -z "$LN_S" && LN_S="ln -s"
6595
 
6596
 
6597
 
6598
 
6599
 
6600
 
6601
 
6602
 
6603
 
6604
 
6605
 
6606
 
6607
 
6608
 
6609
if test -n "${ZSH_VERSION+set}" ; then
6610
   setopt NO_GLOB_SUBST
6611
fi
6612
 
6613
echo "$as_me:$LINENO: checking for objdir" >&5
6614
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6615
if test "${lt_cv_objdir+set}" = set; then
6616
  echo $ECHO_N "(cached) $ECHO_C" >&6
6617
else
6618
  rm -f .libs 2>/dev/null
6619
mkdir .libs 2>/dev/null
6620
if test -d .libs; then
6621
  lt_cv_objdir=.libs
6622
else
6623
  # MS-DOS does not allow filenames that begin with a dot.
6624
  lt_cv_objdir=_libs
6625
fi
6626
rmdir .libs 2>/dev/null
6627
fi
6628
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6629
echo "${ECHO_T}$lt_cv_objdir" >&6
6630
objdir=$lt_cv_objdir
6631
 
6632
 
6633
 
6634
 
6635
 
6636
cat >>confdefs.h <<_ACEOF
6637
#define LT_OBJDIR "$lt_cv_objdir/"
6638
_ACEOF
6639
 
6640
 
6641
 
6642
 
6643
 
6644
 
6645
 
6646
 
6647
 
6648
 
6649
 
6650
 
6651
 
6652
 
6653
 
6654
 
6655
 
6656
case $host_os in
6657
aix3*)
6658
  # AIX sometimes has problems with the GCC collect2 program.  For some
6659
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6660
  # vanish in a puff of smoke.
6661
  if test "X${COLLECT_NAMES+set}" != Xset; then
6662
    COLLECT_NAMES=
6663
    export COLLECT_NAMES
6664
  fi
6665
  ;;
6666
esac
6667
 
6668
# Sed substitution that helps us do robust quoting.  It backslashifies
6669
# metacharacters that are still active within double-quoted strings.
6670
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6671
 
6672
# Same as above, but do not quote variable references.
6673
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6674
 
6675
# Sed substitution to delay expansion of an escaped shell variable in a
6676
# double_quote_subst'ed string.
6677
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6678
 
6679
# Sed substitution to delay expansion of an escaped single quote.
6680
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6681
 
6682
# Sed substitution to avoid accidental globbing in evaled expressions
6683
no_glob_subst='s/\*/\\\*/g'
6684
 
6685
# Global variables:
6686
ofile=libtool
6687
can_build_shared=yes
6688
 
6689
# All known linkers require a `.a' archive for static linking (except MSVC,
6690
# which needs '.lib').
6691
libext=a
6692
 
6693
with_gnu_ld="$lt_cv_prog_gnu_ld"
6694
 
6695
old_CC="$CC"
6696
old_CFLAGS="$CFLAGS"
6697
 
6698
# Set sane defaults for various variables
6699
test -z "$CC" && CC=cc
6700
test -z "$LTCC" && LTCC=$CC
6701
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6702
test -z "$LD" && LD=ld
6703
test -z "$ac_objext" && ac_objext=o
6704
 
6705
for cc_temp in $compiler""; do
6706
  case $cc_temp in
6707
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6708
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6709
    \-*) ;;
6710
    *) break;;
6711
  esac
6712
done
6713
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6714
 
6715
 
6716
# Only perform the check for file, if the check method requires it
6717
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6718
case $deplibs_check_method in
6719
file_magic*)
6720
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6721
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6722
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6723
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6724
  echo $ECHO_N "(cached) $ECHO_C" >&6
6725
else
6726
  case $MAGIC_CMD in
6727
[\\/*] |  ?:[\\/]*)
6728
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6729
  ;;
6730
*)
6731
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6732
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6733
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6734
  for ac_dir in $ac_dummy; do
6735
    IFS="$lt_save_ifs"
6736
    test -z "$ac_dir" && ac_dir=.
6737
    if test -f $ac_dir/${ac_tool_prefix}file; then
6738
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6739
      if test -n "$file_magic_test_file"; then
6740
        case $deplibs_check_method in
6741
        "file_magic "*)
6742
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6743
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6744
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6745
            $EGREP "$file_magic_regex" > /dev/null; then
6746
            :
6747
          else
6748
            cat <<_LT_EOF 1>&2
6749
 
6750
*** Warning: the command libtool uses to detect shared libraries,
6751
*** $file_magic_cmd, produces output that libtool cannot recognize.
6752
*** The result is that libtool may fail to recognize shared libraries
6753
*** as such.  This will affect the creation of libtool libraries that
6754
*** depend on shared libraries, but programs linked with such libtool
6755
*** libraries will work regardless of this problem.  Nevertheless, you
6756
*** may want to report the problem to your system manager and/or to
6757
*** bug-libtool@gnu.org
6758
 
6759
_LT_EOF
6760
          fi ;;
6761
        esac
6762
      fi
6763
      break
6764
    fi
6765
  done
6766
  IFS="$lt_save_ifs"
6767
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6768
  ;;
6769
esac
6770
fi
6771
 
6772
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6773
if test -n "$MAGIC_CMD"; then
6774
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6775
echo "${ECHO_T}$MAGIC_CMD" >&6
6776
else
6777
  echo "$as_me:$LINENO: result: no" >&5
6778
echo "${ECHO_T}no" >&6
6779
fi
6780
 
6781
 
6782
 
6783
 
6784
 
6785
if test -z "$lt_cv_path_MAGIC_CMD"; then
6786
  if test -n "$ac_tool_prefix"; then
6787
    echo "$as_me:$LINENO: checking for file" >&5
6788
echo $ECHO_N "checking for file... $ECHO_C" >&6
6789
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6790
  echo $ECHO_N "(cached) $ECHO_C" >&6
6791
else
6792
  case $MAGIC_CMD in
6793
[\\/*] |  ?:[\\/]*)
6794
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6795
  ;;
6796
*)
6797
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6798
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6799
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6800
  for ac_dir in $ac_dummy; do
6801
    IFS="$lt_save_ifs"
6802
    test -z "$ac_dir" && ac_dir=.
6803
    if test -f $ac_dir/file; then
6804
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6805
      if test -n "$file_magic_test_file"; then
6806
        case $deplibs_check_method in
6807
        "file_magic "*)
6808
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6809
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6810
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6811
            $EGREP "$file_magic_regex" > /dev/null; then
6812
            :
6813
          else
6814
            cat <<_LT_EOF 1>&2
6815
 
6816
*** Warning: the command libtool uses to detect shared libraries,
6817
*** $file_magic_cmd, produces output that libtool cannot recognize.
6818
*** The result is that libtool may fail to recognize shared libraries
6819
*** as such.  This will affect the creation of libtool libraries that
6820
*** depend on shared libraries, but programs linked with such libtool
6821
*** libraries will work regardless of this problem.  Nevertheless, you
6822
*** may want to report the problem to your system manager and/or to
6823
*** bug-libtool@gnu.org
6824
 
6825
_LT_EOF
6826
          fi ;;
6827
        esac
6828
      fi
6829
      break
6830
    fi
6831
  done
6832
  IFS="$lt_save_ifs"
6833
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6834
  ;;
6835
esac
6836
fi
6837
 
6838
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6839
if test -n "$MAGIC_CMD"; then
6840
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6841
echo "${ECHO_T}$MAGIC_CMD" >&6
6842
else
6843
  echo "$as_me:$LINENO: result: no" >&5
6844
echo "${ECHO_T}no" >&6
6845
fi
6846
 
6847
 
6848
  else
6849
    MAGIC_CMD=:
6850
  fi
6851
fi
6852
 
6853
  fi
6854
  ;;
6855
esac
6856
 
6857
# Use C for the default configuration in the libtool script
6858
 
6859
lt_save_CC="$CC"
6860
ac_ext=c
6861
ac_cpp='$CPP $CPPFLAGS'
6862
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6865
 
6866
 
6867
# Source file extension for C test sources.
6868
ac_ext=c
6869
 
6870
# Object file extension for compiled C test sources.
6871
objext=o
6872
objext=$objext
6873
 
6874
# Code to be used in simple compile tests
6875
lt_simple_compile_test_code="int some_variable = 0;"
6876
 
6877
# Code to be used in simple link tests
6878
lt_simple_link_test_code='int main(){return(0);}'
6879
 
6880
 
6881
 
6882
 
6883
 
6884
 
6885
 
6886
# If no C compiler was specified, use CC.
6887
LTCC=${LTCC-"$CC"}
6888
 
6889
# If no C compiler flags were specified, use CFLAGS.
6890
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6891
 
6892
# Allow CC to be a program name with arguments.
6893
compiler=$CC
6894
 
6895
# Save the default compiler, since it gets overwritten when the other
6896
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6897
compiler_DEFAULT=$CC
6898
 
6899
# save warnings/boilerplate of simple test code
6900
ac_outfile=conftest.$ac_objext
6901
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6902
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6903
_lt_compiler_boilerplate=`cat conftest.err`
6904
$RM conftest*
6905
 
6906
ac_outfile=conftest.$ac_objext
6907
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6908
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6909
_lt_linker_boilerplate=`cat conftest.err`
6910
$RM conftest*
6911
 
6912
 
6913
## CAVEAT EMPTOR:
6914
## There is no encapsulation within the following macros, do not change
6915
## the running order or otherwise move them around unless you know exactly
6916
## what you are doing...
6917
if test -n "$compiler"; then
6918
 
6919
lt_prog_compiler_no_builtin_flag=
6920
 
6921
if test "$GCC" = yes; then
6922
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6923
 
6924
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6925
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6926
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6927
  echo $ECHO_N "(cached) $ECHO_C" >&6
6928
else
6929
  lt_cv_prog_compiler_rtti_exceptions=no
6930
   ac_outfile=conftest.$ac_objext
6931
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6932
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6933
   # Insert the option either (1) after the last *FLAGS variable, or
6934
   # (2) before a word containing "conftest.", or (3) at the end.
6935
   # Note that $ac_compile itself does not contain backslashes and begins
6936
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6937
   # The option is referenced via a variable to avoid confusing sed.
6938
   lt_compile=`echo "$ac_compile" | $SED \
6939
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6940
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6941
   -e 's:$: $lt_compiler_flag:'`
6942
   (eval echo "\"\$as_me:6942: $lt_compile\"" >&5)
6943
   (eval "$lt_compile" 2>conftest.err)
6944
   ac_status=$?
6945
   cat conftest.err >&5
6946
   echo "$as_me:6946: \$? = $ac_status" >&5
6947
   if (exit $ac_status) && test -s "$ac_outfile"; then
6948
     # The compiler can only warn and ignore the option if not recognized
6949
     # So say no if there are warnings other than the usual output.
6950
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6951
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6952
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6953
       lt_cv_prog_compiler_rtti_exceptions=yes
6954
     fi
6955
   fi
6956
   $RM conftest*
6957
 
6958
fi
6959
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6960
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6961
 
6962
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6963
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6964
else
6965
    :
6966
fi
6967
 
6968
fi
6969
 
6970
 
6971
 
6972
 
6973
 
6974
 
6975
  lt_prog_compiler_wl=
6976
lt_prog_compiler_pic=
6977
lt_prog_compiler_static=
6978
 
6979
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6980
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6981
 
6982
  if test "$GCC" = yes; then
6983
    lt_prog_compiler_wl='-Wl,'
6984
    lt_prog_compiler_static='-static'
6985
 
6986
    case $host_os in
6987
      aix*)
6988
      # All AIX code is PIC.
6989
      if test "$host_cpu" = ia64; then
6990
        # AIX 5 now supports IA64 processor
6991
        lt_prog_compiler_static='-Bstatic'
6992
      fi
6993
      ;;
6994
 
6995
    amigaos*)
6996
      if test "$host_cpu" = m68k; then
6997
        # FIXME: we need at least 68020 code to build shared libraries, but
6998
        # adding the `-m68020' flag to GCC prevents building anything better,
6999
        # like `-m68040'.
7000
        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7001
      fi
7002
      ;;
7003
 
7004
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7005
      # PIC is the default for these OSes.
7006
      ;;
7007
 
7008
    mingw* | cygwin* | pw32* | os2*)
7009
      # This hack is so that the source file can tell whether it is being
7010
      # built for inclusion in a dll (and should export symbols for example).
7011
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7012
      # (--disable-auto-import) libraries
7013
      lt_prog_compiler_pic='-DDLL_EXPORT'
7014
      ;;
7015
 
7016
    darwin* | rhapsody*)
7017
      # PIC is the default on this platform
7018
      # Common symbols not allowed in MH_DYLIB files
7019
      lt_prog_compiler_pic='-fno-common'
7020
      ;;
7021
 
7022
    hpux*)
7023
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7024
      # not for PA HP-UX.
7025
      case $host_cpu in
7026
      hppa*64*|ia64*)
7027
        # +Z the default
7028
        ;;
7029
      *)
7030
        lt_prog_compiler_pic='-fPIC'
7031
        ;;
7032
      esac
7033
      ;;
7034
 
7035
    interix[3-9]*)
7036
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7037
      # Instead, we relocate shared libraries at runtime.
7038
      ;;
7039
 
7040
    msdosdjgpp*)
7041
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7042
      # on systems that don't support them.
7043
      lt_prog_compiler_can_build_shared=no
7044
      enable_shared=no
7045
      ;;
7046
 
7047
    *nto* | *qnx*)
7048
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7049
      # it will coredump.
7050
      lt_prog_compiler_pic='-fPIC -shared'
7051
      ;;
7052
 
7053
    sysv4*MP*)
7054
      if test -d /usr/nec; then
7055
        lt_prog_compiler_pic=-Kconform_pic
7056
      fi
7057
      ;;
7058
 
7059
    *)
7060
      lt_prog_compiler_pic='-fPIC'
7061
      ;;
7062
    esac
7063
  else
7064
    # PORTME Check for flag to pass linker flags through the system compiler.
7065
    case $host_os in
7066
    aix*)
7067
      lt_prog_compiler_wl='-Wl,'
7068
      if test "$host_cpu" = ia64; then
7069
        # AIX 5 now supports IA64 processor
7070
        lt_prog_compiler_static='-Bstatic'
7071
      else
7072
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7073
      fi
7074
      ;;
7075
    darwin*)
7076
      # PIC is the default on this platform
7077
      # Common symbols not allowed in MH_DYLIB files
7078
      case $cc_basename in
7079
      xlc*)
7080
        lt_prog_compiler_pic='-qnocommon'
7081
        lt_prog_compiler_wl='-Wl,'
7082
        ;;
7083
      esac
7084
      ;;
7085
 
7086
    mingw* | cygwin* | pw32* | os2*)
7087
      # This hack is so that the source file can tell whether it is being
7088
      # built for inclusion in a dll (and should export symbols for example).
7089
      lt_prog_compiler_pic='-DDLL_EXPORT'
7090
      ;;
7091
 
7092
    hpux9* | hpux10* | hpux11*)
7093
      lt_prog_compiler_wl='-Wl,'
7094
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7095
      # not for PA HP-UX.
7096
      case $host_cpu in
7097
      hppa*64*|ia64*)
7098
        # +Z the default
7099
        ;;
7100
      *)
7101
        lt_prog_compiler_pic='+Z'
7102
        ;;
7103
      esac
7104
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7105
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7106
      ;;
7107
 
7108
    irix5* | irix6* | nonstopux*)
7109
      lt_prog_compiler_wl='-Wl,'
7110
      # PIC (with -KPIC) is the default.
7111
      lt_prog_compiler_static='-non_shared'
7112
      ;;
7113
 
7114
    linux* | k*bsd*-gnu)
7115
      case $cc_basename in
7116
      icc* | ecc*)
7117
        lt_prog_compiler_wl='-Wl,'
7118
        lt_prog_compiler_pic='-KPIC'
7119
        lt_prog_compiler_static='-static'
7120
        ;;
7121
      pgcc* | pgf77* | pgf90* | pgf95*)
7122
        # Portland Group compilers (*not* the Pentium gcc compiler,
7123
        # which looks to be a dead project)
7124
        lt_prog_compiler_wl='-Wl,'
7125
        lt_prog_compiler_pic='-fpic'
7126
        lt_prog_compiler_static='-Bstatic'
7127
        ;;
7128
      ccc*)
7129
        lt_prog_compiler_wl='-Wl,'
7130
        # All Alpha code is PIC.
7131
        lt_prog_compiler_static='-non_shared'
7132
        ;;
7133
      *)
7134
        case `$CC -V 2>&1 | sed 5q` in
7135
        *Sun\ C*)
7136
          # Sun C 5.9
7137
          lt_prog_compiler_pic='-KPIC'
7138
          lt_prog_compiler_static='-Bstatic'
7139
          lt_prog_compiler_wl='-Wl,'
7140
          ;;
7141
        *Sun\ F*)
7142
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7143
          lt_prog_compiler_pic='-KPIC'
7144
          lt_prog_compiler_static='-Bstatic'
7145
          lt_prog_compiler_wl=''
7146
          ;;
7147
        esac
7148
        ;;
7149
      esac
7150
      ;;
7151
 
7152
    newsos6)
7153
      lt_prog_compiler_pic='-KPIC'
7154
      lt_prog_compiler_static='-Bstatic'
7155
      ;;
7156
 
7157
    *nto* | *qnx*)
7158
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7159
      # it will coredump.
7160
      lt_prog_compiler_pic='-fPIC -shared'
7161
      ;;
7162
 
7163
    osf3* | osf4* | osf5*)
7164
      lt_prog_compiler_wl='-Wl,'
7165
      # All OSF/1 code is PIC.
7166
      lt_prog_compiler_static='-non_shared'
7167
      ;;
7168
 
7169
    rdos*)
7170
      lt_prog_compiler_static='-non_shared'
7171
      ;;
7172
 
7173
    solaris*)
7174
      lt_prog_compiler_pic='-KPIC'
7175
      lt_prog_compiler_static='-Bstatic'
7176
      case $cc_basename in
7177
      f77* | f90* | f95*)
7178
        lt_prog_compiler_wl='-Qoption ld ';;
7179
      *)
7180
        lt_prog_compiler_wl='-Wl,';;
7181
      esac
7182
      ;;
7183
 
7184
    sunos4*)
7185
      lt_prog_compiler_wl='-Qoption ld '
7186
      lt_prog_compiler_pic='-PIC'
7187
      lt_prog_compiler_static='-Bstatic'
7188
      ;;
7189
 
7190
    sysv4 | sysv4.2uw2* | sysv4.3*)
7191
      lt_prog_compiler_wl='-Wl,'
7192
      lt_prog_compiler_pic='-KPIC'
7193
      lt_prog_compiler_static='-Bstatic'
7194
      ;;
7195
 
7196
    sysv4*MP*)
7197
      if test -d /usr/nec ;then
7198
        lt_prog_compiler_pic='-Kconform_pic'
7199
        lt_prog_compiler_static='-Bstatic'
7200
      fi
7201
      ;;
7202
 
7203
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7204
      lt_prog_compiler_wl='-Wl,'
7205
      lt_prog_compiler_pic='-KPIC'
7206
      lt_prog_compiler_static='-Bstatic'
7207
      ;;
7208
 
7209
    unicos*)
7210
      lt_prog_compiler_wl='-Wl,'
7211
      lt_prog_compiler_can_build_shared=no
7212
      ;;
7213
 
7214
    uts4*)
7215
      lt_prog_compiler_pic='-pic'
7216
      lt_prog_compiler_static='-Bstatic'
7217
      ;;
7218
 
7219
    *)
7220
      lt_prog_compiler_can_build_shared=no
7221
      ;;
7222
    esac
7223
  fi
7224
 
7225
case $host_os in
7226
  # For platforms which do not support PIC, -DPIC is meaningless:
7227
  *djgpp*)
7228
    lt_prog_compiler_pic=
7229
    ;;
7230
  *)
7231
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7232
    ;;
7233
esac
7234
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7235
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7236
 
7237
 
7238
 
7239
 
7240
 
7241
 
7242
#
7243
# Check to make sure the PIC flag actually works.
7244
#
7245
if test -n "$lt_prog_compiler_pic"; then
7246
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7247
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7248
if test "${lt_prog_compiler_pic_works+set}" = set; then
7249
  echo $ECHO_N "(cached) $ECHO_C" >&6
7250
else
7251
  lt_prog_compiler_pic_works=no
7252
   ac_outfile=conftest.$ac_objext
7253
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7254
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7255
   # Insert the option either (1) after the last *FLAGS variable, or
7256
   # (2) before a word containing "conftest.", or (3) at the end.
7257
   # Note that $ac_compile itself does not contain backslashes and begins
7258
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7259
   # The option is referenced via a variable to avoid confusing sed.
7260
   lt_compile=`echo "$ac_compile" | $SED \
7261
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7262
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7263
   -e 's:$: $lt_compiler_flag:'`
7264
   (eval echo "\"\$as_me:7264: $lt_compile\"" >&5)
7265
   (eval "$lt_compile" 2>conftest.err)
7266
   ac_status=$?
7267
   cat conftest.err >&5
7268
   echo "$as_me:7268: \$? = $ac_status" >&5
7269
   if (exit $ac_status) && test -s "$ac_outfile"; then
7270
     # The compiler can only warn and ignore the option if not recognized
7271
     # So say no if there are warnings other than the usual output.
7272
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7273
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7274
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7275
       lt_prog_compiler_pic_works=yes
7276
     fi
7277
   fi
7278
   $RM conftest*
7279
 
7280
fi
7281
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7282
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7283
 
7284
if test x"$lt_prog_compiler_pic_works" = xyes; then
7285
    case $lt_prog_compiler_pic in
7286
     "" | " "*) ;;
7287
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7288
     esac
7289
else
7290
    lt_prog_compiler_pic=
7291
     lt_prog_compiler_can_build_shared=no
7292
fi
7293
 
7294
fi
7295
 
7296
 
7297
 
7298
 
7299
 
7300
 
7301
#
7302
# Check to make sure the static flag actually works.
7303
#
7304
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7305
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7306
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7307
if test "${lt_prog_compiler_static_works+set}" = set; then
7308
  echo $ECHO_N "(cached) $ECHO_C" >&6
7309
else
7310
  lt_prog_compiler_static_works=no
7311
   save_LDFLAGS="$LDFLAGS"
7312
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7313
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7314
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7315
     # The linker can only warn and ignore the option if not recognized
7316
     # So say no if there are warnings
7317
     if test -s conftest.err; then
7318
       # Append any errors to the config.log.
7319
       cat conftest.err 1>&5
7320
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7321
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7322
       if diff conftest.exp conftest.er2 >/dev/null; then
7323
         lt_prog_compiler_static_works=yes
7324
       fi
7325
     else
7326
       lt_prog_compiler_static_works=yes
7327
     fi
7328
   fi
7329
   $RM conftest*
7330
   LDFLAGS="$save_LDFLAGS"
7331
 
7332
fi
7333
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7334
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7335
 
7336
if test x"$lt_prog_compiler_static_works" = xyes; then
7337
    :
7338
else
7339
    lt_prog_compiler_static=
7340
fi
7341
 
7342
 
7343
 
7344
 
7345
 
7346
 
7347
 
7348
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7349
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7350
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7351
  echo $ECHO_N "(cached) $ECHO_C" >&6
7352
else
7353
  lt_cv_prog_compiler_c_o=no
7354
   $RM -r conftest 2>/dev/null
7355
   mkdir conftest
7356
   cd conftest
7357
   mkdir out
7358
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7359
 
7360
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7361
   # Insert the option either (1) after the last *FLAGS variable, or
7362
   # (2) before a word containing "conftest.", or (3) at the end.
7363
   # Note that $ac_compile itself does not contain backslashes and begins
7364
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7365
   lt_compile=`echo "$ac_compile" | $SED \
7366
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7367
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7368
   -e 's:$: $lt_compiler_flag:'`
7369
   (eval echo "\"\$as_me:7369: $lt_compile\"" >&5)
7370
   (eval "$lt_compile" 2>out/conftest.err)
7371
   ac_status=$?
7372
   cat out/conftest.err >&5
7373
   echo "$as_me:7373: \$? = $ac_status" >&5
7374
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7375
   then
7376
     # The compiler can only warn and ignore the option if not recognized
7377
     # So say no if there are warnings
7378
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7379
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7380
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7381
       lt_cv_prog_compiler_c_o=yes
7382
     fi
7383
   fi
7384
   chmod u+w . 2>&5
7385
   $RM conftest*
7386
   # SGI C++ compiler will create directory out/ii_files/ for
7387
   # template instantiation
7388
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7389
   $RM out/* && rmdir out
7390
   cd ..
7391
   $RM -r conftest
7392
   $RM conftest*
7393
 
7394
fi
7395
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7396
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7397
 
7398
 
7399
 
7400
 
7401
 
7402
 
7403
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7404
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7405
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7406
  echo $ECHO_N "(cached) $ECHO_C" >&6
7407
else
7408
  lt_cv_prog_compiler_c_o=no
7409
   $RM -r conftest 2>/dev/null
7410
   mkdir conftest
7411
   cd conftest
7412
   mkdir out
7413
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7414
 
7415
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7416
   # Insert the option either (1) after the last *FLAGS variable, or
7417
   # (2) before a word containing "conftest.", or (3) at the end.
7418
   # Note that $ac_compile itself does not contain backslashes and begins
7419
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7420
   lt_compile=`echo "$ac_compile" | $SED \
7421
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7422
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7423
   -e 's:$: $lt_compiler_flag:'`
7424
   (eval echo "\"\$as_me:7424: $lt_compile\"" >&5)
7425
   (eval "$lt_compile" 2>out/conftest.err)
7426
   ac_status=$?
7427
   cat out/conftest.err >&5
7428
   echo "$as_me:7428: \$? = $ac_status" >&5
7429
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7430
   then
7431
     # The compiler can only warn and ignore the option if not recognized
7432
     # So say no if there are warnings
7433
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7434
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7435
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7436
       lt_cv_prog_compiler_c_o=yes
7437
     fi
7438
   fi
7439
   chmod u+w . 2>&5
7440
   $RM conftest*
7441
   # SGI C++ compiler will create directory out/ii_files/ for
7442
   # template instantiation
7443
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7444
   $RM out/* && rmdir out
7445
   cd ..
7446
   $RM -r conftest
7447
   $RM conftest*
7448
 
7449
fi
7450
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7451
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7452
 
7453
 
7454
 
7455
 
7456
hard_links="nottested"
7457
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7458
  # do not overwrite the value of need_locks provided by the user
7459
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7460
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7461
  hard_links=yes
7462
  $RM conftest*
7463
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7464
  touch conftest.a
7465
  ln conftest.a conftest.b 2>&5 || hard_links=no
7466
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7467
  echo "$as_me:$LINENO: result: $hard_links" >&5
7468
echo "${ECHO_T}$hard_links" >&6
7469
  if test "$hard_links" = no; then
7470
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7471
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7472
    need_locks=warn
7473
  fi
7474
else
7475
  need_locks=no
7476
fi
7477
 
7478
 
7479
 
7480
 
7481
 
7482
 
7483
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7484
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7485
 
7486
  runpath_var=
7487
  allow_undefined_flag=
7488
  always_export_symbols=no
7489
  archive_cmds=
7490
  archive_expsym_cmds=
7491
  compiler_needs_object=no
7492
  enable_shared_with_static_runtimes=no
7493
  export_dynamic_flag_spec=
7494
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7495
  hardcode_automatic=no
7496
  hardcode_direct=no
7497
  hardcode_direct_absolute=no
7498
  hardcode_libdir_flag_spec=
7499
  hardcode_libdir_flag_spec_ld=
7500
  hardcode_libdir_separator=
7501
  hardcode_minus_L=no
7502
  hardcode_shlibpath_var=unsupported
7503
  inherit_rpath=no
7504
  link_all_deplibs=unknown
7505
  module_cmds=
7506
  module_expsym_cmds=
7507
  old_archive_from_new_cmds=
7508
  old_archive_from_expsyms_cmds=
7509
  thread_safe_flag_spec=
7510
  whole_archive_flag_spec=
7511
  # include_expsyms should be a list of space-separated symbols to be *always*
7512
  # included in the symbol list
7513
  include_expsyms=
7514
  # exclude_expsyms can be an extended regexp of symbols to exclude
7515
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7516
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7517
  # as well as any symbol that contains `d'.
7518
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7519
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7520
  # platforms (ab)use it in PIC code, but their linkers get confused if
7521
  # the symbol is explicitly referenced.  Since portable code cannot
7522
  # rely on this symbol name, it's probably fine to never include it in
7523
  # preloaded symbol tables.
7524
  extract_expsyms_cmds=
7525
 
7526
  case $host_os in
7527
  cygwin* | mingw* | pw32*)
7528
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7529
    # When not using gcc, we currently assume that we are using
7530
    # Microsoft Visual C++.
7531
    if test "$GCC" != yes; then
7532
      with_gnu_ld=no
7533
    fi
7534
    ;;
7535
  interix*)
7536
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7537
    with_gnu_ld=yes
7538
    ;;
7539
  openbsd*)
7540
    with_gnu_ld=no
7541
    ;;
7542
  esac
7543
 
7544
  ld_shlibs=yes
7545
  if test "$with_gnu_ld" = yes; then
7546
    # If archive_cmds runs LD, not CC, wlarc should be empty
7547
    wlarc='${wl}'
7548
 
7549
    # Set some defaults for GNU ld with shared library support. These
7550
    # are reset later if shared libraries are not supported. Putting them
7551
    # here allows them to be overridden if necessary.
7552
    runpath_var=LD_RUN_PATH
7553
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7554
    export_dynamic_flag_spec='${wl}--export-dynamic'
7555
    # ancient GNU ld didn't support --whole-archive et. al.
7556
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7557
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7558
    else
7559
      whole_archive_flag_spec=
7560
    fi
7561
    supports_anon_versioning=no
7562
    case `$LD -v 2>&1` in
7563
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7564
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7565
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7566
      *\ 2.11.*) ;; # other 2.11 versions
7567
      *) supports_anon_versioning=yes ;;
7568
    esac
7569
 
7570
    # See if GNU ld supports shared libraries.
7571
    case $host_os in
7572
    aix[3-9]*)
7573
      # On AIX/PPC, the GNU linker is very broken
7574
      if test "$host_cpu" != ia64; then
7575
        ld_shlibs=no
7576
        cat <<_LT_EOF 1>&2
7577
 
7578
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7579
*** to be unable to reliably create shared libraries on AIX.
7580
*** Therefore, libtool is disabling shared libraries support.  If you
7581
*** really care for shared libraries, you may want to modify your PATH
7582
*** so that a non-GNU linker is found, and then restart.
7583
 
7584
_LT_EOF
7585
      fi
7586
      ;;
7587
 
7588
    amigaos*)
7589
      if test "$host_cpu" = m68k; then
7590
        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)'
7591
        hardcode_libdir_flag_spec='-L$libdir'
7592
        hardcode_minus_L=yes
7593
      fi
7594
 
7595
      # Samuel A. Falvo II  reports
7596
      # that the semantics of dynamic libraries on AmigaOS, at least up
7597
      # to version 4, is to share data among multiple programs linked
7598
      # with the same dynamic library.  Since this doesn't match the
7599
      # behavior of shared libraries on other platforms, we can't use
7600
      # them.
7601
      ld_shlibs=no
7602
      ;;
7603
 
7604
    beos*)
7605
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7606
        allow_undefined_flag=unsupported
7607
        # Joseph Beckenbach  says some releases of gcc
7608
        # support --undefined.  This deserves some investigation.  FIXME
7609
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7610
      else
7611
        ld_shlibs=no
7612
      fi
7613
      ;;
7614
 
7615
    cygwin* | mingw* | pw32*)
7616
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7617
      # as there is no search path for DLLs.
7618
      hardcode_libdir_flag_spec='-L$libdir'
7619
      allow_undefined_flag=unsupported
7620
      always_export_symbols=no
7621
      enable_shared_with_static_runtimes=yes
7622
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7623
 
7624
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7625
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7626
        # If the export-symbols file already is a .def file (1st line
7627
        # is EXPORTS), use it as is; otherwise, prepend...
7628
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7629
          cp $export_symbols $output_objdir/$soname.def;
7630
        else
7631
          echo EXPORTS > $output_objdir/$soname.def;
7632
          cat $export_symbols >> $output_objdir/$soname.def;
7633
        fi~
7634
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7635
      else
7636
        ld_shlibs=no
7637
      fi
7638
      ;;
7639
 
7640
    interix[3-9]*)
7641
      hardcode_direct=no
7642
      hardcode_shlibpath_var=no
7643
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7644
      export_dynamic_flag_spec='${wl}-E'
7645
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7646
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7647
      # default) and relocated if they conflict, which is a slow very memory
7648
      # consuming and fragmenting process.  To avoid this, we pick a random,
7649
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7650
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7651
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7652
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7653
      ;;
7654
 
7655
    gnu* | linux* | tpf* | k*bsd*-gnu)
7656
      tmp_diet=no
7657
      if test "$host_os" = linux-dietlibc; then
7658
        case $cc_basename in
7659
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7660
        esac
7661
      fi
7662
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7663
         && test "$tmp_diet" = no
7664
      then
7665
        tmp_addflag=
7666
        case $cc_basename,$host_cpu in
7667
        pgcc*)                          # Portland Group C compiler
7668
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7669
          tmp_addflag=' $pic_flag'
7670
          ;;
7671
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7672
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7673
          tmp_addflag=' $pic_flag -Mnomain' ;;
7674
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7675
          tmp_addflag=' -i_dynamic' ;;
7676
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7677
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7678
        ifc* | ifort*)                  # Intel Fortran compiler
7679
          tmp_addflag=' -nofor_main' ;;
7680
        esac
7681
        case `$CC -V 2>&1 | sed 5q` in
7682
        *Sun\ C*)                       # Sun C 5.9
7683
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7684
          compiler_needs_object=yes
7685
          tmp_sharedflag='-G' ;;
7686
        *Sun\ F*)                       # Sun Fortran 8.3
7687
          tmp_sharedflag='-G' ;;
7688
        *)
7689
          tmp_sharedflag='-shared' ;;
7690
        esac
7691
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7692
 
7693
        if test "x$supports_anon_versioning" = xyes; then
7694
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7695
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7696
            echo "local: *; };" >> $output_objdir/$libname.ver~
7697
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7698
        fi
7699
      else
7700
        ld_shlibs=no
7701
      fi
7702
      ;;
7703
 
7704
    netbsd*)
7705
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7706
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7707
        wlarc=
7708
      else
7709
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7710
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7711
      fi
7712
      ;;
7713
 
7714
    solaris*)
7715
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7716
        ld_shlibs=no
7717
        cat <<_LT_EOF 1>&2
7718
 
7719
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7720
*** create shared libraries on Solaris systems.  Therefore, libtool
7721
*** is disabling shared libraries support.  We urge you to upgrade GNU
7722
*** binutils to release 2.9.1 or newer.  Another option is to modify
7723
*** your PATH or compiler configuration so that the native linker is
7724
*** used, and then restart.
7725
 
7726
_LT_EOF
7727
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7728
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7729
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7730
      else
7731
        ld_shlibs=no
7732
      fi
7733
      ;;
7734
 
7735
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7736
      case `$LD -v 2>&1` in
7737
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7738
        ld_shlibs=no
7739
        cat <<_LT_EOF 1>&2
7740
 
7741
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7742
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7743
*** is disabling shared libraries support.  We urge you to upgrade GNU
7744
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7745
*** your PATH or compiler configuration so that the native linker is
7746
*** used, and then restart.
7747
 
7748
_LT_EOF
7749
        ;;
7750
        *)
7751
          # For security reasons, it is highly recommended that you always
7752
          # use absolute paths for naming shared libraries, and exclude the
7753
          # DT_RUNPATH tag from executables and libraries.  But doing so
7754
          # requires that you compile everything twice, which is a pain.
7755
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7756
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7757
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7758
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7759
          else
7760
            ld_shlibs=no
7761
          fi
7762
        ;;
7763
      esac
7764
      ;;
7765
 
7766
    sunos4*)
7767
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7768
      wlarc=
7769
      hardcode_direct=yes
7770
      hardcode_shlibpath_var=no
7771
      ;;
7772
 
7773
    *)
7774
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7775
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7776
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7777
      else
7778
        ld_shlibs=no
7779
      fi
7780
      ;;
7781
    esac
7782
 
7783
    if test "$ld_shlibs" = no; then
7784
      runpath_var=
7785
      hardcode_libdir_flag_spec=
7786
      export_dynamic_flag_spec=
7787
      whole_archive_flag_spec=
7788
    fi
7789
  else
7790
    # PORTME fill in a description of your system's linker (not GNU ld)
7791
    case $host_os in
7792
    aix3*)
7793
      allow_undefined_flag=unsupported
7794
      always_export_symbols=yes
7795
      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'
7796
      # Note: this linker hardcodes the directories in LIBPATH if there
7797
      # are no directories specified by -L.
7798
      hardcode_minus_L=yes
7799
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7800
        # Neither direct hardcoding nor static linking is supported with a
7801
        # broken collect2.
7802
        hardcode_direct=unsupported
7803
      fi
7804
      ;;
7805
 
7806
    aix[4-9]*)
7807
      if test "$host_cpu" = ia64; then
7808
        # On IA64, the linker does run time linking by default, so we don't
7809
        # have to do anything special.
7810
        aix_use_runtimelinking=no
7811
        exp_sym_flag='-Bexport'
7812
        no_entry_flag=""
7813
      else
7814
        # If we're using GNU nm, then we don't want the "-C" option.
7815
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7816
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7817
          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'
7818
        else
7819
          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'
7820
        fi
7821
        aix_use_runtimelinking=no
7822
 
7823
        # Test if we are trying to use run time linking or normal
7824
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7825
        # need to do runtime linking.
7826
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7827
          for ld_flag in $LDFLAGS; do
7828
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7829
            aix_use_runtimelinking=yes
7830
            break
7831
          fi
7832
          done
7833
          ;;
7834
        esac
7835
 
7836
        exp_sym_flag='-bexport'
7837
        no_entry_flag='-bnoentry'
7838
      fi
7839
 
7840
      # When large executables or shared objects are built, AIX ld can
7841
      # have problems creating the table of contents.  If linking a library
7842
      # or program results in "error TOC overflow" add -mminimal-toc to
7843
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7844
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7845
 
7846
      archive_cmds=''
7847
      hardcode_direct=yes
7848
      hardcode_direct_absolute=yes
7849
      hardcode_libdir_separator=':'
7850
      link_all_deplibs=yes
7851
      file_list_spec='${wl}-f,'
7852
 
7853
      if test "$GCC" = yes; then
7854
        case $host_os in aix4.[012]|aix4.[012].*)
7855
        # We only want to do this on AIX 4.2 and lower, the check
7856
        # below for broken collect2 doesn't work under 4.3+
7857
          collect2name=`${CC} -print-prog-name=collect2`
7858
          if test -f "$collect2name" &&
7859
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7860
          then
7861
          # We have reworked collect2
7862
          :
7863
          else
7864
          # We have old collect2
7865
          hardcode_direct=unsupported
7866
          # It fails to find uninstalled libraries when the uninstalled
7867
          # path is not listed in the libpath.  Setting hardcode_minus_L
7868
          # to unsupported forces relinking
7869
          hardcode_minus_L=yes
7870
          hardcode_libdir_flag_spec='-L$libdir'
7871
          hardcode_libdir_separator=
7872
          fi
7873
          ;;
7874
        esac
7875
        shared_flag='-shared'
7876
        if test "$aix_use_runtimelinking" = yes; then
7877
          shared_flag="$shared_flag "'${wl}-G'
7878
        fi
7879
      else
7880
        # not using gcc
7881
        if test "$host_cpu" = ia64; then
7882
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7883
        # chokes on -Wl,-G. The following line is correct:
7884
          shared_flag='-G'
7885
        else
7886
          if test "$aix_use_runtimelinking" = yes; then
7887
            shared_flag='${wl}-G'
7888
          else
7889
            shared_flag='${wl}-bM:SRE'
7890
          fi
7891
        fi
7892
      fi
7893
 
7894
      # It seems that -bexpall does not export symbols beginning with
7895
      # underscore (_), so it is better to generate a list of symbols to export.
7896
      always_export_symbols=yes
7897
      if test "$aix_use_runtimelinking" = yes; then
7898
        # Warning - without using the other runtime loading flags (-brtl),
7899
        # -berok will link without error, but may produce a broken library.
7900
        allow_undefined_flag='-berok'
7901
        # Determine the default libpath from the value encoded in an
7902
        # empty executable.
7903
        cat >conftest.$ac_ext <<_ACEOF
7904
/* confdefs.h.  */
7905
_ACEOF
7906
cat confdefs.h >>conftest.$ac_ext
7907
cat >>conftest.$ac_ext <<_ACEOF
7908
/* end confdefs.h.  */
7909
 
7910
int
7911
main ()
7912
{
7913
 
7914
  ;
7915
  return 0;
7916
}
7917
_ACEOF
7918
rm -f conftest.$ac_objext conftest$ac_exeext
7919
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7920
  (eval $ac_link) 2>conftest.er1
7921
  ac_status=$?
7922
  grep -v '^ *+' conftest.er1 >conftest.err
7923
  rm -f conftest.er1
7924
  cat conftest.err >&5
7925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926
  (exit $ac_status); } &&
7927
         { ac_try='test -z "$ac_c_werror_flag"
7928
                         || test ! -s conftest.err'
7929
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930
  (eval $ac_try) 2>&5
7931
  ac_status=$?
7932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933
  (exit $ac_status); }; } &&
7934
         { ac_try='test -s conftest$ac_exeext'
7935
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936
  (eval $ac_try) 2>&5
7937
  ac_status=$?
7938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939
  (exit $ac_status); }; }; then
7940
 
7941
lt_aix_libpath_sed='
7942
    /Import File Strings/,/^$/ {
7943
        /^0/ {
7944
            s/^0  *\(.*\)$/\1/
7945
            p
7946
        }
7947
    }'
7948
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7949
# Check for a 64-bit object if we didn't find anything.
7950
if test -z "$aix_libpath"; then
7951
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7952
fi
7953
else
7954
  echo "$as_me: failed program was:" >&5
7955
sed 's/^/| /' conftest.$ac_ext >&5
7956
 
7957
fi
7958
rm -f conftest.err conftest.$ac_objext \
7959
      conftest$ac_exeext conftest.$ac_ext
7960
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7961
 
7962
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7963
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7964
      else
7965
        if test "$host_cpu" = ia64; then
7966
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7967
          allow_undefined_flag="-z nodefs"
7968
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7969
        else
7970
         # Determine the default libpath from the value encoded in an
7971
         # empty executable.
7972
         cat >conftest.$ac_ext <<_ACEOF
7973
/* confdefs.h.  */
7974
_ACEOF
7975
cat confdefs.h >>conftest.$ac_ext
7976
cat >>conftest.$ac_ext <<_ACEOF
7977
/* end confdefs.h.  */
7978
 
7979
int
7980
main ()
7981
{
7982
 
7983
  ;
7984
  return 0;
7985
}
7986
_ACEOF
7987
rm -f conftest.$ac_objext conftest$ac_exeext
7988
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7989
  (eval $ac_link) 2>conftest.er1
7990
  ac_status=$?
7991
  grep -v '^ *+' conftest.er1 >conftest.err
7992
  rm -f conftest.er1
7993
  cat conftest.err >&5
7994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995
  (exit $ac_status); } &&
7996
         { ac_try='test -z "$ac_c_werror_flag"
7997
                         || test ! -s conftest.err'
7998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999
  (eval $ac_try) 2>&5
8000
  ac_status=$?
8001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002
  (exit $ac_status); }; } &&
8003
         { ac_try='test -s conftest$ac_exeext'
8004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005
  (eval $ac_try) 2>&5
8006
  ac_status=$?
8007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008
  (exit $ac_status); }; }; then
8009
 
8010
lt_aix_libpath_sed='
8011
    /Import File Strings/,/^$/ {
8012
        /^0/ {
8013
            s/^0  *\(.*\)$/\1/
8014
            p
8015
        }
8016
    }'
8017
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8018
# Check for a 64-bit object if we didn't find anything.
8019
if test -z "$aix_libpath"; then
8020
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8021
fi
8022
else
8023
  echo "$as_me: failed program was:" >&5
8024
sed 's/^/| /' conftest.$ac_ext >&5
8025
 
8026
fi
8027
rm -f conftest.err conftest.$ac_objext \
8028
      conftest$ac_exeext conftest.$ac_ext
8029
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8030
 
8031
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8032
          # Warning - without using the other run time loading flags,
8033
          # -berok will link without error, but may produce a broken library.
8034
          no_undefined_flag=' ${wl}-bernotok'
8035
          allow_undefined_flag=' ${wl}-berok'
8036
          # Exported symbols can be pulled into shared objects from archives
8037
          whole_archive_flag_spec='$convenience'
8038
          archive_cmds_need_lc=yes
8039
          # This is similar to how AIX traditionally builds its shared libraries.
8040
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8041
        fi
8042
      fi
8043
      ;;
8044
 
8045
    amigaos*)
8046
      if test "$host_cpu" = m68k; then
8047
        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)'
8048
        hardcode_libdir_flag_spec='-L$libdir'
8049
        hardcode_minus_L=yes
8050
      fi
8051
      # see comment about different semantics on the GNU ld section
8052
      ld_shlibs=no
8053
      ;;
8054
 
8055
    bsdi[45]*)
8056
      export_dynamic_flag_spec=-rdynamic
8057
      ;;
8058
 
8059
    cygwin* | mingw* | pw32*)
8060
      # When not using gcc, we currently assume that we are using
8061
      # Microsoft Visual C++.
8062
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8063
      # no search path for DLLs.
8064
      hardcode_libdir_flag_spec=' '
8065
      allow_undefined_flag=unsupported
8066
      # Tell ltmain to make .lib files, not .a files.
8067
      libext=lib
8068
      # Tell ltmain to make .dll files, not .so files.
8069
      shrext_cmds=".dll"
8070
      # FIXME: Setting linknames here is a bad hack.
8071
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8072
      # The linker will automatically build a .lib file if we build a DLL.
8073
      old_archive_from_new_cmds='true'
8074
      # FIXME: Should let the user specify the lib program.
8075
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8076
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8077
      enable_shared_with_static_runtimes=yes
8078
      ;;
8079
 
8080
    darwin* | rhapsody*)
8081
      case $host_os in
8082
      rhapsody* | darwin1.[012])
8083
        allow_undefined_flag='${wl}-undefined ${wl}suppress'
8084
        ;;
8085
      *) # Darwin 1.3 on
8086
        case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8087
        10.[012])
8088
          allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8089
          ;;
8090
        10.*)
8091
          allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8092
          ;;
8093
        esac
8094
        ;;
8095
      esac
8096
      archive_cmds_need_lc=no
8097
      hardcode_direct=no
8098
      hardcode_automatic=yes
8099
      hardcode_shlibpath_var=unsupported
8100
      whole_archive_flag_spec=''
8101
      link_all_deplibs=yes
8102
      if test "$GCC" = yes ; then
8103
        if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8104
  echo $ECHO_N "(cached) $ECHO_C" >&6
8105
else
8106
  lt_cv_apple_cc_single_mod=no
8107
        if test -z "${LT_MULTI_MODULE}"; then
8108
          # By default we will add the -single_module flag. You can override
8109
          # by either setting the environment variable LT_MULTI_MODULE
8110
          # non-empty at configure time, or by adding -multi-module to the
8111
          # link flags.
8112
          echo "int foo(void){return 1;}" > conftest.c
8113
          $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8114
              -dynamiclib ${wl}-single_module conftest.c
8115
          if test -f libconftest.dylib; then
8116
              lt_cv_apple_cc_single_mod=yes
8117
              rm libconftest.dylib
8118
          fi
8119
          rm conftest.$ac_ext
8120
        fi
8121
fi
8122
 
8123
        output_verbose_link_cmd=echo
8124
        if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8125
          archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8126
          archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8127
        else
8128
          archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8129
          archive_expsym_cmds='sed "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}'
8130
        fi
8131
        module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8132
        module_expsym_cmds='sed -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}'
8133
      else
8134
        case $cc_basename in
8135
        xlc*)
8136
          output_verbose_link_cmd=echo
8137
          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8138
          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8139
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8140
          archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8141
          module_expsym_cmds='sed "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}'
8142
          ;;
8143
        *)
8144
          ld_shlibs=no
8145
          ;;
8146
        esac
8147
      fi
8148
      ;;
8149
 
8150
    dgux*)
8151
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8152
      hardcode_libdir_flag_spec='-L$libdir'
8153
      hardcode_shlibpath_var=no
8154
      ;;
8155
 
8156
    freebsd1*)
8157
      ld_shlibs=no
8158
      ;;
8159
 
8160
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8161
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8162
    # does not break anything, and helps significantly (at the cost of a little
8163
    # extra space).
8164
    freebsd2.2*)
8165
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8166
      hardcode_libdir_flag_spec='-R$libdir'
8167
      hardcode_direct=yes
8168
      hardcode_shlibpath_var=no
8169
      ;;
8170
 
8171
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8172
    freebsd2*)
8173
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8174
      hardcode_direct=yes
8175
      hardcode_minus_L=yes
8176
      hardcode_shlibpath_var=no
8177
      ;;
8178
 
8179
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8180
    freebsd* | dragonfly*)
8181
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8182
      hardcode_libdir_flag_spec='-R$libdir'
8183
      hardcode_direct=yes
8184
      hardcode_shlibpath_var=no
8185
      ;;
8186
 
8187
    hpux9*)
8188
      if test "$GCC" = yes; then
8189
        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'
8190
      else
8191
        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'
8192
      fi
8193
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8194
      hardcode_libdir_separator=:
8195
      hardcode_direct=yes
8196
 
8197
      # hardcode_minus_L: Not really in the search PATH,
8198
      # but as the default location of the library.
8199
      hardcode_minus_L=yes
8200
      export_dynamic_flag_spec='${wl}-E'
8201
      ;;
8202
 
8203
    hpux10*)
8204
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8205
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8206
      else
8207
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8208
      fi
8209
      if test "$with_gnu_ld" = no; then
8210
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8211
        hardcode_libdir_flag_spec_ld='+b $libdir'
8212
        hardcode_libdir_separator=:
8213
        hardcode_direct=yes
8214
        hardcode_direct_absolute=yes
8215
        export_dynamic_flag_spec='${wl}-E'
8216
        # hardcode_minus_L: Not really in the search PATH,
8217
        # but as the default location of the library.
8218
        hardcode_minus_L=yes
8219
      fi
8220
      ;;
8221
 
8222
    hpux11*)
8223
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8224
        case $host_cpu in
8225
        hppa*64*)
8226
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8227
          ;;
8228
        ia64*)
8229
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8230
          ;;
8231
        *)
8232
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8233
          ;;
8234
        esac
8235
      else
8236
        case $host_cpu in
8237
        hppa*64*)
8238
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8239
          ;;
8240
        ia64*)
8241
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8242
          ;;
8243
        *)
8244
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8245
          ;;
8246
        esac
8247
      fi
8248
      if test "$with_gnu_ld" = no; then
8249
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8250
        hardcode_libdir_separator=:
8251
 
8252
        case $host_cpu in
8253
        hppa*64*|ia64*)
8254
          hardcode_direct=no
8255
          hardcode_shlibpath_var=no
8256
          ;;
8257
        *)
8258
          hardcode_direct=yes
8259
          hardcode_direct_absolute=yes
8260
          export_dynamic_flag_spec='${wl}-E'
8261
 
8262
          # hardcode_minus_L: Not really in the search PATH,
8263
          # but as the default location of the library.
8264
          hardcode_minus_L=yes
8265
          ;;
8266
        esac
8267
      fi
8268
      ;;
8269
 
8270
    irix5* | irix6* | nonstopux*)
8271
      if test "$GCC" = yes; then
8272
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8273
        # Try to use the -exported_symbol ld option, if it does not
8274
        # work, assume that -exports_file does not work either and
8275
        # implicitly export all symbols.
8276
        save_LDFLAGS="$LDFLAGS"
8277
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8278
        cat >conftest.$ac_ext <<_ACEOF
8279
int foo(void) {}
8280
_ACEOF
8281
rm -f conftest.$ac_objext conftest$ac_exeext
8282
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8283
  (eval $ac_link) 2>conftest.er1
8284
  ac_status=$?
8285
  grep -v '^ *+' conftest.er1 >conftest.err
8286
  rm -f conftest.er1
8287
  cat conftest.err >&5
8288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289
  (exit $ac_status); } &&
8290
         { ac_try='test -z "$ac_c_werror_flag"
8291
                         || test ! -s conftest.err'
8292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293
  (eval $ac_try) 2>&5
8294
  ac_status=$?
8295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296
  (exit $ac_status); }; } &&
8297
         { ac_try='test -s conftest$ac_exeext'
8298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299
  (eval $ac_try) 2>&5
8300
  ac_status=$?
8301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302
  (exit $ac_status); }; }; then
8303
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8304
 
8305
else
8306
  echo "$as_me: failed program was:" >&5
8307
sed 's/^/| /' conftest.$ac_ext >&5
8308
 
8309
fi
8310
rm -f conftest.err conftest.$ac_objext \
8311
      conftest$ac_exeext conftest.$ac_ext
8312
        LDFLAGS="$save_LDFLAGS"
8313
      else
8314
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8315
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8316
      fi
8317
      archive_cmds_need_lc='no'
8318
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8319
      hardcode_libdir_separator=:
8320
      inherit_rpath=yes
8321
      link_all_deplibs=yes
8322
      ;;
8323
 
8324
    netbsd*)
8325
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8326
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8327
      else
8328
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8329
      fi
8330
      hardcode_libdir_flag_spec='-R$libdir'
8331
      hardcode_direct=yes
8332
      hardcode_shlibpath_var=no
8333
      ;;
8334
 
8335
    newsos6)
8336
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8337
      hardcode_direct=yes
8338
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8339
      hardcode_libdir_separator=:
8340
      hardcode_shlibpath_var=no
8341
      ;;
8342
 
8343
    *nto* | *qnx*)
8344
      ;;
8345
 
8346
    openbsd*)
8347
      hardcode_direct=yes
8348
      hardcode_shlibpath_var=no
8349
      hardcode_direct_absolute=yes
8350
      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8351
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8352
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8353
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8354
        export_dynamic_flag_spec='${wl}-E'
8355
      else
8356
        case $host_os in
8357
        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8358
          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8359
          hardcode_libdir_flag_spec='-R$libdir'
8360
          ;;
8361
        *)
8362
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8363
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8364
          ;;
8365
        esac
8366
      fi
8367
      ;;
8368
 
8369
    os2*)
8370
      hardcode_libdir_flag_spec='-L$libdir'
8371
      hardcode_minus_L=yes
8372
      allow_undefined_flag=unsupported
8373
      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'
8374
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8375
      ;;
8376
 
8377
    osf3*)
8378
      if test "$GCC" = yes; then
8379
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8380
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8381
      else
8382
        allow_undefined_flag=' -expect_unresolved \*'
8383
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8384
      fi
8385
      archive_cmds_need_lc='no'
8386
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8387
      hardcode_libdir_separator=:
8388
      ;;
8389
 
8390
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8391
      if test "$GCC" = yes; then
8392
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8393
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8394
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8395
      else
8396
        allow_undefined_flag=' -expect_unresolved \*'
8397
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8398
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8399
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8400
 
8401
        # Both c and cxx compiler support -rpath directly
8402
        hardcode_libdir_flag_spec='-rpath $libdir'
8403
      fi
8404
      archive_cmds_need_lc='no'
8405
      hardcode_libdir_separator=:
8406
      ;;
8407
 
8408
    solaris*)
8409
      no_undefined_flag=' -z defs'
8410
      if test "$GCC" = yes; then
8411
        wlarc='${wl}'
8412
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8413
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8414
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8415
      else
8416
        case `$CC -V 2>&1` in
8417
        *"Compilers 5.0"*)
8418
          wlarc=''
8419
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8420
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8421
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8422
          ;;
8423
        *)
8424
          wlarc='${wl}'
8425
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8426
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8427
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8428
          ;;
8429
        esac
8430
      fi
8431
      hardcode_libdir_flag_spec='-R$libdir'
8432
      hardcode_shlibpath_var=no
8433
      case $host_os in
8434
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8435
      *)
8436
        # The compiler driver will combine and reorder linker options,
8437
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8438
        # but is careful enough not to reorder.
8439
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8440
        if test "$GCC" = yes; then
8441
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8442
        else
8443
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8444
        fi
8445
        ;;
8446
      esac
8447
      link_all_deplibs=yes
8448
      ;;
8449
 
8450
    sunos4*)
8451
      if test "x$host_vendor" = xsequent; then
8452
        # Use $CC to link under sequent, because it throws in some extra .o
8453
        # files that make .init and .fini sections work.
8454
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8455
      else
8456
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8457
      fi
8458
      hardcode_libdir_flag_spec='-L$libdir'
8459
      hardcode_direct=yes
8460
      hardcode_minus_L=yes
8461
      hardcode_shlibpath_var=no
8462
      ;;
8463
 
8464
    sysv4)
8465
      case $host_vendor in
8466
        sni)
8467
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8468
          hardcode_direct=yes # is this really true???
8469
        ;;
8470
        siemens)
8471
          ## LD is ld it makes a PLAMLIB
8472
          ## CC just makes a GrossModule.
8473
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8474
          reload_cmds='$CC -r -o $output$reload_objs'
8475
          hardcode_direct=no
8476
        ;;
8477
        motorola)
8478
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8479
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8480
        ;;
8481
      esac
8482
      runpath_var='LD_RUN_PATH'
8483
      hardcode_shlibpath_var=no
8484
      ;;
8485
 
8486
    sysv4.3*)
8487
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8488
      hardcode_shlibpath_var=no
8489
      export_dynamic_flag_spec='-Bexport'
8490
      ;;
8491
 
8492
    sysv4*MP*)
8493
      if test -d /usr/nec; then
8494
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8495
        hardcode_shlibpath_var=no
8496
        runpath_var=LD_RUN_PATH
8497
        hardcode_runpath_var=yes
8498
        ld_shlibs=yes
8499
      fi
8500
      ;;
8501
 
8502
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8503
      no_undefined_flag='${wl}-z,text'
8504
      archive_cmds_need_lc=no
8505
      hardcode_shlibpath_var=no
8506
      runpath_var='LD_RUN_PATH'
8507
 
8508
      if test "$GCC" = yes; then
8509
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8510
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8511
      else
8512
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8514
      fi
8515
      ;;
8516
 
8517
    sysv5* | sco3.2v5* | sco5v6*)
8518
      # Note: We can NOT use -z defs as we might desire, because we do not
8519
      # link with -lc, and that would cause any symbols used from libc to
8520
      # always be unresolved, which means just about no library would
8521
      # ever link correctly.  If we're not using GNU ld we use -z text
8522
      # though, which does catch some bad symbols but isn't as heavy-handed
8523
      # as -z defs.
8524
      no_undefined_flag='${wl}-z,text'
8525
      allow_undefined_flag='${wl}-z,nodefs'
8526
      archive_cmds_need_lc=no
8527
      hardcode_shlibpath_var=no
8528
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8529
      hardcode_libdir_separator=':'
8530
      link_all_deplibs=yes
8531
      export_dynamic_flag_spec='${wl}-Bexport'
8532
      runpath_var='LD_RUN_PATH'
8533
 
8534
      if test "$GCC" = yes; then
8535
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8536
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8537
      else
8538
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8539
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8540
      fi
8541
      ;;
8542
 
8543
    uts4*)
8544
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8545
      hardcode_libdir_flag_spec='-L$libdir'
8546
      hardcode_shlibpath_var=no
8547
      ;;
8548
 
8549
    *)
8550
      ld_shlibs=no
8551
      ;;
8552
    esac
8553
 
8554
    if test x$host_vendor = xsni; then
8555
      case $host in
8556
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8557
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8558
        ;;
8559
      esac
8560
    fi
8561
  fi
8562
 
8563
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8564
echo "${ECHO_T}$ld_shlibs" >&6
8565
test "$ld_shlibs" = no && can_build_shared=no
8566
 
8567
with_gnu_ld=$with_gnu_ld
8568
 
8569
 
8570
 
8571
 
8572
 
8573
 
8574
 
8575
 
8576
 
8577
 
8578
 
8579
 
8580
 
8581
 
8582
 
8583
#
8584
# Do we need to explicitly link libc?
8585
#
8586
case "x$archive_cmds_need_lc" in
8587
x|xyes)
8588
  # Assume -lc should be added
8589
  archive_cmds_need_lc=yes
8590
 
8591
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8592
    case $archive_cmds in
8593
    *'~'*)
8594
      # FIXME: we may have to deal with multi-command sequences.
8595
      ;;
8596
    '$CC '*)
8597
      # Test whether the compiler implicitly links with -lc since on some
8598
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8599
      # to ld, don't add -lc before -lgcc.
8600
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8601
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8602
      $RM conftest*
8603
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8604
 
8605
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8606
  (eval $ac_compile) 2>&5
8607
  ac_status=$?
8608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609
  (exit $ac_status); } 2>conftest.err; then
8610
        soname=conftest
8611
        lib=conftest
8612
        libobjs=conftest.$ac_objext
8613
        deplibs=
8614
        wl=$lt_prog_compiler_wl
8615
        pic_flag=$lt_prog_compiler_pic
8616
        compiler_flags=-v
8617
        linker_flags=-v
8618
        verstring=
8619
        output_objdir=.
8620
        libname=conftest
8621
        lt_save_allow_undefined_flag=$allow_undefined_flag
8622
        allow_undefined_flag=
8623
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8624
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8625
  ac_status=$?
8626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627
  (exit $ac_status); }
8628
        then
8629
          archive_cmds_need_lc=no
8630
        else
8631
          archive_cmds_need_lc=yes
8632
        fi
8633
        allow_undefined_flag=$lt_save_allow_undefined_flag
8634
      else
8635
        cat conftest.err 1>&5
8636
      fi
8637
      $RM conftest*
8638
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8639
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8640
      ;;
8641
    esac
8642
  fi
8643
  ;;
8644
esac
8645
 
8646
 
8647
 
8648
 
8649
 
8650
 
8651
 
8652
 
8653
 
8654
 
8655
 
8656
 
8657
 
8658
 
8659
 
8660
 
8661
 
8662
 
8663
 
8664
 
8665
 
8666
 
8667
 
8668
 
8669
 
8670
 
8671
 
8672
 
8673
 
8674
 
8675
 
8676
 
8677
 
8678
 
8679
 
8680
 
8681
 
8682
 
8683
 
8684
 
8685
 
8686
 
8687
 
8688
 
8689
 
8690
 
8691
 
8692
 
8693
 
8694
 
8695
 
8696
 
8697
 
8698
 
8699
 
8700
 
8701
 
8702
 
8703
 
8704
 
8705
 
8706
 
8707
 
8708
 
8709
 
8710
 
8711
 
8712
 
8713
 
8714
 
8715
 
8716
 
8717
 
8718
 
8719
 
8720
 
8721
 
8722
 
8723
 
8724
 
8725
 
8726
 
8727
 
8728
 
8729
 
8730
 
8731
 
8732
 
8733
 
8734
 
8735
 
8736
 
8737
 
8738
 
8739
 
8740
 
8741
 
8742
 
8743
 
8744
 
8745
 
8746
 
8747
 
8748
 
8749
 
8750
 
8751
 
8752
 
8753
 
8754
 
8755
 
8756
 
8757
 
8758
 
8759
 
8760
 
8761
 
8762
 
8763
 
8764
 
8765
 
8766
 
8767
 
8768
 
8769
 
8770
 
8771
 
8772
 
8773
 
8774
 
8775
 
8776
 
8777
 
8778
 
8779
 
8780
 
8781
 
8782
 
8783
 
8784
 
8785
 
8786
 
8787
 
8788
 
8789
 
8790
 
8791
 
8792
 
8793
 
8794
 
8795
 
8796
 
8797
 
8798
 
8799
 
8800
 
8801
 
8802
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8803
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8804
withGCC=$GCC
8805
if test "$withGCC" = yes; then
8806
  case $host_os in
8807
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8808
    *) lt_awk_arg="/^libraries:/" ;;
8809
  esac
8810
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8811
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8812
    # if the path contains ";" then we assume it to be the separator
8813
    # otherwise default to the standard path separator (i.e. ":") - it is
8814
    # assumed that no part of a normal pathname contains ";" but that should
8815
    # okay in the real world where ";" in dirpaths is itself problematic.
8816
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8817
  else
8818
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8819
  fi
8820
  # Ok, now we have the path, separated by spaces, we can step through it
8821
  # and add multilib dir if necessary.
8822
  lt_tmp_lt_search_path_spec=
8823
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8824
  for lt_sys_path in $lt_search_path_spec; do
8825
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8826
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8827
    else
8828
      test -d "$lt_sys_path" && \
8829
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8830
    fi
8831
  done
8832
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8833
BEGIN {RS=" "; FS="/|\n";} {
8834
  lt_foo="";
8835
  lt_count=0;
8836
  for (lt_i = NF; lt_i > 0; lt_i--) {
8837
    if ($lt_i != "" && $lt_i != ".") {
8838
      if ($lt_i == "..") {
8839
        lt_count++;
8840
      } else {
8841
        if (lt_count == 0) {
8842
          lt_foo="/" $lt_i lt_foo;
8843
        } else {
8844
          lt_count--;
8845
        }
8846
      }
8847
    }
8848
  }
8849
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8850
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8851
}'`
8852
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8853
else
8854
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8855
fi
8856
library_names_spec=
8857
libname_spec='lib$name'
8858
soname_spec=
8859
shrext_cmds=".so"
8860
postinstall_cmds=
8861
postuninstall_cmds=
8862
finish_cmds=
8863
finish_eval=
8864
shlibpath_var=
8865
shlibpath_overrides_runpath=unknown
8866
version_type=none
8867
dynamic_linker="$host_os ld.so"
8868
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8869
need_lib_prefix=unknown
8870
hardcode_into_libs=no
8871
 
8872
# when you set need_version to no, make sure it does not cause -set_version
8873
# flags to be left without arguments
8874
need_version=unknown
8875
 
8876
case $host_os in
8877
aix3*)
8878
  version_type=linux
8879
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8880
  shlibpath_var=LIBPATH
8881
 
8882
  # AIX 3 has no versioning support, so we append a major version to the name.
8883
  soname_spec='${libname}${release}${shared_ext}$major'
8884
  ;;
8885
 
8886
aix[4-9]*)
8887
  version_type=linux
8888
  need_lib_prefix=no
8889
  need_version=no
8890
  hardcode_into_libs=yes
8891
  if test "$host_cpu" = ia64; then
8892
    # AIX 5 supports IA64
8893
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8894
    shlibpath_var=LD_LIBRARY_PATH
8895
  else
8896
    # With GCC up to 2.95.x, collect2 would create an import file
8897
    # for dependence libraries.  The import file would start with
8898
    # the line `#! .'.  This would cause the generated library to
8899
    # depend on `.', always an invalid library.  This was fixed in
8900
    # development snapshots of GCC prior to 3.0.
8901
    case $host_os in
8902
      aix4 | aix4.[01] | aix4.[01].*)
8903
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8904
           echo ' yes '
8905
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8906
        :
8907
      else
8908
        can_build_shared=no
8909
      fi
8910
      ;;
8911
    esac
8912
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8913
    # soname into executable. Probably we can add versioning support to
8914
    # collect2, so additional links can be useful in future.
8915
    if test "$aix_use_runtimelinking" = yes; then
8916
      # If using run time linking (on AIX 4.2 or later) use lib.so
8917
      # instead of lib.a to let people know that these are not
8918
      # typical AIX shared libraries.
8919
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920
    else
8921
      # We preserve .a as extension for shared libraries through AIX4.2
8922
      # and later when we are not doing run time linking.
8923
      library_names_spec='${libname}${release}.a $libname.a'
8924
      soname_spec='${libname}${release}${shared_ext}$major'
8925
    fi
8926
    shlibpath_var=LIBPATH
8927
  fi
8928
  ;;
8929
 
8930
amigaos*)
8931
  if test "$host_cpu" = m68k; then
8932
    library_names_spec='$libname.ixlibrary $libname.a'
8933
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8934
    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'
8935
  else
8936
    dynamic_linker=no
8937
  fi
8938
  ;;
8939
 
8940
beos*)
8941
  library_names_spec='${libname}${shared_ext}'
8942
  dynamic_linker="$host_os ld.so"
8943
  shlibpath_var=LIBRARY_PATH
8944
  ;;
8945
 
8946
bsdi[45]*)
8947
  version_type=linux
8948
  need_version=no
8949
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950
  soname_spec='${libname}${release}${shared_ext}$major'
8951
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8952
  shlibpath_var=LD_LIBRARY_PATH
8953
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8954
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8955
  # the default ld.so.conf also contains /usr/contrib/lib and
8956
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8957
  # libtool to hard-code these into programs
8958
  ;;
8959
 
8960
cygwin* | mingw* | pw32*)
8961
  version_type=windows
8962
  shrext_cmds=".dll"
8963
  need_version=no
8964
  need_lib_prefix=no
8965
 
8966
  case $withGCC,$host_os in
8967
  yes,cygwin* | yes,mingw* | yes,pw32*)
8968
    library_names_spec='$libname.dll.a'
8969
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8970
    postinstall_cmds='base_file=`basename \${file}`~
8971
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8972
      dldir=$destdir/`dirname \$dlpath`~
8973
      test -d \$dldir || mkdir -p \$dldir~
8974
      $install_prog $dir/$dlname \$dldir/$dlname~
8975
      chmod a+x \$dldir/$dlname~
8976
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8977
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8978
      fi'
8979
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8980
      dlpath=$dir/\$dldll~
8981
       $RM \$dlpath'
8982
    shlibpath_overrides_runpath=yes
8983
 
8984
    case $host_os in
8985
    cygwin*)
8986
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8987
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8988
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8989
      ;;
8990
    mingw*)
8991
      # MinGW DLLs use traditional 'lib' prefix
8992
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8993
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8994
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8995
        # It is most probably a Windows format PATH printed by
8996
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8997
        # path with ; separators, and with drive letters. We can handle the
8998
        # drive letters (cygwin fileutils understands them), so leave them,
8999
        # especially as we might pass files found there to a mingw objdump,
9000
        # which wouldn't understand a cygwinified path. Ahh.
9001
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9002
      else
9003
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9004
      fi
9005
      ;;
9006
    pw32*)
9007
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9008
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9009
      ;;
9010
    esac
9011
    ;;
9012
 
9013
  *)
9014
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9015
    ;;
9016
  esac
9017
  dynamic_linker='Win32 ld.exe'
9018
  # FIXME: first we should search . and the directory the executable is in
9019
  shlibpath_var=PATH
9020
  ;;
9021
 
9022
darwin* | rhapsody*)
9023
  dynamic_linker="$host_os dyld"
9024
  version_type=darwin
9025
  need_lib_prefix=no
9026
  need_version=no
9027
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9028
  soname_spec='${libname}${release}${major}$shared_ext'
9029
  shlibpath_overrides_runpath=yes
9030
  shlibpath_var=DYLD_LIBRARY_PATH
9031
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9032
 
9033
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9034
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9035
  ;;
9036
 
9037
dgux*)
9038
  version_type=linux
9039
  need_lib_prefix=no
9040
  need_version=no
9041
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9042
  soname_spec='${libname}${release}${shared_ext}$major'
9043
  shlibpath_var=LD_LIBRARY_PATH
9044
  ;;
9045
 
9046
freebsd1*)
9047
  dynamic_linker=no
9048
  ;;
9049
 
9050
freebsd* | dragonfly*)
9051
  # DragonFly does not have aout.  When/if they implement a new
9052
  # versioning mechanism, adjust this.
9053
  if test -x /usr/bin/objformat; then
9054
    objformat=`/usr/bin/objformat`
9055
  else
9056
    case $host_os in
9057
    freebsd[123]*) objformat=aout ;;
9058
    *) objformat=elf ;;
9059
    esac
9060
  fi
9061
  version_type=freebsd-$objformat
9062
  case $version_type in
9063
    freebsd-elf*)
9064
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9065
      need_version=no
9066
      need_lib_prefix=no
9067
      ;;
9068
    freebsd-*)
9069
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9070
      need_version=yes
9071
      ;;
9072
  esac
9073
  shlibpath_var=LD_LIBRARY_PATH
9074
  case $host_os in
9075
  freebsd2*)
9076
    shlibpath_overrides_runpath=yes
9077
    ;;
9078
  freebsd3.[01]* | freebsdelf3.[01]*)
9079
    shlibpath_overrides_runpath=yes
9080
    hardcode_into_libs=yes
9081
    ;;
9082
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9083
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9084
    shlibpath_overrides_runpath=no
9085
    hardcode_into_libs=yes
9086
    ;;
9087
  *) # from 4.6 on, and DragonFly
9088
    shlibpath_overrides_runpath=yes
9089
    hardcode_into_libs=yes
9090
    ;;
9091
  esac
9092
  ;;
9093
 
9094
gnu*)
9095
  version_type=linux
9096
  need_lib_prefix=no
9097
  need_version=no
9098
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9099
  soname_spec='${libname}${release}${shared_ext}$major'
9100
  shlibpath_var=LD_LIBRARY_PATH
9101
  hardcode_into_libs=yes
9102
  ;;
9103
 
9104
hpux9* | hpux10* | hpux11*)
9105
  # Give a soname corresponding to the major version so that dld.sl refuses to
9106
  # link against other versions.
9107
  version_type=sunos
9108
  need_lib_prefix=no
9109
  need_version=no
9110
  case $host_cpu in
9111
  ia64*)
9112
    shrext_cmds='.so'
9113
    hardcode_into_libs=yes
9114
    dynamic_linker="$host_os dld.so"
9115
    shlibpath_var=LD_LIBRARY_PATH
9116
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9117
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118
    soname_spec='${libname}${release}${shared_ext}$major'
9119
    if test "X$HPUX_IA64_MODE" = X32; then
9120
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9121
    else
9122
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9123
    fi
9124
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9125
    ;;
9126
  hppa*64*)
9127
    shrext_cmds='.sl'
9128
    hardcode_into_libs=yes
9129
    dynamic_linker="$host_os dld.sl"
9130
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9131
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9132
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133
    soname_spec='${libname}${release}${shared_ext}$major'
9134
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9135
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9136
    ;;
9137
  *)
9138
    shrext_cmds='.sl'
9139
    dynamic_linker="$host_os dld.sl"
9140
    shlibpath_var=SHLIB_PATH
9141
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9142
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9143
    soname_spec='${libname}${release}${shared_ext}$major'
9144
    ;;
9145
  esac
9146
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9147
  postinstall_cmds='chmod 555 $lib'
9148
  ;;
9149
 
9150
interix[3-9]*)
9151
  version_type=linux
9152
  need_lib_prefix=no
9153
  need_version=no
9154
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9155
  soname_spec='${libname}${release}${shared_ext}$major'
9156
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9157
  shlibpath_var=LD_LIBRARY_PATH
9158
  shlibpath_overrides_runpath=no
9159
  hardcode_into_libs=yes
9160
  ;;
9161
 
9162
irix5* | irix6* | nonstopux*)
9163
  case $host_os in
9164
    nonstopux*) version_type=nonstopux ;;
9165
    *)
9166
        if test "$lt_cv_prog_gnu_ld" = yes; then
9167
                version_type=linux
9168
        else
9169
                version_type=irix
9170
        fi ;;
9171
  esac
9172
  need_lib_prefix=no
9173
  need_version=no
9174
  soname_spec='${libname}${release}${shared_ext}$major'
9175
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9176
  case $host_os in
9177
  irix5* | nonstopux*)
9178
    libsuff= shlibsuff=
9179
    ;;
9180
  *)
9181
    case $LD in # libtool.m4 will add one of these switches to LD
9182
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9183
      libsuff= shlibsuff= libmagic=32-bit;;
9184
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9185
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9186
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9187
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9188
    *) libsuff= shlibsuff= libmagic=never-match;;
9189
    esac
9190
    ;;
9191
  esac
9192
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9193
  shlibpath_overrides_runpath=no
9194
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9195
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9196
  hardcode_into_libs=yes
9197
  ;;
9198
 
9199
# No shared lib support for Linux oldld, aout, or coff.
9200
linux*oldld* | linux*aout* | linux*coff*)
9201
  dynamic_linker=no
9202
  ;;
9203
 
9204
# This must be Linux ELF.
9205
linux* | k*bsd*-gnu)
9206
  version_type=linux
9207
  need_lib_prefix=no
9208
  need_version=no
9209
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210
  soname_spec='${libname}${release}${shared_ext}$major'
9211
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9212
  shlibpath_var=LD_LIBRARY_PATH
9213
  shlibpath_overrides_runpath=no
9214
  # Some binutils ld are patched to set DT_RUNPATH
9215
  save_LDFLAGS=$LDFLAGS
9216
  save_libdir=$libdir
9217
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9218
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9219
  cat >conftest.$ac_ext <<_ACEOF
9220
/* confdefs.h.  */
9221
_ACEOF
9222
cat confdefs.h >>conftest.$ac_ext
9223
cat >>conftest.$ac_ext <<_ACEOF
9224
/* end confdefs.h.  */
9225
 
9226
int
9227
main ()
9228
{
9229
 
9230
  ;
9231
  return 0;
9232
}
9233
_ACEOF
9234
rm -f conftest.$ac_objext conftest$ac_exeext
9235
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236
  (eval $ac_link) 2>conftest.er1
9237
  ac_status=$?
9238
  grep -v '^ *+' conftest.er1 >conftest.err
9239
  rm -f conftest.er1
9240
  cat conftest.err >&5
9241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242
  (exit $ac_status); } &&
9243
         { ac_try='test -z "$ac_c_werror_flag"
9244
                         || test ! -s conftest.err'
9245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246
  (eval $ac_try) 2>&5
9247
  ac_status=$?
9248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249
  (exit $ac_status); }; } &&
9250
         { ac_try='test -s conftest$ac_exeext'
9251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252
  (eval $ac_try) 2>&5
9253
  ac_status=$?
9254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255
  (exit $ac_status); }; }; then
9256
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9257
  shlibpath_overrides_runpath=yes
9258
fi
9259
 
9260
else
9261
  echo "$as_me: failed program was:" >&5
9262
sed 's/^/| /' conftest.$ac_ext >&5
9263
 
9264
fi
9265
rm -f conftest.err conftest.$ac_objext \
9266
      conftest$ac_exeext conftest.$ac_ext
9267
  LDFLAGS=$save_LDFLAGS
9268
  libdir=$save_libdir
9269
 
9270
  # This implies no fast_install, which is unacceptable.
9271
  # Some rework will be needed to allow for fast_install
9272
  # before this can be enabled.
9273
  hardcode_into_libs=yes
9274
 
9275
  # Append ld.so.conf contents to the search path
9276
  if test -f /etc/ld.so.conf; then
9277
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9278
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9279
  fi
9280
 
9281
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9282
  # powerpc, because MkLinux only supported shared libraries with the
9283
  # GNU dynamic linker.  Since this was broken with cross compilers,
9284
  # most powerpc-linux boxes support dynamic linking these days and
9285
  # people can always --disable-shared, the test was removed, and we
9286
  # assume the GNU/Linux dynamic linker is in use.
9287
  dynamic_linker='GNU/Linux ld.so'
9288
  ;;
9289
 
9290
netbsd*)
9291
  version_type=sunos
9292
  need_lib_prefix=no
9293
  need_version=no
9294
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9295
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9296
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9297
    dynamic_linker='NetBSD (a.out) ld.so'
9298
  else
9299
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9300
    soname_spec='${libname}${release}${shared_ext}$major'
9301
    dynamic_linker='NetBSD ld.elf_so'
9302
  fi
9303
  shlibpath_var=LD_LIBRARY_PATH
9304
  shlibpath_overrides_runpath=yes
9305
  hardcode_into_libs=yes
9306
  ;;
9307
 
9308
newsos6)
9309
  version_type=linux
9310
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311
  shlibpath_var=LD_LIBRARY_PATH
9312
  shlibpath_overrides_runpath=yes
9313
  ;;
9314
 
9315
*nto* | *qnx*)
9316
  version_type=qnx
9317
  need_lib_prefix=no
9318
  need_version=no
9319
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320
  soname_spec='${libname}${release}${shared_ext}$major'
9321
  shlibpath_var=LD_LIBRARY_PATH
9322
  shlibpath_overrides_runpath=no
9323
  hardcode_into_libs=yes
9324
  dynamic_linker='ldqnx.so'
9325
  ;;
9326
 
9327
openbsd*)
9328
  version_type=sunos
9329
  sys_lib_dlsearch_path_spec="/usr/lib"
9330
  need_lib_prefix=no
9331
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9332
  case $host_os in
9333
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9334
    *)                          need_version=no  ;;
9335
  esac
9336
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9337
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9338
  shlibpath_var=LD_LIBRARY_PATH
9339
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9340
    case $host_os in
9341
      openbsd2.[89] | openbsd2.[89].*)
9342
        shlibpath_overrides_runpath=no
9343
        ;;
9344
      *)
9345
        shlibpath_overrides_runpath=yes
9346
        ;;
9347
      esac
9348
  else
9349
    shlibpath_overrides_runpath=yes
9350
  fi
9351
  ;;
9352
 
9353
os2*)
9354
  libname_spec='$name'
9355
  shrext_cmds=".dll"
9356
  need_lib_prefix=no
9357
  library_names_spec='$libname${shared_ext} $libname.a'
9358
  dynamic_linker='OS/2 ld.exe'
9359
  shlibpath_var=LIBPATH
9360
  ;;
9361
 
9362
osf3* | osf4* | osf5*)
9363
  version_type=osf
9364
  need_lib_prefix=no
9365
  need_version=no
9366
  soname_spec='${libname}${release}${shared_ext}$major'
9367
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368
  shlibpath_var=LD_LIBRARY_PATH
9369
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9370
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9371
  ;;
9372
 
9373
rdos*)
9374
  dynamic_linker=no
9375
  ;;
9376
 
9377
solaris*)
9378
  version_type=linux
9379
  need_lib_prefix=no
9380
  need_version=no
9381
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382
  soname_spec='${libname}${release}${shared_ext}$major'
9383
  shlibpath_var=LD_LIBRARY_PATH
9384
  shlibpath_overrides_runpath=yes
9385
  hardcode_into_libs=yes
9386
  # ldd complains unless libraries are executable
9387
  postinstall_cmds='chmod +x $lib'
9388
  ;;
9389
 
9390
sunos4*)
9391
  version_type=sunos
9392
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9393
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9394
  shlibpath_var=LD_LIBRARY_PATH
9395
  shlibpath_overrides_runpath=yes
9396
  if test "$with_gnu_ld" = yes; then
9397
    need_lib_prefix=no
9398
  fi
9399
  need_version=yes
9400
  ;;
9401
 
9402
sysv4 | sysv4.3*)
9403
  version_type=linux
9404
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405
  soname_spec='${libname}${release}${shared_ext}$major'
9406
  shlibpath_var=LD_LIBRARY_PATH
9407
  case $host_vendor in
9408
    sni)
9409
      shlibpath_overrides_runpath=no
9410
      need_lib_prefix=no
9411
      runpath_var=LD_RUN_PATH
9412
      ;;
9413
    siemens)
9414
      need_lib_prefix=no
9415
      ;;
9416
    motorola)
9417
      need_lib_prefix=no
9418
      need_version=no
9419
      shlibpath_overrides_runpath=no
9420
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9421
      ;;
9422
  esac
9423
  ;;
9424
 
9425
sysv4*MP*)
9426
  if test -d /usr/nec ;then
9427
    version_type=linux
9428
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9429
    soname_spec='$libname${shared_ext}.$major'
9430
    shlibpath_var=LD_LIBRARY_PATH
9431
  fi
9432
  ;;
9433
 
9434
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9435
  version_type=freebsd-elf
9436
  need_lib_prefix=no
9437
  need_version=no
9438
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9439
  soname_spec='${libname}${release}${shared_ext}$major'
9440
  shlibpath_var=LD_LIBRARY_PATH
9441
  shlibpath_overrides_runpath=yes
9442
  hardcode_into_libs=yes
9443
  if test "$with_gnu_ld" = yes; then
9444
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9445
  else
9446
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9447
    case $host_os in
9448
      sco3.2v5*)
9449
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9450
        ;;
9451
    esac
9452
  fi
9453
  sys_lib_dlsearch_path_spec='/usr/lib'
9454
  ;;
9455
 
9456
tpf*)
9457
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9458
  version_type=linux
9459
  need_lib_prefix=no
9460
  need_version=no
9461
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462
  shlibpath_var=LD_LIBRARY_PATH
9463
  shlibpath_overrides_runpath=no
9464
  hardcode_into_libs=yes
9465
  ;;
9466
 
9467
uts4*)
9468
  version_type=linux
9469
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9470
  soname_spec='${libname}${release}${shared_ext}$major'
9471
  shlibpath_var=LD_LIBRARY_PATH
9472
  ;;
9473
 
9474
*)
9475
  dynamic_linker=no
9476
  ;;
9477
esac
9478
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9479
echo "${ECHO_T}$dynamic_linker" >&6
9480
test "$dynamic_linker" = no && can_build_shared=no
9481
 
9482
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9483
if test "$GCC" = yes; then
9484
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9485
fi
9486
 
9487
 
9488
 
9489
 
9490
 
9491
 
9492
 
9493
 
9494
 
9495
 
9496
 
9497
 
9498
 
9499
 
9500
 
9501
 
9502
 
9503
 
9504
 
9505
 
9506
 
9507
 
9508
 
9509
 
9510
 
9511
 
9512
 
9513
 
9514
 
9515
 
9516
 
9517
 
9518
 
9519
 
9520
 
9521
 
9522
 
9523
 
9524
 
9525
 
9526
 
9527
 
9528
 
9529
 
9530
 
9531
 
9532
 
9533
 
9534
 
9535
 
9536
 
9537
 
9538
 
9539
 
9540
 
9541
 
9542
 
9543
 
9544
 
9545
 
9546
 
9547
 
9548
 
9549
 
9550
 
9551
 
9552
 
9553
 
9554
 
9555
 
9556
 
9557
 
9558
 
9559
 
9560
 
9561
 
9562
 
9563
 
9564
 
9565
 
9566
 
9567
 
9568
 
9569
 
9570
 
9571
 
9572
 
9573
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9574
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9575
hardcode_action=
9576
if test -n "$hardcode_libdir_flag_spec" ||
9577
   test -n "$runpath_var" ||
9578
   test "X$hardcode_automatic" = "Xyes" ; then
9579
 
9580
  # We can hardcode non-existent directories.
9581
  if test "$hardcode_direct" != no &&
9582
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9583
     # have to relink, otherwise we might link with an installed library
9584
     # when we should be linking with a yet-to-be-installed one
9585
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9586
     test "$hardcode_minus_L" != no; then
9587
    # Linking always hardcodes the temporary library directory.
9588
    hardcode_action=relink
9589
  else
9590
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9591
    hardcode_action=immediate
9592
  fi
9593
else
9594
  # We cannot hardcode anything, or else we can only hardcode existing
9595
  # directories.
9596
  hardcode_action=unsupported
9597
fi
9598
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9599
echo "${ECHO_T}$hardcode_action" >&6
9600
 
9601
if test "$hardcode_action" = relink ||
9602
   test "$inherit_rpath" = yes; then
9603
  # Fast installation is not supported
9604
  enable_fast_install=no
9605
elif test "$shlibpath_overrides_runpath" = yes ||
9606
     test "$enable_shared" = no; then
9607
  # Fast installation is not necessary
9608
  enable_fast_install=needless
9609
fi
9610
 
9611
 
9612
 
9613
 
9614
 
9615
 
9616
  if test "x$enable_dlopen" != xyes; then
9617
  enable_dlopen=unknown
9618
  enable_dlopen_self=unknown
9619
  enable_dlopen_self_static=unknown
9620
else
9621
  lt_cv_dlopen=no
9622
  lt_cv_dlopen_libs=
9623
 
9624
  case $host_os in
9625
  beos*)
9626
    lt_cv_dlopen="load_add_on"
9627
    lt_cv_dlopen_libs=
9628
    lt_cv_dlopen_self=yes
9629
    ;;
9630
 
9631
  mingw* | pw32*)
9632
    lt_cv_dlopen="LoadLibrary"
9633
    lt_cv_dlopen_libs=
9634
    ;;
9635
 
9636
  cygwin*)
9637
    lt_cv_dlopen="dlopen"
9638
    lt_cv_dlopen_libs=
9639
    ;;
9640
 
9641
  darwin*)
9642
  # if libdl is installed we need to link against it
9643
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9644
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9645
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9646
  echo $ECHO_N "(cached) $ECHO_C" >&6
9647
else
9648
  ac_check_lib_save_LIBS=$LIBS
9649
LIBS="-ldl  $LIBS"
9650
cat >conftest.$ac_ext <<_ACEOF
9651
/* confdefs.h.  */
9652
_ACEOF
9653
cat confdefs.h >>conftest.$ac_ext
9654
cat >>conftest.$ac_ext <<_ACEOF
9655
/* end confdefs.h.  */
9656
 
9657
/* Override any gcc2 internal prototype to avoid an error.  */
9658
#ifdef __cplusplus
9659
extern "C"
9660
#endif
9661
/* We use char because int might match the return type of a gcc2
9662
   builtin and then its argument prototype would still apply.  */
9663
char dlopen ();
9664
int
9665
main ()
9666
{
9667
dlopen ();
9668
  ;
9669
  return 0;
9670
}
9671
_ACEOF
9672
rm -f conftest.$ac_objext conftest$ac_exeext
9673
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9674
  (eval $ac_link) 2>conftest.er1
9675
  ac_status=$?
9676
  grep -v '^ *+' conftest.er1 >conftest.err
9677
  rm -f conftest.er1
9678
  cat conftest.err >&5
9679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680
  (exit $ac_status); } &&
9681
         { ac_try='test -z "$ac_c_werror_flag"
9682
                         || test ! -s conftest.err'
9683
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684
  (eval $ac_try) 2>&5
9685
  ac_status=$?
9686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687
  (exit $ac_status); }; } &&
9688
         { ac_try='test -s conftest$ac_exeext'
9689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690
  (eval $ac_try) 2>&5
9691
  ac_status=$?
9692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693
  (exit $ac_status); }; }; then
9694
  ac_cv_lib_dl_dlopen=yes
9695
else
9696
  echo "$as_me: failed program was:" >&5
9697
sed 's/^/| /' conftest.$ac_ext >&5
9698
 
9699
ac_cv_lib_dl_dlopen=no
9700
fi
9701
rm -f conftest.err conftest.$ac_objext \
9702
      conftest$ac_exeext conftest.$ac_ext
9703
LIBS=$ac_check_lib_save_LIBS
9704
fi
9705
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9706
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9707
if test $ac_cv_lib_dl_dlopen = yes; then
9708
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9709
else
9710
 
9711
    lt_cv_dlopen="dyld"
9712
    lt_cv_dlopen_libs=
9713
    lt_cv_dlopen_self=yes
9714
 
9715
fi
9716
 
9717
    ;;
9718
 
9719
  *)
9720
    echo "$as_me:$LINENO: checking for shl_load" >&5
9721
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9722
if test "${ac_cv_func_shl_load+set}" = set; then
9723
  echo $ECHO_N "(cached) $ECHO_C" >&6
9724
else
9725
  cat >conftest.$ac_ext <<_ACEOF
9726
/* confdefs.h.  */
9727
_ACEOF
9728
cat confdefs.h >>conftest.$ac_ext
9729
cat >>conftest.$ac_ext <<_ACEOF
9730
/* end confdefs.h.  */
9731
/* Define shl_load to an innocuous variant, in case  declares shl_load.
9732
   For example, HP-UX 11i  declares gettimeofday.  */
9733
#define shl_load innocuous_shl_load
9734
 
9735
/* System header to define __stub macros and hopefully few prototypes,
9736
    which can conflict with char shl_load (); below.
9737
    Prefer  to  if __STDC__ is defined, since
9738
     exists even on freestanding compilers.  */
9739
 
9740
#ifdef __STDC__
9741
# include 
9742
#else
9743
# include 
9744
#endif
9745
 
9746
#undef shl_load
9747
 
9748
/* Override any gcc2 internal prototype to avoid an error.  */
9749
#ifdef __cplusplus
9750
extern "C"
9751
{
9752
#endif
9753
/* We use char because int might match the return type of a gcc2
9754
   builtin and then its argument prototype would still apply.  */
9755
char shl_load ();
9756
/* The GNU C library defines this for functions which it implements
9757
    to always fail with ENOSYS.  Some functions are actually named
9758
    something starting with __ and the normal name is an alias.  */
9759
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9760
choke me
9761
#else
9762
char (*f) () = shl_load;
9763
#endif
9764
#ifdef __cplusplus
9765
}
9766
#endif
9767
 
9768
int
9769
main ()
9770
{
9771
return f != shl_load;
9772
  ;
9773
  return 0;
9774
}
9775
_ACEOF
9776
rm -f conftest.$ac_objext conftest$ac_exeext
9777
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778
  (eval $ac_link) 2>conftest.er1
9779
  ac_status=$?
9780
  grep -v '^ *+' conftest.er1 >conftest.err
9781
  rm -f conftest.er1
9782
  cat conftest.err >&5
9783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784
  (exit $ac_status); } &&
9785
         { ac_try='test -z "$ac_c_werror_flag"
9786
                         || test ! -s conftest.err'
9787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788
  (eval $ac_try) 2>&5
9789
  ac_status=$?
9790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791
  (exit $ac_status); }; } &&
9792
         { ac_try='test -s conftest$ac_exeext'
9793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794
  (eval $ac_try) 2>&5
9795
  ac_status=$?
9796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797
  (exit $ac_status); }; }; then
9798
  ac_cv_func_shl_load=yes
9799
else
9800
  echo "$as_me: failed program was:" >&5
9801
sed 's/^/| /' conftest.$ac_ext >&5
9802
 
9803
ac_cv_func_shl_load=no
9804
fi
9805
rm -f conftest.err conftest.$ac_objext \
9806
      conftest$ac_exeext conftest.$ac_ext
9807
fi
9808
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9809
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9810
if test $ac_cv_func_shl_load = yes; then
9811
  lt_cv_dlopen="shl_load"
9812
else
9813
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9814
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9815
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9816
  echo $ECHO_N "(cached) $ECHO_C" >&6
9817
else
9818
  ac_check_lib_save_LIBS=$LIBS
9819
LIBS="-ldld  $LIBS"
9820
cat >conftest.$ac_ext <<_ACEOF
9821
/* confdefs.h.  */
9822
_ACEOF
9823
cat confdefs.h >>conftest.$ac_ext
9824
cat >>conftest.$ac_ext <<_ACEOF
9825
/* end confdefs.h.  */
9826
 
9827
/* Override any gcc2 internal prototype to avoid an error.  */
9828
#ifdef __cplusplus
9829
extern "C"
9830
#endif
9831
/* We use char because int might match the return type of a gcc2
9832
   builtin and then its argument prototype would still apply.  */
9833
char shl_load ();
9834
int
9835
main ()
9836
{
9837
shl_load ();
9838
  ;
9839
  return 0;
9840
}
9841
_ACEOF
9842
rm -f conftest.$ac_objext conftest$ac_exeext
9843
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9844
  (eval $ac_link) 2>conftest.er1
9845
  ac_status=$?
9846
  grep -v '^ *+' conftest.er1 >conftest.err
9847
  rm -f conftest.er1
9848
  cat conftest.err >&5
9849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850
  (exit $ac_status); } &&
9851
         { ac_try='test -z "$ac_c_werror_flag"
9852
                         || test ! -s conftest.err'
9853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854
  (eval $ac_try) 2>&5
9855
  ac_status=$?
9856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857
  (exit $ac_status); }; } &&
9858
         { ac_try='test -s conftest$ac_exeext'
9859
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860
  (eval $ac_try) 2>&5
9861
  ac_status=$?
9862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863
  (exit $ac_status); }; }; then
9864
  ac_cv_lib_dld_shl_load=yes
9865
else
9866
  echo "$as_me: failed program was:" >&5
9867
sed 's/^/| /' conftest.$ac_ext >&5
9868
 
9869
ac_cv_lib_dld_shl_load=no
9870
fi
9871
rm -f conftest.err conftest.$ac_objext \
9872
      conftest$ac_exeext conftest.$ac_ext
9873
LIBS=$ac_check_lib_save_LIBS
9874
fi
9875
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9876
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9877
if test $ac_cv_lib_dld_shl_load = yes; then
9878
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9879
else
9880
  echo "$as_me:$LINENO: checking for dlopen" >&5
9881
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9882
if test "${ac_cv_func_dlopen+set}" = set; then
9883
  echo $ECHO_N "(cached) $ECHO_C" >&6
9884
else
9885
  cat >conftest.$ac_ext <<_ACEOF
9886
/* confdefs.h.  */
9887
_ACEOF
9888
cat confdefs.h >>conftest.$ac_ext
9889
cat >>conftest.$ac_ext <<_ACEOF
9890
/* end confdefs.h.  */
9891
/* Define dlopen to an innocuous variant, in case  declares dlopen.
9892
   For example, HP-UX 11i  declares gettimeofday.  */
9893
#define dlopen innocuous_dlopen
9894
 
9895
/* System header to define __stub macros and hopefully few prototypes,
9896
    which can conflict with char dlopen (); below.
9897
    Prefer  to  if __STDC__ is defined, since
9898
     exists even on freestanding compilers.  */
9899
 
9900
#ifdef __STDC__
9901
# include 
9902
#else
9903
# include 
9904
#endif
9905
 
9906
#undef dlopen
9907
 
9908
/* Override any gcc2 internal prototype to avoid an error.  */
9909
#ifdef __cplusplus
9910
extern "C"
9911
{
9912
#endif
9913
/* We use char because int might match the return type of a gcc2
9914
   builtin and then its argument prototype would still apply.  */
9915
char dlopen ();
9916
/* The GNU C library defines this for functions which it implements
9917
    to always fail with ENOSYS.  Some functions are actually named
9918
    something starting with __ and the normal name is an alias.  */
9919
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9920
choke me
9921
#else
9922
char (*f) () = dlopen;
9923
#endif
9924
#ifdef __cplusplus
9925
}
9926
#endif
9927
 
9928
int
9929
main ()
9930
{
9931
return f != dlopen;
9932
  ;
9933
  return 0;
9934
}
9935
_ACEOF
9936
rm -f conftest.$ac_objext conftest$ac_exeext
9937
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938
  (eval $ac_link) 2>conftest.er1
9939
  ac_status=$?
9940
  grep -v '^ *+' conftest.er1 >conftest.err
9941
  rm -f conftest.er1
9942
  cat conftest.err >&5
9943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944
  (exit $ac_status); } &&
9945
         { ac_try='test -z "$ac_c_werror_flag"
9946
                         || test ! -s conftest.err'
9947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948
  (eval $ac_try) 2>&5
9949
  ac_status=$?
9950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951
  (exit $ac_status); }; } &&
9952
         { ac_try='test -s conftest$ac_exeext'
9953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954
  (eval $ac_try) 2>&5
9955
  ac_status=$?
9956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957
  (exit $ac_status); }; }; then
9958
  ac_cv_func_dlopen=yes
9959
else
9960
  echo "$as_me: failed program was:" >&5
9961
sed 's/^/| /' conftest.$ac_ext >&5
9962
 
9963
ac_cv_func_dlopen=no
9964
fi
9965
rm -f conftest.err conftest.$ac_objext \
9966
      conftest$ac_exeext conftest.$ac_ext
9967
fi
9968
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9969
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9970
if test $ac_cv_func_dlopen = yes; then
9971
  lt_cv_dlopen="dlopen"
9972
else
9973
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9974
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9975
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9976
  echo $ECHO_N "(cached) $ECHO_C" >&6
9977
else
9978
  ac_check_lib_save_LIBS=$LIBS
9979
LIBS="-ldl  $LIBS"
9980
cat >conftest.$ac_ext <<_ACEOF
9981
/* confdefs.h.  */
9982
_ACEOF
9983
cat confdefs.h >>conftest.$ac_ext
9984
cat >>conftest.$ac_ext <<_ACEOF
9985
/* end confdefs.h.  */
9986
 
9987
/* Override any gcc2 internal prototype to avoid an error.  */
9988
#ifdef __cplusplus
9989
extern "C"
9990
#endif
9991
/* We use char because int might match the return type of a gcc2
9992
   builtin and then its argument prototype would still apply.  */
9993
char dlopen ();
9994
int
9995
main ()
9996
{
9997
dlopen ();
9998
  ;
9999
  return 0;
10000
}
10001
_ACEOF
10002
rm -f conftest.$ac_objext conftest$ac_exeext
10003
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004
  (eval $ac_link) 2>conftest.er1
10005
  ac_status=$?
10006
  grep -v '^ *+' conftest.er1 >conftest.err
10007
  rm -f conftest.er1
10008
  cat conftest.err >&5
10009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010
  (exit $ac_status); } &&
10011
         { ac_try='test -z "$ac_c_werror_flag"
10012
                         || test ! -s conftest.err'
10013
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014
  (eval $ac_try) 2>&5
10015
  ac_status=$?
10016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017
  (exit $ac_status); }; } &&
10018
         { ac_try='test -s conftest$ac_exeext'
10019
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020
  (eval $ac_try) 2>&5
10021
  ac_status=$?
10022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023
  (exit $ac_status); }; }; then
10024
  ac_cv_lib_dl_dlopen=yes
10025
else
10026
  echo "$as_me: failed program was:" >&5
10027
sed 's/^/| /' conftest.$ac_ext >&5
10028
 
10029
ac_cv_lib_dl_dlopen=no
10030
fi
10031
rm -f conftest.err conftest.$ac_objext \
10032
      conftest$ac_exeext conftest.$ac_ext
10033
LIBS=$ac_check_lib_save_LIBS
10034
fi
10035
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10036
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10037
if test $ac_cv_lib_dl_dlopen = yes; then
10038
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10039
else
10040
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10041
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10042
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10043
  echo $ECHO_N "(cached) $ECHO_C" >&6
10044
else
10045
  ac_check_lib_save_LIBS=$LIBS
10046
LIBS="-lsvld  $LIBS"
10047
cat >conftest.$ac_ext <<_ACEOF
10048
/* confdefs.h.  */
10049
_ACEOF
10050
cat confdefs.h >>conftest.$ac_ext
10051
cat >>conftest.$ac_ext <<_ACEOF
10052
/* end confdefs.h.  */
10053
 
10054
/* Override any gcc2 internal prototype to avoid an error.  */
10055
#ifdef __cplusplus
10056
extern "C"
10057
#endif
10058
/* We use char because int might match the return type of a gcc2
10059
   builtin and then its argument prototype would still apply.  */
10060
char dlopen ();
10061
int
10062
main ()
10063
{
10064
dlopen ();
10065
  ;
10066
  return 0;
10067
}
10068
_ACEOF
10069
rm -f conftest.$ac_objext conftest$ac_exeext
10070
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10071
  (eval $ac_link) 2>conftest.er1
10072
  ac_status=$?
10073
  grep -v '^ *+' conftest.er1 >conftest.err
10074
  rm -f conftest.er1
10075
  cat conftest.err >&5
10076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077
  (exit $ac_status); } &&
10078
         { ac_try='test -z "$ac_c_werror_flag"
10079
                         || test ! -s conftest.err'
10080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081
  (eval $ac_try) 2>&5
10082
  ac_status=$?
10083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084
  (exit $ac_status); }; } &&
10085
         { ac_try='test -s conftest$ac_exeext'
10086
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087
  (eval $ac_try) 2>&5
10088
  ac_status=$?
10089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090
  (exit $ac_status); }; }; then
10091
  ac_cv_lib_svld_dlopen=yes
10092
else
10093
  echo "$as_me: failed program was:" >&5
10094
sed 's/^/| /' conftest.$ac_ext >&5
10095
 
10096
ac_cv_lib_svld_dlopen=no
10097
fi
10098
rm -f conftest.err conftest.$ac_objext \
10099
      conftest$ac_exeext conftest.$ac_ext
10100
LIBS=$ac_check_lib_save_LIBS
10101
fi
10102
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10103
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10104
if test $ac_cv_lib_svld_dlopen = yes; then
10105
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10106
else
10107
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10108
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10109
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10110
  echo $ECHO_N "(cached) $ECHO_C" >&6
10111
else
10112
  ac_check_lib_save_LIBS=$LIBS
10113
LIBS="-ldld  $LIBS"
10114
cat >conftest.$ac_ext <<_ACEOF
10115
/* confdefs.h.  */
10116
_ACEOF
10117
cat confdefs.h >>conftest.$ac_ext
10118
cat >>conftest.$ac_ext <<_ACEOF
10119
/* end confdefs.h.  */
10120
 
10121
/* Override any gcc2 internal prototype to avoid an error.  */
10122
#ifdef __cplusplus
10123
extern "C"
10124
#endif
10125
/* We use char because int might match the return type of a gcc2
10126
   builtin and then its argument prototype would still apply.  */
10127
char dld_link ();
10128
int
10129
main ()
10130
{
10131
dld_link ();
10132
  ;
10133
  return 0;
10134
}
10135
_ACEOF
10136
rm -f conftest.$ac_objext conftest$ac_exeext
10137
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10138
  (eval $ac_link) 2>conftest.er1
10139
  ac_status=$?
10140
  grep -v '^ *+' conftest.er1 >conftest.err
10141
  rm -f conftest.er1
10142
  cat conftest.err >&5
10143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144
  (exit $ac_status); } &&
10145
         { ac_try='test -z "$ac_c_werror_flag"
10146
                         || test ! -s conftest.err'
10147
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148
  (eval $ac_try) 2>&5
10149
  ac_status=$?
10150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151
  (exit $ac_status); }; } &&
10152
         { ac_try='test -s conftest$ac_exeext'
10153
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154
  (eval $ac_try) 2>&5
10155
  ac_status=$?
10156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157
  (exit $ac_status); }; }; then
10158
  ac_cv_lib_dld_dld_link=yes
10159
else
10160
  echo "$as_me: failed program was:" >&5
10161
sed 's/^/| /' conftest.$ac_ext >&5
10162
 
10163
ac_cv_lib_dld_dld_link=no
10164
fi
10165
rm -f conftest.err conftest.$ac_objext \
10166
      conftest$ac_exeext conftest.$ac_ext
10167
LIBS=$ac_check_lib_save_LIBS
10168
fi
10169
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10170
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10171
if test $ac_cv_lib_dld_dld_link = yes; then
10172
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10173
fi
10174
 
10175
 
10176
fi
10177
 
10178
 
10179
fi
10180
 
10181
 
10182
fi
10183
 
10184
 
10185
fi
10186
 
10187
 
10188
fi
10189
 
10190
    ;;
10191
  esac
10192
 
10193
  if test "x$lt_cv_dlopen" != xno; then
10194
    enable_dlopen=yes
10195
  else
10196
    enable_dlopen=no
10197
  fi
10198
 
10199
  case $lt_cv_dlopen in
10200
  dlopen)
10201
    save_CPPFLAGS="$CPPFLAGS"
10202
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10203
 
10204
    save_LDFLAGS="$LDFLAGS"
10205
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10206
 
10207
    save_LIBS="$LIBS"
10208
    LIBS="$lt_cv_dlopen_libs $LIBS"
10209
 
10210
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10211
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10212
if test "${lt_cv_dlopen_self+set}" = set; then
10213
  echo $ECHO_N "(cached) $ECHO_C" >&6
10214
else
10215
          if test "$cross_compiling" = yes; then :
10216
  lt_cv_dlopen_self=cross
10217
else
10218
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10219
  lt_status=$lt_dlunknown
10220
  cat > conftest.$ac_ext <<_LT_EOF
10221
#line 10221 "configure"
10222
#include "confdefs.h"
10223
 
10224
#if HAVE_DLFCN_H
10225
#include 
10226
#endif
10227
 
10228
#include 
10229
 
10230
#ifdef RTLD_GLOBAL
10231
#  define LT_DLGLOBAL           RTLD_GLOBAL
10232
#else
10233
#  ifdef DL_GLOBAL
10234
#    define LT_DLGLOBAL         DL_GLOBAL
10235
#  else
10236
#    define LT_DLGLOBAL         0
10237
#  endif
10238
#endif
10239
 
10240
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10241
   find out it does not work in some platform. */
10242
#ifndef LT_DLLAZY_OR_NOW
10243
#  ifdef RTLD_LAZY
10244
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10245
#  else
10246
#    ifdef DL_LAZY
10247
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10248
#    else
10249
#      ifdef RTLD_NOW
10250
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10251
#      else
10252
#        ifdef DL_NOW
10253
#          define LT_DLLAZY_OR_NOW      DL_NOW
10254
#        else
10255
#          define LT_DLLAZY_OR_NOW      0
10256
#        endif
10257
#      endif
10258
#    endif
10259
#  endif
10260
#endif
10261
 
10262
#ifdef __cplusplus
10263
extern "C" void exit (int);
10264
#endif
10265
 
10266
void fnord() { int i=42;}
10267
int main ()
10268
{
10269
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10270
  int status = $lt_dlunknown;
10271
 
10272
  if (self)
10273
    {
10274
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10275
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10276
      /* dlclose (self); */
10277
    }
10278
  else
10279
    puts (dlerror ());
10280
 
10281
    exit (status);
10282
}
10283
_LT_EOF
10284
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10285
  (eval $ac_link) 2>&5
10286
  ac_status=$?
10287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10289
    (./conftest; exit; ) >&5 2>/dev/null
10290
    lt_status=$?
10291
    case x$lt_status in
10292
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10293
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10294
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10295
    esac
10296
  else :
10297
    # compilation failed
10298
    lt_cv_dlopen_self=no
10299
  fi
10300
fi
10301
rm -fr conftest*
10302
 
10303
 
10304
fi
10305
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10306
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10307
 
10308
    if test "x$lt_cv_dlopen_self" = xyes; then
10309
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10310
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10311
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10312
if test "${lt_cv_dlopen_self_static+set}" = set; then
10313
  echo $ECHO_N "(cached) $ECHO_C" >&6
10314
else
10315
          if test "$cross_compiling" = yes; then :
10316
  lt_cv_dlopen_self_static=cross
10317
else
10318
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10319
  lt_status=$lt_dlunknown
10320
  cat > conftest.$ac_ext <<_LT_EOF
10321
#line 10321 "configure"
10322
#include "confdefs.h"
10323
 
10324
#if HAVE_DLFCN_H
10325
#include 
10326
#endif
10327
 
10328
#include 
10329
 
10330
#ifdef RTLD_GLOBAL
10331
#  define LT_DLGLOBAL           RTLD_GLOBAL
10332
#else
10333
#  ifdef DL_GLOBAL
10334
#    define LT_DLGLOBAL         DL_GLOBAL
10335
#  else
10336
#    define LT_DLGLOBAL         0
10337
#  endif
10338
#endif
10339
 
10340
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10341
   find out it does not work in some platform. */
10342
#ifndef LT_DLLAZY_OR_NOW
10343
#  ifdef RTLD_LAZY
10344
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10345
#  else
10346
#    ifdef DL_LAZY
10347
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10348
#    else
10349
#      ifdef RTLD_NOW
10350
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10351
#      else
10352
#        ifdef DL_NOW
10353
#          define LT_DLLAZY_OR_NOW      DL_NOW
10354
#        else
10355
#          define LT_DLLAZY_OR_NOW      0
10356
#        endif
10357
#      endif
10358
#    endif
10359
#  endif
10360
#endif
10361
 
10362
#ifdef __cplusplus
10363
extern "C" void exit (int);
10364
#endif
10365
 
10366
void fnord() { int i=42;}
10367
int main ()
10368
{
10369
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10370
  int status = $lt_dlunknown;
10371
 
10372
  if (self)
10373
    {
10374
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10375
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10376
      /* dlclose (self); */
10377
    }
10378
  else
10379
    puts (dlerror ());
10380
 
10381
    exit (status);
10382
}
10383
_LT_EOF
10384
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10385
  (eval $ac_link) 2>&5
10386
  ac_status=$?
10387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10389
    (./conftest; exit; ) >&5 2>/dev/null
10390
    lt_status=$?
10391
    case x$lt_status in
10392
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10393
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10394
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10395
    esac
10396
  else :
10397
    # compilation failed
10398
    lt_cv_dlopen_self_static=no
10399
  fi
10400
fi
10401
rm -fr conftest*
10402
 
10403
 
10404
fi
10405
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10406
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10407
    fi
10408
 
10409
    CPPFLAGS="$save_CPPFLAGS"
10410
    LDFLAGS="$save_LDFLAGS"
10411
    LIBS="$save_LIBS"
10412
    ;;
10413
  esac
10414
 
10415
  case $lt_cv_dlopen_self in
10416
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10417
  *) enable_dlopen_self=unknown ;;
10418
  esac
10419
 
10420
  case $lt_cv_dlopen_self_static in
10421
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10422
  *) enable_dlopen_self_static=unknown ;;
10423
  esac
10424
fi
10425
 
10426
 
10427
 
10428
 
10429
 
10430
 
10431
 
10432
 
10433
 
10434
 
10435
 
10436
 
10437
 
10438
 
10439
 
10440
 
10441
 
10442
striplib=
10443
old_striplib=
10444
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10445
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10446
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10447
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10448
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10449
  echo "$as_me:$LINENO: result: yes" >&5
10450
echo "${ECHO_T}yes" >&6
10451
else
10452
# FIXME - insert some real tests, host_os isn't really good enough
10453
  case $host_os in
10454
  darwin*)
10455
    if test -n "$STRIP" ; then
10456
      striplib="$STRIP -x"
10457
      old_striplib="$STRIP -S"
10458
      echo "$as_me:$LINENO: result: yes" >&5
10459
echo "${ECHO_T}yes" >&6
10460
    else
10461
      echo "$as_me:$LINENO: result: no" >&5
10462
echo "${ECHO_T}no" >&6
10463
    fi
10464
    ;;
10465
  *)
10466
    echo "$as_me:$LINENO: result: no" >&5
10467
echo "${ECHO_T}no" >&6
10468
    ;;
10469
  esac
10470
fi
10471
 
10472
 
10473
 
10474
 
10475
 
10476
 
10477
 
10478
 
10479
 
10480
 
10481
 
10482
 
10483
  # Report which library types will actually be built
10484
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10485
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10486
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
10487
echo "${ECHO_T}$can_build_shared" >&6
10488
 
10489
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10490
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10491
  test "$can_build_shared" = "no" && enable_shared=no
10492
 
10493
  # On AIX, shared libraries and static libraries use the same namespace, and
10494
  # are all built from PIC.
10495
  case $host_os in
10496
  aix3*)
10497
    test "$enable_shared" = yes && enable_static=no
10498
    if test -n "$RANLIB"; then
10499
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10500
      postinstall_cmds='$RANLIB $lib'
10501
    fi
10502
    ;;
10503
 
10504
  aix[4-9]*)
10505
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10506
      test "$enable_shared" = yes && enable_static=no
10507
    fi
10508
    ;;
10509
  esac
10510
  echo "$as_me:$LINENO: result: $enable_shared" >&5
10511
echo "${ECHO_T}$enable_shared" >&6
10512
 
10513
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10514
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10515
  # Make sure either enable_shared or enable_static is yes.
10516
  test "$enable_shared" = yes || enable_static=yes
10517
  echo "$as_me:$LINENO: result: $enable_static" >&5
10518
echo "${ECHO_T}$enable_static" >&6
10519
 
10520
 
10521
 
10522
 
10523
fi
10524
ac_ext=c
10525
ac_cpp='$CPP $CPPFLAGS'
10526
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10527
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10528
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10529
 
10530
CC="$lt_save_CC"
10531
 
10532
 
10533
 
10534
 
10535
 
10536
 
10537
 
10538
 
10539
 
10540
 
10541
 
10542
 
10543
 
10544
                  ac_config_commands="$ac_config_commands libtool"
10545
 
10546
 
10547
 
10548
 
10549
# Only expand once:
10550
 
10551
 
10552
 
10553
# Check whether --enable-targets or --disable-targets was given.
10554
if test "${enable_targets+set}" = set; then
10555
  enableval="$enable_targets"
10556
  case "${enableval}" in
10557
  yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10558
echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10559
   { (exit 1); exit 1; }; }
10560
            ;;
10561
  no)       enable_targets= ;;
10562
  *)        enable_targets=$enableval ;;
10563
esac
10564
fi;
10565
# Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10566
if test "${enable_commonbfdlib+set}" = set; then
10567
  enableval="$enable_commonbfdlib"
10568
  case "${enableval}" in
10569
  yes) commonbfdlib=true ;;
10570
  no)  commonbfdlib=false ;;
10571
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10572
echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10573
   { (exit 1); exit 1; }; } ;;
10574
esac
10575
fi;
10576
ac_checking=yes
10577
if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
10578
  ac_checking=
10579
fi
10580
# Check whether --enable-checking or --disable-checking was given.
10581
if test "${enable_checking+set}" = set; then
10582
  enableval="$enable_checking"
10583
  case "${enableval}" in
10584
  no|none)  ac_checking= ;;
10585
  *)        ac_checking=yes ;;
10586
esac
10587
fi; if test x$ac_checking != x ; then
10588
 
10589
cat >>confdefs.h <<\_ACEOF
10590
#define ENABLE_CHECKING 1
10591
_ACEOF
10592
 
10593
fi
10594
 
10595
using_cgen=no
10596
 
10597
 
10598
GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10599
 
10600
# Check whether --enable-werror or --disable-werror was given.
10601
if test "${enable_werror+set}" = set; then
10602
  enableval="$enable_werror"
10603
  case "${enableval}" in
10604
     yes | y) ERROR_ON_WARNING="yes" ;;
10605
     no | n)  ERROR_ON_WARNING="no" ;;
10606
     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10607
echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10608
   { (exit 1); exit 1; }; } ;;
10609
   esac
10610
fi;
10611
 
10612
# Enable -Wno-format by default when using gcc on mingw
10613
case "${host}" in
10614
  *-*-mingw32*)
10615
    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10616
      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
10617
    fi
10618
    ;;
10619
  *) ;;
10620
esac
10621
 
10622
# Enable -Werror by default when using gcc
10623
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10624
    ERROR_ON_WARNING=yes
10625
fi
10626
 
10627
NO_WERROR=
10628
if test "${ERROR_ON_WARNING}" = yes ; then
10629
    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10630
    NO_WERROR="-Wno-error"
10631
fi
10632
 
10633
if test "${GCC}" = yes ; then
10634
  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10635
fi
10636
 
10637
# Check whether --enable-build-warnings or --disable-build-warnings was given.
10638
if test "${enable_build_warnings+set}" = set; then
10639
  enableval="$enable_build_warnings"
10640
  case "${enableval}" in
10641
  yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10642
  no)   if test "${GCC}" = yes ; then
10643
          WARN_CFLAGS="-w"
10644
        fi;;
10645
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10646
        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10647
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10648
        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10649
  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10650
esac
10651
fi;
10652
 
10653
if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10654
  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10655
fi
10656
 
10657
 
10658
 
10659
 
10660
 
10661
# Generate a header file
10662
          ac_config_headers="$ac_config_headers config.h:config.in"
10663
 
10664
 
10665
# If we are on a DOS filesystem, we must use gdb.ini rather than
10666
# .gdbinit.
10667
case "${host}" in
10668
  *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
10669
    GDBINIT="gdb.ini"
10670
              ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
10671
 
10672
    ;;
10673
  *)
10674
    GDBINIT=".gdbinit"
10675
              ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
10676
 
10677
    ;;
10678
esac
10679
 
10680
 
10681
#We need this for the host.  BOUT header is in host order.
10682
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10683
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10684
if test "${ac_cv_c_bigendian+set}" = set; then
10685
  echo $ECHO_N "(cached) $ECHO_C" >&6
10686
else
10687
  # See if sys/param.h defines the BYTE_ORDER macro.
10688
cat >conftest.$ac_ext <<_ACEOF
10689
/* confdefs.h.  */
10690
_ACEOF
10691
cat confdefs.h >>conftest.$ac_ext
10692
cat >>conftest.$ac_ext <<_ACEOF
10693
/* end confdefs.h.  */
10694
#include 
10695
#include 
10696
 
10697
int
10698
main ()
10699
{
10700
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10701
 bogus endian macros
10702
#endif
10703
 
10704
  ;
10705
  return 0;
10706
}
10707
_ACEOF
10708
rm -f conftest.$ac_objext
10709
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10710
  (eval $ac_compile) 2>conftest.er1
10711
  ac_status=$?
10712
  grep -v '^ *+' conftest.er1 >conftest.err
10713
  rm -f conftest.er1
10714
  cat conftest.err >&5
10715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716
  (exit $ac_status); } &&
10717
         { ac_try='test -z "$ac_c_werror_flag"
10718
                         || test ! -s conftest.err'
10719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720
  (eval $ac_try) 2>&5
10721
  ac_status=$?
10722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723
  (exit $ac_status); }; } &&
10724
         { ac_try='test -s conftest.$ac_objext'
10725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726
  (eval $ac_try) 2>&5
10727
  ac_status=$?
10728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729
  (exit $ac_status); }; }; then
10730
  # It does; now see whether it defined to BIG_ENDIAN or not.
10731
cat >conftest.$ac_ext <<_ACEOF
10732
/* confdefs.h.  */
10733
_ACEOF
10734
cat confdefs.h >>conftest.$ac_ext
10735
cat >>conftest.$ac_ext <<_ACEOF
10736
/* end confdefs.h.  */
10737
#include 
10738
#include 
10739
 
10740
int
10741
main ()
10742
{
10743
#if BYTE_ORDER != BIG_ENDIAN
10744
 not big endian
10745
#endif
10746
 
10747
  ;
10748
  return 0;
10749
}
10750
_ACEOF
10751
rm -f conftest.$ac_objext
10752
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10753
  (eval $ac_compile) 2>conftest.er1
10754
  ac_status=$?
10755
  grep -v '^ *+' conftest.er1 >conftest.err
10756
  rm -f conftest.er1
10757
  cat conftest.err >&5
10758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759
  (exit $ac_status); } &&
10760
         { ac_try='test -z "$ac_c_werror_flag"
10761
                         || test ! -s conftest.err'
10762
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763
  (eval $ac_try) 2>&5
10764
  ac_status=$?
10765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766
  (exit $ac_status); }; } &&
10767
         { ac_try='test -s conftest.$ac_objext'
10768
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769
  (eval $ac_try) 2>&5
10770
  ac_status=$?
10771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772
  (exit $ac_status); }; }; then
10773
  ac_cv_c_bigendian=yes
10774
else
10775
  echo "$as_me: failed program was:" >&5
10776
sed 's/^/| /' conftest.$ac_ext >&5
10777
 
10778
ac_cv_c_bigendian=no
10779
fi
10780
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10781
else
10782
  echo "$as_me: failed program was:" >&5
10783
sed 's/^/| /' conftest.$ac_ext >&5
10784
 
10785
# It does not; compile a test program.
10786
if test "$cross_compiling" = yes; then
10787
  # try to guess the endianness by grepping values into an object file
10788
  ac_cv_c_bigendian=unknown
10789
  cat >conftest.$ac_ext <<_ACEOF
10790
/* confdefs.h.  */
10791
_ACEOF
10792
cat confdefs.h >>conftest.$ac_ext
10793
cat >>conftest.$ac_ext <<_ACEOF
10794
/* end confdefs.h.  */
10795
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10796
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10797
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10798
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10799
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10800
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10801
int
10802
main ()
10803
{
10804
 _ascii (); _ebcdic ();
10805
  ;
10806
  return 0;
10807
}
10808
_ACEOF
10809
rm -f conftest.$ac_objext
10810
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811
  (eval $ac_compile) 2>conftest.er1
10812
  ac_status=$?
10813
  grep -v '^ *+' conftest.er1 >conftest.err
10814
  rm -f conftest.er1
10815
  cat conftest.err >&5
10816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817
  (exit $ac_status); } &&
10818
         { ac_try='test -z "$ac_c_werror_flag"
10819
                         || test ! -s conftest.err'
10820
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821
  (eval $ac_try) 2>&5
10822
  ac_status=$?
10823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824
  (exit $ac_status); }; } &&
10825
         { ac_try='test -s conftest.$ac_objext'
10826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827
  (eval $ac_try) 2>&5
10828
  ac_status=$?
10829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830
  (exit $ac_status); }; }; then
10831
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10832
  ac_cv_c_bigendian=yes
10833
fi
10834
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10835
  if test "$ac_cv_c_bigendian" = unknown; then
10836
    ac_cv_c_bigendian=no
10837
  else
10838
    # finding both strings is unlikely to happen, but who knows?
10839
    ac_cv_c_bigendian=unknown
10840
  fi
10841
fi
10842
else
10843
  echo "$as_me: failed program was:" >&5
10844
sed 's/^/| /' conftest.$ac_ext >&5
10845
 
10846
fi
10847
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10848
else
10849
  cat >conftest.$ac_ext <<_ACEOF
10850
/* confdefs.h.  */
10851
_ACEOF
10852
cat confdefs.h >>conftest.$ac_ext
10853
cat >>conftest.$ac_ext <<_ACEOF
10854
/* end confdefs.h.  */
10855
int
10856
main ()
10857
{
10858
  /* Are we little or big endian?  From Harbison&Steele.  */
10859
  union
10860
  {
10861
    long l;
10862
    char c[sizeof (long)];
10863
  } u;
10864
  u.l = 1;
10865
  exit (u.c[sizeof (long) - 1] == 1);
10866
}
10867
_ACEOF
10868
rm -f conftest$ac_exeext
10869
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10870
  (eval $ac_link) 2>&5
10871
  ac_status=$?
10872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875
  (eval $ac_try) 2>&5
10876
  ac_status=$?
10877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878
  (exit $ac_status); }; }; then
10879
  ac_cv_c_bigendian=no
10880
else
10881
  echo "$as_me: program exited with status $ac_status" >&5
10882
echo "$as_me: failed program was:" >&5
10883
sed 's/^/| /' conftest.$ac_ext >&5
10884
 
10885
( exit $ac_status )
10886
ac_cv_c_bigendian=yes
10887
fi
10888
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10889
fi
10890
fi
10891
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10892
fi
10893
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10894
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10895
case $ac_cv_c_bigendian in
10896
  yes)
10897
 
10898
cat >>confdefs.h <<\_ACEOF
10899
#define WORDS_BIGENDIAN 1
10900
_ACEOF
10901
 ;;
10902
  no)
10903
     ;;
10904
  *)
10905
    { { echo "$as_me:$LINENO: error: unknown endianness
10906
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10907
echo "$as_me: error: unknown endianness
10908
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10909
   { (exit 1); exit 1; }; } ;;
10910
esac
10911
 
10912
 
10913
te_file=generic
10914
 
10915
# Makefile target for installing gas in $(tooldir)/bin.
10916
install_tooldir=install-exec-tooldir
10917
 
10918
canon_targets=""
10919
all_targets=no
10920
if test -n "$enable_targets" ; then
10921
  for t in `echo $enable_targets | sed 's/,/ /g'`; do
10922
    if test $t = "all"; then
10923
      all_targets=yes
10924
      continue
10925
    fi
10926
    result=`$ac_config_sub $t 2>/dev/null`
10927
    if test -n "$result" ; then
10928
      canon_targets="$canon_targets $result"
10929
#    else
10930
#      # Permit "all", etc.  We don't support it yet though.
10931
#      canon_targets="$canon_targets $t"
10932
    fi
10933
  done
10934
  _gas_uniq_list="$canon_targets"
10935
_gas_uniq_newlist=""
10936
for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
10937
  case $_gas_uniq_i in
10938
  _gas_uniq_dummy) ;;
10939
  *) case " $_gas_uniq_newlist " in
10940
       *" $_gas_uniq_i "*) ;;
10941
       *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
10942
     esac ;;
10943
  esac
10944
done
10945
canon_targets=$_gas_uniq_newlist
10946
 
10947
fi
10948
 
10949
emulations=""
10950
 
10951
for this_target in $target $canon_targets ; do
10952
 
10953
    targ=${this_target}
10954
    . ${srcdir}/configure.tgt
10955
 
10956
    case ${target_cpu} in
10957
      crisv32)
10958
 
10959
cat >>confdefs.h <<_ACEOF
10960
#define DEFAULT_CRIS_ARCH $arch
10961
_ACEOF
10962
 
10963
        ;;
10964
    esac
10965
 
10966
    if test ${this_target} = $target ; then
10967
      target_cpu_type=${cpu_type}
10968
    elif test ${target_cpu_type} != ${cpu_type} ; then
10969
      continue
10970
    fi
10971
 
10972
    generic_target=${cpu_type}-${target_vendor}-${target_os}
10973
    case ${generic_target} in
10974
      i386-*-sco3.2v5*)
10975
        if test ${this_target} = $target; then
10976
 
10977
cat >>confdefs.h <<\_ACEOF
10978
#define SCO_ELF 1
10979
_ACEOF
10980
 
10981
        fi
10982
        ;;
10983
 
10984
      i386-*-msdosdjgpp* \
10985
      | i386-*-go32* \
10986
      | i386-go32-rtems*)
10987
 
10988
cat >>confdefs.h <<\_ACEOF
10989
#define STRICTCOFF 1
10990
_ACEOF
10991
 
10992
        ;;
10993
 
10994
      i860-*-*)
10995
        { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
10996
echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
10997
        ;;
10998
 
10999
      mips-sony-bsd*)
11000
        ;;
11001
      mips-*-bsd*)
11002
        { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
11003
echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
11004
   { (exit 1); exit 1; }; }
11005
        ;;
11006
 
11007
      ppc-*-aix5.*)
11008
 
11009
cat >>confdefs.h <<\_ACEOF
11010
#define AIX_WEAK_SUPPORT 1
11011
_ACEOF
11012
 
11013
        ;;
11014
      ppc-*-linux-*)
11015
        case "$endian" in
11016
          big)  ;;
11017
          *)    { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
11018
echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
11019
   { (exit 1); exit 1; }; } ;;
11020
        esac
11021
        ;;
11022
      ppc-*-solaris*)
11023
        if test ${this_target} = $target; then
11024
 
11025
cat >>confdefs.h <<\_ACEOF
11026
#define TARGET_SOLARIS_COMMENT 1
11027
_ACEOF
11028
 
11029
        fi
11030
        if test x${endian} = xbig; then
11031
          { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
11032
echo "$as_me: error: Solaris must be configured little endian" >&2;}
11033
   { (exit 1); exit 1; }; }
11034
        fi
11035
        ;;
11036
 
11037
      sh*-*-symbianelf*)
11038
 
11039
cat >>confdefs.h <<\_ACEOF
11040
#define TARGET_SYMBIAN 1
11041
_ACEOF
11042
 
11043
        ;;
11044
    esac
11045
 
11046
    if test ${this_target} = $target ; then
11047
      endian_def=
11048
      if test x${endian} = xbig; then
11049
        endian_def=1
11050
      elif test x${endian} = xlittle; then
11051
        endian_def=0
11052
      fi
11053
      if test x${endian_def} != x; then
11054
 
11055
cat >>confdefs.h <<_ACEOF
11056
#define TARGET_BYTES_BIG_ENDIAN $endian_def
11057
_ACEOF
11058
 
11059
      fi
11060
    fi
11061
 
11062
# Other random stuff.
11063
 
11064
    case ${cpu_type} in
11065
      mips)
11066
        # Set mips_cpu to the name of the default CPU.
11067
        case ${target_cpu} in
11068
          mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
11069
            mips_cpu=from-abi
11070
            ;;
11071
          mipsisa32 | mipsisa32el)
11072
            mips_cpu=mips32
11073
            ;;
11074
          mipsisa32r2 | mipsisa32r2el)
11075
            mips_cpu=mips32r2
11076
            ;;
11077
          mipsisa64 | mipsisa64el)
11078
            mips_cpu=mips64
11079
            ;;
11080
          mipsisa64r2 | mipsisa64r2el)
11081
            mips_cpu=mips64r2
11082
            ;;
11083
          mipstx39 | mipstx39el)
11084
            mips_cpu=r3900
11085
            ;;
11086
          mips64vr | mips64vrel)
11087
            mips_cpu=vr4100
11088
            ;;
11089
          mipsisa32r2* | mipsisa64r2*)
11090
            mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
11091
            ;;
11092
          mips64* | mipsisa64* | mipsisa32*)
11093
            mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
11094
            ;;
11095
          *)
11096
            { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
11097
echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
11098
   { (exit 1); exit 1; }; }
11099
            ;;
11100
        esac
11101
        # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
11102
        # binaries.  It's a GNU extension that some OSes don't understand.
11103
        # The value only matters on ELF targets.
11104
        case ${target} in
11105
          *-*-irix*)
11106
            use_e_mips_abi_o32=0
11107
            ;;
11108
          *)
11109
            use_e_mips_abi_o32=1
11110
            ;;
11111
        esac
11112
        # Decide whether to generate 32-bit or 64-bit code by default.
11113
        # Used to resolve -march=from-abi when an embedded ABI is selected.
11114
        case ${target} in
11115
          mips64*-*-* | mipsisa64*-*-*)
11116
            mips_default_64bit=1
11117
            ;;
11118
          *)
11119
            mips_default_64bit=0
11120
            ;;
11121
        esac
11122
        # Decide which ABI to target by default.
11123
        case ${target} in
11124
          mips64*-linux* | mips-sgi-irix6*)
11125
            mips_default_abi=N32_ABI
11126
            ;;
11127
          mips*-linux*)
11128
            mips_default_abi=O32_ABI
11129
            ;;
11130
          mips64*-openbsd*)
11131
            mips_default_abi=N64_ABI
11132
            ;;
11133
          *)
11134
            mips_default_abi=NO_ABI
11135
            ;;
11136
        esac
11137
 
11138
cat >>confdefs.h <<_ACEOF
11139
#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
11140
_ACEOF
11141
 
11142
 
11143
cat >>confdefs.h <<_ACEOF
11144
#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
11145
_ACEOF
11146
 
11147
 
11148
cat >>confdefs.h <<_ACEOF
11149
#define MIPS_DEFAULT_64BIT $mips_default_64bit
11150
_ACEOF
11151
 
11152
 
11153
cat >>confdefs.h <<_ACEOF
11154
#define MIPS_DEFAULT_ABI $mips_default_abi
11155
_ACEOF
11156
 
11157
        ;;
11158
    esac
11159
 
11160
    # Do we need the opcodes library?
11161
    case ${cpu_type} in
11162
      vax | tic30)
11163
        ;;
11164
 
11165
      *)
11166
        need_opcodes=yes
11167
 
11168
        case "${enable_shared}" in
11169
        yes) shared_opcodes=true ;;
11170
        *opcodes*) shared_opcodes=true ;;
11171
        *) shared_opcodes=false ;;
11172
        esac
11173
        ;;
11174
    esac
11175
 
11176
    # Any other special object files needed ?
11177
    case ${cpu_type} in
11178
 
11179
      bfin)
11180
        echo ${extra_objects} | grep -s "bfin-parse.o"
11181
        if test $? -ne 0 ; then
11182
          extra_objects="$extra_objects bfin-parse.o"
11183
        fi
11184
 
11185
        echo ${extra_objects} | grep -s "bfin-lex.o"
11186
        if test $? -ne 0 ; then
11187
          extra_objects="$extra_objects bfin-lex.o"
11188
        fi
11189
        ;;
11190
 
11191
      fr30 | ip2k | iq2000 | m32r | openrisc)
11192
        using_cgen=yes
11193
        ;;
11194
 
11195
      m32c)
11196
        using_cgen=yes
11197
        ;;
11198
      frv)
11199
        using_cgen=yes
11200
        ;;
11201
      m68k)
11202
        case ${extra_objects} in
11203
        *m68k-parse.o*) ;;
11204
        *) extra_objects="$extra_objects m68k-parse.o" ;;
11205
        esac
11206
        ;;
11207
 
11208
      mep)
11209
        using_cgen=yes
11210
        ;;
11211
 
11212
      mips)
11213
        echo ${extra_objects} | grep -s "itbl-parse.o"
11214
        if test $? -ne 0 ; then
11215
          extra_objects="$extra_objects itbl-parse.o"
11216
        fi
11217
 
11218
        echo ${extra_objects} | grep -s "itbl-lex.o"
11219
        if test $? -ne 0 ; then
11220
          extra_objects="$extra_objects itbl-lex.o"
11221
        fi
11222
 
11223
        echo ${extra_objects} | grep -s "itbl-ops.o"
11224
        if test $? -ne 0 ; then
11225
          extra_objects="$extra_objects itbl-ops.o"
11226
        fi
11227
        ;;
11228
 
11229
      mt)
11230
        using_cgen=yes
11231
        ;;
11232
 
11233
      i386 | s390 | sparc)
11234
        if test $this_target = $target ; then
11235
 
11236
cat >>confdefs.h <<_ACEOF
11237
#define DEFAULT_ARCH "${arch}"
11238
_ACEOF
11239
 
11240
        fi
11241
        ;;
11242
 
11243
      scarts*)
11244
        using_cgen=yes
11245
        ;;
11246
 
11247
      xstormy16)
11248
        using_cgen=yes
11249
        ;;
11250
 
11251
      xc16x)
11252
        using_cgen=yes
11253
        ;;
11254
 
11255
      xtensa)
11256
        echo ${extra_objects} | grep -s "xtensa-relax.o"
11257
        if test $? -ne 0 ; then
11258
          extra_objects="$extra_objects xtensa-relax.o"
11259
        fi
11260
        ;;
11261
 
11262
      *)
11263
        ;;
11264
    esac
11265
 
11266
    if test $using_cgen = yes ; then
11267
        case "x${extra_objects}" in
11268
        *cgen.o*) ;;
11269
        *) extra_objects="$extra_objects cgen.o" ;;
11270
        esac
11271
    fi
11272
 
11273
# See if we really can support this configuration with the emulation code.
11274
 
11275
    if test $this_target = $target ; then
11276
      obj_format=$fmt
11277
      te_file=$em
11278
    fi
11279
 
11280
# From target name and format, produce a list of supported emulations.
11281
 
11282
    case ${generic_target}-${fmt} in
11283
      mips-*-irix5*-*)  emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11284
      mips*-*-linux*-*) case "$endian" in
11285
                        big)    emulation="mipsbelf mipslelf mipself" ;;
11286
                        *)      emulation="mipslelf mipsbelf mipself" ;;
11287
                        esac ;;
11288
      mips-*-lnews*-ecoff) ;;
11289
      mips-*-*-ecoff)   case "$endian" in
11290
                        big)    emulation="mipsbecoff mipslecoff mipsecoff" ;;
11291
                        *)      emulation="mipslecoff mipsbecoff mipsecoff" ;;
11292
                        esac ;;
11293
      mips-*-*-elf)     case "$endian" in
11294
                        big)    emulation="mipsbelf mipslelf mipself" ;;
11295
                        *)      emulation="mipslelf mipsbelf mipself" ;;
11296
                        esac ;;
11297
      mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
11298
      # i386-pc-pe-coff != i386-pc-coff.
11299
      i386-*-pe-coff)   ;;
11300
      # Uncommenting the next line will turn on support for i386 AOUT
11301
      # for the default linux configuration
11302
      # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
11303
      #
11304
      i386-*-aout)      emulation="i386aout" ;;
11305
      i386-*-coff)      emulation="i386coff" ;;
11306
      i386-*-elf)       emulation="i386elf" ;;
11307
 
11308
      # Always all formats.  The first stated emulation becomes the default.
11309
      cris-*-*aout*)    emulation="crisaout criself" ;;
11310
      cris-*-*)         emulation="criself crisaout" ;;
11311
    esac
11312
 
11313
    emulations="$emulations $emulation"
11314
 
11315
done
11316
 
11317
# Turn on all targets if possible
11318
if test ${all_targets} = "yes"; then
11319
  case ${target_cpu_type} in
11320
  i386)
11321
    case ${obj_format} in
11322
    aout)
11323
      emulations="$emulations i386coff i386elf"
11324
      ;;
11325
    coff)
11326
      emulations="$emulations i386aout i386elf"
11327
    ;;
11328
    elf)
11329
      emulations="$emulations i386aout i386coff"
11330
      ;;
11331
    esac
11332
  ;;
11333
  x86_64)
11334
    case ${obj_format} in
11335
    aout)
11336
      emulations="$emulations i386coff i386elf"
11337
      ;;
11338
    coff)
11339
      emulations="$emulations i386aout i386elf"
11340
    ;;
11341
    elf)
11342
      emulations="$emulations i386aout i386coff"
11343
      ;;
11344
    esac
11345
  ;;
11346
  esac
11347
fi
11348
 
11349
# Assign floating point type.  Most processors with FP support
11350
# IEEE FP.  On those that don't support FP at all, usually IEEE
11351
# is emulated.
11352
case ${target_cpu} in
11353
  vax | pdp11 ) atof=vax ;;
11354
  *)            atof=ieee ;;
11355
esac
11356
 
11357
case "${obj_format}" in
11358
  "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
11359
echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
11360
   { (exit 1); exit 1; }; } ;;
11361
esac
11362
 
11363
# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
11364
cgen_cpu_prefix=""
11365
if test $using_cgen = yes ; then
11366
  case ${target_cpu} in
11367
    *) cgen_cpu_prefix=${target_cpu} ;;
11368
  esac
11369
 
11370
 
11371
cat >>confdefs.h <<\_ACEOF
11372
#define USING_CGEN 1
11373
_ACEOF
11374
 
11375
fi
11376
 
11377
 
11378
if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
11379
  { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
11380
echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
11381
   { (exit 1); exit 1; }; }
11382
fi
11383
 
11384
if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
11385
  { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
11386
echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
11387
   { (exit 1); exit 1; }; }
11388
fi
11389
 
11390
# Some COFF configurations want these random other flags set.
11391
case ${obj_format} in
11392
  coff)
11393
    case ${target_cpu_type} in
11394
      i386)
11395
cat >>confdefs.h <<\_ACEOF
11396
#define I386COFF 1
11397
_ACEOF
11398
 ;;
11399
      m68k)
11400
cat >>confdefs.h <<\_ACEOF
11401
#define M68KCOFF 1
11402
_ACEOF
11403
 ;;
11404
      m88k)
11405
cat >>confdefs.h <<\_ACEOF
11406
#define M88KCOFF 1
11407
_ACEOF
11408
 ;;
11409
      x86_64)
11410
cat >>confdefs.h <<\_ACEOF
11411
#define I386COFF 1
11412
_ACEOF
11413
 ;;
11414
    esac
11415
    ;;
11416
esac
11417
 
11418
# Getting this done right is going to be a bitch.  Each configuration specified
11419
# with --enable-targets=... should be checked for environment, format, cpu
11420
# setting.
11421
#
11422
# For each configuration, the necessary object file support code must be linked
11423
# in.  This might be only one, it might be up to four.  The necessary emulation
11424
# code needs to be provided, too.
11425
#
11426
# And then there's "--enable-targets=all"....
11427
#
11428
# For now, just always do it for MIPS ELF or ECOFF configurations.  Sigh.
11429
 
11430
formats="${obj_format}"
11431
emfiles=""
11432
EMULATIONS=""
11433
_gas_uniq_list="$emulations"
11434
_gas_uniq_newlist=""
11435
for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11436
  case $_gas_uniq_i in
11437
  _gas_uniq_dummy) ;;
11438
  *) case " $_gas_uniq_newlist " in
11439
       *" $_gas_uniq_i "*) ;;
11440
       *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11441
     esac ;;
11442
  esac
11443
done
11444
emulations=$_gas_uniq_newlist
11445
 
11446
for em in . $emulations ; do
11447
  case $em in
11448
    .)  continue ;;
11449
    mipsbelf | mipslelf | mipself)
11450
        fmt=elf   file=mipself ;;
11451
    mipsbecoff | mipslecoff | mipsecoff)
11452
        fmt=ecoff file=mipsecoff ;;
11453
    *coff)
11454
        fmt=coff  file=$em ;;
11455
    *aout)
11456
        fmt=aout file=$em ;;
11457
    *elf)
11458
        fmt=elf file=$em ;;
11459
  esac
11460
  formats="$formats $fmt"
11461
  emfiles="$emfiles e-$file.o"
11462
  EMULATIONS="$EMULATIONS &$em,"
11463
done
11464
_gas_uniq_list="$formats"
11465
_gas_uniq_newlist=""
11466
for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11467
  case $_gas_uniq_i in
11468
  _gas_uniq_dummy) ;;
11469
  *) case " $_gas_uniq_newlist " in
11470
       *" $_gas_uniq_i "*) ;;
11471
       *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11472
     esac ;;
11473
  esac
11474
done
11475
formats=$_gas_uniq_newlist
11476
 
11477
_gas_uniq_list="$emfiles"
11478
_gas_uniq_newlist=""
11479
for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11480
  case $_gas_uniq_i in
11481
  _gas_uniq_dummy) ;;
11482
  *) case " $_gas_uniq_newlist " in
11483
       *" $_gas_uniq_i "*) ;;
11484
       *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11485
     esac ;;
11486
  esac
11487
done
11488
emfiles=$_gas_uniq_newlist
11489
 
11490
if test `set . $formats ; shift ; echo $#` -gt 1 ; then
11491
  for fmt in $formats ; do
11492
    case $fmt in
11493
      aout)
11494
cat >>confdefs.h <<\_ACEOF
11495
#define OBJ_MAYBE_AOUT 1
11496
_ACEOF
11497
   ;;
11498
      bout)
11499
cat >>confdefs.h <<\_ACEOF
11500
#define OBJ_MAYBE_BOUT 1
11501
_ACEOF
11502
   ;;
11503
      coff)
11504
cat >>confdefs.h <<\_ACEOF
11505
#define OBJ_MAYBE_COFF 1
11506
_ACEOF
11507
    ;;
11508
      ecoff)
11509
cat >>confdefs.h <<\_ACEOF
11510
#define OBJ_MAYBE_ECOFF 1
11511
_ACEOF
11512
   ;;
11513
      elf)
11514
cat >>confdefs.h <<\_ACEOF
11515
#define OBJ_MAYBE_ELF 1
11516
_ACEOF
11517
     ;;
11518
      generic)
11519
cat >>confdefs.h <<\_ACEOF
11520
#define OBJ_MAYBE_GENERIC 1
11521
_ACEOF
11522
 ;;
11523
      som)
11524
cat >>confdefs.h <<\_ACEOF
11525
#define OBJ_MAYBE_SOM 1
11526
_ACEOF
11527
     ;;
11528
    esac
11529
    extra_objects="$extra_objects obj-$fmt.o"
11530
  done
11531
  obj_format=multi
11532
fi
11533
if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
11534
  DEFAULT_EMULATION=`set . $emulations ; echo $2`
11535
  # e-mips* has more than one emulation per file, e-i386* has just one at the
11536
  # moment.  If only one emulation is specified, then don't define
11537
  # USE_EMULATIONS or include any of the e-files as they will only be bloat.
11538
  case "${obj_format}${emfiles}" in
11539
    multi* | *mips*)
11540
      extra_objects="$extra_objects $emfiles"
11541
 
11542
cat >>confdefs.h <<\_ACEOF
11543
#define USE_EMULATIONS 1
11544
_ACEOF
11545
 ;;
11546
  esac
11547
fi
11548
 
11549
 
11550
cat >>confdefs.h <<_ACEOF
11551
#define EMULATIONS $EMULATIONS
11552
_ACEOF
11553
 
11554
 
11555
cat >>confdefs.h <<_ACEOF
11556
#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
11557
_ACEOF
11558
 
11559
 
11560
reject_dev_configs=yes
11561
 
11562
case ${reject_dev_configs}-${dev} in
11563
  yes-yes) # Oops.
11564
    { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
11565
echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
11566
   { (exit 1); exit 1; }; }
11567
    ;;
11568
esac
11569
 
11570
 
11571
 
11572
 
11573
 
11574
 
11575
 
11576
# do we need the opcodes library?
11577
case "${need_opcodes}" in
11578
yes)
11579
  OPCODES_LIB=../opcodes/libopcodes.la
11580
  ;;
11581
esac
11582
 
11583
 
11584
 
11585
 
11586
cat >>confdefs.h <<_ACEOF
11587
#define TARGET_ALIAS "${target_alias}"
11588
_ACEOF
11589
 
11590
 
11591
cat >>confdefs.h <<_ACEOF
11592
#define TARGET_CANONICAL "${target}"
11593
_ACEOF
11594
 
11595
 
11596
cat >>confdefs.h <<_ACEOF
11597
#define TARGET_CPU "${target_cpu}"
11598
_ACEOF
11599
 
11600
 
11601
cat >>confdefs.h <<_ACEOF
11602
#define TARGET_VENDOR "${target_vendor}"
11603
_ACEOF
11604
 
11605
 
11606
cat >>confdefs.h <<_ACEOF
11607
#define TARGET_OS "${target_os}"
11608
_ACEOF
11609
 
11610
 
11611
for ac_prog in 'bison -y' byacc
11612
do
11613
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11614
set dummy $ac_prog; ac_word=$2
11615
echo "$as_me:$LINENO: checking for $ac_word" >&5
11616
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11617
if test "${ac_cv_prog_YACC+set}" = set; then
11618
  echo $ECHO_N "(cached) $ECHO_C" >&6
11619
else
11620
  if test -n "$YACC"; then
11621
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
11622
else
11623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624
for as_dir in $PATH
11625
do
11626
  IFS=$as_save_IFS
11627
  test -z "$as_dir" && as_dir=.
11628
  for ac_exec_ext in '' $ac_executable_extensions; do
11629
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11630
    ac_cv_prog_YACC="$ac_prog"
11631
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11632
    break 2
11633
  fi
11634
done
11635
done
11636
 
11637
fi
11638
fi
11639
YACC=$ac_cv_prog_YACC
11640
if test -n "$YACC"; then
11641
  echo "$as_me:$LINENO: result: $YACC" >&5
11642
echo "${ECHO_T}$YACC" >&6
11643
else
11644
  echo "$as_me:$LINENO: result: no" >&5
11645
echo "${ECHO_T}no" >&6
11646
fi
11647
 
11648
  test -n "$YACC" && break
11649
done
11650
test -n "$YACC" || YACC="yacc"
11651
 
11652
for ac_prog in flex lex
11653
do
11654
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11655
set dummy $ac_prog; ac_word=$2
11656
echo "$as_me:$LINENO: checking for $ac_word" >&5
11657
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11658
if test "${ac_cv_prog_LEX+set}" = set; then
11659
  echo $ECHO_N "(cached) $ECHO_C" >&6
11660
else
11661
  if test -n "$LEX"; then
11662
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
11663
else
11664
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665
for as_dir in $PATH
11666
do
11667
  IFS=$as_save_IFS
11668
  test -z "$as_dir" && as_dir=.
11669
  for ac_exec_ext in '' $ac_executable_extensions; do
11670
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11671
    ac_cv_prog_LEX="$ac_prog"
11672
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11673
    break 2
11674
  fi
11675
done
11676
done
11677
 
11678
fi
11679
fi
11680
LEX=$ac_cv_prog_LEX
11681
if test -n "$LEX"; then
11682
  echo "$as_me:$LINENO: result: $LEX" >&5
11683
echo "${ECHO_T}$LEX" >&6
11684
else
11685
  echo "$as_me:$LINENO: result: no" >&5
11686
echo "${ECHO_T}no" >&6
11687
fi
11688
 
11689
  test -n "$LEX" && break
11690
done
11691
test -n "$LEX" || LEX=":"
11692
 
11693
if test -z "$LEXLIB"
11694
then
11695
  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11696
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11697
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11698
  echo $ECHO_N "(cached) $ECHO_C" >&6
11699
else
11700
  ac_check_lib_save_LIBS=$LIBS
11701
LIBS="-lfl  $LIBS"
11702
cat >conftest.$ac_ext <<_ACEOF
11703
/* confdefs.h.  */
11704
_ACEOF
11705
cat confdefs.h >>conftest.$ac_ext
11706
cat >>conftest.$ac_ext <<_ACEOF
11707
/* end confdefs.h.  */
11708
 
11709
/* Override any gcc2 internal prototype to avoid an error.  */
11710
#ifdef __cplusplus
11711
extern "C"
11712
#endif
11713
/* We use char because int might match the return type of a gcc2
11714
   builtin and then its argument prototype would still apply.  */
11715
char yywrap ();
11716
int
11717
main ()
11718
{
11719
yywrap ();
11720
  ;
11721
  return 0;
11722
}
11723
_ACEOF
11724
rm -f conftest.$ac_objext conftest$ac_exeext
11725
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11726
  (eval $ac_link) 2>conftest.er1
11727
  ac_status=$?
11728
  grep -v '^ *+' conftest.er1 >conftest.err
11729
  rm -f conftest.er1
11730
  cat conftest.err >&5
11731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732
  (exit $ac_status); } &&
11733
         { ac_try='test -z "$ac_c_werror_flag"
11734
                         || test ! -s conftest.err'
11735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736
  (eval $ac_try) 2>&5
11737
  ac_status=$?
11738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739
  (exit $ac_status); }; } &&
11740
         { ac_try='test -s conftest$ac_exeext'
11741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742
  (eval $ac_try) 2>&5
11743
  ac_status=$?
11744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745
  (exit $ac_status); }; }; then
11746
  ac_cv_lib_fl_yywrap=yes
11747
else
11748
  echo "$as_me: failed program was:" >&5
11749
sed 's/^/| /' conftest.$ac_ext >&5
11750
 
11751
ac_cv_lib_fl_yywrap=no
11752
fi
11753
rm -f conftest.err conftest.$ac_objext \
11754
      conftest$ac_exeext conftest.$ac_ext
11755
LIBS=$ac_check_lib_save_LIBS
11756
fi
11757
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11758
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11759
if test $ac_cv_lib_fl_yywrap = yes; then
11760
  LEXLIB="-lfl"
11761
else
11762
  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11763
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11764
if test "${ac_cv_lib_l_yywrap+set}" = set; then
11765
  echo $ECHO_N "(cached) $ECHO_C" >&6
11766
else
11767
  ac_check_lib_save_LIBS=$LIBS
11768
LIBS="-ll  $LIBS"
11769
cat >conftest.$ac_ext <<_ACEOF
11770
/* confdefs.h.  */
11771
_ACEOF
11772
cat confdefs.h >>conftest.$ac_ext
11773
cat >>conftest.$ac_ext <<_ACEOF
11774
/* end confdefs.h.  */
11775
 
11776
/* Override any gcc2 internal prototype to avoid an error.  */
11777
#ifdef __cplusplus
11778
extern "C"
11779
#endif
11780
/* We use char because int might match the return type of a gcc2
11781
   builtin and then its argument prototype would still apply.  */
11782
char yywrap ();
11783
int
11784
main ()
11785
{
11786
yywrap ();
11787
  ;
11788
  return 0;
11789
}
11790
_ACEOF
11791
rm -f conftest.$ac_objext conftest$ac_exeext
11792
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11793
  (eval $ac_link) 2>conftest.er1
11794
  ac_status=$?
11795
  grep -v '^ *+' conftest.er1 >conftest.err
11796
  rm -f conftest.er1
11797
  cat conftest.err >&5
11798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799
  (exit $ac_status); } &&
11800
         { ac_try='test -z "$ac_c_werror_flag"
11801
                         || test ! -s conftest.err'
11802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803
  (eval $ac_try) 2>&5
11804
  ac_status=$?
11805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806
  (exit $ac_status); }; } &&
11807
         { ac_try='test -s conftest$ac_exeext'
11808
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809
  (eval $ac_try) 2>&5
11810
  ac_status=$?
11811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812
  (exit $ac_status); }; }; then
11813
  ac_cv_lib_l_yywrap=yes
11814
else
11815
  echo "$as_me: failed program was:" >&5
11816
sed 's/^/| /' conftest.$ac_ext >&5
11817
 
11818
ac_cv_lib_l_yywrap=no
11819
fi
11820
rm -f conftest.err conftest.$ac_objext \
11821
      conftest$ac_exeext conftest.$ac_ext
11822
LIBS=$ac_check_lib_save_LIBS
11823
fi
11824
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11825
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11826
if test $ac_cv_lib_l_yywrap = yes; then
11827
  LEXLIB="-ll"
11828
fi
11829
 
11830
fi
11831
 
11832
fi
11833
 
11834
if test "x$LEX" != "x:"; then
11835
  echo "$as_me:$LINENO: checking lex output file root" >&5
11836
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11837
if test "${ac_cv_prog_lex_root+set}" = set; then
11838
  echo $ECHO_N "(cached) $ECHO_C" >&6
11839
else
11840
  # The minimal lex program is just a single line: %%.  But some broken lexes
11841
# (Solaris, I think it was) want two %% lines, so accommodate them.
11842
cat >conftest.l <<_ACEOF
11843
%%
11844
%%
11845
_ACEOF
11846
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11847
  (eval $LEX conftest.l) 2>&5
11848
  ac_status=$?
11849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850
  (exit $ac_status); }
11851
if test -f lex.yy.c; then
11852
  ac_cv_prog_lex_root=lex.yy
11853
elif test -f lexyy.c; then
11854
  ac_cv_prog_lex_root=lexyy
11855
else
11856
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11857
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11858
   { (exit 1); exit 1; }; }
11859
fi
11860
fi
11861
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11862
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11863
rm -f conftest.l
11864
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11865
 
11866
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11867
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11868
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11869
  echo $ECHO_N "(cached) $ECHO_C" >&6
11870
else
11871
  # POSIX says lex can declare yytext either as a pointer or an array; the
11872
# default is implementation-dependent. Figure out which it is, since
11873
# not all implementations provide the %pointer and %array declarations.
11874
ac_cv_prog_lex_yytext_pointer=no
11875
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11876
ac_save_LIBS=$LIBS
11877
LIBS="$LIBS $LEXLIB"
11878
cat >conftest.$ac_ext <<_ACEOF
11879
`cat $LEX_OUTPUT_ROOT.c`
11880
_ACEOF
11881
rm -f conftest.$ac_objext conftest$ac_exeext
11882
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11883
  (eval $ac_link) 2>conftest.er1
11884
  ac_status=$?
11885
  grep -v '^ *+' conftest.er1 >conftest.err
11886
  rm -f conftest.er1
11887
  cat conftest.err >&5
11888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889
  (exit $ac_status); } &&
11890
         { ac_try='test -z "$ac_c_werror_flag"
11891
                         || test ! -s conftest.err'
11892
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893
  (eval $ac_try) 2>&5
11894
  ac_status=$?
11895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896
  (exit $ac_status); }; } &&
11897
         { ac_try='test -s conftest$ac_exeext'
11898
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899
  (eval $ac_try) 2>&5
11900
  ac_status=$?
11901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902
  (exit $ac_status); }; }; then
11903
  ac_cv_prog_lex_yytext_pointer=yes
11904
else
11905
  echo "$as_me: failed program was:" >&5
11906
sed 's/^/| /' conftest.$ac_ext >&5
11907
 
11908
fi
11909
rm -f conftest.err conftest.$ac_objext \
11910
      conftest$ac_exeext conftest.$ac_ext
11911
LIBS=$ac_save_LIBS
11912
rm -f "${LEX_OUTPUT_ROOT}.c"
11913
 
11914
fi
11915
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11916
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11917
if test $ac_cv_prog_lex_yytext_pointer = yes; then
11918
 
11919
cat >>confdefs.h <<\_ACEOF
11920
#define YYTEXT_POINTER 1
11921
_ACEOF
11922
 
11923
fi
11924
 
11925
fi
11926
if test "$LEX" = :; then
11927
  LEX=${am_missing_run}flex
11928
fi
11929
 
11930
ALL_LINGUAS="fr tr es rw"
11931
# If we haven't got the data from the intl directory,
11932
# assume NLS is disabled.
11933
USE_NLS=no
11934
LIBINTL=
11935
LIBINTL_DEP=
11936
INCINTL=
11937
XGETTEXT=
11938
GMSGFMT=
11939
POSUB=
11940
 
11941
if test -f  ../intl/config.intl; then
11942
  .  ../intl/config.intl
11943
fi
11944
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11945
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11946
if test x"$USE_NLS" != xyes; then
11947
  echo "$as_me:$LINENO: result: no" >&5
11948
echo "${ECHO_T}no" >&6
11949
else
11950
  echo "$as_me:$LINENO: result: yes" >&5
11951
echo "${ECHO_T}yes" >&6
11952
 
11953
cat >>confdefs.h <<\_ACEOF
11954
#define ENABLE_NLS 1
11955
_ACEOF
11956
 
11957
 
11958
  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11959
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11960
  # Look for .po and .gmo files in the source directory.
11961
  CATALOGS=
11962
  XLINGUAS=
11963
  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11964
    # If there aren't any .gmo files the shell will give us the
11965
    # literal string "../path/to/srcdir/po/*.gmo" which has to be
11966
    # weeded out.
11967
    case "$cat" in *\**)
11968
      continue;;
11969
    esac
11970
    # The quadruple backslash is collapsed to a double backslash
11971
    # by the backticks, then collapsed again by the double quotes,
11972
    # leaving us with one backslash in the sed expression (right
11973
    # before the dot that mustn't act as a wildcard).
11974
    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11975
    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11976
    # The user is allowed to set LINGUAS to a list of languages to
11977
    # install catalogs for.  If it's empty that means "all of them."
11978
    if test "x$LINGUAS" = x; then
11979
      CATALOGS="$CATALOGS $cat"
11980
      XLINGUAS="$XLINGUAS $lang"
11981
    else
11982
      case "$LINGUAS" in *$lang*)
11983
        CATALOGS="$CATALOGS $cat"
11984
        XLINGUAS="$XLINGUAS $lang"
11985
        ;;
11986
      esac
11987
    fi
11988
  done
11989
  LINGUAS="$XLINGUAS"
11990
  echo "$as_me:$LINENO: result: $LINGUAS" >&5
11991
echo "${ECHO_T}$LINGUAS" >&6
11992
 
11993
 
11994
    DATADIRNAME=share
11995
 
11996
  INSTOBJEXT=.mo
11997
 
11998
  GENCAT=gencat
11999
 
12000
  CATOBJEXT=.gmo
12001
 
12002
fi
12003
 
12004
        MKINSTALLDIRS=
12005
  if test -n "$ac_aux_dir"; then
12006
    case "$ac_aux_dir" in
12007
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12008
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12009
    esac
12010
  fi
12011
  if test -z "$MKINSTALLDIRS"; then
12012
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12013
  fi
12014
 
12015
 
12016
 
12017
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12018
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12019
    # Check whether --enable-nls or --disable-nls was given.
12020
if test "${enable_nls+set}" = set; then
12021
  enableval="$enable_nls"
12022
  USE_NLS=$enableval
12023
else
12024
  USE_NLS=yes
12025
fi;
12026
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
12027
echo "${ECHO_T}$USE_NLS" >&6
12028
 
12029
 
12030
 
12031
 
12032
 
12033
 
12034
# Prepare PATH_SEPARATOR.
12035
# The user is always right.
12036
if test "${PATH_SEPARATOR+set}" != set; then
12037
  echo "#! /bin/sh" >conf$$.sh
12038
  echo  "exit 0"   >>conf$$.sh
12039
  chmod +x conf$$.sh
12040
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12041
    PATH_SEPARATOR=';'
12042
  else
12043
    PATH_SEPARATOR=:
12044
  fi
12045
  rm -f conf$$.sh
12046
fi
12047
 
12048
# Find out how to test for executable files. Don't use a zero-byte file,
12049
# as systems may use methods other than mode bits to determine executability.
12050
cat >conf$$.file <<_ASEOF
12051
#! /bin/sh
12052
exit 0
12053
_ASEOF
12054
chmod +x conf$$.file
12055
if test -x conf$$.file >/dev/null 2>&1; then
12056
  ac_executable_p="test -x"
12057
else
12058
  ac_executable_p="test -f"
12059
fi
12060
rm -f conf$$.file
12061
 
12062
# Extract the first word of "msgfmt", so it can be a program name with args.
12063
set dummy msgfmt; ac_word=$2
12064
echo "$as_me:$LINENO: checking for $ac_word" >&5
12065
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12066
if test "${ac_cv_path_MSGFMT+set}" = set; then
12067
  echo $ECHO_N "(cached) $ECHO_C" >&6
12068
else
12069
  case "$MSGFMT" in
12070
  [\\/]* | ?:[\\/]*)
12071
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12072
    ;;
12073
  *)
12074
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12075
    for ac_dir in $PATH; do
12076
      IFS="$ac_save_IFS"
12077
      test -z "$ac_dir" && ac_dir=.
12078
      for ac_exec_ext in '' $ac_executable_extensions; do
12079
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12080
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12081
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12082
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12083
            break 2
12084
          fi
12085
        fi
12086
      done
12087
    done
12088
    IFS="$ac_save_IFS"
12089
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12090
    ;;
12091
esac
12092
fi
12093
MSGFMT="$ac_cv_path_MSGFMT"
12094
if test "$MSGFMT" != ":"; then
12095
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
12096
echo "${ECHO_T}$MSGFMT" >&6
12097
else
12098
  echo "$as_me:$LINENO: result: no" >&5
12099
echo "${ECHO_T}no" >&6
12100
fi
12101
 
12102
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
12103
set dummy gmsgfmt; ac_word=$2
12104
echo "$as_me:$LINENO: checking for $ac_word" >&5
12105
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12106
if test "${ac_cv_path_GMSGFMT+set}" = set; then
12107
  echo $ECHO_N "(cached) $ECHO_C" >&6
12108
else
12109
  case $GMSGFMT in
12110
  [\\/]* | ?:[\\/]*)
12111
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12112
  ;;
12113
  *)
12114
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12115
for as_dir in $PATH
12116
do
12117
  IFS=$as_save_IFS
12118
  test -z "$as_dir" && as_dir=.
12119
  for ac_exec_ext in '' $ac_executable_extensions; do
12120
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12121
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12122
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12123
    break 2
12124
  fi
12125
done
12126
done
12127
 
12128
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12129
  ;;
12130
esac
12131
fi
12132
GMSGFMT=$ac_cv_path_GMSGFMT
12133
 
12134
if test -n "$GMSGFMT"; then
12135
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12136
echo "${ECHO_T}$GMSGFMT" >&6
12137
else
12138
  echo "$as_me:$LINENO: result: no" >&5
12139
echo "${ECHO_T}no" >&6
12140
fi
12141
 
12142
 
12143
 
12144
# Prepare PATH_SEPARATOR.
12145
# The user is always right.
12146
if test "${PATH_SEPARATOR+set}" != set; then
12147
  echo "#! /bin/sh" >conf$$.sh
12148
  echo  "exit 0"   >>conf$$.sh
12149
  chmod +x conf$$.sh
12150
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12151
    PATH_SEPARATOR=';'
12152
  else
12153
    PATH_SEPARATOR=:
12154
  fi
12155
  rm -f conf$$.sh
12156
fi
12157
 
12158
# Find out how to test for executable files. Don't use a zero-byte file,
12159
# as systems may use methods other than mode bits to determine executability.
12160
cat >conf$$.file <<_ASEOF
12161
#! /bin/sh
12162
exit 0
12163
_ASEOF
12164
chmod +x conf$$.file
12165
if test -x conf$$.file >/dev/null 2>&1; then
12166
  ac_executable_p="test -x"
12167
else
12168
  ac_executable_p="test -f"
12169
fi
12170
rm -f conf$$.file
12171
 
12172
# Extract the first word of "xgettext", so it can be a program name with args.
12173
set dummy xgettext; ac_word=$2
12174
echo "$as_me:$LINENO: checking for $ac_word" >&5
12175
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12176
if test "${ac_cv_path_XGETTEXT+set}" = set; then
12177
  echo $ECHO_N "(cached) $ECHO_C" >&6
12178
else
12179
  case "$XGETTEXT" in
12180
  [\\/]* | ?:[\\/]*)
12181
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12182
    ;;
12183
  *)
12184
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12185
    for ac_dir in $PATH; do
12186
      IFS="$ac_save_IFS"
12187
      test -z "$ac_dir" && ac_dir=.
12188
      for ac_exec_ext in '' $ac_executable_extensions; do
12189
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12190
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12191
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12192
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12193
            break 2
12194
          fi
12195
        fi
12196
      done
12197
    done
12198
    IFS="$ac_save_IFS"
12199
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12200
    ;;
12201
esac
12202
fi
12203
XGETTEXT="$ac_cv_path_XGETTEXT"
12204
if test "$XGETTEXT" != ":"; then
12205
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12206
echo "${ECHO_T}$XGETTEXT" >&6
12207
else
12208
  echo "$as_me:$LINENO: result: no" >&5
12209
echo "${ECHO_T}no" >&6
12210
fi
12211
 
12212
    rm -f messages.po
12213
 
12214
 
12215
# Prepare PATH_SEPARATOR.
12216
# The user is always right.
12217
if test "${PATH_SEPARATOR+set}" != set; then
12218
  echo "#! /bin/sh" >conf$$.sh
12219
  echo  "exit 0"   >>conf$$.sh
12220
  chmod +x conf$$.sh
12221
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12222
    PATH_SEPARATOR=';'
12223
  else
12224
    PATH_SEPARATOR=:
12225
  fi
12226
  rm -f conf$$.sh
12227
fi
12228
 
12229
# Find out how to test for executable files. Don't use a zero-byte file,
12230
# as systems may use methods other than mode bits to determine executability.
12231
cat >conf$$.file <<_ASEOF
12232
#! /bin/sh
12233
exit 0
12234
_ASEOF
12235
chmod +x conf$$.file
12236
if test -x conf$$.file >/dev/null 2>&1; then
12237
  ac_executable_p="test -x"
12238
else
12239
  ac_executable_p="test -f"
12240
fi
12241
rm -f conf$$.file
12242
 
12243
# Extract the first word of "msgmerge", so it can be a program name with args.
12244
set dummy msgmerge; ac_word=$2
12245
echo "$as_me:$LINENO: checking for $ac_word" >&5
12246
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12247
if test "${ac_cv_path_MSGMERGE+set}" = set; then
12248
  echo $ECHO_N "(cached) $ECHO_C" >&6
12249
else
12250
  case "$MSGMERGE" in
12251
  [\\/]* | ?:[\\/]*)
12252
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12253
    ;;
12254
  *)
12255
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12256
    for ac_dir in $PATH; do
12257
      IFS="$ac_save_IFS"
12258
      test -z "$ac_dir" && ac_dir=.
12259
      for ac_exec_ext in '' $ac_executable_extensions; do
12260
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12261
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12262
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12263
            break 2
12264
          fi
12265
        fi
12266
      done
12267
    done
12268
    IFS="$ac_save_IFS"
12269
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12270
    ;;
12271
esac
12272
fi
12273
MSGMERGE="$ac_cv_path_MSGMERGE"
12274
if test "$MSGMERGE" != ":"; then
12275
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12276
echo "${ECHO_T}$MSGMERGE" >&6
12277
else
12278
  echo "$as_me:$LINENO: result: no" >&5
12279
echo "${ECHO_T}no" >&6
12280
fi
12281
 
12282
 
12283
      if test "$GMSGFMT" != ":"; then
12284
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12285
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12286
      : ;
12287
    else
12288
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12289
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12290
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12291
      GMSGFMT=":"
12292
    fi
12293
  fi
12294
 
12295
      if test "$XGETTEXT" != ":"; then
12296
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12297
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12298
      : ;
12299
    else
12300
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12301
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12302
      XGETTEXT=":"
12303
    fi
12304
        rm -f messages.po
12305
  fi
12306
 
12307
            ac_config_commands="$ac_config_commands default-1"
12308
 
12309
 
12310
 
12311
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12312
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12313
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12314
if test "${enable_maintainer_mode+set}" = set; then
12315
  enableval="$enable_maintainer_mode"
12316
  USE_MAINTAINER_MODE=$enableval
12317
else
12318
  USE_MAINTAINER_MODE=no
12319
fi;
12320
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12321
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12322
 
12323
 
12324
if test $USE_MAINTAINER_MODE = yes; then
12325
  MAINTAINER_MODE_TRUE=
12326
  MAINTAINER_MODE_FALSE='#'
12327
else
12328
  MAINTAINER_MODE_TRUE='#'
12329
  MAINTAINER_MODE_FALSE=
12330
fi
12331
 
12332
  MAINT=$MAINTAINER_MODE_TRUE
12333
 
12334
 
12335
 
12336
 
12337
if false; then
12338
  GENINSRC_NEVER_TRUE=
12339
  GENINSRC_NEVER_FALSE='#'
12340
else
12341
  GENINSRC_NEVER_TRUE='#'
12342
  GENINSRC_NEVER_FALSE=
12343
fi
12344
 
12345
 
12346
 
12347
 
12348
 
12349
 
12350
 
12351
 
12352
 
12353
 
12354
 
12355
 
12356
 
12357
for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h
12358
do
12359
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12360
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12361
  echo "$as_me:$LINENO: checking for $ac_header" >&5
12362
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12363
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12364
  echo $ECHO_N "(cached) $ECHO_C" >&6
12365
fi
12366
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12367
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12368
else
12369
  # Is the header compilable?
12370
echo "$as_me:$LINENO: checking $ac_header usability" >&5
12371
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12372
cat >conftest.$ac_ext <<_ACEOF
12373
/* confdefs.h.  */
12374
_ACEOF
12375
cat confdefs.h >>conftest.$ac_ext
12376
cat >>conftest.$ac_ext <<_ACEOF
12377
/* end confdefs.h.  */
12378
$ac_includes_default
12379
#include <$ac_header>
12380
_ACEOF
12381
rm -f conftest.$ac_objext
12382
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12383
  (eval $ac_compile) 2>conftest.er1
12384
  ac_status=$?
12385
  grep -v '^ *+' conftest.er1 >conftest.err
12386
  rm -f conftest.er1
12387
  cat conftest.err >&5
12388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389
  (exit $ac_status); } &&
12390
         { ac_try='test -z "$ac_c_werror_flag"
12391
                         || test ! -s conftest.err'
12392
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393
  (eval $ac_try) 2>&5
12394
  ac_status=$?
12395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396
  (exit $ac_status); }; } &&
12397
         { ac_try='test -s conftest.$ac_objext'
12398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399
  (eval $ac_try) 2>&5
12400
  ac_status=$?
12401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402
  (exit $ac_status); }; }; then
12403
  ac_header_compiler=yes
12404
else
12405
  echo "$as_me: failed program was:" >&5
12406
sed 's/^/| /' conftest.$ac_ext >&5
12407
 
12408
ac_header_compiler=no
12409
fi
12410
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12411
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12412
echo "${ECHO_T}$ac_header_compiler" >&6
12413
 
12414
# Is the header present?
12415
echo "$as_me:$LINENO: checking $ac_header presence" >&5
12416
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12417
cat >conftest.$ac_ext <<_ACEOF
12418
/* confdefs.h.  */
12419
_ACEOF
12420
cat confdefs.h >>conftest.$ac_ext
12421
cat >>conftest.$ac_ext <<_ACEOF
12422
/* end confdefs.h.  */
12423
#include <$ac_header>
12424
_ACEOF
12425
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12426
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12427
  ac_status=$?
12428
  grep -v '^ *+' conftest.er1 >conftest.err
12429
  rm -f conftest.er1
12430
  cat conftest.err >&5
12431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432
  (exit $ac_status); } >/dev/null; then
12433
  if test -s conftest.err; then
12434
    ac_cpp_err=$ac_c_preproc_warn_flag
12435
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12436
  else
12437
    ac_cpp_err=
12438
  fi
12439
else
12440
  ac_cpp_err=yes
12441
fi
12442
if test -z "$ac_cpp_err"; then
12443
  ac_header_preproc=yes
12444
else
12445
  echo "$as_me: failed program was:" >&5
12446
sed 's/^/| /' conftest.$ac_ext >&5
12447
 
12448
  ac_header_preproc=no
12449
fi
12450
rm -f conftest.err conftest.$ac_ext
12451
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12452
echo "${ECHO_T}$ac_header_preproc" >&6
12453
 
12454
# So?  What about this header?
12455
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12456
  yes:no: )
12457
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12458
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12459
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12460
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12461
    ac_header_preproc=yes
12462
    ;;
12463
  no:yes:* )
12464
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12465
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12466
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12467
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12468
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12469
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12470
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12471
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12472
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12473
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12474
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12475
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12476
    (
12477
      cat <<\_ASBOX
12478
## ------------------------------------------ ##
12479
## Report this to the AC_PACKAGE_NAME lists.  ##
12480
## ------------------------------------------ ##
12481
_ASBOX
12482
    ) |
12483
      sed "s/^/$as_me: WARNING:     /" >&2
12484
    ;;
12485
esac
12486
echo "$as_me:$LINENO: checking for $ac_header" >&5
12487
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12488
if eval "test \"\${$as_ac_Header+set}\" = set"; then
12489
  echo $ECHO_N "(cached) $ECHO_C" >&6
12490
else
12491
  eval "$as_ac_Header=\$ac_header_preproc"
12492
fi
12493
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12494
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12495
 
12496
fi
12497
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12498
  cat >>confdefs.h <<_ACEOF
12499
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12500
_ACEOF
12501
 
12502
fi
12503
 
12504
done
12505
 
12506
 
12507
# Put this here so that autoconf's "cross-compiling" message doesn't confuse
12508
# people who are not cross-compiling but are compiling cross-assemblers.
12509
echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
12510
echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
12511
if test "${host}" = "${target}"; then
12512
  cross_gas=no
12513
else
12514
  cross_gas=yes
12515
 
12516
cat >>confdefs.h <<\_ACEOF
12517
#define CROSS_COMPILE 1
12518
_ACEOF
12519
 
12520
fi
12521
echo "$as_me:$LINENO: result: $cross_gas" >&5
12522
echo "${ECHO_T}$cross_gas" >&6
12523
 
12524
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12525
# for constant arguments.  Useless!
12526
echo "$as_me:$LINENO: checking for working alloca.h" >&5
12527
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12528
if test "${ac_cv_working_alloca_h+set}" = set; then
12529
  echo $ECHO_N "(cached) $ECHO_C" >&6
12530
else
12531
  cat >conftest.$ac_ext <<_ACEOF
12532
/* confdefs.h.  */
12533
_ACEOF
12534
cat confdefs.h >>conftest.$ac_ext
12535
cat >>conftest.$ac_ext <<_ACEOF
12536
/* end confdefs.h.  */
12537
#include 
12538
int
12539
main ()
12540
{
12541
char *p = (char *) alloca (2 * sizeof (int));
12542
  ;
12543
  return 0;
12544
}
12545
_ACEOF
12546
rm -f conftest.$ac_objext conftest$ac_exeext
12547
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12548
  (eval $ac_link) 2>conftest.er1
12549
  ac_status=$?
12550
  grep -v '^ *+' conftest.er1 >conftest.err
12551
  rm -f conftest.er1
12552
  cat conftest.err >&5
12553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554
  (exit $ac_status); } &&
12555
         { ac_try='test -z "$ac_c_werror_flag"
12556
                         || test ! -s conftest.err'
12557
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558
  (eval $ac_try) 2>&5
12559
  ac_status=$?
12560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561
  (exit $ac_status); }; } &&
12562
         { ac_try='test -s conftest$ac_exeext'
12563
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564
  (eval $ac_try) 2>&5
12565
  ac_status=$?
12566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567
  (exit $ac_status); }; }; then
12568
  ac_cv_working_alloca_h=yes
12569
else
12570
  echo "$as_me: failed program was:" >&5
12571
sed 's/^/| /' conftest.$ac_ext >&5
12572
 
12573
ac_cv_working_alloca_h=no
12574
fi
12575
rm -f conftest.err conftest.$ac_objext \
12576
      conftest$ac_exeext conftest.$ac_ext
12577
fi
12578
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12579
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12580
if test $ac_cv_working_alloca_h = yes; then
12581
 
12582
cat >>confdefs.h <<\_ACEOF
12583
#define HAVE_ALLOCA_H 1
12584
_ACEOF
12585
 
12586
fi
12587
 
12588
echo "$as_me:$LINENO: checking for alloca" >&5
12589
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12590
if test "${ac_cv_func_alloca_works+set}" = set; then
12591
  echo $ECHO_N "(cached) $ECHO_C" >&6
12592
else
12593
  cat >conftest.$ac_ext <<_ACEOF
12594
/* confdefs.h.  */
12595
_ACEOF
12596
cat confdefs.h >>conftest.$ac_ext
12597
cat >>conftest.$ac_ext <<_ACEOF
12598
/* end confdefs.h.  */
12599
#ifdef __GNUC__
12600
# define alloca __builtin_alloca
12601
#else
12602
# ifdef _MSC_VER
12603
#  include 
12604
#  define alloca _alloca
12605
# else
12606
#  if HAVE_ALLOCA_H
12607
#   include 
12608
#  else
12609
#   ifdef _AIX
12610
 #pragma alloca
12611
#   else
12612
#    ifndef alloca /* predefined by HP cc +Olibcalls */
12613
char *alloca ();
12614
#    endif
12615
#   endif
12616
#  endif
12617
# endif
12618
#endif
12619
 
12620
int
12621
main ()
12622
{
12623
char *p = (char *) alloca (1);
12624
  ;
12625
  return 0;
12626
}
12627
_ACEOF
12628
rm -f conftest.$ac_objext conftest$ac_exeext
12629
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12630
  (eval $ac_link) 2>conftest.er1
12631
  ac_status=$?
12632
  grep -v '^ *+' conftest.er1 >conftest.err
12633
  rm -f conftest.er1
12634
  cat conftest.err >&5
12635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636
  (exit $ac_status); } &&
12637
         { ac_try='test -z "$ac_c_werror_flag"
12638
                         || test ! -s conftest.err'
12639
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640
  (eval $ac_try) 2>&5
12641
  ac_status=$?
12642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643
  (exit $ac_status); }; } &&
12644
         { ac_try='test -s conftest$ac_exeext'
12645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646
  (eval $ac_try) 2>&5
12647
  ac_status=$?
12648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649
  (exit $ac_status); }; }; then
12650
  ac_cv_func_alloca_works=yes
12651
else
12652
  echo "$as_me: failed program was:" >&5
12653
sed 's/^/| /' conftest.$ac_ext >&5
12654
 
12655
ac_cv_func_alloca_works=no
12656
fi
12657
rm -f conftest.err conftest.$ac_objext \
12658
      conftest$ac_exeext conftest.$ac_ext
12659
fi
12660
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12661
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12662
 
12663
if test $ac_cv_func_alloca_works = yes; then
12664
 
12665
cat >>confdefs.h <<\_ACEOF
12666
#define HAVE_ALLOCA 1
12667
_ACEOF
12668
 
12669
else
12670
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12671
# that cause trouble.  Some versions do not even contain alloca or
12672
# contain a buggy version.  If you still want to use their alloca,
12673
# use ar to extract alloca.o from them instead of compiling alloca.c.
12674
 
12675
ALLOCA=alloca.$ac_objext
12676
 
12677
cat >>confdefs.h <<\_ACEOF
12678
#define C_ALLOCA 1
12679
_ACEOF
12680
 
12681
 
12682
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12683
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12684
if test "${ac_cv_os_cray+set}" = set; then
12685
  echo $ECHO_N "(cached) $ECHO_C" >&6
12686
else
12687
  cat >conftest.$ac_ext <<_ACEOF
12688
/* confdefs.h.  */
12689
_ACEOF
12690
cat confdefs.h >>conftest.$ac_ext
12691
cat >>conftest.$ac_ext <<_ACEOF
12692
/* end confdefs.h.  */
12693
#if defined(CRAY) && ! defined(CRAY2)
12694
webecray
12695
#else
12696
wenotbecray
12697
#endif
12698
 
12699
_ACEOF
12700
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12701
  $EGREP "webecray" >/dev/null 2>&1; then
12702
  ac_cv_os_cray=yes
12703
else
12704
  ac_cv_os_cray=no
12705
fi
12706
rm -f conftest*
12707
 
12708
fi
12709
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12710
echo "${ECHO_T}$ac_cv_os_cray" >&6
12711
if test $ac_cv_os_cray = yes; then
12712
  for ac_func in _getb67 GETB67 getb67; do
12713
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12714
echo "$as_me:$LINENO: checking for $ac_func" >&5
12715
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12716
if eval "test \"\${$as_ac_var+set}\" = set"; then
12717
  echo $ECHO_N "(cached) $ECHO_C" >&6
12718
else
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
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12726
   For example, HP-UX 11i  declares gettimeofday.  */
12727
#define $ac_func innocuous_$ac_func
12728
 
12729
/* System header to define __stub macros and hopefully few prototypes,
12730
    which can conflict with char $ac_func (); below.
12731
    Prefer  to  if __STDC__ is defined, since
12732
     exists even on freestanding compilers.  */
12733
 
12734
#ifdef __STDC__
12735
# include 
12736
#else
12737
# include 
12738
#endif
12739
 
12740
#undef $ac_func
12741
 
12742
/* Override any gcc2 internal prototype to avoid an error.  */
12743
#ifdef __cplusplus
12744
extern "C"
12745
{
12746
#endif
12747
/* We use char because int might match the return type of a gcc2
12748
   builtin and then its argument prototype would still apply.  */
12749
char $ac_func ();
12750
/* The GNU C library defines this for functions which it implements
12751
    to always fail with ENOSYS.  Some functions are actually named
12752
    something starting with __ and the normal name is an alias.  */
12753
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12754
choke me
12755
#else
12756
char (*f) () = $ac_func;
12757
#endif
12758
#ifdef __cplusplus
12759
}
12760
#endif
12761
 
12762
int
12763
main ()
12764
{
12765
return f != $ac_func;
12766
  ;
12767
  return 0;
12768
}
12769
_ACEOF
12770
rm -f conftest.$ac_objext conftest$ac_exeext
12771
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12772
  (eval $ac_link) 2>conftest.er1
12773
  ac_status=$?
12774
  grep -v '^ *+' conftest.er1 >conftest.err
12775
  rm -f conftest.er1
12776
  cat conftest.err >&5
12777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778
  (exit $ac_status); } &&
12779
         { ac_try='test -z "$ac_c_werror_flag"
12780
                         || test ! -s conftest.err'
12781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782
  (eval $ac_try) 2>&5
12783
  ac_status=$?
12784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785
  (exit $ac_status); }; } &&
12786
         { ac_try='test -s conftest$ac_exeext'
12787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788
  (eval $ac_try) 2>&5
12789
  ac_status=$?
12790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791
  (exit $ac_status); }; }; then
12792
  eval "$as_ac_var=yes"
12793
else
12794
  echo "$as_me: failed program was:" >&5
12795
sed 's/^/| /' conftest.$ac_ext >&5
12796
 
12797
eval "$as_ac_var=no"
12798
fi
12799
rm -f conftest.err conftest.$ac_objext \
12800
      conftest$ac_exeext conftest.$ac_ext
12801
fi
12802
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12803
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12804
if test `eval echo '${'$as_ac_var'}'` = yes; then
12805
 
12806
cat >>confdefs.h <<_ACEOF
12807
#define CRAY_STACKSEG_END $ac_func
12808
_ACEOF
12809
 
12810
    break
12811
fi
12812
 
12813
  done
12814
fi
12815
 
12816
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12817
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12818
if test "${ac_cv_c_stack_direction+set}" = set; then
12819
  echo $ECHO_N "(cached) $ECHO_C" >&6
12820
else
12821
  if test "$cross_compiling" = yes; then
12822
  ac_cv_c_stack_direction=0
12823
else
12824
  cat >conftest.$ac_ext <<_ACEOF
12825
/* confdefs.h.  */
12826
_ACEOF
12827
cat confdefs.h >>conftest.$ac_ext
12828
cat >>conftest.$ac_ext <<_ACEOF
12829
/* end confdefs.h.  */
12830
int
12831
find_stack_direction ()
12832
{
12833
  static char *addr = 0;
12834
  auto char dummy;
12835
  if (addr == 0)
12836
    {
12837
      addr = &dummy;
12838
      return find_stack_direction ();
12839
    }
12840
  else
12841
    return (&dummy > addr) ? 1 : -1;
12842
}
12843
 
12844
int
12845
main ()
12846
{
12847
  exit (find_stack_direction () < 0);
12848
}
12849
_ACEOF
12850
rm -f conftest$ac_exeext
12851
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12852
  (eval $ac_link) 2>&5
12853
  ac_status=$?
12854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857
  (eval $ac_try) 2>&5
12858
  ac_status=$?
12859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860
  (exit $ac_status); }; }; then
12861
  ac_cv_c_stack_direction=1
12862
else
12863
  echo "$as_me: program exited with status $ac_status" >&5
12864
echo "$as_me: failed program was:" >&5
12865
sed 's/^/| /' conftest.$ac_ext >&5
12866
 
12867
( exit $ac_status )
12868
ac_cv_c_stack_direction=-1
12869
fi
12870
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12871
fi
12872
fi
12873
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12874
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12875
 
12876
cat >>confdefs.h <<_ACEOF
12877
#define STACK_DIRECTION $ac_cv_c_stack_direction
12878
_ACEOF
12879
 
12880
 
12881
fi
12882
 
12883
echo "$as_me:$LINENO: checking for inline" >&5
12884
echo $ECHO_N "checking for inline... $ECHO_C" >&6
12885
if test "${ac_cv_c_inline+set}" = set; then
12886
  echo $ECHO_N "(cached) $ECHO_C" >&6
12887
else
12888
  ac_cv_c_inline=no
12889
for ac_kw in inline __inline__ __inline; do
12890
  cat >conftest.$ac_ext <<_ACEOF
12891
/* confdefs.h.  */
12892
_ACEOF
12893
cat confdefs.h >>conftest.$ac_ext
12894
cat >>conftest.$ac_ext <<_ACEOF
12895
/* end confdefs.h.  */
12896
#ifndef __cplusplus
12897
typedef int foo_t;
12898
static $ac_kw foo_t static_foo () {return 0; }
12899
$ac_kw foo_t foo () {return 0; }
12900
#endif
12901
 
12902
_ACEOF
12903
rm -f conftest.$ac_objext
12904
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12905
  (eval $ac_compile) 2>conftest.er1
12906
  ac_status=$?
12907
  grep -v '^ *+' conftest.er1 >conftest.err
12908
  rm -f conftest.er1
12909
  cat conftest.err >&5
12910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911
  (exit $ac_status); } &&
12912
         { ac_try='test -z "$ac_c_werror_flag"
12913
                         || test ! -s conftest.err'
12914
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915
  (eval $ac_try) 2>&5
12916
  ac_status=$?
12917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918
  (exit $ac_status); }; } &&
12919
         { ac_try='test -s conftest.$ac_objext'
12920
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921
  (eval $ac_try) 2>&5
12922
  ac_status=$?
12923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924
  (exit $ac_status); }; }; then
12925
  ac_cv_c_inline=$ac_kw; break
12926
else
12927
  echo "$as_me: failed program was:" >&5
12928
sed 's/^/| /' conftest.$ac_ext >&5
12929
 
12930
fi
12931
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12932
done
12933
 
12934
fi
12935
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12936
echo "${ECHO_T}$ac_cv_c_inline" >&6
12937
 
12938
 
12939
case $ac_cv_c_inline in
12940
  inline | yes) ;;
12941
  *)
12942
    case $ac_cv_c_inline in
12943
      no) ac_val=;;
12944
      *) ac_val=$ac_cv_c_inline;;
12945
    esac
12946
    cat >>confdefs.h <<_ACEOF
12947
#ifndef __cplusplus
12948
#define inline $ac_val
12949
#endif
12950
_ACEOF
12951
    ;;
12952
esac
12953
 
12954
 
12955
# VMS doesn't have unlink.
12956
 
12957
 
12958
for ac_func in unlink remove
12959
do
12960
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12961
echo "$as_me:$LINENO: checking for $ac_func" >&5
12962
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12963
if eval "test \"\${$as_ac_var+set}\" = set"; then
12964
  echo $ECHO_N "(cached) $ECHO_C" >&6
12965
else
12966
  cat >conftest.$ac_ext <<_ACEOF
12967
/* confdefs.h.  */
12968
_ACEOF
12969
cat confdefs.h >>conftest.$ac_ext
12970
cat >>conftest.$ac_ext <<_ACEOF
12971
/* end confdefs.h.  */
12972
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
12973
   For example, HP-UX 11i  declares gettimeofday.  */
12974
#define $ac_func innocuous_$ac_func
12975
 
12976
/* System header to define __stub macros and hopefully few prototypes,
12977
    which can conflict with char $ac_func (); below.
12978
    Prefer  to  if __STDC__ is defined, since
12979
     exists even on freestanding compilers.  */
12980
 
12981
#ifdef __STDC__
12982
# include 
12983
#else
12984
# include 
12985
#endif
12986
 
12987
#undef $ac_func
12988
 
12989
/* Override any gcc2 internal prototype to avoid an error.  */
12990
#ifdef __cplusplus
12991
extern "C"
12992
{
12993
#endif
12994
/* We use char because int might match the return type of a gcc2
12995
   builtin and then its argument prototype would still apply.  */
12996
char $ac_func ();
12997
/* The GNU C library defines this for functions which it implements
12998
    to always fail with ENOSYS.  Some functions are actually named
12999
    something starting with __ and the normal name is an alias.  */
13000
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13001
choke me
13002
#else
13003
char (*f) () = $ac_func;
13004
#endif
13005
#ifdef __cplusplus
13006
}
13007
#endif
13008
 
13009
int
13010
main ()
13011
{
13012
return f != $ac_func;
13013
  ;
13014
  return 0;
13015
}
13016
_ACEOF
13017
rm -f conftest.$ac_objext conftest$ac_exeext
13018
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019
  (eval $ac_link) 2>conftest.er1
13020
  ac_status=$?
13021
  grep -v '^ *+' conftest.er1 >conftest.err
13022
  rm -f conftest.er1
13023
  cat conftest.err >&5
13024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025
  (exit $ac_status); } &&
13026
         { ac_try='test -z "$ac_c_werror_flag"
13027
                         || test ! -s conftest.err'
13028
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13029
  (eval $ac_try) 2>&5
13030
  ac_status=$?
13031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032
  (exit $ac_status); }; } &&
13033
         { ac_try='test -s conftest$ac_exeext'
13034
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035
  (eval $ac_try) 2>&5
13036
  ac_status=$?
13037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038
  (exit $ac_status); }; }; then
13039
  eval "$as_ac_var=yes"
13040
else
13041
  echo "$as_me: failed program was:" >&5
13042
sed 's/^/| /' conftest.$ac_ext >&5
13043
 
13044
eval "$as_ac_var=no"
13045
fi
13046
rm -f conftest.err conftest.$ac_objext \
13047
      conftest$ac_exeext conftest.$ac_ext
13048
fi
13049
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13050
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13051
if test `eval echo '${'$as_ac_var'}'` = yes; then
13052
  cat >>confdefs.h <<_ACEOF
13053
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13054
_ACEOF
13055
 break
13056
fi
13057
done
13058
 
13059
 
13060
# Some systems don't have sbrk().
13061
 
13062
for ac_func in sbrk
13063
do
13064
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13065
echo "$as_me:$LINENO: checking for $ac_func" >&5
13066
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13067
if eval "test \"\${$as_ac_var+set}\" = set"; then
13068
  echo $ECHO_N "(cached) $ECHO_C" >&6
13069
else
13070
  cat >conftest.$ac_ext <<_ACEOF
13071
/* confdefs.h.  */
13072
_ACEOF
13073
cat confdefs.h >>conftest.$ac_ext
13074
cat >>conftest.$ac_ext <<_ACEOF
13075
/* end confdefs.h.  */
13076
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
13077
   For example, HP-UX 11i  declares gettimeofday.  */
13078
#define $ac_func innocuous_$ac_func
13079
 
13080
/* System header to define __stub macros and hopefully few prototypes,
13081
    which can conflict with char $ac_func (); below.
13082
    Prefer  to  if __STDC__ is defined, since
13083
     exists even on freestanding compilers.  */
13084
 
13085
#ifdef __STDC__
13086
# include 
13087
#else
13088
# include 
13089
#endif
13090
 
13091
#undef $ac_func
13092
 
13093
/* Override any gcc2 internal prototype to avoid an error.  */
13094
#ifdef __cplusplus
13095
extern "C"
13096
{
13097
#endif
13098
/* We use char because int might match the return type of a gcc2
13099
   builtin and then its argument prototype would still apply.  */
13100
char $ac_func ();
13101
/* The GNU C library defines this for functions which it implements
13102
    to always fail with ENOSYS.  Some functions are actually named
13103
    something starting with __ and the normal name is an alias.  */
13104
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13105
choke me
13106
#else
13107
char (*f) () = $ac_func;
13108
#endif
13109
#ifdef __cplusplus
13110
}
13111
#endif
13112
 
13113
int
13114
main ()
13115
{
13116
return f != $ac_func;
13117
  ;
13118
  return 0;
13119
}
13120
_ACEOF
13121
rm -f conftest.$ac_objext conftest$ac_exeext
13122
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13123
  (eval $ac_link) 2>conftest.er1
13124
  ac_status=$?
13125
  grep -v '^ *+' conftest.er1 >conftest.err
13126
  rm -f conftest.er1
13127
  cat conftest.err >&5
13128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129
  (exit $ac_status); } &&
13130
         { ac_try='test -z "$ac_c_werror_flag"
13131
                         || test ! -s conftest.err'
13132
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133
  (eval $ac_try) 2>&5
13134
  ac_status=$?
13135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136
  (exit $ac_status); }; } &&
13137
         { ac_try='test -s conftest$ac_exeext'
13138
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139
  (eval $ac_try) 2>&5
13140
  ac_status=$?
13141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142
  (exit $ac_status); }; }; then
13143
  eval "$as_ac_var=yes"
13144
else
13145
  echo "$as_me: failed program was:" >&5
13146
sed 's/^/| /' conftest.$ac_ext >&5
13147
 
13148
eval "$as_ac_var=no"
13149
fi
13150
rm -f conftest.err conftest.$ac_objext \
13151
      conftest$ac_exeext conftest.$ac_ext
13152
fi
13153
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13154
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13155
if test `eval echo '${'$as_ac_var'}'` = yes; then
13156
  cat >>confdefs.h <<_ACEOF
13157
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13158
_ACEOF
13159
 
13160
fi
13161
done
13162
 
13163
 
13164
# do we need the math library?
13165
case "${need_libm}" in
13166
yes)
13167
  LIBM=
13168
case $host in
13169
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
13170
  # These system don't have libm, or don't need it
13171
  ;;
13172
*-ncr-sysv4.3*)
13173
  echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
13174
echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
13175
if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
13176
  echo $ECHO_N "(cached) $ECHO_C" >&6
13177
else
13178
  ac_check_lib_save_LIBS=$LIBS
13179
LIBS="-lmw  $LIBS"
13180
cat >conftest.$ac_ext <<_ACEOF
13181
/* confdefs.h.  */
13182
_ACEOF
13183
cat confdefs.h >>conftest.$ac_ext
13184
cat >>conftest.$ac_ext <<_ACEOF
13185
/* end confdefs.h.  */
13186
 
13187
/* Override any gcc2 internal prototype to avoid an error.  */
13188
#ifdef __cplusplus
13189
extern "C"
13190
#endif
13191
/* We use char because int might match the return type of a gcc2
13192
   builtin and then its argument prototype would still apply.  */
13193
char _mwvalidcheckl ();
13194
int
13195
main ()
13196
{
13197
_mwvalidcheckl ();
13198
  ;
13199
  return 0;
13200
}
13201
_ACEOF
13202
rm -f conftest.$ac_objext conftest$ac_exeext
13203
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13204
  (eval $ac_link) 2>conftest.er1
13205
  ac_status=$?
13206
  grep -v '^ *+' conftest.er1 >conftest.err
13207
  rm -f conftest.er1
13208
  cat conftest.err >&5
13209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210
  (exit $ac_status); } &&
13211
         { ac_try='test -z "$ac_c_werror_flag"
13212
                         || test ! -s conftest.err'
13213
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214
  (eval $ac_try) 2>&5
13215
  ac_status=$?
13216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217
  (exit $ac_status); }; } &&
13218
         { ac_try='test -s conftest$ac_exeext'
13219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220
  (eval $ac_try) 2>&5
13221
  ac_status=$?
13222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223
  (exit $ac_status); }; }; then
13224
  ac_cv_lib_mw__mwvalidcheckl=yes
13225
else
13226
  echo "$as_me: failed program was:" >&5
13227
sed 's/^/| /' conftest.$ac_ext >&5
13228
 
13229
ac_cv_lib_mw__mwvalidcheckl=no
13230
fi
13231
rm -f conftest.err conftest.$ac_objext \
13232
      conftest$ac_exeext conftest.$ac_ext
13233
LIBS=$ac_check_lib_save_LIBS
13234
fi
13235
echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13236
echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
13237
if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
13238
  LIBM="-lmw"
13239
fi
13240
 
13241
  echo "$as_me:$LINENO: checking for cos in -lm" >&5
13242
echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13243
if test "${ac_cv_lib_m_cos+set}" = set; then
13244
  echo $ECHO_N "(cached) $ECHO_C" >&6
13245
else
13246
  ac_check_lib_save_LIBS=$LIBS
13247
LIBS="-lm  $LIBS"
13248
cat >conftest.$ac_ext <<_ACEOF
13249
/* confdefs.h.  */
13250
_ACEOF
13251
cat confdefs.h >>conftest.$ac_ext
13252
cat >>conftest.$ac_ext <<_ACEOF
13253
/* end confdefs.h.  */
13254
 
13255
/* Override any gcc2 internal prototype to avoid an error.  */
13256
#ifdef __cplusplus
13257
extern "C"
13258
#endif
13259
/* We use char because int might match the return type of a gcc2
13260
   builtin and then its argument prototype would still apply.  */
13261
char cos ();
13262
int
13263
main ()
13264
{
13265
cos ();
13266
  ;
13267
  return 0;
13268
}
13269
_ACEOF
13270
rm -f conftest.$ac_objext conftest$ac_exeext
13271
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13272
  (eval $ac_link) 2>conftest.er1
13273
  ac_status=$?
13274
  grep -v '^ *+' conftest.er1 >conftest.err
13275
  rm -f conftest.er1
13276
  cat conftest.err >&5
13277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278
  (exit $ac_status); } &&
13279
         { ac_try='test -z "$ac_c_werror_flag"
13280
                         || test ! -s conftest.err'
13281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282
  (eval $ac_try) 2>&5
13283
  ac_status=$?
13284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285
  (exit $ac_status); }; } &&
13286
         { ac_try='test -s conftest$ac_exeext'
13287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288
  (eval $ac_try) 2>&5
13289
  ac_status=$?
13290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291
  (exit $ac_status); }; }; then
13292
  ac_cv_lib_m_cos=yes
13293
else
13294
  echo "$as_me: failed program was:" >&5
13295
sed 's/^/| /' conftest.$ac_ext >&5
13296
 
13297
ac_cv_lib_m_cos=no
13298
fi
13299
rm -f conftest.err conftest.$ac_objext \
13300
      conftest$ac_exeext conftest.$ac_ext
13301
LIBS=$ac_check_lib_save_LIBS
13302
fi
13303
echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13304
echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13305
if test $ac_cv_lib_m_cos = yes; then
13306
  LIBM="$LIBM -lm"
13307
fi
13308
 
13309
  ;;
13310
*)
13311
  echo "$as_me:$LINENO: checking for cos in -lm" >&5
13312
echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
13313
if test "${ac_cv_lib_m_cos+set}" = set; then
13314
  echo $ECHO_N "(cached) $ECHO_C" >&6
13315
else
13316
  ac_check_lib_save_LIBS=$LIBS
13317
LIBS="-lm  $LIBS"
13318
cat >conftest.$ac_ext <<_ACEOF
13319
/* confdefs.h.  */
13320
_ACEOF
13321
cat confdefs.h >>conftest.$ac_ext
13322
cat >>conftest.$ac_ext <<_ACEOF
13323
/* end confdefs.h.  */
13324
 
13325
/* Override any gcc2 internal prototype to avoid an error.  */
13326
#ifdef __cplusplus
13327
extern "C"
13328
#endif
13329
/* We use char because int might match the return type of a gcc2
13330
   builtin and then its argument prototype would still apply.  */
13331
char cos ();
13332
int
13333
main ()
13334
{
13335
cos ();
13336
  ;
13337
  return 0;
13338
}
13339
_ACEOF
13340
rm -f conftest.$ac_objext conftest$ac_exeext
13341
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13342
  (eval $ac_link) 2>conftest.er1
13343
  ac_status=$?
13344
  grep -v '^ *+' conftest.er1 >conftest.err
13345
  rm -f conftest.er1
13346
  cat conftest.err >&5
13347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348
  (exit $ac_status); } &&
13349
         { ac_try='test -z "$ac_c_werror_flag"
13350
                         || test ! -s conftest.err'
13351
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352
  (eval $ac_try) 2>&5
13353
  ac_status=$?
13354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355
  (exit $ac_status); }; } &&
13356
         { ac_try='test -s conftest$ac_exeext'
13357
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358
  (eval $ac_try) 2>&5
13359
  ac_status=$?
13360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361
  (exit $ac_status); }; }; then
13362
  ac_cv_lib_m_cos=yes
13363
else
13364
  echo "$as_me: failed program was:" >&5
13365
sed 's/^/| /' conftest.$ac_ext >&5
13366
 
13367
ac_cv_lib_m_cos=no
13368
fi
13369
rm -f conftest.err conftest.$ac_objext \
13370
      conftest$ac_exeext conftest.$ac_ext
13371
LIBS=$ac_check_lib_save_LIBS
13372
fi
13373
echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
13374
echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
13375
if test $ac_cv_lib_m_cos = yes; then
13376
  LIBM="-lm"
13377
fi
13378
 
13379
  ;;
13380
esac
13381
 
13382
 
13383
 
13384
  ;;
13385
esac
13386
 
13387
# Some non-ANSI preprocessors botch requoting inside strings.  That's bad
13388
# enough, but on some of those systems, the assert macro relies on requoting
13389
# working properly!
13390
echo "$as_me:$LINENO: checking for working assert macro" >&5
13391
echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
13392
if test "${gas_cv_assert_ok+set}" = set; then
13393
  echo $ECHO_N "(cached) $ECHO_C" >&6
13394
else
13395
  cat >conftest.$ac_ext <<_ACEOF
13396
/* confdefs.h.  */
13397
_ACEOF
13398
cat confdefs.h >>conftest.$ac_ext
13399
cat >>conftest.$ac_ext <<_ACEOF
13400
/* end confdefs.h.  */
13401
#include 
13402
#include 
13403
int
13404
main ()
13405
{
13406
 
13407
/* check for requoting problems */
13408
static int a, b, c, d;
13409
static char *s;
13410
assert (!strcmp(s, "foo bar baz quux"));
13411
/* check for newline handling */
13412
assert (a == b
13413
        || c == d);
13414
 
13415
  ;
13416
  return 0;
13417
}
13418
_ACEOF
13419
rm -f conftest.$ac_objext conftest$ac_exeext
13420
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13421
  (eval $ac_link) 2>conftest.er1
13422
  ac_status=$?
13423
  grep -v '^ *+' conftest.er1 >conftest.err
13424
  rm -f conftest.er1
13425
  cat conftest.err >&5
13426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427
  (exit $ac_status); } &&
13428
         { ac_try='test -z "$ac_c_werror_flag"
13429
                         || test ! -s conftest.err'
13430
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431
  (eval $ac_try) 2>&5
13432
  ac_status=$?
13433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434
  (exit $ac_status); }; } &&
13435
         { ac_try='test -s conftest$ac_exeext'
13436
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437
  (eval $ac_try) 2>&5
13438
  ac_status=$?
13439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440
  (exit $ac_status); }; }; then
13441
  gas_cv_assert_ok=yes
13442
else
13443
  echo "$as_me: failed program was:" >&5
13444
sed 's/^/| /' conftest.$ac_ext >&5
13445
 
13446
gas_cv_assert_ok=no
13447
fi
13448
rm -f conftest.err conftest.$ac_objext \
13449
      conftest$ac_exeext conftest.$ac_ext
13450
fi
13451
echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
13452
echo "${ECHO_T}$gas_cv_assert_ok" >&6
13453
test $gas_cv_assert_ok = yes ||
13454
cat >>confdefs.h <<\_ACEOF
13455
#define BROKEN_ASSERT 1
13456
_ACEOF
13457
 
13458
 
13459
 
13460
# On some systems, the system header files may not declare malloc, realloc,
13461
# and free.  There are places where gas needs these functions to have been
13462
# declared -- such as when taking their addresses.
13463
gas_test_headers="
13464
#ifdef HAVE_MEMORY_H
13465
#include 
13466
#endif
13467
#ifdef HAVE_STRING_H
13468
#include 
13469
#else
13470
#ifdef HAVE_STRINGS_H
13471
#include 
13472
#endif
13473
#endif
13474
#ifdef HAVE_STDLIB_H
13475
#include 
13476
#endif
13477
#ifdef HAVE_UNISTD_H
13478
#include 
13479
#endif
13480
"
13481
 
13482
# Does errno.h declare errno, or do we have to add a separate declaration
13483
# for it?
13484
 
13485
echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
13486
echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
13487
if test "${gas_cv_decl_needed_errno+set}" = set; then
13488
  echo $ECHO_N "(cached) $ECHO_C" >&6
13489
else
13490
  cat >conftest.$ac_ext <<_ACEOF
13491
/* confdefs.h.  */
13492
_ACEOF
13493
cat confdefs.h >>conftest.$ac_ext
13494
cat >>conftest.$ac_ext <<_ACEOF
13495
/* end confdefs.h.  */
13496
 
13497
#ifdef HAVE_ERRNO_H
13498
#include 
13499
#endif
13500
 
13501
int
13502
main ()
13503
{
13504
 
13505
typedef int f;
13506
f x;
13507
x = (f) errno;
13508
 
13509
  ;
13510
  return 0;
13511
}
13512
_ACEOF
13513
rm -f conftest.$ac_objext conftest$ac_exeext
13514
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13515
  (eval $ac_link) 2>conftest.er1
13516
  ac_status=$?
13517
  grep -v '^ *+' conftest.er1 >conftest.err
13518
  rm -f conftest.er1
13519
  cat conftest.err >&5
13520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521
  (exit $ac_status); } &&
13522
         { ac_try='test -z "$ac_c_werror_flag"
13523
                         || test ! -s conftest.err'
13524
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525
  (eval $ac_try) 2>&5
13526
  ac_status=$?
13527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528
  (exit $ac_status); }; } &&
13529
         { ac_try='test -s conftest$ac_exeext'
13530
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531
  (eval $ac_try) 2>&5
13532
  ac_status=$?
13533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534
  (exit $ac_status); }; }; then
13535
  gas_cv_decl_needed_errno=no
13536
else
13537
  echo "$as_me: failed program was:" >&5
13538
sed 's/^/| /' conftest.$ac_ext >&5
13539
 
13540
gas_cv_decl_needed_errno=yes
13541
fi
13542
rm -f conftest.err conftest.$ac_objext \
13543
      conftest$ac_exeext conftest.$ac_ext
13544
fi
13545
echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
13546
echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
13547
if test $gas_cv_decl_needed_errno = yes; then
13548
 
13549
cat >>confdefs.h <<\_ACEOF
13550
#define NEED_DECLARATION_ERRNO 1
13551
_ACEOF
13552
 
13553
fi
13554
 
13555
 
13556
echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
13557
echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
13558
if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
13559
  echo $ECHO_N "(cached) $ECHO_C" >&6
13560
else
13561
  cat >conftest.$ac_ext <<_ACEOF
13562
/* confdefs.h.  */
13563
_ACEOF
13564
cat confdefs.h >>conftest.$ac_ext
13565
cat >>conftest.$ac_ext <<_ACEOF
13566
/* end confdefs.h.  */
13567
#include 
13568
int
13569
main ()
13570
{
13571
extern int getopt (int, char *const*, const char *);
13572
  ;
13573
  return 0;
13574
}
13575
_ACEOF
13576
rm -f conftest.$ac_objext
13577
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13578
  (eval $ac_compile) 2>conftest.er1
13579
  ac_status=$?
13580
  grep -v '^ *+' conftest.er1 >conftest.err
13581
  rm -f conftest.er1
13582
  cat conftest.err >&5
13583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584
  (exit $ac_status); } &&
13585
         { ac_try='test -z "$ac_c_werror_flag"
13586
                         || test ! -s conftest.err'
13587
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588
  (eval $ac_try) 2>&5
13589
  ac_status=$?
13590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591
  (exit $ac_status); }; } &&
13592
         { ac_try='test -s conftest.$ac_objext'
13593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594
  (eval $ac_try) 2>&5
13595
  ac_status=$?
13596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597
  (exit $ac_status); }; }; then
13598
  gas_cv_decl_getopt_unistd_h=yes
13599
else
13600
  echo "$as_me: failed program was:" >&5
13601
sed 's/^/| /' conftest.$ac_ext >&5
13602
 
13603
gas_cv_decl_getopt_unistd_h=no
13604
fi
13605
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13606
fi
13607
 
13608
echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
13609
echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
13610
if test $gas_cv_decl_getopt_unistd_h = yes; then
13611
 
13612
cat >>confdefs.h <<\_ACEOF
13613
#define HAVE_DECL_GETOPT 1
13614
_ACEOF
13615
 
13616
fi
13617
 
13618
 
13619
echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
13620
echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
13621
if test "${gas_cv_decl_needed_environ+set}" = set; then
13622
  echo $ECHO_N "(cached) $ECHO_C" >&6
13623
else
13624
  cat >conftest.$ac_ext <<_ACEOF
13625
/* confdefs.h.  */
13626
_ACEOF
13627
cat confdefs.h >>conftest.$ac_ext
13628
cat >>conftest.$ac_ext <<_ACEOF
13629
/* end confdefs.h.  */
13630
$gas_test_headers
13631
int
13632
main ()
13633
{
13634
 
13635
typedef char **f;
13636
f x;
13637
x = (f) environ;
13638
 
13639
  ;
13640
  return 0;
13641
}
13642
_ACEOF
13643
rm -f conftest.$ac_objext conftest$ac_exeext
13644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13645
  (eval $ac_link) 2>conftest.er1
13646
  ac_status=$?
13647
  grep -v '^ *+' conftest.er1 >conftest.err
13648
  rm -f conftest.er1
13649
  cat conftest.err >&5
13650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651
  (exit $ac_status); } &&
13652
         { ac_try='test -z "$ac_c_werror_flag"
13653
                         || test ! -s conftest.err'
13654
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655
  (eval $ac_try) 2>&5
13656
  ac_status=$?
13657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658
  (exit $ac_status); }; } &&
13659
         { ac_try='test -s conftest$ac_exeext'
13660
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661
  (eval $ac_try) 2>&5
13662
  ac_status=$?
13663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664
  (exit $ac_status); }; }; then
13665
  gas_cv_decl_needed_environ=no
13666
else
13667
  echo "$as_me: failed program was:" >&5
13668
sed 's/^/| /' conftest.$ac_ext >&5
13669
 
13670
gas_cv_decl_needed_environ=yes
13671
fi
13672
rm -f conftest.err conftest.$ac_objext \
13673
      conftest$ac_exeext conftest.$ac_ext
13674
fi
13675
echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
13676
echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
13677
if test $gas_cv_decl_needed_environ = yes; then
13678
 
13679
cat >>confdefs.h <<\_ACEOF
13680
#define NEED_DECLARATION_ENVIRON 1
13681
_ACEOF
13682
 
13683
fi
13684
 
13685
 
13686
echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
13687
echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
13688
if test "${gas_cv_decl_needed_ffs+set}" = set; then
13689
  echo $ECHO_N "(cached) $ECHO_C" >&6
13690
else
13691
  cat >conftest.$ac_ext <<_ACEOF
13692
/* confdefs.h.  */
13693
_ACEOF
13694
cat confdefs.h >>conftest.$ac_ext
13695
cat >>conftest.$ac_ext <<_ACEOF
13696
/* end confdefs.h.  */
13697
$gas_test_headers
13698
int
13699
main ()
13700
{
13701
 
13702
typedef int (*f)(int);
13703
f x;
13704
x = (f) ffs;
13705
 
13706
  ;
13707
  return 0;
13708
}
13709
_ACEOF
13710
rm -f conftest.$ac_objext conftest$ac_exeext
13711
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13712
  (eval $ac_link) 2>conftest.er1
13713
  ac_status=$?
13714
  grep -v '^ *+' conftest.er1 >conftest.err
13715
  rm -f conftest.er1
13716
  cat conftest.err >&5
13717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718
  (exit $ac_status); } &&
13719
         { ac_try='test -z "$ac_c_werror_flag"
13720
                         || test ! -s conftest.err'
13721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722
  (eval $ac_try) 2>&5
13723
  ac_status=$?
13724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725
  (exit $ac_status); }; } &&
13726
         { ac_try='test -s conftest$ac_exeext'
13727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728
  (eval $ac_try) 2>&5
13729
  ac_status=$?
13730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731
  (exit $ac_status); }; }; then
13732
  gas_cv_decl_needed_ffs=no
13733
else
13734
  echo "$as_me: failed program was:" >&5
13735
sed 's/^/| /' conftest.$ac_ext >&5
13736
 
13737
gas_cv_decl_needed_ffs=yes
13738
fi
13739
rm -f conftest.err conftest.$ac_objext \
13740
      conftest$ac_exeext conftest.$ac_ext
13741
fi
13742
echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
13743
echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
13744
if test $gas_cv_decl_needed_ffs = yes; then
13745
 
13746
cat >>confdefs.h <<\_ACEOF
13747
#define NEED_DECLARATION_FFS 1
13748
_ACEOF
13749
 
13750
fi
13751
 
13752
 
13753
echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
13754
echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
13755
if test "${gas_cv_decl_needed_free+set}" = set; then
13756
  echo $ECHO_N "(cached) $ECHO_C" >&6
13757
else
13758
  cat >conftest.$ac_ext <<_ACEOF
13759
/* confdefs.h.  */
13760
_ACEOF
13761
cat confdefs.h >>conftest.$ac_ext
13762
cat >>conftest.$ac_ext <<_ACEOF
13763
/* end confdefs.h.  */
13764
$gas_test_headers
13765
int
13766
main ()
13767
{
13768
 
13769
typedef void (*f)();
13770
f x;
13771
x = (f) free;
13772
 
13773
  ;
13774
  return 0;
13775
}
13776
_ACEOF
13777
rm -f conftest.$ac_objext conftest$ac_exeext
13778
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13779
  (eval $ac_link) 2>conftest.er1
13780
  ac_status=$?
13781
  grep -v '^ *+' conftest.er1 >conftest.err
13782
  rm -f conftest.er1
13783
  cat conftest.err >&5
13784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785
  (exit $ac_status); } &&
13786
         { ac_try='test -z "$ac_c_werror_flag"
13787
                         || test ! -s conftest.err'
13788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789
  (eval $ac_try) 2>&5
13790
  ac_status=$?
13791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792
  (exit $ac_status); }; } &&
13793
         { ac_try='test -s conftest$ac_exeext'
13794
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795
  (eval $ac_try) 2>&5
13796
  ac_status=$?
13797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798
  (exit $ac_status); }; }; then
13799
  gas_cv_decl_needed_free=no
13800
else
13801
  echo "$as_me: failed program was:" >&5
13802
sed 's/^/| /' conftest.$ac_ext >&5
13803
 
13804
gas_cv_decl_needed_free=yes
13805
fi
13806
rm -f conftest.err conftest.$ac_objext \
13807
      conftest$ac_exeext conftest.$ac_ext
13808
fi
13809
echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
13810
echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
13811
if test $gas_cv_decl_needed_free = yes; then
13812
 
13813
cat >>confdefs.h <<\_ACEOF
13814
#define NEED_DECLARATION_FREE 1
13815
_ACEOF
13816
 
13817
fi
13818
 
13819
 
13820
echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
13821
echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
13822
if test "${gas_cv_decl_needed_malloc+set}" = set; then
13823
  echo $ECHO_N "(cached) $ECHO_C" >&6
13824
else
13825
  cat >conftest.$ac_ext <<_ACEOF
13826
/* confdefs.h.  */
13827
_ACEOF
13828
cat confdefs.h >>conftest.$ac_ext
13829
cat >>conftest.$ac_ext <<_ACEOF
13830
/* end confdefs.h.  */
13831
$gas_test_headers
13832
int
13833
main ()
13834
{
13835
 
13836
typedef char *(*f)();
13837
f x;
13838
x = (f) malloc;
13839
 
13840
  ;
13841
  return 0;
13842
}
13843
_ACEOF
13844
rm -f conftest.$ac_objext conftest$ac_exeext
13845
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846
  (eval $ac_link) 2>conftest.er1
13847
  ac_status=$?
13848
  grep -v '^ *+' conftest.er1 >conftest.err
13849
  rm -f conftest.er1
13850
  cat conftest.err >&5
13851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852
  (exit $ac_status); } &&
13853
         { ac_try='test -z "$ac_c_werror_flag"
13854
                         || test ! -s conftest.err'
13855
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856
  (eval $ac_try) 2>&5
13857
  ac_status=$?
13858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859
  (exit $ac_status); }; } &&
13860
         { ac_try='test -s conftest$ac_exeext'
13861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862
  (eval $ac_try) 2>&5
13863
  ac_status=$?
13864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865
  (exit $ac_status); }; }; then
13866
  gas_cv_decl_needed_malloc=no
13867
else
13868
  echo "$as_me: failed program was:" >&5
13869
sed 's/^/| /' conftest.$ac_ext >&5
13870
 
13871
gas_cv_decl_needed_malloc=yes
13872
fi
13873
rm -f conftest.err conftest.$ac_objext \
13874
      conftest$ac_exeext conftest.$ac_ext
13875
fi
13876
echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
13877
echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
13878
if test $gas_cv_decl_needed_malloc = yes; then
13879
 
13880
cat >>confdefs.h <<\_ACEOF
13881
#define NEED_DECLARATION_MALLOC 1
13882
_ACEOF
13883
 
13884
fi
13885
 
13886
 
13887
echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
13888
echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
13889
if test "${gas_cv_decl_needed_sbrk+set}" = set; then
13890
  echo $ECHO_N "(cached) $ECHO_C" >&6
13891
else
13892
  cat >conftest.$ac_ext <<_ACEOF
13893
/* confdefs.h.  */
13894
_ACEOF
13895
cat confdefs.h >>conftest.$ac_ext
13896
cat >>conftest.$ac_ext <<_ACEOF
13897
/* end confdefs.h.  */
13898
$gas_test_headers
13899
int
13900
main ()
13901
{
13902
 
13903
typedef char *(*f)();
13904
f x;
13905
x = (f) sbrk;
13906
 
13907
  ;
13908
  return 0;
13909
}
13910
_ACEOF
13911
rm -f conftest.$ac_objext conftest$ac_exeext
13912
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13913
  (eval $ac_link) 2>conftest.er1
13914
  ac_status=$?
13915
  grep -v '^ *+' conftest.er1 >conftest.err
13916
  rm -f conftest.er1
13917
  cat conftest.err >&5
13918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919
  (exit $ac_status); } &&
13920
         { ac_try='test -z "$ac_c_werror_flag"
13921
                         || test ! -s conftest.err'
13922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923
  (eval $ac_try) 2>&5
13924
  ac_status=$?
13925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926
  (exit $ac_status); }; } &&
13927
         { ac_try='test -s conftest$ac_exeext'
13928
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929
  (eval $ac_try) 2>&5
13930
  ac_status=$?
13931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932
  (exit $ac_status); }; }; then
13933
  gas_cv_decl_needed_sbrk=no
13934
else
13935
  echo "$as_me: failed program was:" >&5
13936
sed 's/^/| /' conftest.$ac_ext >&5
13937
 
13938
gas_cv_decl_needed_sbrk=yes
13939
fi
13940
rm -f conftest.err conftest.$ac_objext \
13941
      conftest$ac_exeext conftest.$ac_ext
13942
fi
13943
echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
13944
echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
13945
if test $gas_cv_decl_needed_sbrk = yes; then
13946
 
13947
cat >>confdefs.h <<\_ACEOF
13948
#define NEED_DECLARATION_SBRK 1
13949
_ACEOF
13950
 
13951
fi
13952
 
13953
 
13954
echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
13955
echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
13956
if test "${gas_cv_decl_needed_strstr+set}" = set; then
13957
  echo $ECHO_N "(cached) $ECHO_C" >&6
13958
else
13959
  cat >conftest.$ac_ext <<_ACEOF
13960
/* confdefs.h.  */
13961
_ACEOF
13962
cat confdefs.h >>conftest.$ac_ext
13963
cat >>conftest.$ac_ext <<_ACEOF
13964
/* end confdefs.h.  */
13965
$gas_test_headers
13966
int
13967
main ()
13968
{
13969
 
13970
typedef char *(*f)();
13971
f x;
13972
x = (f) strstr;
13973
 
13974
  ;
13975
  return 0;
13976
}
13977
_ACEOF
13978
rm -f conftest.$ac_objext conftest$ac_exeext
13979
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13980
  (eval $ac_link) 2>conftest.er1
13981
  ac_status=$?
13982
  grep -v '^ *+' conftest.er1 >conftest.err
13983
  rm -f conftest.er1
13984
  cat conftest.err >&5
13985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986
  (exit $ac_status); } &&
13987
         { ac_try='test -z "$ac_c_werror_flag"
13988
                         || test ! -s conftest.err'
13989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990
  (eval $ac_try) 2>&5
13991
  ac_status=$?
13992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993
  (exit $ac_status); }; } &&
13994
         { ac_try='test -s conftest$ac_exeext'
13995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996
  (eval $ac_try) 2>&5
13997
  ac_status=$?
13998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999
  (exit $ac_status); }; }; then
14000
  gas_cv_decl_needed_strstr=no
14001
else
14002
  echo "$as_me: failed program was:" >&5
14003
sed 's/^/| /' conftest.$ac_ext >&5
14004
 
14005
gas_cv_decl_needed_strstr=yes
14006
fi
14007
rm -f conftest.err conftest.$ac_objext \
14008
      conftest$ac_exeext conftest.$ac_ext
14009
fi
14010
echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
14011
echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
14012
if test $gas_cv_decl_needed_strstr = yes; then
14013
 
14014
cat >>confdefs.h <<\_ACEOF
14015
#define NEED_DECLARATION_STRSTR 1
14016
_ACEOF
14017
 
14018
fi
14019
 
14020
 
14021
echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14022
echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14023
if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14024
  echo $ECHO_N "(cached) $ECHO_C" >&6
14025
else
14026
  cat >conftest.$ac_ext <<_ACEOF
14027
/* confdefs.h.  */
14028
_ACEOF
14029
cat confdefs.h >>conftest.$ac_ext
14030
cat >>conftest.$ac_ext <<_ACEOF
14031
/* end confdefs.h.  */
14032
$ac_includes_default
14033
int
14034
main ()
14035
{
14036
#ifndef vsnprintf
14037
  char *p = (char *) vsnprintf;
14038
#endif
14039
 
14040
  ;
14041
  return 0;
14042
}
14043
_ACEOF
14044
rm -f conftest.$ac_objext
14045
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14046
  (eval $ac_compile) 2>conftest.er1
14047
  ac_status=$?
14048
  grep -v '^ *+' conftest.er1 >conftest.err
14049
  rm -f conftest.er1
14050
  cat conftest.err >&5
14051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052
  (exit $ac_status); } &&
14053
         { ac_try='test -z "$ac_c_werror_flag"
14054
                         || test ! -s conftest.err'
14055
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056
  (eval $ac_try) 2>&5
14057
  ac_status=$?
14058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059
  (exit $ac_status); }; } &&
14060
         { ac_try='test -s conftest.$ac_objext'
14061
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062
  (eval $ac_try) 2>&5
14063
  ac_status=$?
14064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065
  (exit $ac_status); }; }; then
14066
  ac_cv_have_decl_vsnprintf=yes
14067
else
14068
  echo "$as_me: failed program was:" >&5
14069
sed 's/^/| /' conftest.$ac_ext >&5
14070
 
14071
ac_cv_have_decl_vsnprintf=no
14072
fi
14073
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14074
fi
14075
echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14076
echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14077
if test $ac_cv_have_decl_vsnprintf = yes; then
14078
 
14079
cat >>confdefs.h <<_ACEOF
14080
#define HAVE_DECL_VSNPRINTF 1
14081
_ACEOF
14082
 
14083
 
14084
else
14085
  cat >>confdefs.h <<_ACEOF
14086
#define HAVE_DECL_VSNPRINTF 0
14087
_ACEOF
14088
 
14089
 
14090
fi
14091
 
14092
 
14093
 
14094
 
14095
case "${host}" in
14096
*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14097
 
14098
cat >>confdefs.h <<\_ACEOF
14099
#define USE_BINARY_FOPEN 1
14100
_ACEOF
14101
 ;;
14102
esac
14103
 
14104
 
14105
 
14106
 
14107
 
14108
 
14109
 
14110
                              ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14111
 
14112
          ac_config_commands="$ac_config_commands default"
14113
 
14114
 
14115
cat >confcache <<\_ACEOF
14116
# This file is a shell script that caches the results of configure
14117
# tests run on this system so they can be shared between configure
14118
# scripts and configure runs, see configure's option --config-cache.
14119
# It is not useful on other systems.  If it contains results you don't
14120
# want to keep, you may remove or edit it.
14121
#
14122
# config.status only pays attention to the cache file if you give it
14123
# the --recheck option to rerun configure.
14124
#
14125
# `ac_cv_env_foo' variables (set or unset) will be overridden when
14126
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14127
# following values.
14128
 
14129
_ACEOF
14130
 
14131
# The following way of writing the cache mishandles newlines in values,
14132
# but we know of no workaround that is simple, portable, and efficient.
14133
# So, don't put newlines in cache variables' values.
14134
# Ultrix sh set writes to stderr and can't be redirected directly,
14135
# and sets the high bit in the cache file unless we assign to the vars.
14136
{
14137
  (set) 2>&1 |
14138
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
14139
    *ac_space=\ *)
14140
      # `set' does not quote correctly, so add quotes (double-quote
14141
      # substitution turns \\\\ into \\, and sed turns \\ into \).
14142
      sed -n \
14143
        "s/'/'\\\\''/g;
14144
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14145
      ;;
14146
    *)
14147
      # `set' quotes correctly as required by POSIX, so do not add quotes.
14148
      sed -n \
14149
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14150
      ;;
14151
    esac;
14152
} |
14153
  sed '
14154
     t clear
14155
     : clear
14156
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14157
     t end
14158
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14159
     : end' >>confcache
14160
if diff $cache_file confcache >/dev/null 2>&1; then :; else
14161
  if test -w $cache_file; then
14162
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14163
    cat confcache >$cache_file
14164
  else
14165
    echo "not updating unwritable cache $cache_file"
14166
  fi
14167
fi
14168
rm -f confcache
14169
 
14170
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14171
# Let make expand exec_prefix.
14172
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14173
 
14174
# VPATH may cause trouble with some makes, so we remove $(srcdir),
14175
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14176
# trailing colons and then remove the whole line if VPATH becomes empty
14177
# (actually we leave an empty line to preserve line numbers).
14178
if test "x$srcdir" = x.; then
14179
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14180
s/:*\$(srcdir):*/:/;
14181
s/:*\${srcdir}:*/:/;
14182
s/:*@srcdir@:*/:/;
14183
s/^\([^=]*=[     ]*\):*/\1/;
14184
s/:*$//;
14185
s/^[^=]*=[       ]*$//;
14186
}'
14187
fi
14188
 
14189
DEFS=-DHAVE_CONFIG_H
14190
 
14191
ac_libobjs=
14192
ac_ltlibobjs=
14193
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14194
  # 1. Remove the extension, and $U if already installed.
14195
  ac_i=`echo "$ac_i" |
14196
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14197
  # 2. Add them.
14198
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14199
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14200
done
14201
LIBOBJS=$ac_libobjs
14202
 
14203
LTLIBOBJS=$ac_ltlibobjs
14204
 
14205
 
14206
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14207
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14208
Usually this means the macro was only invoked conditionally." >&5
14209
echo "$as_me: error: conditional \"AMDEP\" was never defined.
14210
Usually this means the macro was only invoked conditionally." >&2;}
14211
   { (exit 1); exit 1; }; }
14212
fi
14213
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14214
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14215
Usually this means the macro was only invoked conditionally." >&5
14216
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14217
Usually this means the macro was only invoked conditionally." >&2;}
14218
   { (exit 1); exit 1; }; }
14219
fi
14220
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14221
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14222
Usually this means the macro was only invoked conditionally." >&5
14223
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14224
Usually this means the macro was only invoked conditionally." >&2;}
14225
   { (exit 1); exit 1; }; }
14226
fi
14227
if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14228
  { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
14229
Usually this means the macro was only invoked conditionally." >&5
14230
echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
14231
Usually this means the macro was only invoked conditionally." >&2;}
14232
   { (exit 1); exit 1; }; }
14233
fi
14234
 
14235
: ${CONFIG_STATUS=./config.status}
14236
ac_clean_files_save=$ac_clean_files
14237
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14238
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14239
echo "$as_me: creating $CONFIG_STATUS" >&6;}
14240
cat >$CONFIG_STATUS <<_ACEOF
14241
#! $SHELL
14242
# Generated by $as_me.
14243
# Run this file to recreate the current configuration.
14244
# Compiler output produced by configure, useful for debugging
14245
# configure, is in config.log if it exists.
14246
 
14247
debug=false
14248
ac_cs_recheck=false
14249
ac_cs_silent=false
14250
SHELL=\${CONFIG_SHELL-$SHELL}
14251
_ACEOF
14252
 
14253
cat >>$CONFIG_STATUS <<\_ACEOF
14254
## --------------------- ##
14255
## M4sh Initialization.  ##
14256
## --------------------- ##
14257
 
14258
# Be Bourne compatible
14259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14260
  emulate sh
14261
  NULLCMD=:
14262
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14263
  # is contrary to our usage.  Disable this feature.
14264
  alias -g '${1+"$@"}'='"$@"'
14265
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14266
  set -o posix
14267
fi
14268
DUALCASE=1; export DUALCASE # for MKS sh
14269
 
14270
# Support unset when possible.
14271
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14272
  as_unset=unset
14273
else
14274
  as_unset=false
14275
fi
14276
 
14277
 
14278
# Work around bugs in pre-3.0 UWIN ksh.
14279
$as_unset ENV MAIL MAILPATH
14280
PS1='$ '
14281
PS2='> '
14282
PS4='+ '
14283
 
14284
# NLS nuisances.
14285
for as_var in \
14286
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14287
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14288
  LC_TELEPHONE LC_TIME
14289
do
14290
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14291
    eval $as_var=C; export $as_var
14292
  else
14293
    $as_unset $as_var
14294
  fi
14295
done
14296
 
14297
# Required to use basename.
14298
if expr a : '\(a\)' >/dev/null 2>&1; then
14299
  as_expr=expr
14300
else
14301
  as_expr=false
14302
fi
14303
 
14304
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14305
  as_basename=basename
14306
else
14307
  as_basename=false
14308
fi
14309
 
14310
 
14311
# Name of the executable.
14312
as_me=`$as_basename "$0" ||
14313
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14314
         X"$0" : 'X\(//\)$' \| \
14315
         X"$0" : 'X\(/\)$' \| \
14316
         .     : '\(.\)' 2>/dev/null ||
14317
echo X/"$0" |
14318
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14319
          /^X\/\(\/\/\)$/{ s//\1/; q; }
14320
          /^X\/\(\/\).*/{ s//\1/; q; }
14321
          s/.*/./; q'`
14322
 
14323
 
14324
# PATH needs CR, and LINENO needs CR and PATH.
14325
# Avoid depending upon Character Ranges.
14326
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14327
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14328
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14329
as_cr_digits='0123456789'
14330
as_cr_alnum=$as_cr_Letters$as_cr_digits
14331
 
14332
# The user is always right.
14333
if test "${PATH_SEPARATOR+set}" != set; then
14334
  echo "#! /bin/sh" >conf$$.sh
14335
  echo  "exit 0"   >>conf$$.sh
14336
  chmod +x conf$$.sh
14337
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14338
    PATH_SEPARATOR=';'
14339
  else
14340
    PATH_SEPARATOR=:
14341
  fi
14342
  rm -f conf$$.sh
14343
fi
14344
 
14345
 
14346
  as_lineno_1=$LINENO
14347
  as_lineno_2=$LINENO
14348
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14349
  test "x$as_lineno_1" != "x$as_lineno_2" &&
14350
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14351
  # Find who we are.  Look in the path if we contain no path at all
14352
  # relative or not.
14353
  case $0 in
14354
    *[\\/]* ) as_myself=$0 ;;
14355
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14356
for as_dir in $PATH
14357
do
14358
  IFS=$as_save_IFS
14359
  test -z "$as_dir" && as_dir=.
14360
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14361
done
14362
 
14363
       ;;
14364
  esac
14365
  # We did not find ourselves, most probably we were run as `sh COMMAND'
14366
  # in which case we are not to be found in the path.
14367
  if test "x$as_myself" = x; then
14368
    as_myself=$0
14369
  fi
14370
  if test ! -f "$as_myself"; then
14371
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14372
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14373
   { (exit 1); exit 1; }; }
14374
  fi
14375
  case $CONFIG_SHELL in
14376
  '')
14377
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14378
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14379
do
14380
  IFS=$as_save_IFS
14381
  test -z "$as_dir" && as_dir=.
14382
  for as_base in sh bash ksh sh5; do
14383
         case $as_dir in
14384
         /*)
14385
           if ("$as_dir/$as_base" -c '
14386
  as_lineno_1=$LINENO
14387
  as_lineno_2=$LINENO
14388
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14389
  test "x$as_lineno_1" != "x$as_lineno_2" &&
14390
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14391
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14392
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14393
             CONFIG_SHELL=$as_dir/$as_base
14394
             export CONFIG_SHELL
14395
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14396
           fi;;
14397
         esac
14398
       done
14399
done
14400
;;
14401
  esac
14402
 
14403
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14404
  # uniformly replaced by the line number.  The first 'sed' inserts a
14405
  # line-number line before each line; the second 'sed' does the real
14406
  # work.  The second script uses 'N' to pair each line-number line
14407
  # with the numbered line, and appends trailing '-' during
14408
  # substitution so that $LINENO is not a special case at line end.
14409
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14410
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14411
  sed '=' <$as_myself |
14412
    sed '
14413
      N
14414
      s,$,-,
14415
      : loop
14416
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14417
      t loop
14418
      s,-$,,
14419
      s,^['$as_cr_digits']*\n,,
14420
    ' >$as_me.lineno &&
14421
  chmod +x $as_me.lineno ||
14422
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14423
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14424
   { (exit 1); exit 1; }; }
14425
 
14426
  # Don't try to exec as it changes $[0], causing all sort of problems
14427
  # (the dirname of $[0] is not the place where we might find the
14428
  # original and so on.  Autoconf is especially sensible to this).
14429
  . ./$as_me.lineno
14430
  # Exit status is that of the last command.
14431
  exit
14432
}
14433
 
14434
 
14435
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14436
  *c*,-n*) ECHO_N= ECHO_C='
14437
' ECHO_T='      ' ;;
14438
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14439
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
14440
esac
14441
 
14442
if expr a : '\(a\)' >/dev/null 2>&1; then
14443
  as_expr=expr
14444
else
14445
  as_expr=false
14446
fi
14447
 
14448
rm -f conf$$ conf$$.exe conf$$.file
14449
echo >conf$$.file
14450
if ln -s conf$$.file conf$$ 2>/dev/null; then
14451
  # We could just check for DJGPP; but this test a) works b) is more generic
14452
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14453
  if test -f conf$$.exe; then
14454
    # Don't use ln at all; we don't have any links
14455
    as_ln_s='cp -p'
14456
  else
14457
    as_ln_s='ln -s'
14458
  fi
14459
elif ln conf$$.file conf$$ 2>/dev/null; then
14460
  as_ln_s=ln
14461
else
14462
  as_ln_s='cp -p'
14463
fi
14464
rm -f conf$$ conf$$.exe conf$$.file
14465
 
14466
if mkdir -p . 2>/dev/null; then
14467
  as_mkdir_p=:
14468
else
14469
  test -d ./-p && rmdir ./-p
14470
  as_mkdir_p=false
14471
fi
14472
 
14473
as_executable_p="test -f"
14474
 
14475
# Sed expression to map a string onto a valid CPP name.
14476
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14477
 
14478
# Sed expression to map a string onto a valid variable name.
14479
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14480
 
14481
 
14482
# IFS
14483
# We need space, tab and new line, in precisely that order.
14484
as_nl='
14485
'
14486
IFS="   $as_nl"
14487
 
14488
# CDPATH.
14489
$as_unset CDPATH
14490
 
14491
exec 6>&1
14492
 
14493
# Open the log real soon, to keep \$[0] and so on meaningful, and to
14494
# report actual input values of CONFIG_FILES etc. instead of their
14495
# values after options handling.  Logging --version etc. is OK.
14496
exec 5>>config.log
14497
{
14498
  echo
14499
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14500
## Running $as_me. ##
14501
_ASBOX
14502
} >&5
14503
cat >&5 <<_CSEOF
14504
 
14505
This file was extended by $as_me, which was
14506
generated by GNU Autoconf 2.59.  Invocation command line was
14507
 
14508
  CONFIG_FILES    = $CONFIG_FILES
14509
  CONFIG_HEADERS  = $CONFIG_HEADERS
14510
  CONFIG_LINKS    = $CONFIG_LINKS
14511
  CONFIG_COMMANDS = $CONFIG_COMMANDS
14512
  $ $0 $@
14513
 
14514
_CSEOF
14515
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14516
echo >&5
14517
_ACEOF
14518
 
14519
# Files that config.status was made for.
14520
if test -n "$ac_config_files"; then
14521
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14522
fi
14523
 
14524
if test -n "$ac_config_headers"; then
14525
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14526
fi
14527
 
14528
if test -n "$ac_config_links"; then
14529
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14530
fi
14531
 
14532
if test -n "$ac_config_commands"; then
14533
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14534
fi
14535
 
14536
cat >>$CONFIG_STATUS <<\_ACEOF
14537
 
14538
ac_cs_usage="\
14539
\`$as_me' instantiates files from templates according to the
14540
current configuration.
14541
 
14542
Usage: $0 [OPTIONS] [FILE]...
14543
 
14544
  -h, --help       print this help, then exit
14545
  -V, --version    print version number, then exit
14546
  -q, --quiet      do not print progress messages
14547
  -d, --debug      don't remove temporary files
14548
      --recheck    update $as_me by reconfiguring in the same conditions
14549
  --file=FILE[:TEMPLATE]
14550
                   instantiate the configuration file FILE
14551
  --header=FILE[:TEMPLATE]
14552
                   instantiate the configuration header FILE
14553
 
14554
Configuration files:
14555
$config_files
14556
 
14557
Configuration headers:
14558
$config_headers
14559
 
14560
Configuration commands:
14561
$config_commands
14562
 
14563
Report bugs to ."
14564
_ACEOF
14565
 
14566
cat >>$CONFIG_STATUS <<_ACEOF
14567
ac_cs_version="\\
14568
config.status
14569
configured by $0, generated by GNU Autoconf 2.59,
14570
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14571
 
14572
Copyright (C) 2003 Free Software Foundation, Inc.
14573
This config.status script is free software; the Free Software Foundation
14574
gives unlimited permission to copy, distribute and modify it."
14575
srcdir=$srcdir
14576
INSTALL="$INSTALL"
14577
_ACEOF
14578
 
14579
cat >>$CONFIG_STATUS <<\_ACEOF
14580
# If no file are specified by the user, then we need to provide default
14581
# value.  By we need to know if files were specified by the user.
14582
ac_need_defaults=:
14583
while test $# != 0
14584
do
14585
  case $1 in
14586
  --*=*)
14587
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
14588
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14589
    ac_shift=:
14590
    ;;
14591
  -*)
14592
    ac_option=$1
14593
    ac_optarg=$2
14594
    ac_shift=shift
14595
    ;;
14596
  *) # This is not an option, so the user has probably given explicit
14597
     # arguments.
14598
     ac_option=$1
14599
     ac_need_defaults=false;;
14600
  esac
14601
 
14602
  case $ac_option in
14603
  # Handling of the options.
14604
_ACEOF
14605
cat >>$CONFIG_STATUS <<\_ACEOF
14606
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14607
    ac_cs_recheck=: ;;
14608
  --version | --vers* | -V )
14609
    echo "$ac_cs_version"; exit 0 ;;
14610
  --he | --h)
14611
    # Conflict between --help and --header
14612
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
14613
Try \`$0 --help' for more information." >&5
14614
echo "$as_me: error: ambiguous option: $1
14615
Try \`$0 --help' for more information." >&2;}
14616
   { (exit 1); exit 1; }; };;
14617
  --help | --hel | -h )
14618
    echo "$ac_cs_usage"; exit 0 ;;
14619
  --debug | --d* | -d )
14620
    debug=: ;;
14621
  --file | --fil | --fi | --f )
14622
    $ac_shift
14623
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14624
    ac_need_defaults=false;;
14625
  --header | --heade | --head | --hea )
14626
    $ac_shift
14627
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14628
    ac_need_defaults=false;;
14629
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14630
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14631
    ac_cs_silent=: ;;
14632
 
14633
  # This is an error.
14634
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14635
Try \`$0 --help' for more information." >&5
14636
echo "$as_me: error: unrecognized option: $1
14637
Try \`$0 --help' for more information." >&2;}
14638
   { (exit 1); exit 1; }; } ;;
14639
 
14640
  *) ac_config_targets="$ac_config_targets $1" ;;
14641
 
14642
  esac
14643
  shift
14644
done
14645
 
14646
ac_configure_extra_args=
14647
 
14648
if $ac_cs_silent; then
14649
  exec 6>/dev/null
14650
  ac_configure_extra_args="$ac_configure_extra_args --silent"
14651
fi
14652
 
14653
_ACEOF
14654
cat >>$CONFIG_STATUS <<_ACEOF
14655
if \$ac_cs_recheck; then
14656
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14657
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14658
fi
14659
 
14660
_ACEOF
14661
 
14662
cat >>$CONFIG_STATUS <<_ACEOF
14663
#
14664
# INIT-COMMANDS section.
14665
#
14666
 
14667
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14668
 
14669
 
14670
# The HP-UX ksh and POSIX shell print the target directory to stdout
14671
# if CDPATH is set.
14672
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14673
 
14674
sed_quote_subst='$sed_quote_subst'
14675
double_quote_subst='$double_quote_subst'
14676
delay_variable_subst='$delay_variable_subst'
14677
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14678
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14679
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14680
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14681
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14682
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14683
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14684
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14685
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14686
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14687
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14688
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14689
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14690
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14691
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14692
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14693
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14694
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14695
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14696
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14697
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14698
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14699
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14700
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14701
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14702
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14703
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14704
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14705
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14706
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14707
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14708
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14709
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14710
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14711
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14712
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14713
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14714
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14715
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14716
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14717
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14718
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14719
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14720
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14721
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14722
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14723
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14724
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14725
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14726
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14727
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14728
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14729
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14730
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14731
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14732
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14733
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14734
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14735
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14736
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14737
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14738
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14739
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14740
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14741
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14742
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14743
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14744
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14745
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14746
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14747
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14748
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14749
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14750
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14751
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14752
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14753
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14754
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14755
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14756
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14757
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14758
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14759
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14760
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14761
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14762
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14763
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14764
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14765
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14766
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14767
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14768
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14769
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14770
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14771
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14772
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14773
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14774
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14775
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14776
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14777
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14778
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14779
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14780
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14781
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14782
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14783
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14784
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14785
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14786
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14787
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14788
 
14789
LTCC='$LTCC'
14790
LTCFLAGS='$LTCFLAGS'
14791
compiler='$compiler_DEFAULT'
14792
 
14793
# Quote evaled strings.
14794
for var in SED \
14795
GREP \
14796
EGREP \
14797
FGREP \
14798
LD \
14799
NM \
14800
LN_S \
14801
lt_SP2NL \
14802
lt_NL2SP \
14803
reload_flag \
14804
deplibs_check_method \
14805
file_magic_cmd \
14806
AR \
14807
AR_FLAGS \
14808
STRIP \
14809
RANLIB \
14810
CC \
14811
CFLAGS \
14812
compiler \
14813
lt_cv_sys_global_symbol_pipe \
14814
lt_cv_sys_global_symbol_to_cdecl \
14815
lt_cv_sys_global_symbol_to_c_name_address \
14816
SHELL \
14817
ECHO \
14818
lt_prog_compiler_no_builtin_flag \
14819
lt_prog_compiler_wl \
14820
lt_prog_compiler_pic \
14821
lt_prog_compiler_static \
14822
lt_cv_prog_compiler_c_o \
14823
need_locks \
14824
shrext_cmds \
14825
export_dynamic_flag_spec \
14826
whole_archive_flag_spec \
14827
compiler_needs_object \
14828
with_gnu_ld \
14829
allow_undefined_flag \
14830
no_undefined_flag \
14831
hardcode_libdir_flag_spec \
14832
hardcode_libdir_flag_spec_ld \
14833
hardcode_libdir_separator \
14834
fix_srcfile_path \
14835
exclude_expsyms \
14836
include_expsyms \
14837
file_list_spec \
14838
variables_saved_for_relink \
14839
libname_spec \
14840
library_names_spec \
14841
soname_spec \
14842
finish_eval \
14843
old_striplib \
14844
striplib; do
14845
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14846
    *[\\\\\\\`\\"\\\$]*)
14847
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14848
      ;;
14849
    *)
14850
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14851
      ;;
14852
    esac
14853
done
14854
 
14855
# Double-quote double-evaled strings.
14856
for var in reload_cmds \
14857
old_postinstall_cmds \
14858
old_postuninstall_cmds \
14859
old_archive_cmds \
14860
extract_expsyms_cmds \
14861
old_archive_from_new_cmds \
14862
old_archive_from_expsyms_cmds \
14863
archive_cmds \
14864
archive_expsym_cmds \
14865
module_cmds \
14866
module_expsym_cmds \
14867
export_symbols_cmds \
14868
prelink_cmds \
14869
postinstall_cmds \
14870
postuninstall_cmds \
14871
finish_cmds \
14872
sys_lib_search_path_spec \
14873
sys_lib_dlsearch_path_spec; do
14874
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14875
    *[\\\\\\\`\\"\\\$]*)
14876
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14877
      ;;
14878
    *)
14879
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14880
      ;;
14881
    esac
14882
done
14883
 
14884
# Fix-up fallback echo if it was mangled by the above quoting rules.
14885
case \$lt_ECHO in
14886
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14887
  ;;
14888
esac
14889
 
14890
ac_aux_dir='$ac_aux_dir'
14891
xsi_shell='$xsi_shell'
14892
lt_shell_append='$lt_shell_append'
14893
 
14894
# See if we are running on zsh, and set the options which allow our
14895
# commands through without removal of \ escapes INIT.
14896
if test -n "\${ZSH_VERSION+set}" ; then
14897
   setopt NO_GLOB_SUBST
14898
fi
14899
 
14900
 
14901
    PACKAGE='$PACKAGE'
14902
    VERSION='$VERSION'
14903
    TIMESTAMP='$TIMESTAMP'
14904
    RM='$RM'
14905
    ofile='$ofile'
14906
 
14907
 
14908
 
14909
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14910
    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14911
    # from automake.
14912
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14913
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
14914
    LINGUAS="${LINGUAS-%UNSET%}"
14915
 
14916
target_cpu_type=${target_cpu_type}
14917
 cgen_cpu_prefix=${cgen_cpu_prefix}
14918
 obj_format=${obj_format}
14919
 te_file=${te_file}
14920
 
14921
_ACEOF
14922
 
14923
 
14924
 
14925
cat >>$CONFIG_STATUS <<\_ACEOF
14926
for ac_config_target in $ac_config_targets
14927
do
14928
  case "$ac_config_target" in
14929
  # Handling of arguments.
14930
  "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
14931
  ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14932
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14933
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14934
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14935
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14936
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14937
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14938
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14939
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14940
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14941
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14942
   { (exit 1); exit 1; }; };;
14943
  esac
14944
done
14945
 
14946
# If the user did not use the arguments to specify the items to instantiate,
14947
# then the envvar interface is used.  Set only those that are not.
14948
# We use the long form for the default assignment because of an extremely
14949
# bizarre bug on SunOS 4.1.3.
14950
if $ac_need_defaults; then
14951
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14952
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14953
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14954
fi
14955
 
14956
# Have a temporary directory for convenience.  Make it in the build tree
14957
# simply because there is no reason to put it here, and in addition,
14958
# creating and moving files from /tmp can sometimes cause problems.
14959
# Create a temporary directory, and hook for its removal unless debugging.
14960
$debug ||
14961
{
14962
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14963
  trap '{ (exit 1); exit 1; }' 1 2 13 15
14964
}
14965
 
14966
# Create a (secure) tmp directory for tmp files.
14967
 
14968
{
14969
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14970
  test -n "$tmp" && test -d "$tmp"
14971
}  ||
14972
{
14973
  tmp=./confstat$$-$RANDOM
14974
  (umask 077 && mkdir $tmp)
14975
} ||
14976
{
14977
   echo "$me: cannot create a temporary directory in ." >&2
14978
   { (exit 1); exit 1; }
14979
}
14980
 
14981
_ACEOF
14982
 
14983
cat >>$CONFIG_STATUS <<_ACEOF
14984
 
14985
#
14986
# CONFIG_FILES section.
14987
#
14988
 
14989
# No need to generate the scripts if there are no CONFIG_FILES.
14990
# This happens for instance when ./config.status config.h
14991
if test -n "\$CONFIG_FILES"; then
14992
  # Protect against being on the right side of a sed subst in config.status.
14993
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14994
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14995
s,@SHELL@,$SHELL,;t t
14996
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14997
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14998
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14999
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15000
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15001
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15002
s,@exec_prefix@,$exec_prefix,;t t
15003
s,@prefix@,$prefix,;t t
15004
s,@program_transform_name@,$program_transform_name,;t t
15005
s,@bindir@,$bindir,;t t
15006
s,@sbindir@,$sbindir,;t t
15007
s,@libexecdir@,$libexecdir,;t t
15008
s,@datadir@,$datadir,;t t
15009
s,@sysconfdir@,$sysconfdir,;t t
15010
s,@sharedstatedir@,$sharedstatedir,;t t
15011
s,@localstatedir@,$localstatedir,;t t
15012
s,@libdir@,$libdir,;t t
15013
s,@includedir@,$includedir,;t t
15014
s,@oldincludedir@,$oldincludedir,;t t
15015
s,@infodir@,$infodir,;t t
15016
s,@mandir@,$mandir,;t t
15017
s,@build_alias@,$build_alias,;t t
15018
s,@host_alias@,$host_alias,;t t
15019
s,@target_alias@,$target_alias,;t t
15020
s,@DEFS@,$DEFS,;t t
15021
s,@ECHO_C@,$ECHO_C,;t t
15022
s,@ECHO_N@,$ECHO_N,;t t
15023
s,@ECHO_T@,$ECHO_T,;t t
15024
s,@LIBS@,$LIBS,;t t
15025
s,@build@,$build,;t t
15026
s,@build_cpu@,$build_cpu,;t t
15027
s,@build_vendor@,$build_vendor,;t t
15028
s,@build_os@,$build_os,;t t
15029
s,@host@,$host,;t t
15030
s,@host_cpu@,$host_cpu,;t t
15031
s,@host_vendor@,$host_vendor,;t t
15032
s,@host_os@,$host_os,;t t
15033
s,@target@,$target,;t t
15034
s,@target_cpu@,$target_cpu,;t t
15035
s,@target_vendor@,$target_vendor,;t t
15036
s,@target_os@,$target_os,;t t
15037
s,@CC@,$CC,;t t
15038
s,@CFLAGS@,$CFLAGS,;t t
15039
s,@LDFLAGS@,$LDFLAGS,;t t
15040
s,@CPPFLAGS@,$CPPFLAGS,;t t
15041
s,@ac_ct_CC@,$ac_ct_CC,;t t
15042
s,@EXEEXT@,$EXEEXT,;t t
15043
s,@OBJEXT@,$OBJEXT,;t t
15044
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15045
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15046
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15047
s,@CYGPATH_W@,$CYGPATH_W,;t t
15048
s,@PACKAGE@,$PACKAGE,;t t
15049
s,@VERSION@,$VERSION,;t t
15050
s,@ACLOCAL@,$ACLOCAL,;t t
15051
s,@AUTOCONF@,$AUTOCONF,;t t
15052
s,@AUTOMAKE@,$AUTOMAKE,;t t
15053
s,@AUTOHEADER@,$AUTOHEADER,;t t
15054
s,@MAKEINFO@,$MAKEINFO,;t t
15055
s,@install_sh@,$install_sh,;t t
15056
s,@STRIP@,$STRIP,;t t
15057
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15058
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15059
s,@mkdir_p@,$mkdir_p,;t t
15060
s,@AWK@,$AWK,;t t
15061
s,@SET_MAKE@,$SET_MAKE,;t t
15062
s,@am__leading_dot@,$am__leading_dot,;t t
15063
s,@AMTAR@,$AMTAR,;t t
15064
s,@am__tar@,$am__tar,;t t
15065
s,@am__untar@,$am__untar,;t t
15066
s,@DEPDIR@,$DEPDIR,;t t
15067
s,@am__include@,$am__include,;t t
15068
s,@am__quote@,$am__quote,;t t
15069
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15070
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15071
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15072
s,@CCDEPMODE@,$CCDEPMODE,;t t
15073
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15074
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15075
s,@CPP@,$CPP,;t t
15076
s,@EGREP@,$EGREP,;t t
15077
s,@LIBTOOL@,$LIBTOOL,;t t
15078
s,@SED@,$SED,;t t
15079
s,@FGREP@,$FGREP,;t t
15080
s,@GREP@,$GREP,;t t
15081
s,@LD@,$LD,;t t
15082
s,@DUMPBIN@,$DUMPBIN,;t t
15083
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
15084
s,@NM@,$NM,;t t
15085
s,@LN_S@,$LN_S,;t t
15086
s,@AR@,$AR,;t t
15087
s,@ac_ct_AR@,$ac_ct_AR,;t t
15088
s,@RANLIB@,$RANLIB,;t t
15089
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15090
s,@lt_ECHO@,$lt_ECHO,;t t
15091
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15092
s,@NO_WERROR@,$NO_WERROR,;t t
15093
s,@GDBINIT@,$GDBINIT,;t t
15094
s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
15095
s,@extra_objects@,$extra_objects,;t t
15096
s,@target_cpu_type@,$target_cpu_type,;t t
15097
s,@obj_format@,$obj_format,;t t
15098
s,@te_file@,$te_file,;t t
15099
s,@install_tooldir@,$install_tooldir,;t t
15100
s,@atof@,$atof,;t t
15101
s,@OPCODES_LIB@,$OPCODES_LIB,;t t
15102
s,@YACC@,$YACC,;t t
15103
s,@LEX@,$LEX,;t t
15104
s,@LEXLIB@,$LEXLIB,;t t
15105
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15106
s,@USE_NLS@,$USE_NLS,;t t
15107
s,@LIBINTL@,$LIBINTL,;t t
15108
s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
15109
s,@INCINTL@,$INCINTL,;t t
15110
s,@XGETTEXT@,$XGETTEXT,;t t
15111
s,@GMSGFMT@,$GMSGFMT,;t t
15112
s,@POSUB@,$POSUB,;t t
15113
s,@CATALOGS@,$CATALOGS,;t t
15114
s,@DATADIRNAME@,$DATADIRNAME,;t t
15115
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15116
s,@GENCAT@,$GENCAT,;t t
15117
s,@CATOBJEXT@,$CATOBJEXT,;t t
15118
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15119
s,@MSGFMT@,$MSGFMT,;t t
15120
s,@MSGMERGE@,$MSGMERGE,;t t
15121
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15122
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15123
s,@MAINT@,$MAINT,;t t
15124
s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
15125
s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
15126
s,@ALLOCA@,$ALLOCA,;t t
15127
s,@LIBM@,$LIBM,;t t
15128
s,@datarootdir@,$datarootdir,;t t
15129
s,@docdir@,$docdir,;t t
15130
s,@htmldir@,$htmldir,;t t
15131
s,@LIBOBJS@,$LIBOBJS,;t t
15132
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15133
CEOF
15134
 
15135
_ACEOF
15136
 
15137
  cat >>$CONFIG_STATUS <<\_ACEOF
15138
  # Split the substitutions into bite-sized pieces for seds with
15139
  # small command number limits, like on Digital OSF/1 and HP-UX.
15140
  ac_max_sed_lines=48
15141
  ac_sed_frag=1 # Number of current file.
15142
  ac_beg=1 # First line for current file.
15143
  ac_end=$ac_max_sed_lines # Line after last line for current file.
15144
  ac_more_lines=:
15145
  ac_sed_cmds=
15146
  while $ac_more_lines; do
15147
    if test $ac_beg -gt 1; then
15148
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15149
    else
15150
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15151
    fi
15152
    if test ! -s $tmp/subs.frag; then
15153
      ac_more_lines=false
15154
    else
15155
      # The purpose of the label and of the branching condition is to
15156
      # speed up the sed processing (if there are no `@' at all, there
15157
      # is no need to browse any of the substitutions).
15158
      # These are the two extra sed commands mentioned above.
15159
      (echo ':t
15160
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15161
      if test -z "$ac_sed_cmds"; then
15162
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15163
      else
15164
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15165
      fi
15166
      ac_sed_frag=`expr $ac_sed_frag + 1`
15167
      ac_beg=$ac_end
15168
      ac_end=`expr $ac_end + $ac_max_sed_lines`
15169
    fi
15170
  done
15171
  if test -z "$ac_sed_cmds"; then
15172
    ac_sed_cmds=cat
15173
  fi
15174
fi # test -n "$CONFIG_FILES"
15175
 
15176
_ACEOF
15177
cat >>$CONFIG_STATUS <<\_ACEOF
15178
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15179
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15180
  case $ac_file in
15181
  - | *:- | *:-:* ) # input from stdin
15182
        cat >$tmp/stdin
15183
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15184
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15185
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15186
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15187
  * )   ac_file_in=$ac_file.in ;;
15188
  esac
15189
 
15190
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15191
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15192
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15193
         X"$ac_file" : 'X\(//\)[^/]' \| \
15194
         X"$ac_file" : 'X\(//\)$' \| \
15195
         X"$ac_file" : 'X\(/\)' \| \
15196
         .     : '\(.\)' 2>/dev/null ||
15197
echo X"$ac_file" |
15198
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15199
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15200
          /^X\(\/\/\)$/{ s//\1/; q; }
15201
          /^X\(\/\).*/{ s//\1/; q; }
15202
          s/.*/./; q'`
15203
  { if $as_mkdir_p; then
15204
    mkdir -p "$ac_dir"
15205
  else
15206
    as_dir="$ac_dir"
15207
    as_dirs=
15208
    while test ! -d "$as_dir"; do
15209
      as_dirs="$as_dir $as_dirs"
15210
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15211
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15212
         X"$as_dir" : 'X\(//\)[^/]' \| \
15213
         X"$as_dir" : 'X\(//\)$' \| \
15214
         X"$as_dir" : 'X\(/\)' \| \
15215
         .     : '\(.\)' 2>/dev/null ||
15216
echo X"$as_dir" |
15217
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15218
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15219
          /^X\(\/\/\)$/{ s//\1/; q; }
15220
          /^X\(\/\).*/{ s//\1/; q; }
15221
          s/.*/./; q'`
15222
    done
15223
    test ! -n "$as_dirs" || mkdir $as_dirs
15224
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15225
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15226
   { (exit 1); exit 1; }; }; }
15227
 
15228
  ac_builddir=.
15229
 
15230
if test "$ac_dir" != .; then
15231
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15232
  # A "../" for each directory in $ac_dir_suffix.
15233
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15234
else
15235
  ac_dir_suffix= ac_top_builddir=
15236
fi
15237
 
15238
case $srcdir in
15239
  .)  # No --srcdir option.  We are building in place.
15240
    ac_srcdir=.
15241
    if test -z "$ac_top_builddir"; then
15242
       ac_top_srcdir=.
15243
    else
15244
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15245
    fi ;;
15246
  [\\/]* | ?:[\\/]* )  # Absolute path.
15247
    ac_srcdir=$srcdir$ac_dir_suffix;
15248
    ac_top_srcdir=$srcdir ;;
15249
  *) # Relative path.
15250
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15251
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
15252
esac
15253
 
15254
# Do not use `cd foo && pwd` to compute absolute paths, because
15255
# the directories may not exist.
15256
case `pwd` in
15257
.) ac_abs_builddir="$ac_dir";;
15258
*)
15259
  case "$ac_dir" in
15260
  .) ac_abs_builddir=`pwd`;;
15261
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15262
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
15263
  esac;;
15264
esac
15265
case $ac_abs_builddir in
15266
.) ac_abs_top_builddir=${ac_top_builddir}.;;
15267
*)
15268
  case ${ac_top_builddir}. in
15269
  .) ac_abs_top_builddir=$ac_abs_builddir;;
15270
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15271
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15272
  esac;;
15273
esac
15274
case $ac_abs_builddir in
15275
.) ac_abs_srcdir=$ac_srcdir;;
15276
*)
15277
  case $ac_srcdir in
15278
  .) ac_abs_srcdir=$ac_abs_builddir;;
15279
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15280
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15281
  esac;;
15282
esac
15283
case $ac_abs_builddir in
15284
.) ac_abs_top_srcdir=$ac_top_srcdir;;
15285
*)
15286
  case $ac_top_srcdir in
15287
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
15288
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15289
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15290
  esac;;
15291
esac
15292
 
15293
 
15294
  case $INSTALL in
15295
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15296
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15297
  esac
15298
 
15299
  if test x"$ac_file" != x-; then
15300
    { echo "$as_me:$LINENO: creating $ac_file" >&5
15301
echo "$as_me: creating $ac_file" >&6;}
15302
    rm -f "$ac_file"
15303
  fi
15304
  # Let's still pretend it is `configure' which instantiates (i.e., don't
15305
  # use $as_me), people would be surprised to read:
15306
  #    /* config.h.  Generated by config.status.  */
15307
  if test x"$ac_file" = x-; then
15308
    configure_input=
15309
  else
15310
    configure_input="$ac_file.  "
15311
  fi
15312
  configure_input=$configure_input"Generated from `echo $ac_file_in |
15313
                                     sed 's,.*/,,'` by configure."
15314
 
15315
  # First look for the input files in the build tree, otherwise in the
15316
  # src tree.
15317
  ac_file_inputs=`IFS=:
15318
    for f in $ac_file_in; do
15319
      case $f in
15320
      -) echo $tmp/stdin ;;
15321
      [\\/$]*)
15322
         # Absolute (can't be DOS-style, as IFS=:)
15323
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15324
echo "$as_me: error: cannot find input file: $f" >&2;}
15325
   { (exit 1); exit 1; }; }
15326
         echo "$f";;
15327
      *) # Relative
15328
         if test -f "$f"; then
15329
           # Build tree
15330
           echo "$f"
15331
         elif test -f "$srcdir/$f"; then
15332
           # Source tree
15333
           echo "$srcdir/$f"
15334
         else
15335
           # /dev/null tree
15336
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15337
echo "$as_me: error: cannot find input file: $f" >&2;}
15338
   { (exit 1); exit 1; }; }
15339
         fi;;
15340
      esac
15341
    done` || { (exit 1); exit 1; }
15342
_ACEOF
15343
cat >>$CONFIG_STATUS <<_ACEOF
15344
  sed "$ac_vpsub
15345
$extrasub
15346
_ACEOF
15347
cat >>$CONFIG_STATUS <<\_ACEOF
15348
:t
15349
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15350
s,@configure_input@,$configure_input,;t t
15351
s,@srcdir@,$ac_srcdir,;t t
15352
s,@abs_srcdir@,$ac_abs_srcdir,;t t
15353
s,@top_srcdir@,$ac_top_srcdir,;t t
15354
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15355
s,@builddir@,$ac_builddir,;t t
15356
s,@abs_builddir@,$ac_abs_builddir,;t t
15357
s,@top_builddir@,$ac_top_builddir,;t t
15358
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15359
s,@INSTALL@,$ac_INSTALL,;t t
15360
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15361
  rm -f $tmp/stdin
15362
  if test x"$ac_file" != x-; then
15363
    mv $tmp/out $ac_file
15364
  else
15365
    cat $tmp/out
15366
    rm -f $tmp/out
15367
  fi
15368
 
15369
done
15370
_ACEOF
15371
cat >>$CONFIG_STATUS <<\_ACEOF
15372
 
15373
#
15374
# CONFIG_HEADER section.
15375
#
15376
 
15377
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15378
# NAME is the cpp macro being defined and VALUE is the value it is being given.
15379
#
15380
# ac_d sets the value in "#define NAME VALUE" lines.
15381
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
15382
ac_dB='[         ].*$,\1#\2'
15383
ac_dC=' '
15384
ac_dD=',;t'
15385
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15386
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15387
ac_uB='$,\1#\2define\3'
15388
ac_uC=' '
15389
ac_uD=',;t'
15390
 
15391
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15392
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15393
  case $ac_file in
15394
  - | *:- | *:-:* ) # input from stdin
15395
        cat >$tmp/stdin
15396
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15397
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15398
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15399
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15400
  * )   ac_file_in=$ac_file.in ;;
15401
  esac
15402
 
15403
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15404
echo "$as_me: creating $ac_file" >&6;}
15405
 
15406
  # First look for the input files in the build tree, otherwise in the
15407
  # src tree.
15408
  ac_file_inputs=`IFS=:
15409
    for f in $ac_file_in; do
15410
      case $f in
15411
      -) echo $tmp/stdin ;;
15412
      [\\/$]*)
15413
         # Absolute (can't be DOS-style, as IFS=:)
15414
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15415
echo "$as_me: error: cannot find input file: $f" >&2;}
15416
   { (exit 1); exit 1; }; }
15417
         # Do quote $f, to prevent DOS paths from being IFS'd.
15418
         echo "$f";;
15419
      *) # Relative
15420
         if test -f "$f"; then
15421
           # Build tree
15422
           echo "$f"
15423
         elif test -f "$srcdir/$f"; then
15424
           # Source tree
15425
           echo "$srcdir/$f"
15426
         else
15427
           # /dev/null tree
15428
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15429
echo "$as_me: error: cannot find input file: $f" >&2;}
15430
   { (exit 1); exit 1; }; }
15431
         fi;;
15432
      esac
15433
    done` || { (exit 1); exit 1; }
15434
  # Remove the trailing spaces.
15435
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
15436
 
15437
_ACEOF
15438
 
15439
# Transform confdefs.h into two sed scripts, `conftest.defines' and
15440
# `conftest.undefs', that substitutes the proper values into
15441
# config.h.in to produce config.h.  The first handles `#define'
15442
# templates, and the second `#undef' templates.
15443
# And first: Protect against being on the right side of a sed subst in
15444
# config.status.  Protect against being in an unquoted here document
15445
# in config.status.
15446
rm -f conftest.defines conftest.undefs
15447
# Using a here document instead of a string reduces the quoting nightmare.
15448
# Putting comments in sed scripts is not portable.
15449
#
15450
# `end' is used to avoid that the second main sed command (meant for
15451
# 0-ary CPP macros) applies to n-ary macro definitions.
15452
# See the Autoconf documentation for `clear'.
15453
cat >confdef2sed.sed <<\_ACEOF
15454
s/[\\&,]/\\&/g
15455
s,[\\$`],\\&,g
15456
t clear
15457
: clear
15458
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15459
t end
15460
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15461
: end
15462
_ACEOF
15463
# If some macros were called several times there might be several times
15464
# the same #defines, which is useless.  Nevertheless, we may not want to
15465
# sort them, since we want the *last* AC-DEFINE to be honored.
15466
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15467
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15468
rm -f confdef2sed.sed
15469
 
15470
# This sed command replaces #undef with comments.  This is necessary, for
15471
# example, in the case of _POSIX_SOURCE, which is predefined and required
15472
# on some systems where configure will not decide to define it.
15473
cat >>conftest.undefs <<\_ACEOF
15474
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15475
_ACEOF
15476
 
15477
# Break up conftest.defines because some shells have a limit on the size
15478
# of here documents, and old seds have small limits too (100 cmds).
15479
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15480
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15481
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15482
echo '  :' >>$CONFIG_STATUS
15483
rm -f conftest.tail
15484
while grep . conftest.defines >/dev/null
15485
do
15486
  # Write a limited-size here document to $tmp/defines.sed.
15487
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
15488
  # Speed up: don't consider the non `#define' lines.
15489
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
15490
  # Work around the forget-to-reset-the-flag bug.
15491
  echo 't clr' >>$CONFIG_STATUS
15492
  echo ': clr' >>$CONFIG_STATUS
15493
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15494
  echo 'CEOF
15495
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
15496
  rm -f $tmp/in
15497
  mv $tmp/out $tmp/in
15498
' >>$CONFIG_STATUS
15499
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15500
  rm -f conftest.defines
15501
  mv conftest.tail conftest.defines
15502
done
15503
rm -f conftest.defines
15504
echo '  fi # grep' >>$CONFIG_STATUS
15505
echo >>$CONFIG_STATUS
15506
 
15507
# Break up conftest.undefs because some shells have a limit on the size
15508
# of here documents, and old seds have small limits too (100 cmds).
15509
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15510
rm -f conftest.tail
15511
while grep . conftest.undefs >/dev/null
15512
do
15513
  # Write a limited-size here document to $tmp/undefs.sed.
15514
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
15515
  # Speed up: don't consider the non `#undef'
15516
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15517
  # Work around the forget-to-reset-the-flag bug.
15518
  echo 't clr' >>$CONFIG_STATUS
15519
  echo ': clr' >>$CONFIG_STATUS
15520
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15521
  echo 'CEOF
15522
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15523
  rm -f $tmp/in
15524
  mv $tmp/out $tmp/in
15525
' >>$CONFIG_STATUS
15526
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15527
  rm -f conftest.undefs
15528
  mv conftest.tail conftest.undefs
15529
done
15530
rm -f conftest.undefs
15531
 
15532
cat >>$CONFIG_STATUS <<\_ACEOF
15533
  # Let's still pretend it is `configure' which instantiates (i.e., don't
15534
  # use $as_me), people would be surprised to read:
15535
  #    /* config.h.  Generated by config.status.  */
15536
  if test x"$ac_file" = x-; then
15537
    echo "/* Generated by configure.  */" >$tmp/config.h
15538
  else
15539
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15540
  fi
15541
  cat $tmp/in >>$tmp/config.h
15542
  rm -f $tmp/in
15543
  if test x"$ac_file" != x-; then
15544
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15545
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15546
echo "$as_me: $ac_file is unchanged" >&6;}
15547
    else
15548
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15549
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15550
         X"$ac_file" : 'X\(//\)[^/]' \| \
15551
         X"$ac_file" : 'X\(//\)$' \| \
15552
         X"$ac_file" : 'X\(/\)' \| \
15553
         .     : '\(.\)' 2>/dev/null ||
15554
echo X"$ac_file" |
15555
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15556
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15557
          /^X\(\/\/\)$/{ s//\1/; q; }
15558
          /^X\(\/\).*/{ s//\1/; q; }
15559
          s/.*/./; q'`
15560
      { if $as_mkdir_p; then
15561
    mkdir -p "$ac_dir"
15562
  else
15563
    as_dir="$ac_dir"
15564
    as_dirs=
15565
    while test ! -d "$as_dir"; do
15566
      as_dirs="$as_dir $as_dirs"
15567
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15568
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15569
         X"$as_dir" : 'X\(//\)[^/]' \| \
15570
         X"$as_dir" : 'X\(//\)$' \| \
15571
         X"$as_dir" : 'X\(/\)' \| \
15572
         .     : '\(.\)' 2>/dev/null ||
15573
echo X"$as_dir" |
15574
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15575
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15576
          /^X\(\/\/\)$/{ s//\1/; q; }
15577
          /^X\(\/\).*/{ s//\1/; q; }
15578
          s/.*/./; q'`
15579
    done
15580
    test ! -n "$as_dirs" || mkdir $as_dirs
15581
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15582
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15583
   { (exit 1); exit 1; }; }; }
15584
 
15585
      rm -f $ac_file
15586
      mv $tmp/config.h $ac_file
15587
    fi
15588
  else
15589
    cat $tmp/config.h
15590
    rm -f $tmp/config.h
15591
  fi
15592
# Compute $ac_file's index in $config_headers.
15593
_am_stamp_count=1
15594
for _am_header in $config_headers :; do
15595
  case $_am_header in
15596
    $ac_file | $ac_file:* )
15597
      break ;;
15598
    * )
15599
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15600
  esac
15601
done
15602
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15603
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15604
         X$ac_file : 'X\(//\)[^/]' \| \
15605
         X$ac_file : 'X\(//\)$' \| \
15606
         X$ac_file : 'X\(/\)' \| \
15607
         .     : '\(.\)' 2>/dev/null ||
15608
echo X$ac_file |
15609
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15610
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15611
          /^X\(\/\/\)$/{ s//\1/; q; }
15612
          /^X\(\/\).*/{ s//\1/; q; }
15613
          s/.*/./; q'`/stamp-h$_am_stamp_count
15614
done
15615
_ACEOF
15616
cat >>$CONFIG_STATUS <<\_ACEOF
15617
 
15618
#
15619
# CONFIG_COMMANDS section.
15620
#
15621
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15622
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15623
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15624
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15625
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15626
         X"$ac_dest" : 'X\(//\)[^/]' \| \
15627
         X"$ac_dest" : 'X\(//\)$' \| \
15628
         X"$ac_dest" : 'X\(/\)' \| \
15629
         .     : '\(.\)' 2>/dev/null ||
15630
echo X"$ac_dest" |
15631
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15632
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15633
          /^X\(\/\/\)$/{ s//\1/; q; }
15634
          /^X\(\/\).*/{ s//\1/; q; }
15635
          s/.*/./; q'`
15636
  { if $as_mkdir_p; then
15637
    mkdir -p "$ac_dir"
15638
  else
15639
    as_dir="$ac_dir"
15640
    as_dirs=
15641
    while test ! -d "$as_dir"; do
15642
      as_dirs="$as_dir $as_dirs"
15643
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15644
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15645
         X"$as_dir" : 'X\(//\)[^/]' \| \
15646
         X"$as_dir" : 'X\(//\)$' \| \
15647
         X"$as_dir" : 'X\(/\)' \| \
15648
         .     : '\(.\)' 2>/dev/null ||
15649
echo X"$as_dir" |
15650
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15651
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15652
          /^X\(\/\/\)$/{ s//\1/; q; }
15653
          /^X\(\/\).*/{ s//\1/; q; }
15654
          s/.*/./; q'`
15655
    done
15656
    test ! -n "$as_dirs" || mkdir $as_dirs
15657
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15658
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15659
   { (exit 1); exit 1; }; }; }
15660
 
15661
  ac_builddir=.
15662
 
15663
if test "$ac_dir" != .; then
15664
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15665
  # A "../" for each directory in $ac_dir_suffix.
15666
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15667
else
15668
  ac_dir_suffix= ac_top_builddir=
15669
fi
15670
 
15671
case $srcdir in
15672
  .)  # No --srcdir option.  We are building in place.
15673
    ac_srcdir=.
15674
    if test -z "$ac_top_builddir"; then
15675
       ac_top_srcdir=.
15676
    else
15677
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15678
    fi ;;
15679
  [\\/]* | ?:[\\/]* )  # Absolute path.
15680
    ac_srcdir=$srcdir$ac_dir_suffix;
15681
    ac_top_srcdir=$srcdir ;;
15682
  *) # Relative path.
15683
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15684
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
15685
esac
15686
 
15687
# Do not use `cd foo && pwd` to compute absolute paths, because
15688
# the directories may not exist.
15689
case `pwd` in
15690
.) ac_abs_builddir="$ac_dir";;
15691
*)
15692
  case "$ac_dir" in
15693
  .) ac_abs_builddir=`pwd`;;
15694
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15695
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
15696
  esac;;
15697
esac
15698
case $ac_abs_builddir in
15699
.) ac_abs_top_builddir=${ac_top_builddir}.;;
15700
*)
15701
  case ${ac_top_builddir}. in
15702
  .) ac_abs_top_builddir=$ac_abs_builddir;;
15703
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15704
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15705
  esac;;
15706
esac
15707
case $ac_abs_builddir in
15708
.) ac_abs_srcdir=$ac_srcdir;;
15709
*)
15710
  case $ac_srcdir in
15711
  .) ac_abs_srcdir=$ac_abs_builddir;;
15712
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15713
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15714
  esac;;
15715
esac
15716
case $ac_abs_builddir in
15717
.) ac_abs_top_srcdir=$ac_top_srcdir;;
15718
*)
15719
  case $ac_top_srcdir in
15720
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
15721
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15722
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15723
  esac;;
15724
esac
15725
 
15726
 
15727
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15728
echo "$as_me: executing $ac_dest commands" >&6;}
15729
  case $ac_dest in
15730
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15731
  # Strip MF so we end up with the name of the file.
15732
  mf=`echo "$mf" | sed -e 's/:.*$//'`
15733
  # Check whether this is an Automake generated Makefile or not.
15734
  # We used to match only the files named `Makefile.in', but
15735
  # some people rename them; so instead we look at the file content.
15736
  # Grep'ing the first line is not enough: some people post-process
15737
  # each Makefile.in and add a new line on top of each file to say so.
15738
  # So let's grep whole file.
15739
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15740
    dirpart=`(dirname "$mf") 2>/dev/null ||
15741
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15742
         X"$mf" : 'X\(//\)[^/]' \| \
15743
         X"$mf" : 'X\(//\)$' \| \
15744
         X"$mf" : 'X\(/\)' \| \
15745
         .     : '\(.\)' 2>/dev/null ||
15746
echo X"$mf" |
15747
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15748
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15749
          /^X\(\/\/\)$/{ s//\1/; q; }
15750
          /^X\(\/\).*/{ s//\1/; q; }
15751
          s/.*/./; q'`
15752
  else
15753
    continue
15754
  fi
15755
  # Extract the definition of DEPDIR, am__include, and am__quote
15756
  # from the Makefile without running `make'.
15757
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15758
  test -z "$DEPDIR" && continue
15759
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
15760
  test -z "am__include" && continue
15761
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15762
  # When using ansi2knr, U may be empty or an underscore; expand it
15763
  U=`sed -n 's/^U = //p' < "$mf"`
15764
  # Find all dependency output files, they are included files with
15765
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
15766
  # simplest approach to changing $(DEPDIR) to its actual value in the
15767
  # expansion.
15768
  for file in `sed -n "
15769
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15770
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15771
    # Make sure the directory exists.
15772
    test -f "$dirpart/$file" && continue
15773
    fdir=`(dirname "$file") 2>/dev/null ||
15774
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15775
         X"$file" : 'X\(//\)[^/]' \| \
15776
         X"$file" : 'X\(//\)$' \| \
15777
         X"$file" : 'X\(/\)' \| \
15778
         .     : '\(.\)' 2>/dev/null ||
15779
echo X"$file" |
15780
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15781
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15782
          /^X\(\/\/\)$/{ s//\1/; q; }
15783
          /^X\(\/\).*/{ s//\1/; q; }
15784
          s/.*/./; q'`
15785
    { if $as_mkdir_p; then
15786
    mkdir -p $dirpart/$fdir
15787
  else
15788
    as_dir=$dirpart/$fdir
15789
    as_dirs=
15790
    while test ! -d "$as_dir"; do
15791
      as_dirs="$as_dir $as_dirs"
15792
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15793
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15794
         X"$as_dir" : 'X\(//\)[^/]' \| \
15795
         X"$as_dir" : 'X\(//\)$' \| \
15796
         X"$as_dir" : 'X\(/\)' \| \
15797
         .     : '\(.\)' 2>/dev/null ||
15798
echo X"$as_dir" |
15799
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15800
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15801
          /^X\(\/\/\)$/{ s//\1/; q; }
15802
          /^X\(\/\).*/{ s//\1/; q; }
15803
          s/.*/./; q'`
15804
    done
15805
    test ! -n "$as_dirs" || mkdir $as_dirs
15806
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15807
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15808
   { (exit 1); exit 1; }; }; }
15809
 
15810
    # echo "creating $dirpart/$file"
15811
    echo '# dummy' > "$dirpart/$file"
15812
  done
15813
done
15814
 ;;
15815
    libtool )
15816
 
15817
    # See if we are running on zsh, and set the options which allow our
15818
    # commands through without removal of \ escapes.
15819
    if test -n "${ZSH_VERSION+set}" ; then
15820
      setopt NO_GLOB_SUBST
15821
    fi
15822
 
15823
    cfgfile="${ofile}T"
15824
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15825
    $RM "$cfgfile"
15826
 
15827
    cat <<_LT_EOF >> "$cfgfile"
15828
#! $SHELL
15829
 
15830
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15831
# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
15832
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15833
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15834
#
15835
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15836
# 2006, 2007 Free Software Foundation, Inc.
15837
#
15838
# This file is part of GNU Libtool:
15839
# Originally by Gordon Matzigkeit , 1996
15840
#
15841
# This program is free software; you can redistribute it and/or modify
15842
# it under the terms of the GNU General Public License as published by
15843
# the Free Software Foundation; either version 2 of the License, or
15844
# (at your option) any later version.
15845
#
15846
# This program is distributed in the hope that it will be useful, but
15847
# WITHOUT ANY WARRANTY; without even the implied warranty of
15848
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15849
# General Public License for more details.
15850
#
15851
# You should have received a copy of the GNU General Public License
15852
# along with this program; if not, a copy can be downloaded from
15853
# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
15854
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
15855
# MA 02110-1301, USA.
15856
#
15857
# As a special exception to the GNU General Public License, if you
15858
# distribute this file as part of a program that contains a
15859
# configuration script generated by Autoconf, you may include it under
15860
# the same distribution terms that you use for the rest of that program.
15861
 
15862
 
15863
# The names of the tagged configurations supported by this script.
15864
available_tags=""
15865
 
15866
# ### BEGIN LIBTOOL CONFIG
15867
 
15868
# Which release of libtool.m4 was used?
15869
macro_version=$macro_version
15870
macro_revision=$macro_revision
15871
 
15872
# Whether or not to build shared libraries.
15873
build_libtool_libs=$enable_shared
15874
 
15875
# Whether or not to build static libraries.
15876
build_old_libs=$enable_static
15877
 
15878
# What type of objects to build.
15879
pic_mode=$pic_mode
15880
 
15881
# Whether or not to optimize for fast installation.
15882
fast_install=$enable_fast_install
15883
 
15884
# The host system.
15885
host_alias=$host_alias
15886
host=$host
15887
host_os=$host_os
15888
 
15889
# The build system.
15890
build_alias=$build_alias
15891
build=$build
15892
build_os=$build_os
15893
 
15894
# A sed program that does not truncate output.
15895
SED=$lt_SED
15896
 
15897
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15898
Xsed="\$SED -e 1s/^X//"
15899
 
15900
# A grep program that handles long lines.
15901
GREP=$lt_GREP
15902
 
15903
# An ERE matcher.
15904
EGREP=$lt_EGREP
15905
 
15906
# A literal string matcher.
15907
FGREP=$lt_FGREP
15908
 
15909
# A BSD- or MS-compatible name lister.
15910
NM=$lt_NM
15911
 
15912
# Whether we need soft or hard links.
15913
LN_S=$lt_LN_S
15914
 
15915
# What is the maximum length of a command?
15916
max_cmd_len=$max_cmd_len
15917
 
15918
# Object file suffix (normally "o").
15919
objext=$ac_objext
15920
 
15921
# Executable file suffix (normally "").
15922
exeext=$exeext
15923
 
15924
# whether the shell understands "unset".
15925
lt_unset=$lt_unset
15926
 
15927
# turn spaces into newlines.
15928
SP2NL=$lt_lt_SP2NL
15929
 
15930
# turn newlines into spaces.
15931
NL2SP=$lt_lt_NL2SP
15932
 
15933
# How to create reloadable object files.
15934
reload_flag=$lt_reload_flag
15935
reload_cmds=$lt_reload_cmds
15936
 
15937
# Method to check whether dependent libraries are shared objects.
15938
deplibs_check_method=$lt_deplibs_check_method
15939
 
15940
# Command to use when deplibs_check_method == "file_magic".
15941
file_magic_cmd=$lt_file_magic_cmd
15942
 
15943
# The archiver.
15944
AR=$lt_AR
15945
AR_FLAGS=$lt_AR_FLAGS
15946
 
15947
# A symbol stripping program.
15948
STRIP=$lt_STRIP
15949
 
15950
# Commands used to install an old-style archive.
15951
RANLIB=$lt_RANLIB
15952
old_postinstall_cmds=$lt_old_postinstall_cmds
15953
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15954
 
15955
# A C compiler.
15956
LTCC=$lt_CC
15957
 
15958
# LTCC compiler flags.
15959
LTCFLAGS=$lt_CFLAGS
15960
 
15961
# Take the output of nm and produce a listing of raw symbols and C names.
15962
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15963
 
15964
# Transform the output of nm in a proper C declaration.
15965
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15966
 
15967
# Transform the output of nm in a C name address pair.
15968
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15969
 
15970
# The name of the directory that contains temporary libtool files.
15971
objdir=$objdir
15972
 
15973
# Shell to use when invoking shell scripts.
15974
SHELL=$lt_SHELL
15975
 
15976
# An echo program that does not interpret backslashes.
15977
ECHO=$lt_ECHO
15978
 
15979
# Used to examine libraries when file_magic_cmd begins with "file".
15980
MAGIC_CMD=$MAGIC_CMD
15981
 
15982
# Must we lock files when doing compilation?
15983
need_locks=$lt_need_locks
15984
 
15985
# Old archive suffix (normally "a").
15986
libext=$libext
15987
 
15988
# Shared library suffix (normally ".so").
15989
shrext_cmds=$lt_shrext_cmds
15990
 
15991
# The commands to extract the exported symbol list from a shared archive.
15992
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15993
 
15994
# Variables whose values should be saved in libtool wrapper scripts and
15995
# restored at link time.
15996
variables_saved_for_relink=$lt_variables_saved_for_relink
15997
 
15998
# Do we need the "lib" prefix for modules?
15999
need_lib_prefix=$need_lib_prefix
16000
 
16001
# Do we need a version for libraries?
16002
need_version=$need_version
16003
 
16004
# Library versioning type.
16005
version_type=$version_type
16006
 
16007
# Shared library runtime path variable.
16008
runpath_var=$runpath_var
16009
 
16010
# Shared library path variable.
16011
shlibpath_var=$shlibpath_var
16012
 
16013
# Is shlibpath searched before the hard-coded library search path?
16014
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16015
 
16016
# Format of library name prefix.
16017
libname_spec=$lt_libname_spec
16018
 
16019
# List of archive names.  First name is the real one, the rest are links.
16020
# The last name is the one that the linker finds with -lNAME
16021
library_names_spec=$lt_library_names_spec
16022
 
16023
# The coded name of the library, if different from the real name.
16024
soname_spec=$lt_soname_spec
16025
 
16026
# Command to use after installation of a shared archive.
16027
postinstall_cmds=$lt_postinstall_cmds
16028
 
16029
# Command to use after uninstallation of a shared archive.
16030
postuninstall_cmds=$lt_postuninstall_cmds
16031
 
16032
# Commands used to finish a libtool library installation in a directory.
16033
finish_cmds=$lt_finish_cmds
16034
 
16035
# As "finish_cmds", except a single script fragment to be evaled but
16036
# not shown.
16037
finish_eval=$lt_finish_eval
16038
 
16039
# Whether we should hardcode library paths into libraries.
16040
hardcode_into_libs=$hardcode_into_libs
16041
 
16042
# Compile-time system search path for libraries.
16043
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16044
 
16045
# Run-time system search path for libraries.
16046
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16047
 
16048
# Whether dlopen is supported.
16049
dlopen_support=$enable_dlopen
16050
 
16051
# Whether dlopen of programs is supported.
16052
dlopen_self=$enable_dlopen_self
16053
 
16054
# Whether dlopen of statically linked programs is supported.
16055
dlopen_self_static=$enable_dlopen_self_static
16056
 
16057
# Commands to strip libraries.
16058
old_striplib=$lt_old_striplib
16059
striplib=$lt_striplib
16060
 
16061
 
16062
# The linker used to build libraries.
16063
LD=$lt_LD
16064
 
16065
# Commands used to build an old-style archive.
16066
old_archive_cmds=$lt_old_archive_cmds
16067
 
16068
# A language specific compiler.
16069
CC=$lt_compiler
16070
 
16071
# Is the compiler the GNU compiler?
16072
with_gcc=$GCC
16073
 
16074
# Compiler flag to turn off builtin functions.
16075
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16076
 
16077
# How to pass a linker flag through the compiler.
16078
wl=$lt_lt_prog_compiler_wl
16079
 
16080
# Additional compiler flags for building library objects.
16081
pic_flag=$lt_lt_prog_compiler_pic
16082
 
16083
# Compiler flag to prevent dynamic linking.
16084
link_static_flag=$lt_lt_prog_compiler_static
16085
 
16086
# Does compiler simultaneously support -c and -o options?
16087
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16088
 
16089
# Whether or not to add -lc for building shared libraries.
16090
build_libtool_need_lc=$archive_cmds_need_lc
16091
 
16092
# Whether or not to disallow shared libs when runtime libs are static.
16093
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16094
 
16095
# Compiler flag to allow reflexive dlopens.
16096
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16097
 
16098
# Compiler flag to generate shared objects directly from archives.
16099
whole_archive_flag_spec=$lt_whole_archive_flag_spec
16100
 
16101
# Whether the compiler copes with passing no objects directly.
16102
compiler_needs_object=$lt_compiler_needs_object
16103
 
16104
# Create an old-style archive from a shared archive.
16105
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16106
 
16107
# Create a temporary old-style archive to link instead of a shared archive.
16108
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16109
 
16110
# Commands used to build a shared archive.
16111
archive_cmds=$lt_archive_cmds
16112
archive_expsym_cmds=$lt_archive_expsym_cmds
16113
 
16114
# Commands used to build a loadable module if different from building
16115
# a shared archive.
16116
module_cmds=$lt_module_cmds
16117
module_expsym_cmds=$lt_module_expsym_cmds
16118
 
16119
# Whether we are building with GNU ld or not.
16120
with_gnu_ld=$lt_with_gnu_ld
16121
 
16122
# Flag that allows shared libraries with undefined symbols to be built.
16123
allow_undefined_flag=$lt_allow_undefined_flag
16124
 
16125
# Flag that enforces no undefined symbols.
16126
no_undefined_flag=$lt_no_undefined_flag
16127
 
16128
# Flag to hardcode \$libdir into a binary during linking.
16129
# This must work even if \$libdir does not exist
16130
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16131
 
16132
# If ld is used when linking, flag to hardcode \$libdir into a binary
16133
# during linking.  This must work even if \$libdir does not exist.
16134
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16135
 
16136
# Whether we need a single "-rpath" flag with a separated argument.
16137
hardcode_libdir_separator=$lt_hardcode_libdir_separator
16138
 
16139
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16140
# DIR into the resulting binary.
16141
hardcode_direct=$hardcode_direct
16142
 
16143
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16144
# DIR into the resulting binary and the resulting library dependency is
16145
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16146
# library is relocated.
16147
hardcode_direct_absolute=$hardcode_direct_absolute
16148
 
16149
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16150
# into the resulting binary.
16151
hardcode_minus_L=$hardcode_minus_L
16152
 
16153
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16154
# into the resulting binary.
16155
hardcode_shlibpath_var=$hardcode_shlibpath_var
16156
 
16157
# Set to "yes" if building a shared library automatically hardcodes DIR
16158
# into the library and all subsequent libraries and executables linked
16159
# against it.
16160
hardcode_automatic=$hardcode_automatic
16161
 
16162
# Set to yes if linker adds runtime paths of dependent libraries
16163
# to runtime path list.
16164
inherit_rpath=$inherit_rpath
16165
 
16166
# Whether libtool must link a program against all its dependency libraries.
16167
link_all_deplibs=$link_all_deplibs
16168
 
16169
# Fix the shell variable \$srcfile for the compiler.
16170
fix_srcfile_path=$lt_fix_srcfile_path
16171
 
16172
# Set to "yes" if exported symbols are required.
16173
always_export_symbols=$always_export_symbols
16174
 
16175
# The commands to list exported symbols.
16176
export_symbols_cmds=$lt_export_symbols_cmds
16177
 
16178
# Symbols that should not be listed in the preloaded symbols.
16179
exclude_expsyms=$lt_exclude_expsyms
16180
 
16181
# Symbols that must always be exported.
16182
include_expsyms=$lt_include_expsyms
16183
 
16184
# Commands necessary for linking programs (against libraries) with templates.
16185
prelink_cmds=$lt_prelink_cmds
16186
 
16187
# Specify filename containing input files.
16188
file_list_spec=$lt_file_list_spec
16189
 
16190
# How to hardcode a shared library path into an executable.
16191
hardcode_action=$hardcode_action
16192
 
16193
# ### END LIBTOOL CONFIG
16194
 
16195
_LT_EOF
16196
 
16197
  case $host_os in
16198
  aix3*)
16199
    cat <<\_LT_EOF >> "$cfgfile"
16200
# AIX sometimes has problems with the GCC collect2 program.  For some
16201
# reason, if we set the COLLECT_NAMES environment variable, the problems
16202
# vanish in a puff of smoke.
16203
if test "X${COLLECT_NAMES+set}" != Xset; then
16204
  COLLECT_NAMES=
16205
  export COLLECT_NAMES
16206
fi
16207
_LT_EOF
16208
    ;;
16209
  esac
16210
 
16211
 
16212
ltmain="$ac_aux_dir/ltmain.sh"
16213
 
16214
 
16215
  # We use sed instead of cat because bash on DJGPP gets confused if
16216
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16217
  # text mode, it properly converts lines to CR/LF.  This bash problem
16218
  # is reportedly fixed, but why not run on old versions too?
16219
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16220
    || (rm -f "$cfgfile"; exit 1)
16221
 
16222
  case $xsi_shell in
16223
  yes)
16224
    cat << \_LT_EOF >> "$cfgfile"
16225
# func_dirname file append nondir_replacement
16226
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16227
# otherwise set result to NONDIR_REPLACEMENT.
16228
func_dirname ()
16229
{
16230
  case ${1} in
16231
    */*) func_dirname_result="${1%/*}${2}" ;;
16232
    *  ) func_dirname_result="${3}" ;;
16233
  esac
16234
}
16235
 
16236
# func_basename file
16237
func_basename ()
16238
{
16239
  func_basename_result="${1##*/}"
16240
}
16241
 
16242
# func_stripname prefix suffix name
16243
# strip PREFIX and SUFFIX off of NAME.
16244
# PREFIX and SUFFIX must not contain globbing or regex special
16245
# characters, hashes, percent signs, but SUFFIX may contain a leading
16246
# dot (in which case that matches only a dot).
16247
func_stripname ()
16248
{
16249
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16250
  # positional parameters, so assign one to ordinary parameter first.
16251
  func_stripname_result=${3}
16252
  func_stripname_result=${func_stripname_result#"${1}"}
16253
  func_stripname_result=${func_stripname_result%"${2}"}
16254
}
16255
 
16256
# func_opt_split
16257
func_opt_split ()
16258
{
16259
  func_opt_split_opt=${1%%=*}
16260
  func_opt_split_arg=${1#*=}
16261
}
16262
 
16263
# func_lo2o object
16264
func_lo2o ()
16265
{
16266
  case ${1} in
16267
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16268
    *)    func_lo2o_result=${1} ;;
16269
  esac
16270
}
16271
_LT_EOF
16272
    ;;
16273
  *) # Bourne compatible functions.
16274
    cat << \_LT_EOF >> "$cfgfile"
16275
# func_dirname file append nondir_replacement
16276
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16277
# otherwise set result to NONDIR_REPLACEMENT.
16278
func_dirname ()
16279
{
16280
  # Extract subdirectory from the argument.
16281
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16282
  if test "X$func_dirname_result" = "X${1}"; then
16283
    func_dirname_result="${3}"
16284
  else
16285
    func_dirname_result="$func_dirname_result${2}"
16286
  fi
16287
}
16288
 
16289
# func_basename file
16290
func_basename ()
16291
{
16292
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16293
}
16294
 
16295
# func_stripname prefix suffix name
16296
# strip PREFIX and SUFFIX off of NAME.
16297
# PREFIX and SUFFIX must not contain globbing or regex special
16298
# characters, hashes, percent signs, but SUFFIX may contain a leading
16299
# dot (in which case that matches only a dot).
16300
# func_strip_suffix prefix name
16301
func_stripname ()
16302
{
16303
  case ${2} in
16304
    .*) func_stripname_result=`$ECHO "X${3}" \
16305
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16306
    *)  func_stripname_result=`$ECHO "X${3}" \
16307
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16308
  esac
16309
}
16310
 
16311
# sed scripts:
16312
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16313
my_sed_long_arg='1s/^-[^=]*=//'
16314
 
16315
# func_opt_split
16316
func_opt_split ()
16317
{
16318
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16319
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16320
}
16321
 
16322
# func_lo2o object
16323
func_lo2o ()
16324
{
16325
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16326
}
16327
_LT_EOF
16328
esac
16329
 
16330
case $lt_shell_append in
16331
  yes)
16332
    cat << \_LT_EOF >> "$cfgfile"
16333
 
16334
# func_append var value
16335
# Append VALUE to the end of shell variable VAR.
16336
func_append ()
16337
{
16338
  eval "$1+=\$2"
16339
}
16340
_LT_EOF
16341
    ;;
16342
  *)
16343
    cat << \_LT_EOF >> "$cfgfile"
16344
 
16345
# func_append var value
16346
# Append VALUE to the end of shell variable VAR.
16347
func_append ()
16348
{
16349
  eval "$1=\$$1\$2"
16350
}
16351
_LT_EOF
16352
    ;;
16353
  esac
16354
 
16355
 
16356
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16357
    || (rm -f "$cfgfile"; exit 1)
16358
 
16359
  mv -f "$cfgfile" "$ofile" ||
16360
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16361
  chmod +x "$ofile"
16362
 
16363
 ;;
16364
    default-1 )
16365
    for ac_file in $CONFIG_FILES; do
16366
      # Support "outfile[:infile[:infile...]]"
16367
      case "$ac_file" in
16368
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16369
      esac
16370
      # PO directories have a Makefile.in generated from Makefile.in.in.
16371
      case "$ac_file" in */Makefile.in)
16372
        # Adjust a relative srcdir.
16373
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16374
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16375
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16376
        # In autoconf-2.13 it is called $ac_given_srcdir.
16377
        # In autoconf-2.50 it is called $srcdir.
16378
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16379
        case "$ac_given_srcdir" in
16380
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16381
          /*) top_srcdir="$ac_given_srcdir" ;;
16382
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16383
        esac
16384
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16385
          rm -f "$ac_dir/POTFILES"
16386
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16387
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16388
          POMAKEFILEDEPS="POTFILES.in"
16389
          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16390
          # on $ac_dir but don't depend on user-specified configuration
16391
          # parameters.
16392
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16393
            # The LINGUAS file contains the set of available languages.
16394
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
16395
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16396
            fi
16397
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16398
            # Hide the ALL_LINGUAS assigment from automake.
16399
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16400
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16401
          else
16402
            # The set of available languages was given in configure.in.
16403
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16404
          fi
16405
          case "$ac_given_srcdir" in
16406
            .) srcdirpre= ;;
16407
            *) srcdirpre='$(srcdir)/' ;;
16408
          esac
16409
          POFILES=
16410
          GMOFILES=
16411
          UPDATEPOFILES=
16412
          DUMMYPOFILES=
16413
          for lang in $ALL_LINGUAS; do
16414
            POFILES="$POFILES $srcdirpre$lang.po"
16415
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16416
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16417
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16418
          done
16419
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
16420
          # environment variable.
16421
          INST_LINGUAS=
16422
          if test -n "$ALL_LINGUAS"; then
16423
            for presentlang in $ALL_LINGUAS; do
16424
              useit=no
16425
              if test "%UNSET%" != "$LINGUAS"; then
16426
                desiredlanguages="$LINGUAS"
16427
              else
16428
                desiredlanguages="$ALL_LINGUAS"
16429
              fi
16430
              for desiredlang in $desiredlanguages; do
16431
                # Use the presentlang catalog if desiredlang is
16432
                #   a. equal to presentlang, or
16433
                #   b. a variant of presentlang (because in this case,
16434
                #      presentlang can be used as a fallback for messages
16435
                #      which are not translated in the desiredlang catalog).
16436
                case "$desiredlang" in
16437
                  "$presentlang"*) useit=yes;;
16438
                esac
16439
              done
16440
              if test $useit = yes; then
16441
                INST_LINGUAS="$INST_LINGUAS $presentlang"
16442
              fi
16443
            done
16444
          fi
16445
          CATALOGS=
16446
          if test -n "$INST_LINGUAS"; then
16447
            for lang in $INST_LINGUAS; do
16448
              CATALOGS="$CATALOGS $lang.gmo"
16449
            done
16450
          fi
16451
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16452
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16453
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16454
            if test -f "$f"; then
16455
              case "$f" in
16456
                *.orig | *.bak | *~) ;;
16457
                *) cat "$f" >> "$ac_dir/Makefile" ;;
16458
              esac
16459
            fi
16460
          done
16461
        fi
16462
        ;;
16463
      esac
16464
    done ;;
16465
    default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
16466
 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16467
 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16468
 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16469
 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16470
 if test "x$cgen_cpu_prefix" != x ; then
16471
   echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16472
 fi ;;
16473
  esac
16474
done
16475
_ACEOF
16476
 
16477
cat >>$CONFIG_STATUS <<\_ACEOF
16478
 
16479
{ (exit 0); exit 0; }
16480
_ACEOF
16481
chmod +x $CONFIG_STATUS
16482
ac_clean_files=$ac_clean_files_save
16483
 
16484
 
16485
# configure is writing to config.log, and then calls config.status.
16486
# config.status does its own redirection, appending to config.log.
16487
# Unfortunately, on DOS this fails, as config.log is still kept open
16488
# by configure, so config.status won't be able to write to it; its
16489
# output is simply discarded.  So we exec the FD to /dev/null,
16490
# effectively closing config.log, so it can be properly (re)opened and
16491
# appended to by config.status.  When coming back to configure, we
16492
# need to make the FD available again.
16493
if test "$no_create" != yes; then
16494
  ac_cs_success=:
16495
  ac_config_status_args=
16496
  test "$silent" = yes &&
16497
    ac_config_status_args="$ac_config_status_args --quiet"
16498
  exec 5>/dev/null
16499
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16500
  exec 5>>config.log
16501
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16502
  # would make configure fail if this is the last instruction.
16503
  $ac_cs_success || { (exit 1); exit 1; }
16504
fi
16505
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.