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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [ld/] [configure] - Blame information for rev 853

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

Line No. Rev Author Line
1 38 julius
#! /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="ldmain.c"
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 use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462
ac_subst_files='TDIRS'
463
 
464
# Initialize some variables set by options.
465
ac_init_help=
466
ac_init_version=false
467
# The variables have the same names as the options, with
468
# dashes changed to underlines.
469
cache_file=/dev/null
470
exec_prefix=NONE
471
no_create=
472
no_recursion=
473
prefix=NONE
474
program_prefix=NONE
475
program_suffix=NONE
476
program_transform_name=s,x,x,
477
silent=
478
site=
479
srcdir=
480
verbose=
481
x_includes=NONE
482
x_libraries=NONE
483
 
484
# Installation directory options.
485
# These are left unexpanded so users can "make install exec_prefix=/foo"
486
# and all the variables that are supposed to be based on exec_prefix
487
# by default will actually change.
488
# Use braces instead of parens because sh, perl, etc. also accept them.
489
bindir='${exec_prefix}/bin'
490
sbindir='${exec_prefix}/sbin'
491
libexecdir='${exec_prefix}/libexec'
492
datadir='${prefix}/share'
493
sysconfdir='${prefix}/etc'
494
sharedstatedir='${prefix}/com'
495
localstatedir='${prefix}/var'
496
libdir='${exec_prefix}/lib'
497
includedir='${prefix}/include'
498
oldincludedir='/usr/include'
499
infodir='${prefix}/info'
500
mandir='${prefix}/man'
501
 
502
ac_prev=
503
for ac_option
504
do
505
  # If the previous option needs an argument, assign it.
506
  if test -n "$ac_prev"; then
507
    eval "$ac_prev=\$ac_option"
508
    ac_prev=
509
    continue
510
  fi
511
 
512
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
 
514
  # Accept the important Cygnus configure options, so we can diagnose typos.
515
 
516
  case $ac_option in
517
 
518
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
519
    ac_prev=bindir ;;
520
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521
    bindir=$ac_optarg ;;
522
 
523
  -build | --build | --buil | --bui | --bu)
524
    ac_prev=build_alias ;;
525
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526
    build_alias=$ac_optarg ;;
527
 
528
  -cache-file | --cache-file | --cache-fil | --cache-fi \
529
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530
    ac_prev=cache_file ;;
531
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533
    cache_file=$ac_optarg ;;
534
 
535
  --config-cache | -C)
536
    cache_file=config.cache ;;
537
 
538
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539
    ac_prev=datadir ;;
540
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541
  | --da=*)
542
    datadir=$ac_optarg ;;
543
 
544
  -disable-* | --disable-*)
545
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546
    # Reject names that are not valid shell variable names.
547
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549
   { (exit 1); exit 1; }; }
550
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551
    eval "enable_$ac_feature=no" ;;
552
 
553
  -enable-* | --enable-*)
554
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555
    # Reject names that are not valid shell variable names.
556
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558
   { (exit 1); exit 1; }; }
559
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560
    case $ac_option in
561
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562
      *) ac_optarg=yes ;;
563
    esac
564
    eval "enable_$ac_feature='$ac_optarg'" ;;
565
 
566
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568
  | --exec | --exe | --ex)
569
    ac_prev=exec_prefix ;;
570
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572
  | --exec=* | --exe=* | --ex=*)
573
    exec_prefix=$ac_optarg ;;
574
 
575
  -gas | --gas | --ga | --g)
576
    # Obsolete; use --with-gas.
577
    with_gas=yes ;;
578
 
579
  -help | --help | --hel | --he | -h)
580
    ac_init_help=long ;;
581
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582
    ac_init_help=recursive ;;
583
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584
    ac_init_help=short ;;
585
 
586
  -host | --host | --hos | --ho)
587
    ac_prev=host_alias ;;
588
  -host=* | --host=* | --hos=* | --ho=*)
589
    host_alias=$ac_optarg ;;
590
 
591
  -includedir | --includedir | --includedi | --included | --include \
592
  | --includ | --inclu | --incl | --inc)
593
    ac_prev=includedir ;;
594
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595
  | --includ=* | --inclu=* | --incl=* | --inc=*)
596
    includedir=$ac_optarg ;;
597
 
598
  -infodir | --infodir | --infodi | --infod | --info | --inf)
599
    ac_prev=infodir ;;
600
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601
    infodir=$ac_optarg ;;
602
 
603
  -libdir | --libdir | --libdi | --libd)
604
    ac_prev=libdir ;;
605
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
606
    libdir=$ac_optarg ;;
607
 
608
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609
  | --libexe | --libex | --libe)
610
    ac_prev=libexecdir ;;
611
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612
  | --libexe=* | --libex=* | --libe=*)
613
    libexecdir=$ac_optarg ;;
614
 
615
  -localstatedir | --localstatedir | --localstatedi | --localstated \
616
  | --localstate | --localstat | --localsta | --localst \
617
  | --locals | --local | --loca | --loc | --lo)
618
    ac_prev=localstatedir ;;
619
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622
    localstatedir=$ac_optarg ;;
623
 
624
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625
    ac_prev=mandir ;;
626
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627
    mandir=$ac_optarg ;;
628
 
629
  -nfp | --nfp | --nf)
630
    # Obsolete; use --without-fp.
631
    with_fp=no ;;
632
 
633
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634
  | --no-cr | --no-c | -n)
635
    no_create=yes ;;
636
 
637
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639
    no_recursion=yes ;;
640
 
641
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643
  | --oldin | --oldi | --old | --ol | --o)
644
    ac_prev=oldincludedir ;;
645
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648
    oldincludedir=$ac_optarg ;;
649
 
650
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651
    ac_prev=prefix ;;
652
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653
    prefix=$ac_optarg ;;
654
 
655
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
656
  | --program-pre | --program-pr | --program-p)
657
    ac_prev=program_prefix ;;
658
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
659
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660
    program_prefix=$ac_optarg ;;
661
 
662
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
663
  | --program-suf | --program-su | --program-s)
664
    ac_prev=program_suffix ;;
665
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
666
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667
    program_suffix=$ac_optarg ;;
668
 
669
  -program-transform-name | --program-transform-name \
670
  | --program-transform-nam | --program-transform-na \
671
  | --program-transform-n | --program-transform- \
672
  | --program-transform | --program-transfor \
673
  | --program-transfo | --program-transf \
674
  | --program-trans | --program-tran \
675
  | --progr-tra | --program-tr | --program-t)
676
    ac_prev=program_transform_name ;;
677
  -program-transform-name=* | --program-transform-name=* \
678
  | --program-transform-nam=* | --program-transform-na=* \
679
  | --program-transform-n=* | --program-transform-=* \
680
  | --program-transform=* | --program-transfor=* \
681
  | --program-transfo=* | --program-transf=* \
682
  | --program-trans=* | --program-tran=* \
683
  | --progr-tra=* | --program-tr=* | --program-t=*)
684
    program_transform_name=$ac_optarg ;;
685
 
686
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687
  | -silent | --silent | --silen | --sile | --sil)
688
    silent=yes ;;
689
 
690
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691
    ac_prev=sbindir ;;
692
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693
  | --sbi=* | --sb=*)
694
    sbindir=$ac_optarg ;;
695
 
696
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
697
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698
  | --sharedst | --shareds | --shared | --share | --shar \
699
  | --sha | --sh)
700
    ac_prev=sharedstatedir ;;
701
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704
  | --sha=* | --sh=*)
705
    sharedstatedir=$ac_optarg ;;
706
 
707
  -site | --site | --sit)
708
    ac_prev=site ;;
709
  -site=* | --site=* | --sit=*)
710
    site=$ac_optarg ;;
711
 
712
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713
    ac_prev=srcdir ;;
714
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715
    srcdir=$ac_optarg ;;
716
 
717
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718
  | --syscon | --sysco | --sysc | --sys | --sy)
719
    ac_prev=sysconfdir ;;
720
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722
    sysconfdir=$ac_optarg ;;
723
 
724
  -target | --target | --targe | --targ | --tar | --ta | --t)
725
    ac_prev=target_alias ;;
726
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727
    target_alias=$ac_optarg ;;
728
 
729
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
730
    verbose=yes ;;
731
 
732
  -version | --version | --versio | --versi | --vers | -V)
733
    ac_init_version=: ;;
734
 
735
  -with-* | --with-*)
736
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737
    # Reject names that are not valid shell variable names.
738
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739
      { echo "$as_me: error: invalid package name: $ac_package" >&2
740
   { (exit 1); exit 1; }; }
741
    ac_package=`echo $ac_package| sed 's/-/_/g'`
742
    case $ac_option in
743
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744
      *) ac_optarg=yes ;;
745
    esac
746
    eval "with_$ac_package='$ac_optarg'" ;;
747
 
748
  -without-* | --without-*)
749
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750
    # Reject names that are not valid shell variable names.
751
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752
      { echo "$as_me: error: invalid package name: $ac_package" >&2
753
   { (exit 1); exit 1; }; }
754
    ac_package=`echo $ac_package | sed 's/-/_/g'`
755
    eval "with_$ac_package=no" ;;
756
 
757
  --x)
758
    # Obsolete; use --with-x.
759
    with_x=yes ;;
760
 
761
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762
  | --x-incl | --x-inc | --x-in | --x-i)
763
    ac_prev=x_includes ;;
764
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766
    x_includes=$ac_optarg ;;
767
 
768
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
769
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770
    ac_prev=x_libraries ;;
771
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773
    x_libraries=$ac_optarg ;;
774
 
775
  -*) { echo "$as_me: error: unrecognized option: $ac_option
776
Try \`$0 --help' for more information." >&2
777
   { (exit 1); exit 1; }; }
778
    ;;
779
 
780
  *=*)
781
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782
    # Reject names that are not valid shell variable names.
783
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785
   { (exit 1); exit 1; }; }
786
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787
    eval "$ac_envvar='$ac_optarg'"
788
    export $ac_envvar ;;
789
 
790
  *)
791
    # FIXME: should be removed in autoconf 3.0.
792
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796
    ;;
797
 
798
  esac
799
done
800
 
801
if test -n "$ac_prev"; then
802
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803
  { echo "$as_me: error: missing argument to $ac_option" >&2
804
   { (exit 1); exit 1; }; }
805
fi
806
 
807
# Be sure to have absolute paths.
808
for ac_var in exec_prefix prefix
809
do
810
  eval ac_val=$`echo $ac_var`
811
  case $ac_val in
812
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814
   { (exit 1); exit 1; }; };;
815
  esac
816
done
817
 
818
# Be sure to have absolute paths.
819
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820
              localstatedir libdir includedir oldincludedir infodir mandir
821
do
822
  eval ac_val=$`echo $ac_var`
823
  case $ac_val in
824
    [\\/$]* | ?:[\\/]* ) ;;
825
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826
   { (exit 1); exit 1; }; };;
827
  esac
828
done
829
 
830
# There might be people who depend on the old broken behavior: `$host'
831
# used to hold the argument of --host etc.
832
# FIXME: To remove some day.
833
build=$build_alias
834
host=$host_alias
835
target=$target_alias
836
 
837
# FIXME: To remove some day.
838
if test "x$host_alias" != x; then
839
  if test "x$build_alias" = x; then
840
    cross_compiling=maybe
841
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842
    If a cross compiler is detected then cross compile mode will be used." >&2
843
  elif test "x$build_alias" != "x$host_alias"; then
844
    cross_compiling=yes
845
  fi
846
fi
847
 
848
ac_tool_prefix=
849
test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
 
851
test "$silent" = yes && exec 6>/dev/null
852
 
853
 
854
# Find the source files, if location was not specified.
855
if test -z "$srcdir"; then
856
  ac_srcdir_defaulted=yes
857
  # Try the directory containing this script, then its parent.
858
  ac_confdir=`(dirname "$0") 2>/dev/null ||
859
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860
         X"$0" : 'X\(//\)[^/]' \| \
861
         X"$0" : 'X\(//\)$' \| \
862
         X"$0" : 'X\(/\)' \| \
863
         .     : '\(.\)' 2>/dev/null ||
864
echo X"$0" |
865
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867
          /^X\(\/\/\)$/{ s//\1/; q; }
868
          /^X\(\/\).*/{ s//\1/; q; }
869
          s/.*/./; q'`
870
  srcdir=$ac_confdir
871
  if test ! -r $srcdir/$ac_unique_file; then
872
    srcdir=..
873
  fi
874
else
875
  ac_srcdir_defaulted=no
876
fi
877
if test ! -r $srcdir/$ac_unique_file; then
878
  if test "$ac_srcdir_defaulted" = yes; then
879
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880
   { (exit 1); exit 1; }; }
881
  else
882
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883
   { (exit 1); exit 1; }; }
884
  fi
885
fi
886
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888
   { (exit 1); exit 1; }; }
889
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890
ac_env_build_alias_set=${build_alias+set}
891
ac_env_build_alias_value=$build_alias
892
ac_cv_env_build_alias_set=${build_alias+set}
893
ac_cv_env_build_alias_value=$build_alias
894
ac_env_host_alias_set=${host_alias+set}
895
ac_env_host_alias_value=$host_alias
896
ac_cv_env_host_alias_set=${host_alias+set}
897
ac_cv_env_host_alias_value=$host_alias
898
ac_env_target_alias_set=${target_alias+set}
899
ac_env_target_alias_value=$target_alias
900
ac_cv_env_target_alias_set=${target_alias+set}
901
ac_cv_env_target_alias_value=$target_alias
902
ac_env_CC_set=${CC+set}
903
ac_env_CC_value=$CC
904
ac_cv_env_CC_set=${CC+set}
905
ac_cv_env_CC_value=$CC
906
ac_env_CFLAGS_set=${CFLAGS+set}
907
ac_env_CFLAGS_value=$CFLAGS
908
ac_cv_env_CFLAGS_set=${CFLAGS+set}
909
ac_cv_env_CFLAGS_value=$CFLAGS
910
ac_env_LDFLAGS_set=${LDFLAGS+set}
911
ac_env_LDFLAGS_value=$LDFLAGS
912
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913
ac_cv_env_LDFLAGS_value=$LDFLAGS
914
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915
ac_env_CPPFLAGS_value=$CPPFLAGS
916
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918
ac_env_CPP_set=${CPP+set}
919
ac_env_CPP_value=$CPP
920
ac_cv_env_CPP_set=${CPP+set}
921
ac_cv_env_CPP_value=$CPP
922
 
923
#
924
# Report the --help message.
925
#
926
if test "$ac_init_help" = "long"; then
927
  # Omit some internal or obsolete options to make the list less imposing.
928
  # This message is too long to be a string in the A/UX 3.1 sh.
929
  cat <<_ACEOF
930
\`configure' configures this package to adapt to many kinds of systems.
931
 
932
Usage: $0 [OPTION]... [VAR=VALUE]...
933
 
934
To assign environment variables (e.g., CC, CFLAGS...), specify them as
935
VAR=VALUE.  See below for descriptions of some of the useful variables.
936
 
937
Defaults for the options are specified in brackets.
938
 
939
Configuration:
940
  -h, --help              display this help and exit
941
      --help=short        display options specific to this package
942
      --help=recursive    display the short help of all the included packages
943
  -V, --version           display version information and exit
944
  -q, --quiet, --silent   do not print \`checking...' messages
945
      --cache-file=FILE   cache test results in FILE [disabled]
946
  -C, --config-cache      alias for \`--cache-file=config.cache'
947
  -n, --no-create         do not create output files
948
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
949
 
950
_ACEOF
951
 
952
  cat <<_ACEOF
953
Installation directories:
954
  --prefix=PREFIX         install architecture-independent files in PREFIX
955
                          [$ac_default_prefix]
956
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
957
                          [PREFIX]
958
 
959
By default, \`make install' will install all the files in
960
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
961
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962
for instance \`--prefix=\$HOME'.
963
 
964
For better control, use the options below.
965
 
966
Fine tuning of the installation directories:
967
  --bindir=DIR           user executables [EPREFIX/bin]
968
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
969
  --libexecdir=DIR       program executables [EPREFIX/libexec]
970
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
971
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
972
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
973
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
974
  --libdir=DIR           object code libraries [EPREFIX/lib]
975
  --includedir=DIR       C header files [PREFIX/include]
976
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
977
  --infodir=DIR          info documentation [PREFIX/info]
978
  --mandir=DIR           man documentation [PREFIX/man]
979
_ACEOF
980
 
981
  cat <<\_ACEOF
982
 
983
Program names:
984
  --program-prefix=PREFIX            prepend PREFIX to installed program names
985
  --program-suffix=SUFFIX            append SUFFIX to installed program names
986
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
987
 
988
System types:
989
  --build=BUILD     configure for building on BUILD [guessed]
990
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
991
  --target=TARGET   configure for building compilers for TARGET [HOST]
992
_ACEOF
993
fi
994
 
995
if test -n "$ac_init_help"; then
996
 
997
  cat <<\_ACEOF
998
 
999
Optional Features:
1000
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1001
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1002
  --disable-dependency-tracking  speeds up one-time build
1003
  --enable-dependency-tracking   do not reject slow dependency extractors
1004
  --enable-targets        alternative target configurations
1005
  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1006
  --enable-werror         treat compile warnings as errors
1007
  --enable-build-warnings enable build-time compiler warnings
1008
  --enable-shared[=PKGS]
1009
                          build shared libraries [default=yes]
1010
  --enable-static[=PKGS]
1011
                          build static libraries [default=yes]
1012
  --enable-fast-install[=PKGS]
1013
                          optimize for fast installation [default=yes]
1014
  --disable-libtool-lock  avoid locking (might break parallel builds)
1015
  --disable-nls           do not use Native Language Support
1016
  --enable-maintainer-mode  enable make rules and dependencies not useful
1017
                          (and sometimes confusing) to the casual installer
1018
 
1019
Optional Packages:
1020
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1021
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1022
  --with-lib-path=dir1:dir2...  set default LIB_PATH
1023
  --with-sysroot=DIR Search for usr/lib et al within DIR.
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: changes in the environment can compromise the build" >&5
1454
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1455
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1456
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1457
   { (exit 1); exit 1; }; }
1458
fi
1459
 
1460
ac_ext=c
1461
ac_cpp='$CPP $CPPFLAGS'
1462
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465
 
1466
 
1467
 
1468
 
1469
 
1470
 
1471
 
1472
 
1473
 
1474
 
1475
 
1476
 
1477
 
1478
 
1479
 
1480
 
1481
 
1482
 
1483
 
1484
 
1485
ac_aux_dir=
1486
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1487
  if test -f $ac_dir/install-sh; then
1488
    ac_aux_dir=$ac_dir
1489
    ac_install_sh="$ac_aux_dir/install-sh -c"
1490
    break
1491
  elif test -f $ac_dir/install.sh; then
1492
    ac_aux_dir=$ac_dir
1493
    ac_install_sh="$ac_aux_dir/install.sh -c"
1494
    break
1495
  elif test -f $ac_dir/shtool; then
1496
    ac_aux_dir=$ac_dir
1497
    ac_install_sh="$ac_aux_dir/shtool install -c"
1498
    break
1499
  fi
1500
done
1501
if test -z "$ac_aux_dir"; then
1502
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1503
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1504
   { (exit 1); exit 1; }; }
1505
fi
1506
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1507
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1508
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1509
 
1510
# Make sure we can run config.sub.
1511
$ac_config_sub sun4 >/dev/null 2>&1 ||
1512
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1513
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1514
   { (exit 1); exit 1; }; }
1515
 
1516
echo "$as_me:$LINENO: checking build system type" >&5
1517
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1518
if test "${ac_cv_build+set}" = set; then
1519
  echo $ECHO_N "(cached) $ECHO_C" >&6
1520
else
1521
  ac_cv_build_alias=$build_alias
1522
test -z "$ac_cv_build_alias" &&
1523
  ac_cv_build_alias=`$ac_config_guess`
1524
test -z "$ac_cv_build_alias" &&
1525
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1526
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1527
   { (exit 1); exit 1; }; }
1528
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1529
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1530
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1531
   { (exit 1); exit 1; }; }
1532
 
1533
fi
1534
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1535
echo "${ECHO_T}$ac_cv_build" >&6
1536
build=$ac_cv_build
1537
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1538
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1539
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1540
 
1541
 
1542
echo "$as_me:$LINENO: checking host system type" >&5
1543
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1544
if test "${ac_cv_host+set}" = set; then
1545
  echo $ECHO_N "(cached) $ECHO_C" >&6
1546
else
1547
  ac_cv_host_alias=$host_alias
1548
test -z "$ac_cv_host_alias" &&
1549
  ac_cv_host_alias=$ac_cv_build_alias
1550
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1551
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1552
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1553
   { (exit 1); exit 1; }; }
1554
 
1555
fi
1556
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1557
echo "${ECHO_T}$ac_cv_host" >&6
1558
host=$ac_cv_host
1559
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1560
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1561
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1562
 
1563
 
1564
echo "$as_me:$LINENO: checking target system type" >&5
1565
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1566
if test "${ac_cv_target+set}" = set; then
1567
  echo $ECHO_N "(cached) $ECHO_C" >&6
1568
else
1569
  ac_cv_target_alias=$target_alias
1570
test "x$ac_cv_target_alias" = "x" &&
1571
  ac_cv_target_alias=$ac_cv_host_alias
1572
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1573
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1574
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1575
   { (exit 1); exit 1; }; }
1576
 
1577
fi
1578
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1579
echo "${ECHO_T}$ac_cv_target" >&6
1580
target=$ac_cv_target
1581
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584
 
1585
 
1586
# The aliases save the names the user supplied, while $host etc.
1587
# will get canonicalized.
1588
test -n "$target_alias" &&
1589
  test "$program_prefix$program_suffix$program_transform_name" = \
1590
    NONENONEs,x,x, &&
1591
  program_prefix=${target_alias}-
1592
ac_ext=c
1593
ac_cpp='$CPP $CPPFLAGS'
1594
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1595
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1596
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1597
if test -n "$ac_tool_prefix"; then
1598
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1599
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1600
echo "$as_me:$LINENO: checking for $ac_word" >&5
1601
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602
if test "${ac_cv_prog_CC+set}" = set; then
1603
  echo $ECHO_N "(cached) $ECHO_C" >&6
1604
else
1605
  if test -n "$CC"; then
1606
  ac_cv_prog_CC="$CC" # Let the user override the test.
1607
else
1608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609
for as_dir in $PATH
1610
do
1611
  IFS=$as_save_IFS
1612
  test -z "$as_dir" && as_dir=.
1613
  for ac_exec_ext in '' $ac_executable_extensions; do
1614
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1616
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617
    break 2
1618
  fi
1619
done
1620
done
1621
 
1622
fi
1623
fi
1624
CC=$ac_cv_prog_CC
1625
if test -n "$CC"; then
1626
  echo "$as_me:$LINENO: result: $CC" >&5
1627
echo "${ECHO_T}$CC" >&6
1628
else
1629
  echo "$as_me:$LINENO: result: no" >&5
1630
echo "${ECHO_T}no" >&6
1631
fi
1632
 
1633
fi
1634
if test -z "$ac_cv_prog_CC"; then
1635
  ac_ct_CC=$CC
1636
  # Extract the first word of "gcc", so it can be a program name with args.
1637
set dummy gcc; ac_word=$2
1638
echo "$as_me:$LINENO: checking for $ac_word" >&5
1639
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1641
  echo $ECHO_N "(cached) $ECHO_C" >&6
1642
else
1643
  if test -n "$ac_ct_CC"; then
1644
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1645
else
1646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647
for as_dir in $PATH
1648
do
1649
  IFS=$as_save_IFS
1650
  test -z "$as_dir" && as_dir=.
1651
  for ac_exec_ext in '' $ac_executable_extensions; do
1652
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653
    ac_cv_prog_ac_ct_CC="gcc"
1654
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655
    break 2
1656
  fi
1657
done
1658
done
1659
 
1660
fi
1661
fi
1662
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1663
if test -n "$ac_ct_CC"; then
1664
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1665
echo "${ECHO_T}$ac_ct_CC" >&6
1666
else
1667
  echo "$as_me:$LINENO: result: no" >&5
1668
echo "${ECHO_T}no" >&6
1669
fi
1670
 
1671
  CC=$ac_ct_CC
1672
else
1673
  CC="$ac_cv_prog_CC"
1674
fi
1675
 
1676
if test -z "$CC"; then
1677
  if test -n "$ac_tool_prefix"; then
1678
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1679
set dummy ${ac_tool_prefix}cc; ac_word=$2
1680
echo "$as_me:$LINENO: checking for $ac_word" >&5
1681
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682
if test "${ac_cv_prog_CC+set}" = set; then
1683
  echo $ECHO_N "(cached) $ECHO_C" >&6
1684
else
1685
  if test -n "$CC"; then
1686
  ac_cv_prog_CC="$CC" # Let the user override the test.
1687
else
1688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689
for as_dir in $PATH
1690
do
1691
  IFS=$as_save_IFS
1692
  test -z "$as_dir" && as_dir=.
1693
  for ac_exec_ext in '' $ac_executable_extensions; do
1694
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1696
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697
    break 2
1698
  fi
1699
done
1700
done
1701
 
1702
fi
1703
fi
1704
CC=$ac_cv_prog_CC
1705
if test -n "$CC"; then
1706
  echo "$as_me:$LINENO: result: $CC" >&5
1707
echo "${ECHO_T}$CC" >&6
1708
else
1709
  echo "$as_me:$LINENO: result: no" >&5
1710
echo "${ECHO_T}no" >&6
1711
fi
1712
 
1713
fi
1714
if test -z "$ac_cv_prog_CC"; then
1715
  ac_ct_CC=$CC
1716
  # Extract the first word of "cc", so it can be a program name with args.
1717
set dummy cc; ac_word=$2
1718
echo "$as_me:$LINENO: checking for $ac_word" >&5
1719
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1721
  echo $ECHO_N "(cached) $ECHO_C" >&6
1722
else
1723
  if test -n "$ac_ct_CC"; then
1724
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1725
else
1726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727
for as_dir in $PATH
1728
do
1729
  IFS=$as_save_IFS
1730
  test -z "$as_dir" && as_dir=.
1731
  for ac_exec_ext in '' $ac_executable_extensions; do
1732
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733
    ac_cv_prog_ac_ct_CC="cc"
1734
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735
    break 2
1736
  fi
1737
done
1738
done
1739
 
1740
fi
1741
fi
1742
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1743
if test -n "$ac_ct_CC"; then
1744
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1745
echo "${ECHO_T}$ac_ct_CC" >&6
1746
else
1747
  echo "$as_me:$LINENO: result: no" >&5
1748
echo "${ECHO_T}no" >&6
1749
fi
1750
 
1751
  CC=$ac_ct_CC
1752
else
1753
  CC="$ac_cv_prog_CC"
1754
fi
1755
 
1756
fi
1757
if test -z "$CC"; then
1758
  # Extract the first word of "cc", so it can be a program name with args.
1759
set dummy cc; ac_word=$2
1760
echo "$as_me:$LINENO: checking for $ac_word" >&5
1761
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762
if test "${ac_cv_prog_CC+set}" = set; then
1763
  echo $ECHO_N "(cached) $ECHO_C" >&6
1764
else
1765
  if test -n "$CC"; then
1766
  ac_cv_prog_CC="$CC" # Let the user override the test.
1767
else
1768
  ac_prog_rejected=no
1769
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770
for as_dir in $PATH
1771
do
1772
  IFS=$as_save_IFS
1773
  test -z "$as_dir" && as_dir=.
1774
  for ac_exec_ext in '' $ac_executable_extensions; do
1775
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1776
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1777
       ac_prog_rejected=yes
1778
       continue
1779
     fi
1780
    ac_cv_prog_CC="cc"
1781
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782
    break 2
1783
  fi
1784
done
1785
done
1786
 
1787
if test $ac_prog_rejected = yes; then
1788
  # We found a bogon in the path, so make sure we never use it.
1789
  set dummy $ac_cv_prog_CC
1790
  shift
1791
  if test $# != 0; then
1792
    # We chose a different compiler from the bogus one.
1793
    # However, it has the same basename, so the bogon will be chosen
1794
    # first if we set CC to just the basename; use the full file name.
1795
    shift
1796
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1797
  fi
1798
fi
1799
fi
1800
fi
1801
CC=$ac_cv_prog_CC
1802
if test -n "$CC"; then
1803
  echo "$as_me:$LINENO: result: $CC" >&5
1804
echo "${ECHO_T}$CC" >&6
1805
else
1806
  echo "$as_me:$LINENO: result: no" >&5
1807
echo "${ECHO_T}no" >&6
1808
fi
1809
 
1810
fi
1811
if test -z "$CC"; then
1812
  if test -n "$ac_tool_prefix"; then
1813
  for ac_prog in cl
1814
  do
1815
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1816
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1817
echo "$as_me:$LINENO: checking for $ac_word" >&5
1818
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1819
if test "${ac_cv_prog_CC+set}" = set; then
1820
  echo $ECHO_N "(cached) $ECHO_C" >&6
1821
else
1822
  if test -n "$CC"; then
1823
  ac_cv_prog_CC="$CC" # Let the user override the test.
1824
else
1825
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826
for as_dir in $PATH
1827
do
1828
  IFS=$as_save_IFS
1829
  test -z "$as_dir" && as_dir=.
1830
  for ac_exec_ext in '' $ac_executable_extensions; do
1831
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1832
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1833
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834
    break 2
1835
  fi
1836
done
1837
done
1838
 
1839
fi
1840
fi
1841
CC=$ac_cv_prog_CC
1842
if test -n "$CC"; then
1843
  echo "$as_me:$LINENO: result: $CC" >&5
1844
echo "${ECHO_T}$CC" >&6
1845
else
1846
  echo "$as_me:$LINENO: result: no" >&5
1847
echo "${ECHO_T}no" >&6
1848
fi
1849
 
1850
    test -n "$CC" && break
1851
  done
1852
fi
1853
if test -z "$CC"; then
1854
  ac_ct_CC=$CC
1855
  for ac_prog in cl
1856
do
1857
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1858
set dummy $ac_prog; ac_word=$2
1859
echo "$as_me:$LINENO: checking for $ac_word" >&5
1860
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1862
  echo $ECHO_N "(cached) $ECHO_C" >&6
1863
else
1864
  if test -n "$ac_ct_CC"; then
1865
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1866
else
1867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868
for as_dir in $PATH
1869
do
1870
  IFS=$as_save_IFS
1871
  test -z "$as_dir" && as_dir=.
1872
  for ac_exec_ext in '' $ac_executable_extensions; do
1873
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874
    ac_cv_prog_ac_ct_CC="$ac_prog"
1875
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876
    break 2
1877
  fi
1878
done
1879
done
1880
 
1881
fi
1882
fi
1883
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1884
if test -n "$ac_ct_CC"; then
1885
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1886
echo "${ECHO_T}$ac_ct_CC" >&6
1887
else
1888
  echo "$as_me:$LINENO: result: no" >&5
1889
echo "${ECHO_T}no" >&6
1890
fi
1891
 
1892
  test -n "$ac_ct_CC" && break
1893
done
1894
 
1895
  CC=$ac_ct_CC
1896
fi
1897
 
1898
fi
1899
 
1900
 
1901
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1902
See \`config.log' for more details." >&5
1903
echo "$as_me: error: no acceptable C compiler found in \$PATH
1904
See \`config.log' for more details." >&2;}
1905
   { (exit 1); exit 1; }; }
1906
 
1907
# Provide some information about the compiler.
1908
echo "$as_me:$LINENO:" \
1909
     "checking for C compiler version" >&5
1910
ac_compiler=`set X $ac_compile; echo $2`
1911
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
1912
  (eval $ac_compiler --version &5) 2>&5
1913
  ac_status=$?
1914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915
  (exit $ac_status); }
1916
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
1917
  (eval $ac_compiler -v &5) 2>&5
1918
  ac_status=$?
1919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920
  (exit $ac_status); }
1921
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
1922
  (eval $ac_compiler -V &5) 2>&5
1923
  ac_status=$?
1924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925
  (exit $ac_status); }
1926
 
1927
cat >conftest.$ac_ext <<_ACEOF
1928
/* confdefs.h.  */
1929
_ACEOF
1930
cat confdefs.h >>conftest.$ac_ext
1931
cat >>conftest.$ac_ext <<_ACEOF
1932
/* end confdefs.h.  */
1933
 
1934
int
1935
main ()
1936
{
1937
 
1938
  ;
1939
  return 0;
1940
}
1941
_ACEOF
1942
ac_clean_files_save=$ac_clean_files
1943
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1944
# Try to create an executable without -o first, disregard a.out.
1945
# It will help us diagnose broken compilers, and finding out an intuition
1946
# of exeext.
1947
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1948
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1949
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1950
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1951
  (eval $ac_link_default) 2>&5
1952
  ac_status=$?
1953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954
  (exit $ac_status); }; then
1955
  # Find the output, starting from the most likely.  This scheme is
1956
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1957
# resort.
1958
 
1959
# Be careful to initialize this variable, since it used to be cached.
1960
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1961
ac_cv_exeext=
1962
# b.out is created by i960 compilers.
1963
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1964
do
1965
  test -f "$ac_file" || continue
1966
  case $ac_file in
1967
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1968
        ;;
1969
    conftest.$ac_ext )
1970
        # This is the source file.
1971
        ;;
1972
    [ab].out )
1973
        # We found the default executable, but exeext='' is most
1974
        # certainly right.
1975
        break;;
1976
    *.* )
1977
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1978
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1979
        # but it would be cool to find out if it's true.  Does anybody
1980
        # maintain Libtool? --akim.
1981
        export ac_cv_exeext
1982
        break;;
1983
    * )
1984
        break;;
1985
  esac
1986
done
1987
else
1988
  echo "$as_me: failed program was:" >&5
1989
sed 's/^/| /' conftest.$ac_ext >&5
1990
 
1991
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1992
See \`config.log' for more details." >&5
1993
echo "$as_me: error: C compiler cannot create executables
1994
See \`config.log' for more details." >&2;}
1995
   { (exit 77); exit 77; }; }
1996
fi
1997
 
1998
ac_exeext=$ac_cv_exeext
1999
echo "$as_me:$LINENO: result: $ac_file" >&5
2000
echo "${ECHO_T}$ac_file" >&6
2001
 
2002
# Check the compiler produces executables we can run.  If not, either
2003
# the compiler is broken, or we cross compile.
2004
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2005
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2006
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2007
# If not cross compiling, check that we can run a simple program.
2008
if test "$cross_compiling" != yes; then
2009
  if { ac_try='./$ac_file'
2010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011
  (eval $ac_try) 2>&5
2012
  ac_status=$?
2013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014
  (exit $ac_status); }; }; then
2015
    cross_compiling=no
2016
  else
2017
    if test "$cross_compiling" = maybe; then
2018
        cross_compiling=yes
2019
    else
2020
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2021
If you meant to cross compile, use \`--host'.
2022
See \`config.log' for more details." >&5
2023
echo "$as_me: error: cannot run C compiled programs.
2024
If you meant to cross compile, use \`--host'.
2025
See \`config.log' for more details." >&2;}
2026
   { (exit 1); exit 1; }; }
2027
    fi
2028
  fi
2029
fi
2030
echo "$as_me:$LINENO: result: yes" >&5
2031
echo "${ECHO_T}yes" >&6
2032
 
2033
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2034
ac_clean_files=$ac_clean_files_save
2035
# Check the compiler produces executables we can run.  If not, either
2036
# the compiler is broken, or we cross compile.
2037
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2038
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2039
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2040
echo "${ECHO_T}$cross_compiling" >&6
2041
 
2042
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2043
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2044
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2045
  (eval $ac_link) 2>&5
2046
  ac_status=$?
2047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048
  (exit $ac_status); }; then
2049
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2050
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2051
# work properly (i.e., refer to `conftest.exe'), while it won't with
2052
# `rm'.
2053
for ac_file in conftest.exe conftest conftest.*; do
2054
  test -f "$ac_file" || continue
2055
  case $ac_file in
2056
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2057
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2058
          export ac_cv_exeext
2059
          break;;
2060
    * ) break;;
2061
  esac
2062
done
2063
else
2064
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2065
See \`config.log' for more details." >&5
2066
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2067
See \`config.log' for more details." >&2;}
2068
   { (exit 1); exit 1; }; }
2069
fi
2070
 
2071
rm -f conftest$ac_cv_exeext
2072
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2073
echo "${ECHO_T}$ac_cv_exeext" >&6
2074
 
2075
rm -f conftest.$ac_ext
2076
EXEEXT=$ac_cv_exeext
2077
ac_exeext=$EXEEXT
2078
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2079
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2080
if test "${ac_cv_objext+set}" = set; then
2081
  echo $ECHO_N "(cached) $ECHO_C" >&6
2082
else
2083
  cat >conftest.$ac_ext <<_ACEOF
2084
/* confdefs.h.  */
2085
_ACEOF
2086
cat confdefs.h >>conftest.$ac_ext
2087
cat >>conftest.$ac_ext <<_ACEOF
2088
/* end confdefs.h.  */
2089
 
2090
int
2091
main ()
2092
{
2093
 
2094
  ;
2095
  return 0;
2096
}
2097
_ACEOF
2098
rm -f conftest.o conftest.obj
2099
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100
  (eval $ac_compile) 2>&5
2101
  ac_status=$?
2102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103
  (exit $ac_status); }; then
2104
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2105
  case $ac_file in
2106
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2107
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2108
       break;;
2109
  esac
2110
done
2111
else
2112
  echo "$as_me: failed program was:" >&5
2113
sed 's/^/| /' conftest.$ac_ext >&5
2114
 
2115
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2116
See \`config.log' for more details." >&5
2117
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2118
See \`config.log' for more details." >&2;}
2119
   { (exit 1); exit 1; }; }
2120
fi
2121
 
2122
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2123
fi
2124
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2125
echo "${ECHO_T}$ac_cv_objext" >&6
2126
OBJEXT=$ac_cv_objext
2127
ac_objext=$OBJEXT
2128
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2129
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2130
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2131
  echo $ECHO_N "(cached) $ECHO_C" >&6
2132
else
2133
  cat >conftest.$ac_ext <<_ACEOF
2134
/* confdefs.h.  */
2135
_ACEOF
2136
cat confdefs.h >>conftest.$ac_ext
2137
cat >>conftest.$ac_ext <<_ACEOF
2138
/* end confdefs.h.  */
2139
 
2140
int
2141
main ()
2142
{
2143
#ifndef __GNUC__
2144
       choke me
2145
#endif
2146
 
2147
  ;
2148
  return 0;
2149
}
2150
_ACEOF
2151
rm -f conftest.$ac_objext
2152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153
  (eval $ac_compile) 2>conftest.er1
2154
  ac_status=$?
2155
  grep -v '^ *+' conftest.er1 >conftest.err
2156
  rm -f conftest.er1
2157
  cat conftest.err >&5
2158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159
  (exit $ac_status); } &&
2160
         { ac_try='test -z "$ac_c_werror_flag"
2161
                         || test ! -s conftest.err'
2162
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163
  (eval $ac_try) 2>&5
2164
  ac_status=$?
2165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166
  (exit $ac_status); }; } &&
2167
         { ac_try='test -s conftest.$ac_objext'
2168
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169
  (eval $ac_try) 2>&5
2170
  ac_status=$?
2171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172
  (exit $ac_status); }; }; then
2173
  ac_compiler_gnu=yes
2174
else
2175
  echo "$as_me: failed program was:" >&5
2176
sed 's/^/| /' conftest.$ac_ext >&5
2177
 
2178
ac_compiler_gnu=no
2179
fi
2180
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2181
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2182
 
2183
fi
2184
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2185
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2186
GCC=`test $ac_compiler_gnu = yes && echo yes`
2187
ac_test_CFLAGS=${CFLAGS+set}
2188
ac_save_CFLAGS=$CFLAGS
2189
CFLAGS="-g"
2190
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2191
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2192
if test "${ac_cv_prog_cc_g+set}" = set; then
2193
  echo $ECHO_N "(cached) $ECHO_C" >&6
2194
else
2195
  cat >conftest.$ac_ext <<_ACEOF
2196
/* confdefs.h.  */
2197
_ACEOF
2198
cat confdefs.h >>conftest.$ac_ext
2199
cat >>conftest.$ac_ext <<_ACEOF
2200
/* end confdefs.h.  */
2201
 
2202
int
2203
main ()
2204
{
2205
 
2206
  ;
2207
  return 0;
2208
}
2209
_ACEOF
2210
rm -f conftest.$ac_objext
2211
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212
  (eval $ac_compile) 2>conftest.er1
2213
  ac_status=$?
2214
  grep -v '^ *+' conftest.er1 >conftest.err
2215
  rm -f conftest.er1
2216
  cat conftest.err >&5
2217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218
  (exit $ac_status); } &&
2219
         { ac_try='test -z "$ac_c_werror_flag"
2220
                         || test ! -s conftest.err'
2221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222
  (eval $ac_try) 2>&5
2223
  ac_status=$?
2224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225
  (exit $ac_status); }; } &&
2226
         { ac_try='test -s conftest.$ac_objext'
2227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228
  (eval $ac_try) 2>&5
2229
  ac_status=$?
2230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231
  (exit $ac_status); }; }; then
2232
  ac_cv_prog_cc_g=yes
2233
else
2234
  echo "$as_me: failed program was:" >&5
2235
sed 's/^/| /' conftest.$ac_ext >&5
2236
 
2237
ac_cv_prog_cc_g=no
2238
fi
2239
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2240
fi
2241
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2242
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2243
if test "$ac_test_CFLAGS" = set; then
2244
  CFLAGS=$ac_save_CFLAGS
2245
elif test $ac_cv_prog_cc_g = yes; then
2246
  if test "$GCC" = yes; then
2247
    CFLAGS="-g -O2"
2248
  else
2249
    CFLAGS="-g"
2250
  fi
2251
else
2252
  if test "$GCC" = yes; then
2253
    CFLAGS="-O2"
2254
  else
2255
    CFLAGS=
2256
  fi
2257
fi
2258
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2259
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2260
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2261
  echo $ECHO_N "(cached) $ECHO_C" >&6
2262
else
2263
  ac_cv_prog_cc_stdc=no
2264
ac_save_CC=$CC
2265
cat >conftest.$ac_ext <<_ACEOF
2266
/* confdefs.h.  */
2267
_ACEOF
2268
cat confdefs.h >>conftest.$ac_ext
2269
cat >>conftest.$ac_ext <<_ACEOF
2270
/* end confdefs.h.  */
2271
#include 
2272
#include 
2273
#include 
2274
#include 
2275
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2276
struct buf { int x; };
2277
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2278
static char *e (p, i)
2279
     char **p;
2280
     int i;
2281
{
2282
  return p[i];
2283
}
2284
static char *f (char * (*g) (char **, int), char **p, ...)
2285
{
2286
  char *s;
2287
  va_list v;
2288
  va_start (v,p);
2289
  s = g (p, va_arg (v,int));
2290
  va_end (v);
2291
  return s;
2292
}
2293
 
2294
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2295
   function prototypes and stuff, but not '\xHH' hex character constants.
2296
   These don't provoke an error unfortunately, instead are silently treated
2297
   as 'x'.  The following induces an error, until -std1 is added to get
2298
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2299
   array size at least.  It's necessary to write '\x00'==0 to get something
2300
   that's true only with -std1.  */
2301
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2302
 
2303
int test (int i, double x);
2304
struct s1 {int (*f) (int a);};
2305
struct s2 {int (*f) (double a);};
2306
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2307
int argc;
2308
char **argv;
2309
int
2310
main ()
2311
{
2312
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2313
  ;
2314
  return 0;
2315
}
2316
_ACEOF
2317
# Don't try gcc -ansi; that turns off useful extensions and
2318
# breaks some systems' header files.
2319
# AIX                   -qlanglvl=ansi
2320
# Ultrix and OSF/1      -std1
2321
# HP-UX 10.20 and later -Ae
2322
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2323
# SVR4                  -Xc -D__EXTENSIONS__
2324
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2325
do
2326
  CC="$ac_save_CC $ac_arg"
2327
  rm -f conftest.$ac_objext
2328
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329
  (eval $ac_compile) 2>conftest.er1
2330
  ac_status=$?
2331
  grep -v '^ *+' conftest.er1 >conftest.err
2332
  rm -f conftest.er1
2333
  cat conftest.err >&5
2334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335
  (exit $ac_status); } &&
2336
         { ac_try='test -z "$ac_c_werror_flag"
2337
                         || test ! -s conftest.err'
2338
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339
  (eval $ac_try) 2>&5
2340
  ac_status=$?
2341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342
  (exit $ac_status); }; } &&
2343
         { ac_try='test -s conftest.$ac_objext'
2344
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345
  (eval $ac_try) 2>&5
2346
  ac_status=$?
2347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348
  (exit $ac_status); }; }; then
2349
  ac_cv_prog_cc_stdc=$ac_arg
2350
break
2351
else
2352
  echo "$as_me: failed program was:" >&5
2353
sed 's/^/| /' conftest.$ac_ext >&5
2354
 
2355
fi
2356
rm -f conftest.err conftest.$ac_objext
2357
done
2358
rm -f conftest.$ac_ext conftest.$ac_objext
2359
CC=$ac_save_CC
2360
 
2361
fi
2362
 
2363
case "x$ac_cv_prog_cc_stdc" in
2364
  x|xno)
2365
    echo "$as_me:$LINENO: result: none needed" >&5
2366
echo "${ECHO_T}none needed" >&6 ;;
2367
  *)
2368
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2369
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2370
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2371
esac
2372
 
2373
# Some people use a C++ compiler to compile C.  Since we use `exit',
2374
# in C++ we need to declare it.  In case someone uses the same compiler
2375
# for both compiling C and C++ we need to have the C++ compiler decide
2376
# the declaration of exit, since it's the most demanding environment.
2377
cat >conftest.$ac_ext <<_ACEOF
2378
#ifndef __cplusplus
2379
  choke me
2380
#endif
2381
_ACEOF
2382
rm -f conftest.$ac_objext
2383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384
  (eval $ac_compile) 2>conftest.er1
2385
  ac_status=$?
2386
  grep -v '^ *+' conftest.er1 >conftest.err
2387
  rm -f conftest.er1
2388
  cat conftest.err >&5
2389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390
  (exit $ac_status); } &&
2391
         { ac_try='test -z "$ac_c_werror_flag"
2392
                         || test ! -s conftest.err'
2393
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394
  (eval $ac_try) 2>&5
2395
  ac_status=$?
2396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397
  (exit $ac_status); }; } &&
2398
         { ac_try='test -s conftest.$ac_objext'
2399
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400
  (eval $ac_try) 2>&5
2401
  ac_status=$?
2402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403
  (exit $ac_status); }; }; then
2404
  for ac_declaration in \
2405
   '' \
2406
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2407
   'extern "C" void std::exit (int); using std::exit;' \
2408
   'extern "C" void exit (int) throw ();' \
2409
   'extern "C" void exit (int);' \
2410
   'void exit (int);'
2411
do
2412
  cat >conftest.$ac_ext <<_ACEOF
2413
/* confdefs.h.  */
2414
_ACEOF
2415
cat confdefs.h >>conftest.$ac_ext
2416
cat >>conftest.$ac_ext <<_ACEOF
2417
/* end confdefs.h.  */
2418
$ac_declaration
2419
#include 
2420
int
2421
main ()
2422
{
2423
exit (42);
2424
  ;
2425
  return 0;
2426
}
2427
_ACEOF
2428
rm -f conftest.$ac_objext
2429
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430
  (eval $ac_compile) 2>conftest.er1
2431
  ac_status=$?
2432
  grep -v '^ *+' conftest.er1 >conftest.err
2433
  rm -f conftest.er1
2434
  cat conftest.err >&5
2435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436
  (exit $ac_status); } &&
2437
         { ac_try='test -z "$ac_c_werror_flag"
2438
                         || test ! -s conftest.err'
2439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440
  (eval $ac_try) 2>&5
2441
  ac_status=$?
2442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443
  (exit $ac_status); }; } &&
2444
         { ac_try='test -s conftest.$ac_objext'
2445
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446
  (eval $ac_try) 2>&5
2447
  ac_status=$?
2448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449
  (exit $ac_status); }; }; then
2450
  :
2451
else
2452
  echo "$as_me: failed program was:" >&5
2453
sed 's/^/| /' conftest.$ac_ext >&5
2454
 
2455
continue
2456
fi
2457
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458
  cat >conftest.$ac_ext <<_ACEOF
2459
/* confdefs.h.  */
2460
_ACEOF
2461
cat confdefs.h >>conftest.$ac_ext
2462
cat >>conftest.$ac_ext <<_ACEOF
2463
/* end confdefs.h.  */
2464
$ac_declaration
2465
int
2466
main ()
2467
{
2468
exit (42);
2469
  ;
2470
  return 0;
2471
}
2472
_ACEOF
2473
rm -f conftest.$ac_objext
2474
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475
  (eval $ac_compile) 2>conftest.er1
2476
  ac_status=$?
2477
  grep -v '^ *+' conftest.er1 >conftest.err
2478
  rm -f conftest.er1
2479
  cat conftest.err >&5
2480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481
  (exit $ac_status); } &&
2482
         { ac_try='test -z "$ac_c_werror_flag"
2483
                         || test ! -s conftest.err'
2484
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485
  (eval $ac_try) 2>&5
2486
  ac_status=$?
2487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488
  (exit $ac_status); }; } &&
2489
         { ac_try='test -s conftest.$ac_objext'
2490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491
  (eval $ac_try) 2>&5
2492
  ac_status=$?
2493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494
  (exit $ac_status); }; }; then
2495
  break
2496
else
2497
  echo "$as_me: failed program was:" >&5
2498
sed 's/^/| /' conftest.$ac_ext >&5
2499
 
2500
fi
2501
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2502
done
2503
rm -f conftest*
2504
if test -n "$ac_declaration"; then
2505
  echo '#ifdef __cplusplus' >>confdefs.h
2506
  echo $ac_declaration      >>confdefs.h
2507
  echo '#endif'             >>confdefs.h
2508
fi
2509
 
2510
else
2511
  echo "$as_me: failed program was:" >&5
2512
sed 's/^/| /' conftest.$ac_ext >&5
2513
 
2514
fi
2515
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516
ac_ext=c
2517
ac_cpp='$CPP $CPPFLAGS'
2518
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521
 
2522
 
2523
echo "$as_me:$LINENO: checking for library containing strerror" >&5
2524
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2525
if test "${ac_cv_search_strerror+set}" = set; then
2526
  echo $ECHO_N "(cached) $ECHO_C" >&6
2527
else
2528
  ac_func_search_save_LIBS=$LIBS
2529
ac_cv_search_strerror=no
2530
cat >conftest.$ac_ext <<_ACEOF
2531
/* confdefs.h.  */
2532
_ACEOF
2533
cat confdefs.h >>conftest.$ac_ext
2534
cat >>conftest.$ac_ext <<_ACEOF
2535
/* end confdefs.h.  */
2536
 
2537
/* Override any gcc2 internal prototype to avoid an error.  */
2538
#ifdef __cplusplus
2539
extern "C"
2540
#endif
2541
/* We use char because int might match the return type of a gcc2
2542
   builtin and then its argument prototype would still apply.  */
2543
char strerror ();
2544
int
2545
main ()
2546
{
2547
strerror ();
2548
  ;
2549
  return 0;
2550
}
2551
_ACEOF
2552
rm -f conftest.$ac_objext conftest$ac_exeext
2553
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2554
  (eval $ac_link) 2>conftest.er1
2555
  ac_status=$?
2556
  grep -v '^ *+' conftest.er1 >conftest.err
2557
  rm -f conftest.er1
2558
  cat conftest.err >&5
2559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560
  (exit $ac_status); } &&
2561
         { ac_try='test -z "$ac_c_werror_flag"
2562
                         || test ! -s conftest.err'
2563
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564
  (eval $ac_try) 2>&5
2565
  ac_status=$?
2566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567
  (exit $ac_status); }; } &&
2568
         { ac_try='test -s conftest$ac_exeext'
2569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570
  (eval $ac_try) 2>&5
2571
  ac_status=$?
2572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573
  (exit $ac_status); }; }; then
2574
  ac_cv_search_strerror="none required"
2575
else
2576
  echo "$as_me: failed program was:" >&5
2577
sed 's/^/| /' conftest.$ac_ext >&5
2578
 
2579
fi
2580
rm -f conftest.err conftest.$ac_objext \
2581
      conftest$ac_exeext conftest.$ac_ext
2582
if test "$ac_cv_search_strerror" = no; then
2583
  for ac_lib in cposix; do
2584
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2585
    cat >conftest.$ac_ext <<_ACEOF
2586
/* confdefs.h.  */
2587
_ACEOF
2588
cat confdefs.h >>conftest.$ac_ext
2589
cat >>conftest.$ac_ext <<_ACEOF
2590
/* end confdefs.h.  */
2591
 
2592
/* Override any gcc2 internal prototype to avoid an error.  */
2593
#ifdef __cplusplus
2594
extern "C"
2595
#endif
2596
/* We use char because int might match the return type of a gcc2
2597
   builtin and then its argument prototype would still apply.  */
2598
char strerror ();
2599
int
2600
main ()
2601
{
2602
strerror ();
2603
  ;
2604
  return 0;
2605
}
2606
_ACEOF
2607
rm -f conftest.$ac_objext conftest$ac_exeext
2608
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2609
  (eval $ac_link) 2>conftest.er1
2610
  ac_status=$?
2611
  grep -v '^ *+' conftest.er1 >conftest.err
2612
  rm -f conftest.er1
2613
  cat conftest.err >&5
2614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615
  (exit $ac_status); } &&
2616
         { ac_try='test -z "$ac_c_werror_flag"
2617
                         || test ! -s conftest.err'
2618
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619
  (eval $ac_try) 2>&5
2620
  ac_status=$?
2621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622
  (exit $ac_status); }; } &&
2623
         { ac_try='test -s conftest$ac_exeext'
2624
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625
  (eval $ac_try) 2>&5
2626
  ac_status=$?
2627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628
  (exit $ac_status); }; }; then
2629
  ac_cv_search_strerror="-l$ac_lib"
2630
break
2631
else
2632
  echo "$as_me: failed program was:" >&5
2633
sed 's/^/| /' conftest.$ac_ext >&5
2634
 
2635
fi
2636
rm -f conftest.err conftest.$ac_objext \
2637
      conftest$ac_exeext conftest.$ac_ext
2638
  done
2639
fi
2640
LIBS=$ac_func_search_save_LIBS
2641
fi
2642
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2643
echo "${ECHO_T}$ac_cv_search_strerror" >&6
2644
if test "$ac_cv_search_strerror" != no; then
2645
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2646
 
2647
fi
2648
 
2649
 
2650
BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2651
am__api_version="1.9"
2652
# Find a good install program.  We prefer a C program (faster),
2653
# so one script is as good as another.  But avoid the broken or
2654
# incompatible versions:
2655
# SysV /etc/install, /usr/sbin/install
2656
# SunOS /usr/etc/install
2657
# IRIX /sbin/install
2658
# AIX /bin/install
2659
# AmigaOS /C/install, which installs bootblocks on floppy discs
2660
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2661
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2662
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2663
# OS/2's system install, which has a completely different semantic
2664
# ./install, which can be erroneously created by make from ./install.sh.
2665
# Reject install programs that cannot install multiple files.
2666
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2667
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2668
if test -z "$INSTALL"; then
2669
if test "${ac_cv_path_install+set}" = set; then
2670
  echo $ECHO_N "(cached) $ECHO_C" >&6
2671
else
2672
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673
for as_dir in $PATH
2674
do
2675
  IFS=$as_save_IFS
2676
  test -z "$as_dir" && as_dir=.
2677
  # Account for people who put trailing slashes in PATH elements.
2678
case $as_dir/ in
2679
  ./ | .// | /cC/* | \
2680
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2681
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2682
  /usr/ucb/* ) ;;
2683
  *)
2684
    # OSF1 and SCO ODT 3.0 have their own names for install.
2685
    # Don't use installbsd from OSF since it installs stuff as root
2686
    # by default.
2687
    for ac_prog in ginstall scoinst install; do
2688
      for ac_exec_ext in '' $ac_executable_extensions; do
2689
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2690
          if test $ac_prog = install &&
2691
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2692
            # AIX install.  It has an incompatible calling convention.
2693
            :
2694
          elif test $ac_prog = install &&
2695
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2696
            # program-specific install script used by HP pwplus--don't use.
2697
            :
2698
          else
2699
            rm -rf conftest.one conftest.two conftest.dir
2700
            echo one > conftest.one
2701
            echo two > conftest.two
2702
            mkdir conftest.dir
2703
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2704
              test -s conftest.one && test -s conftest.two &&
2705
              test -s conftest.dir/conftest.one &&
2706
              test -s conftest.dir/conftest.two
2707
            then
2708
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2709
              break 3
2710
            fi
2711
          fi
2712
        fi
2713
      done
2714
    done
2715
    ;;
2716
esac
2717
done
2718
 
2719
rm -rf conftest.one conftest.two conftest.dir
2720
 
2721
fi
2722
  if test "${ac_cv_path_install+set}" = set; then
2723
    INSTALL=$ac_cv_path_install
2724
  else
2725
    # As a last resort, use the slow shell script.  Don't cache a
2726
    # value for INSTALL within a source directory, because that will
2727
    # break other packages using the cache if that directory is
2728
    # removed, or if the value is a relative name.
2729
    INSTALL=$ac_install_sh
2730
  fi
2731
fi
2732
echo "$as_me:$LINENO: result: $INSTALL" >&5
2733
echo "${ECHO_T}$INSTALL" >&6
2734
 
2735
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2736
# It thinks the first close brace ends the variable substitution.
2737
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2738
 
2739
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2740
 
2741
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2742
 
2743
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2744
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2745
# Just in case
2746
sleep 1
2747
echo timestamp > conftest.file
2748
# Do `set' in a subshell so we don't clobber the current shell's
2749
# arguments.  Must try -L first in case configure is actually a
2750
# symlink; some systems play weird games with the mod time of symlinks
2751
# (eg FreeBSD returns the mod time of the symlink's containing
2752
# directory).
2753
if (
2754
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2755
   if test "$*" = "X"; then
2756
      # -L didn't work.
2757
      set X `ls -t $srcdir/configure conftest.file`
2758
   fi
2759
   rm -f conftest.file
2760
   if test "$*" != "X $srcdir/configure conftest.file" \
2761
      && test "$*" != "X conftest.file $srcdir/configure"; then
2762
 
2763
      # If neither matched, then we have a broken ls.  This can happen
2764
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2765
      # broken ls alias from the environment.  This has actually
2766
      # happened.  Such a system could not be considered "sane".
2767
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2768
alias in your environment" >&5
2769
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2770
alias in your environment" >&2;}
2771
   { (exit 1); exit 1; }; }
2772
   fi
2773
 
2774
   test "$2" = conftest.file
2775
   )
2776
then
2777
   # Ok.
2778
   :
2779
else
2780
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2781
Check your system clock" >&5
2782
echo "$as_me: error: newly created file is older than distributed files!
2783
Check your system clock" >&2;}
2784
   { (exit 1); exit 1; }; }
2785
fi
2786
echo "$as_me:$LINENO: result: yes" >&5
2787
echo "${ECHO_T}yes" >&6
2788
test "$program_prefix" != NONE &&
2789
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2790
# Use a double $ so make ignores it.
2791
test "$program_suffix" != NONE &&
2792
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2793
# Double any \ or $.  echo might interpret backslashes.
2794
# By default was `s,x,x', remove it if useless.
2795
cat <<\_ACEOF >conftest.sed
2796
s/[\\$]/&&/g;s/;s,x,x,$//
2797
_ACEOF
2798
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2799
rm conftest.sed
2800
 
2801
# expand $ac_aux_dir to an absolute path
2802
am_aux_dir=`cd $ac_aux_dir && pwd`
2803
 
2804
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2805
# Use eval to expand $SHELL
2806
if eval "$MISSING --run true"; then
2807
  am_missing_run="$MISSING --run "
2808
else
2809
  am_missing_run=
2810
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2811
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2812
fi
2813
 
2814
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2815
  # We used to keeping the `.' as first argument, in order to
2816
  # allow $(mkdir_p) to be used without argument.  As in
2817
  #   $(mkdir_p) $(somedir)
2818
  # where $(somedir) is conditionally defined.  However this is wrong
2819
  # for two reasons:
2820
  #  1. if the package is installed by a user who cannot write `.'
2821
  #     make install will fail,
2822
  #  2. the above comment should most certainly read
2823
  #     $(mkdir_p) $(DESTDIR)$(somedir)
2824
  #     so it does not work when $(somedir) is undefined and
2825
  #     $(DESTDIR) is not.
2826
  #  To support the latter case, we have to write
2827
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2828
  #  so the `.' trick is pointless.
2829
  mkdir_p='mkdir -p --'
2830
else
2831
  # On NextStep and OpenStep, the `mkdir' command does not
2832
  # recognize any option.  It will interpret all options as
2833
  # directories to create, and then abort because `.' already
2834
  # exists.
2835
  for d in ./-p ./--version;
2836
  do
2837
    test -d $d && rmdir $d
2838
  done
2839
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2840
  if test -f "$ac_aux_dir/mkinstalldirs"; then
2841
    mkdir_p='$(mkinstalldirs)'
2842
  else
2843
    mkdir_p='$(install_sh) -d'
2844
  fi
2845
fi
2846
 
2847
for ac_prog in gawk mawk nawk awk
2848
do
2849
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2850
set dummy $ac_prog; ac_word=$2
2851
echo "$as_me:$LINENO: checking for $ac_word" >&5
2852
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2853
if test "${ac_cv_prog_AWK+set}" = set; then
2854
  echo $ECHO_N "(cached) $ECHO_C" >&6
2855
else
2856
  if test -n "$AWK"; then
2857
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2858
else
2859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860
for as_dir in $PATH
2861
do
2862
  IFS=$as_save_IFS
2863
  test -z "$as_dir" && as_dir=.
2864
  for ac_exec_ext in '' $ac_executable_extensions; do
2865
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866
    ac_cv_prog_AWK="$ac_prog"
2867
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2868
    break 2
2869
  fi
2870
done
2871
done
2872
 
2873
fi
2874
fi
2875
AWK=$ac_cv_prog_AWK
2876
if test -n "$AWK"; then
2877
  echo "$as_me:$LINENO: result: $AWK" >&5
2878
echo "${ECHO_T}$AWK" >&6
2879
else
2880
  echo "$as_me:$LINENO: result: no" >&5
2881
echo "${ECHO_T}no" >&6
2882
fi
2883
 
2884
  test -n "$AWK" && break
2885
done
2886
 
2887
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2888
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2889
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2890
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2891
  echo $ECHO_N "(cached) $ECHO_C" >&6
2892
else
2893
  cat >conftest.make <<\_ACEOF
2894
all:
2895
        @echo 'ac_maketemp="$(MAKE)"'
2896
_ACEOF
2897
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2898
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2899
if test -n "$ac_maketemp"; then
2900
  eval ac_cv_prog_make_${ac_make}_set=yes
2901
else
2902
  eval ac_cv_prog_make_${ac_make}_set=no
2903
fi
2904
rm -f conftest.make
2905
fi
2906
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2907
  echo "$as_me:$LINENO: result: yes" >&5
2908
echo "${ECHO_T}yes" >&6
2909
  SET_MAKE=
2910
else
2911
  echo "$as_me:$LINENO: result: no" >&5
2912
echo "${ECHO_T}no" >&6
2913
  SET_MAKE="MAKE=${MAKE-make}"
2914
fi
2915
 
2916
rm -rf .tst 2>/dev/null
2917
mkdir .tst 2>/dev/null
2918
if test -d .tst; then
2919
  am__leading_dot=.
2920
else
2921
  am__leading_dot=_
2922
fi
2923
rmdir .tst 2>/dev/null
2924
 
2925
DEPDIR="${am__leading_dot}deps"
2926
 
2927
          ac_config_commands="$ac_config_commands depfiles"
2928
 
2929
 
2930
am_make=${MAKE-make}
2931
cat > confinc << 'END'
2932
am__doit:
2933
        @echo done
2934
.PHONY: am__doit
2935
END
2936
# If we don't find an include directive, just comment out the code.
2937
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2938
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2939
am__include="#"
2940
am__quote=
2941
_am_result=none
2942
# First try GNU make style include.
2943
echo "include confinc" > confmf
2944
# We grep out `Entering directory' and `Leaving directory'
2945
# messages which can occur if `w' ends up in MAKEFLAGS.
2946
# In particular we don't look at `^make:' because GNU make might
2947
# be invoked under some other name (usually "gmake"), in which
2948
# case it prints its new name instead of `make'.
2949
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2950
   am__include=include
2951
   am__quote=
2952
   _am_result=GNU
2953
fi
2954
# Now try BSD make style include.
2955
if test "$am__include" = "#"; then
2956
   echo '.include "confinc"' > confmf
2957
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2958
      am__include=.include
2959
      am__quote="\""
2960
      _am_result=BSD
2961
   fi
2962
fi
2963
 
2964
 
2965
echo "$as_me:$LINENO: result: $_am_result" >&5
2966
echo "${ECHO_T}$_am_result" >&6
2967
rm -f confinc confmf
2968
 
2969
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2970
if test "${enable_dependency_tracking+set}" = set; then
2971
  enableval="$enable_dependency_tracking"
2972
 
2973
fi;
2974
if test "x$enable_dependency_tracking" != xno; then
2975
  am_depcomp="$ac_aux_dir/depcomp"
2976
  AMDEPBACKSLASH='\'
2977
fi
2978
 
2979
 
2980
if test "x$enable_dependency_tracking" != xno; then
2981
  AMDEP_TRUE=
2982
  AMDEP_FALSE='#'
2983
else
2984
  AMDEP_TRUE='#'
2985
  AMDEP_FALSE=
2986
fi
2987
 
2988
 
2989
 
2990
# test to see if srcdir already configured
2991
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2992
   test -f $srcdir/config.status; then
2993
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2994
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2995
   { (exit 1); exit 1; }; }
2996
fi
2997
 
2998
# test whether we have cygpath
2999
if test -z "$CYGPATH_W"; then
3000
  if (cygpath --version) >/dev/null 2>/dev/null; then
3001
    CYGPATH_W='cygpath -w'
3002
  else
3003
    CYGPATH_W=echo
3004
  fi
3005
fi
3006
 
3007
 
3008
# Define the identity of the package.
3009
 PACKAGE=ld
3010
 VERSION=${BFD_VERSION}
3011
 
3012
 
3013
cat >>confdefs.h <<_ACEOF
3014
#define PACKAGE "$PACKAGE"
3015
_ACEOF
3016
 
3017
 
3018
cat >>confdefs.h <<_ACEOF
3019
#define VERSION "$VERSION"
3020
_ACEOF
3021
 
3022
# Some tools Automake needs.
3023
 
3024
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3025
 
3026
 
3027
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3028
 
3029
 
3030
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3031
 
3032
 
3033
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3034
 
3035
 
3036
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3037
 
3038
install_sh=${install_sh-"$am_aux_dir/install-sh"}
3039
 
3040
# Installed binaries are usually stripped using `strip' when the user
3041
# run `make install-strip'.  However `strip' might not be the right
3042
# tool to use in cross-compilation environments, therefore Automake
3043
# will honor the `STRIP' environment variable to overrule this program.
3044
if test "$cross_compiling" != no; then
3045
  if test -n "$ac_tool_prefix"; then
3046
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3047
set dummy ${ac_tool_prefix}strip; ac_word=$2
3048
echo "$as_me:$LINENO: checking for $ac_word" >&5
3049
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3050
if test "${ac_cv_prog_STRIP+set}" = set; then
3051
  echo $ECHO_N "(cached) $ECHO_C" >&6
3052
else
3053
  if test -n "$STRIP"; then
3054
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3055
else
3056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057
for as_dir in $PATH
3058
do
3059
  IFS=$as_save_IFS
3060
  test -z "$as_dir" && as_dir=.
3061
  for ac_exec_ext in '' $ac_executable_extensions; do
3062
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3064
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065
    break 2
3066
  fi
3067
done
3068
done
3069
 
3070
fi
3071
fi
3072
STRIP=$ac_cv_prog_STRIP
3073
if test -n "$STRIP"; then
3074
  echo "$as_me:$LINENO: result: $STRIP" >&5
3075
echo "${ECHO_T}$STRIP" >&6
3076
else
3077
  echo "$as_me:$LINENO: result: no" >&5
3078
echo "${ECHO_T}no" >&6
3079
fi
3080
 
3081
fi
3082
if test -z "$ac_cv_prog_STRIP"; then
3083
  ac_ct_STRIP=$STRIP
3084
  # Extract the first word of "strip", so it can be a program name with args.
3085
set dummy strip; ac_word=$2
3086
echo "$as_me:$LINENO: checking for $ac_word" >&5
3087
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3088
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3089
  echo $ECHO_N "(cached) $ECHO_C" >&6
3090
else
3091
  if test -n "$ac_ct_STRIP"; then
3092
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3093
else
3094
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095
for as_dir in $PATH
3096
do
3097
  IFS=$as_save_IFS
3098
  test -z "$as_dir" && as_dir=.
3099
  for ac_exec_ext in '' $ac_executable_extensions; do
3100
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101
    ac_cv_prog_ac_ct_STRIP="strip"
3102
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103
    break 2
3104
  fi
3105
done
3106
done
3107
 
3108
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3109
fi
3110
fi
3111
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3112
if test -n "$ac_ct_STRIP"; then
3113
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3114
echo "${ECHO_T}$ac_ct_STRIP" >&6
3115
else
3116
  echo "$as_me:$LINENO: result: no" >&5
3117
echo "${ECHO_T}no" >&6
3118
fi
3119
 
3120
  STRIP=$ac_ct_STRIP
3121
else
3122
  STRIP="$ac_cv_prog_STRIP"
3123
fi
3124
 
3125
fi
3126
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3127
 
3128
# We need awk for the "check" target.  The system "awk" is bad on
3129
# some platforms.
3130
# Always define AMTAR for backward compatibility.
3131
 
3132
AMTAR=${AMTAR-"${am_missing_run}tar"}
3133
 
3134
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3135
 
3136
 
3137
 
3138
 
3139
depcc="$CC"   am_compiler_list=
3140
 
3141
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3142
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3143
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3144
  echo $ECHO_N "(cached) $ECHO_C" >&6
3145
else
3146
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3147
  # We make a subdir and do the tests there.  Otherwise we can end up
3148
  # making bogus files that we don't know about and never remove.  For
3149
  # instance it was reported that on HP-UX the gcc test will end up
3150
  # making a dummy file named `D' -- because `-MD' means `put the output
3151
  # in D'.
3152
  mkdir conftest.dir
3153
  # Copy depcomp to subdir because otherwise we won't find it if we're
3154
  # using a relative directory.
3155
  cp "$am_depcomp" conftest.dir
3156
  cd conftest.dir
3157
  # We will build objects and dependencies in a subdirectory because
3158
  # it helps to detect inapplicable dependency modes.  For instance
3159
  # both Tru64's cc and ICC support -MD to output dependencies as a
3160
  # side effect of compilation, but ICC will put the dependencies in
3161
  # the current directory while Tru64 will put them in the object
3162
  # directory.
3163
  mkdir sub
3164
 
3165
  am_cv_CC_dependencies_compiler_type=none
3166
  if test "$am_compiler_list" = ""; then
3167
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3168
  fi
3169
  for depmode in $am_compiler_list; do
3170
    # Setup a source with many dependencies, because some compilers
3171
    # like to wrap large dependency lists on column 80 (with \), and
3172
    # we should not choose a depcomp mode which is confused by this.
3173
    #
3174
    # We need to recreate these files for each test, as the compiler may
3175
    # overwrite some of them when testing with obscure command lines.
3176
    # This happens at least with the AIX C compiler.
3177
    : > sub/conftest.c
3178
    for i in 1 2 3 4 5 6; do
3179
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3180
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3181
      # Solaris 8's {/usr,}/bin/sh.
3182
      touch sub/conftst$i.h
3183
    done
3184
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3185
 
3186
    case $depmode in
3187
    nosideeffect)
3188
      # after this tag, mechanisms are not by side-effect, so they'll
3189
      # only be used when explicitly requested
3190
      if test "x$enable_dependency_tracking" = xyes; then
3191
        continue
3192
      else
3193
        break
3194
      fi
3195
      ;;
3196
    none) break ;;
3197
    esac
3198
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3199
    # mode.  It turns out that the SunPro C++ compiler does not properly
3200
    # handle `-M -o', and we need to detect this.
3201
    if depmode=$depmode \
3202
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3203
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3204
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3205
         >/dev/null 2>conftest.err &&
3206
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3207
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3208
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3209
      # icc doesn't choke on unknown options, it will just issue warnings
3210
      # or remarks (even with -Werror).  So we grep stderr for any message
3211
      # that says an option was ignored or not supported.
3212
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3213
      #   icc: Command line warning: ignoring option '-M'; no argument required
3214
      # The diagnosis changed in icc 8.0:
3215
      #   icc: Command line remark: option '-MP' not supported
3216
      if (grep 'ignoring option' conftest.err ||
3217
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3218
        am_cv_CC_dependencies_compiler_type=$depmode
3219
        break
3220
      fi
3221
    fi
3222
  done
3223
 
3224
  cd ..
3225
  rm -rf conftest.dir
3226
else
3227
  am_cv_CC_dependencies_compiler_type=none
3228
fi
3229
 
3230
fi
3231
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3232
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3233
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3234
 
3235
 
3236
 
3237
if
3238
  test "x$enable_dependency_tracking" != xno \
3239
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3240
  am__fastdepCC_TRUE=
3241
  am__fastdepCC_FALSE='#'
3242
else
3243
  am__fastdepCC_TRUE='#'
3244
  am__fastdepCC_FALSE=
3245
fi
3246
 
3247
 
3248
 
3249
 
3250
 
3251
# Check whether --with-lib-path or --without-lib-path was given.
3252
if test "${with_lib_path+set}" = set; then
3253
  withval="$with_lib_path"
3254
  LIB_PATH=$withval
3255
fi;
3256
# Check whether --enable-targets or --disable-targets was given.
3257
if test "${enable_targets+set}" = set; then
3258
  enableval="$enable_targets"
3259
  case "${enableval}" in
3260
  yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3261
echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3262
   { (exit 1); exit 1; }; }
3263
            ;;
3264
  no)       enable_targets= ;;
3265
  *)        enable_targets=$enableval ;;
3266
esac
3267
fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3268
if test "${enable_64_bit_bfd+set}" = set; then
3269
  enableval="$enable_64_bit_bfd"
3270
  case "${enableval}" in
3271
  yes)  want64=true  ;;
3272
  no)   want64=false ;;
3273
  *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3274
echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3275
   { (exit 1); exit 1; }; } ;;
3276
esac
3277
else
3278
  want64=false
3279
fi;
3280
 
3281
# Check whether --with-sysroot or --without-sysroot was given.
3282
if test "${with_sysroot+set}" = set; then
3283
  withval="$with_sysroot"
3284
 
3285
 case ${with_sysroot} in
3286
 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
3287
 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3288
 esac
3289
 
3290
 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3291
 use_sysroot=yes
3292
 
3293
 if test "x$prefix" = xNONE; then
3294
  test_prefix=/usr/local
3295
 else
3296
  test_prefix=$prefix
3297
 fi
3298
 if test "x$exec_prefix" = xNONE; then
3299
  test_exec_prefix=$test_prefix
3300
 else
3301
  test_exec_prefix=$exec_prefix
3302
 fi
3303
 case ${TARGET_SYSTEM_ROOT} in
3304
 "${test_prefix}"|"${test_prefix}/"*|\
3305
 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3306
 '${prefix}'|'${prefix}/'*|\
3307
 '${exec_prefix}'|'${exec_prefix}/'*)
3308
   t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3309
   TARGET_SYSTEM_ROOT_DEFINE="$t"
3310
   ;;
3311
 esac
3312
 
3313
else
3314
 
3315
 use_sysroot=no
3316
 TARGET_SYSTEM_ROOT=
3317
 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
3318
 
3319
fi;
3320
 
3321
 
3322
 
3323
 
3324
 
3325
GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3326
 
3327
# Check whether --enable-werror or --disable-werror was given.
3328
if test "${enable_werror+set}" = set; then
3329
  enableval="$enable_werror"
3330
  case "${enableval}" in
3331
     yes | y) ERROR_ON_WARNING="yes" ;;
3332
     no | n)  ERROR_ON_WARNING="no" ;;
3333
     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
3334
echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
3335
   { (exit 1); exit 1; }; } ;;
3336
   esac
3337
fi;
3338
 
3339
# Enable -Wno-format by default when using gcc on mingw
3340
case "${host}" in
3341
  *-*-mingw32*)
3342
    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3343
      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
3344
    fi
3345
    ;;
3346
  *) ;;
3347
esac
3348
 
3349
# Enable -Werror by default when using gcc
3350
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3351
    ERROR_ON_WARNING=yes
3352
fi
3353
 
3354
NO_WERROR=
3355
if test "${ERROR_ON_WARNING}" = yes ; then
3356
    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
3357
    NO_WERROR="-Wno-error"
3358
fi
3359
 
3360
if test "${GCC}" = yes ; then
3361
  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
3362
fi
3363
 
3364
# Check whether --enable-build-warnings or --disable-build-warnings was given.
3365
if test "${enable_build_warnings+set}" = set; then
3366
  enableval="$enable_build_warnings"
3367
  case "${enableval}" in
3368
  yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
3369
  no)   if test "${GCC}" = yes ; then
3370
          WARN_CFLAGS="-w"
3371
        fi;;
3372
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
3373
        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
3374
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
3375
        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
3376
  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3377
esac
3378
fi;
3379
 
3380
if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
3381
  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
3382
fi
3383
 
3384
 
3385
 
3386
 
3387
 
3388
          ac_config_headers="$ac_config_headers config.h:config.in"
3389
 
3390
 
3391
if test -z "$target" ; then
3392
    { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3393
echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3394
   { (exit 1); exit 1; }; }
3395
fi
3396
if test -z "$host" ; then
3397
    { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
3398
echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
3399
   { (exit 1); exit 1; }; }
3400
fi
3401
 
3402
# host-specific stuff:
3403
 
3404
ac_ext=c
3405
ac_cpp='$CPP $CPPFLAGS'
3406
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409
if test -n "$ac_tool_prefix"; then
3410
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3411
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3412
echo "$as_me:$LINENO: checking for $ac_word" >&5
3413
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3414
if test "${ac_cv_prog_CC+set}" = set; then
3415
  echo $ECHO_N "(cached) $ECHO_C" >&6
3416
else
3417
  if test -n "$CC"; then
3418
  ac_cv_prog_CC="$CC" # Let the user override the test.
3419
else
3420
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421
for as_dir in $PATH
3422
do
3423
  IFS=$as_save_IFS
3424
  test -z "$as_dir" && as_dir=.
3425
  for ac_exec_ext in '' $ac_executable_extensions; do
3426
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3428
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3429
    break 2
3430
  fi
3431
done
3432
done
3433
 
3434
fi
3435
fi
3436
CC=$ac_cv_prog_CC
3437
if test -n "$CC"; then
3438
  echo "$as_me:$LINENO: result: $CC" >&5
3439
echo "${ECHO_T}$CC" >&6
3440
else
3441
  echo "$as_me:$LINENO: result: no" >&5
3442
echo "${ECHO_T}no" >&6
3443
fi
3444
 
3445
fi
3446
if test -z "$ac_cv_prog_CC"; then
3447
  ac_ct_CC=$CC
3448
  # Extract the first word of "gcc", so it can be a program name with args.
3449
set dummy gcc; ac_word=$2
3450
echo "$as_me:$LINENO: checking for $ac_word" >&5
3451
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3452
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3453
  echo $ECHO_N "(cached) $ECHO_C" >&6
3454
else
3455
  if test -n "$ac_ct_CC"; then
3456
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3457
else
3458
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459
for as_dir in $PATH
3460
do
3461
  IFS=$as_save_IFS
3462
  test -z "$as_dir" && as_dir=.
3463
  for ac_exec_ext in '' $ac_executable_extensions; do
3464
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465
    ac_cv_prog_ac_ct_CC="gcc"
3466
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467
    break 2
3468
  fi
3469
done
3470
done
3471
 
3472
fi
3473
fi
3474
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3475
if test -n "$ac_ct_CC"; then
3476
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3477
echo "${ECHO_T}$ac_ct_CC" >&6
3478
else
3479
  echo "$as_me:$LINENO: result: no" >&5
3480
echo "${ECHO_T}no" >&6
3481
fi
3482
 
3483
  CC=$ac_ct_CC
3484
else
3485
  CC="$ac_cv_prog_CC"
3486
fi
3487
 
3488
if test -z "$CC"; then
3489
  if test -n "$ac_tool_prefix"; then
3490
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3491
set dummy ${ac_tool_prefix}cc; ac_word=$2
3492
echo "$as_me:$LINENO: checking for $ac_word" >&5
3493
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3494
if test "${ac_cv_prog_CC+set}" = set; then
3495
  echo $ECHO_N "(cached) $ECHO_C" >&6
3496
else
3497
  if test -n "$CC"; then
3498
  ac_cv_prog_CC="$CC" # Let the user override the test.
3499
else
3500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501
for as_dir in $PATH
3502
do
3503
  IFS=$as_save_IFS
3504
  test -z "$as_dir" && as_dir=.
3505
  for ac_exec_ext in '' $ac_executable_extensions; do
3506
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3508
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509
    break 2
3510
  fi
3511
done
3512
done
3513
 
3514
fi
3515
fi
3516
CC=$ac_cv_prog_CC
3517
if test -n "$CC"; then
3518
  echo "$as_me:$LINENO: result: $CC" >&5
3519
echo "${ECHO_T}$CC" >&6
3520
else
3521
  echo "$as_me:$LINENO: result: no" >&5
3522
echo "${ECHO_T}no" >&6
3523
fi
3524
 
3525
fi
3526
if test -z "$ac_cv_prog_CC"; then
3527
  ac_ct_CC=$CC
3528
  # Extract the first word of "cc", so it can be a program name with args.
3529
set dummy cc; ac_word=$2
3530
echo "$as_me:$LINENO: checking for $ac_word" >&5
3531
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3532
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3533
  echo $ECHO_N "(cached) $ECHO_C" >&6
3534
else
3535
  if test -n "$ac_ct_CC"; then
3536
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3537
else
3538
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539
for as_dir in $PATH
3540
do
3541
  IFS=$as_save_IFS
3542
  test -z "$as_dir" && as_dir=.
3543
  for ac_exec_ext in '' $ac_executable_extensions; do
3544
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545
    ac_cv_prog_ac_ct_CC="cc"
3546
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3547
    break 2
3548
  fi
3549
done
3550
done
3551
 
3552
fi
3553
fi
3554
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3555
if test -n "$ac_ct_CC"; then
3556
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3557
echo "${ECHO_T}$ac_ct_CC" >&6
3558
else
3559
  echo "$as_me:$LINENO: result: no" >&5
3560
echo "${ECHO_T}no" >&6
3561
fi
3562
 
3563
  CC=$ac_ct_CC
3564
else
3565
  CC="$ac_cv_prog_CC"
3566
fi
3567
 
3568
fi
3569
if test -z "$CC"; then
3570
  # Extract the first word of "cc", so it can be a program name with args.
3571
set dummy cc; ac_word=$2
3572
echo "$as_me:$LINENO: checking for $ac_word" >&5
3573
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3574
if test "${ac_cv_prog_CC+set}" = set; then
3575
  echo $ECHO_N "(cached) $ECHO_C" >&6
3576
else
3577
  if test -n "$CC"; then
3578
  ac_cv_prog_CC="$CC" # Let the user override the test.
3579
else
3580
  ac_prog_rejected=no
3581
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582
for as_dir in $PATH
3583
do
3584
  IFS=$as_save_IFS
3585
  test -z "$as_dir" && as_dir=.
3586
  for ac_exec_ext in '' $ac_executable_extensions; do
3587
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3589
       ac_prog_rejected=yes
3590
       continue
3591
     fi
3592
    ac_cv_prog_CC="cc"
3593
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3594
    break 2
3595
  fi
3596
done
3597
done
3598
 
3599
if test $ac_prog_rejected = yes; then
3600
  # We found a bogon in the path, so make sure we never use it.
3601
  set dummy $ac_cv_prog_CC
3602
  shift
3603
  if test $# != 0; then
3604
    # We chose a different compiler from the bogus one.
3605
    # However, it has the same basename, so the bogon will be chosen
3606
    # first if we set CC to just the basename; use the full file name.
3607
    shift
3608
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3609
  fi
3610
fi
3611
fi
3612
fi
3613
CC=$ac_cv_prog_CC
3614
if test -n "$CC"; then
3615
  echo "$as_me:$LINENO: result: $CC" >&5
3616
echo "${ECHO_T}$CC" >&6
3617
else
3618
  echo "$as_me:$LINENO: result: no" >&5
3619
echo "${ECHO_T}no" >&6
3620
fi
3621
 
3622
fi
3623
if test -z "$CC"; then
3624
  if test -n "$ac_tool_prefix"; then
3625
  for ac_prog in cl
3626
  do
3627
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3628
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3629
echo "$as_me:$LINENO: checking for $ac_word" >&5
3630
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3631
if test "${ac_cv_prog_CC+set}" = set; then
3632
  echo $ECHO_N "(cached) $ECHO_C" >&6
3633
else
3634
  if test -n "$CC"; then
3635
  ac_cv_prog_CC="$CC" # Let the user override the test.
3636
else
3637
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638
for as_dir in $PATH
3639
do
3640
  IFS=$as_save_IFS
3641
  test -z "$as_dir" && as_dir=.
3642
  for ac_exec_ext in '' $ac_executable_extensions; do
3643
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3645
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3646
    break 2
3647
  fi
3648
done
3649
done
3650
 
3651
fi
3652
fi
3653
CC=$ac_cv_prog_CC
3654
if test -n "$CC"; then
3655
  echo "$as_me:$LINENO: result: $CC" >&5
3656
echo "${ECHO_T}$CC" >&6
3657
else
3658
  echo "$as_me:$LINENO: result: no" >&5
3659
echo "${ECHO_T}no" >&6
3660
fi
3661
 
3662
    test -n "$CC" && break
3663
  done
3664
fi
3665
if test -z "$CC"; then
3666
  ac_ct_CC=$CC
3667
  for ac_prog in cl
3668
do
3669
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3670
set dummy $ac_prog; ac_word=$2
3671
echo "$as_me:$LINENO: checking for $ac_word" >&5
3672
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3673
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3674
  echo $ECHO_N "(cached) $ECHO_C" >&6
3675
else
3676
  if test -n "$ac_ct_CC"; then
3677
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3678
else
3679
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680
for as_dir in $PATH
3681
do
3682
  IFS=$as_save_IFS
3683
  test -z "$as_dir" && as_dir=.
3684
  for ac_exec_ext in '' $ac_executable_extensions; do
3685
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3686
    ac_cv_prog_ac_ct_CC="$ac_prog"
3687
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3688
    break 2
3689
  fi
3690
done
3691
done
3692
 
3693
fi
3694
fi
3695
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3696
if test -n "$ac_ct_CC"; then
3697
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3698
echo "${ECHO_T}$ac_ct_CC" >&6
3699
else
3700
  echo "$as_me:$LINENO: result: no" >&5
3701
echo "${ECHO_T}no" >&6
3702
fi
3703
 
3704
  test -n "$ac_ct_CC" && break
3705
done
3706
 
3707
  CC=$ac_ct_CC
3708
fi
3709
 
3710
fi
3711
 
3712
 
3713
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3714
See \`config.log' for more details." >&5
3715
echo "$as_me: error: no acceptable C compiler found in \$PATH
3716
See \`config.log' for more details." >&2;}
3717
   { (exit 1); exit 1; }; }
3718
 
3719
# Provide some information about the compiler.
3720
echo "$as_me:$LINENO:" \
3721
     "checking for C compiler version" >&5
3722
ac_compiler=`set X $ac_compile; echo $2`
3723
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3724
  (eval $ac_compiler --version &5) 2>&5
3725
  ac_status=$?
3726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727
  (exit $ac_status); }
3728
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3729
  (eval $ac_compiler -v &5) 2>&5
3730
  ac_status=$?
3731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732
  (exit $ac_status); }
3733
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3734
  (eval $ac_compiler -V &5) 2>&5
3735
  ac_status=$?
3736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737
  (exit $ac_status); }
3738
 
3739
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3740
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3741
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3742
  echo $ECHO_N "(cached) $ECHO_C" >&6
3743
else
3744
  cat >conftest.$ac_ext <<_ACEOF
3745
/* confdefs.h.  */
3746
_ACEOF
3747
cat confdefs.h >>conftest.$ac_ext
3748
cat >>conftest.$ac_ext <<_ACEOF
3749
/* end confdefs.h.  */
3750
 
3751
int
3752
main ()
3753
{
3754
#ifndef __GNUC__
3755
       choke me
3756
#endif
3757
 
3758
  ;
3759
  return 0;
3760
}
3761
_ACEOF
3762
rm -f conftest.$ac_objext
3763
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3764
  (eval $ac_compile) 2>conftest.er1
3765
  ac_status=$?
3766
  grep -v '^ *+' conftest.er1 >conftest.err
3767
  rm -f conftest.er1
3768
  cat conftest.err >&5
3769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770
  (exit $ac_status); } &&
3771
         { ac_try='test -z "$ac_c_werror_flag"
3772
                         || test ! -s conftest.err'
3773
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774
  (eval $ac_try) 2>&5
3775
  ac_status=$?
3776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777
  (exit $ac_status); }; } &&
3778
         { ac_try='test -s conftest.$ac_objext'
3779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780
  (eval $ac_try) 2>&5
3781
  ac_status=$?
3782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783
  (exit $ac_status); }; }; then
3784
  ac_compiler_gnu=yes
3785
else
3786
  echo "$as_me: failed program was:" >&5
3787
sed 's/^/| /' conftest.$ac_ext >&5
3788
 
3789
ac_compiler_gnu=no
3790
fi
3791
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3792
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3793
 
3794
fi
3795
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3796
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3797
GCC=`test $ac_compiler_gnu = yes && echo yes`
3798
ac_test_CFLAGS=${CFLAGS+set}
3799
ac_save_CFLAGS=$CFLAGS
3800
CFLAGS="-g"
3801
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3802
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3803
if test "${ac_cv_prog_cc_g+set}" = set; then
3804
  echo $ECHO_N "(cached) $ECHO_C" >&6
3805
else
3806
  cat >conftest.$ac_ext <<_ACEOF
3807
/* confdefs.h.  */
3808
_ACEOF
3809
cat confdefs.h >>conftest.$ac_ext
3810
cat >>conftest.$ac_ext <<_ACEOF
3811
/* end confdefs.h.  */
3812
 
3813
int
3814
main ()
3815
{
3816
 
3817
  ;
3818
  return 0;
3819
}
3820
_ACEOF
3821
rm -f conftest.$ac_objext
3822
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3823
  (eval $ac_compile) 2>conftest.er1
3824
  ac_status=$?
3825
  grep -v '^ *+' conftest.er1 >conftest.err
3826
  rm -f conftest.er1
3827
  cat conftest.err >&5
3828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829
  (exit $ac_status); } &&
3830
         { ac_try='test -z "$ac_c_werror_flag"
3831
                         || test ! -s conftest.err'
3832
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833
  (eval $ac_try) 2>&5
3834
  ac_status=$?
3835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836
  (exit $ac_status); }; } &&
3837
         { ac_try='test -s conftest.$ac_objext'
3838
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839
  (eval $ac_try) 2>&5
3840
  ac_status=$?
3841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842
  (exit $ac_status); }; }; then
3843
  ac_cv_prog_cc_g=yes
3844
else
3845
  echo "$as_me: failed program was:" >&5
3846
sed 's/^/| /' conftest.$ac_ext >&5
3847
 
3848
ac_cv_prog_cc_g=no
3849
fi
3850
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3851
fi
3852
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3853
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3854
if test "$ac_test_CFLAGS" = set; then
3855
  CFLAGS=$ac_save_CFLAGS
3856
elif test $ac_cv_prog_cc_g = yes; then
3857
  if test "$GCC" = yes; then
3858
    CFLAGS="-g -O2"
3859
  else
3860
    CFLAGS="-g"
3861
  fi
3862
else
3863
  if test "$GCC" = yes; then
3864
    CFLAGS="-O2"
3865
  else
3866
    CFLAGS=
3867
  fi
3868
fi
3869
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3870
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3871
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3872
  echo $ECHO_N "(cached) $ECHO_C" >&6
3873
else
3874
  ac_cv_prog_cc_stdc=no
3875
ac_save_CC=$CC
3876
cat >conftest.$ac_ext <<_ACEOF
3877
/* confdefs.h.  */
3878
_ACEOF
3879
cat confdefs.h >>conftest.$ac_ext
3880
cat >>conftest.$ac_ext <<_ACEOF
3881
/* end confdefs.h.  */
3882
#include 
3883
#include 
3884
#include 
3885
#include 
3886
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3887
struct buf { int x; };
3888
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3889
static char *e (p, i)
3890
     char **p;
3891
     int i;
3892
{
3893
  return p[i];
3894
}
3895
static char *f (char * (*g) (char **, int), char **p, ...)
3896
{
3897
  char *s;
3898
  va_list v;
3899
  va_start (v,p);
3900
  s = g (p, va_arg (v,int));
3901
  va_end (v);
3902
  return s;
3903
}
3904
 
3905
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3906
   function prototypes and stuff, but not '\xHH' hex character constants.
3907
   These don't provoke an error unfortunately, instead are silently treated
3908
   as 'x'.  The following induces an error, until -std1 is added to get
3909
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3910
   array size at least.  It's necessary to write '\x00'==0 to get something
3911
   that's true only with -std1.  */
3912
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3913
 
3914
int test (int i, double x);
3915
struct s1 {int (*f) (int a);};
3916
struct s2 {int (*f) (double a);};
3917
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3918
int argc;
3919
char **argv;
3920
int
3921
main ()
3922
{
3923
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3924
  ;
3925
  return 0;
3926
}
3927
_ACEOF
3928
# Don't try gcc -ansi; that turns off useful extensions and
3929
# breaks some systems' header files.
3930
# AIX                   -qlanglvl=ansi
3931
# Ultrix and OSF/1      -std1
3932
# HP-UX 10.20 and later -Ae
3933
# HP-UX older versions  -Aa -D_HPUX_SOURCE
3934
# SVR4                  -Xc -D__EXTENSIONS__
3935
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3936
do
3937
  CC="$ac_save_CC $ac_arg"
3938
  rm -f conftest.$ac_objext
3939
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3940
  (eval $ac_compile) 2>conftest.er1
3941
  ac_status=$?
3942
  grep -v '^ *+' conftest.er1 >conftest.err
3943
  rm -f conftest.er1
3944
  cat conftest.err >&5
3945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946
  (exit $ac_status); } &&
3947
         { ac_try='test -z "$ac_c_werror_flag"
3948
                         || test ! -s conftest.err'
3949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950
  (eval $ac_try) 2>&5
3951
  ac_status=$?
3952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953
  (exit $ac_status); }; } &&
3954
         { ac_try='test -s conftest.$ac_objext'
3955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956
  (eval $ac_try) 2>&5
3957
  ac_status=$?
3958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959
  (exit $ac_status); }; }; then
3960
  ac_cv_prog_cc_stdc=$ac_arg
3961
break
3962
else
3963
  echo "$as_me: failed program was:" >&5
3964
sed 's/^/| /' conftest.$ac_ext >&5
3965
 
3966
fi
3967
rm -f conftest.err conftest.$ac_objext
3968
done
3969
rm -f conftest.$ac_ext conftest.$ac_objext
3970
CC=$ac_save_CC
3971
 
3972
fi
3973
 
3974
case "x$ac_cv_prog_cc_stdc" in
3975
  x|xno)
3976
    echo "$as_me:$LINENO: result: none needed" >&5
3977
echo "${ECHO_T}none needed" >&6 ;;
3978
  *)
3979
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3980
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3981
    CC="$CC $ac_cv_prog_cc_stdc" ;;
3982
esac
3983
 
3984
# Some people use a C++ compiler to compile C.  Since we use `exit',
3985
# in C++ we need to declare it.  In case someone uses the same compiler
3986
# for both compiling C and C++ we need to have the C++ compiler decide
3987
# the declaration of exit, since it's the most demanding environment.
3988
cat >conftest.$ac_ext <<_ACEOF
3989
#ifndef __cplusplus
3990
  choke me
3991
#endif
3992
_ACEOF
3993
rm -f conftest.$ac_objext
3994
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995
  (eval $ac_compile) 2>conftest.er1
3996
  ac_status=$?
3997
  grep -v '^ *+' conftest.er1 >conftest.err
3998
  rm -f conftest.er1
3999
  cat conftest.err >&5
4000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001
  (exit $ac_status); } &&
4002
         { ac_try='test -z "$ac_c_werror_flag"
4003
                         || test ! -s conftest.err'
4004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005
  (eval $ac_try) 2>&5
4006
  ac_status=$?
4007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008
  (exit $ac_status); }; } &&
4009
         { ac_try='test -s conftest.$ac_objext'
4010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011
  (eval $ac_try) 2>&5
4012
  ac_status=$?
4013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014
  (exit $ac_status); }; }; then
4015
  for ac_declaration in \
4016
   '' \
4017
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4018
   'extern "C" void std::exit (int); using std::exit;' \
4019
   'extern "C" void exit (int) throw ();' \
4020
   'extern "C" void exit (int);' \
4021
   'void exit (int);'
4022
do
4023
  cat >conftest.$ac_ext <<_ACEOF
4024
/* confdefs.h.  */
4025
_ACEOF
4026
cat confdefs.h >>conftest.$ac_ext
4027
cat >>conftest.$ac_ext <<_ACEOF
4028
/* end confdefs.h.  */
4029
$ac_declaration
4030
#include 
4031
int
4032
main ()
4033
{
4034
exit (42);
4035
  ;
4036
  return 0;
4037
}
4038
_ACEOF
4039
rm -f conftest.$ac_objext
4040
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041
  (eval $ac_compile) 2>conftest.er1
4042
  ac_status=$?
4043
  grep -v '^ *+' conftest.er1 >conftest.err
4044
  rm -f conftest.er1
4045
  cat conftest.err >&5
4046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047
  (exit $ac_status); } &&
4048
         { ac_try='test -z "$ac_c_werror_flag"
4049
                         || test ! -s conftest.err'
4050
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051
  (eval $ac_try) 2>&5
4052
  ac_status=$?
4053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054
  (exit $ac_status); }; } &&
4055
         { ac_try='test -s conftest.$ac_objext'
4056
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057
  (eval $ac_try) 2>&5
4058
  ac_status=$?
4059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060
  (exit $ac_status); }; }; then
4061
  :
4062
else
4063
  echo "$as_me: failed program was:" >&5
4064
sed 's/^/| /' conftest.$ac_ext >&5
4065
 
4066
continue
4067
fi
4068
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4069
  cat >conftest.$ac_ext <<_ACEOF
4070
/* confdefs.h.  */
4071
_ACEOF
4072
cat confdefs.h >>conftest.$ac_ext
4073
cat >>conftest.$ac_ext <<_ACEOF
4074
/* end confdefs.h.  */
4075
$ac_declaration
4076
int
4077
main ()
4078
{
4079
exit (42);
4080
  ;
4081
  return 0;
4082
}
4083
_ACEOF
4084
rm -f conftest.$ac_objext
4085
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086
  (eval $ac_compile) 2>conftest.er1
4087
  ac_status=$?
4088
  grep -v '^ *+' conftest.er1 >conftest.err
4089
  rm -f conftest.er1
4090
  cat conftest.err >&5
4091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092
  (exit $ac_status); } &&
4093
         { ac_try='test -z "$ac_c_werror_flag"
4094
                         || test ! -s conftest.err'
4095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096
  (eval $ac_try) 2>&5
4097
  ac_status=$?
4098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099
  (exit $ac_status); }; } &&
4100
         { ac_try='test -s conftest.$ac_objext'
4101
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102
  (eval $ac_try) 2>&5
4103
  ac_status=$?
4104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105
  (exit $ac_status); }; }; then
4106
  break
4107
else
4108
  echo "$as_me: failed program was:" >&5
4109
sed 's/^/| /' conftest.$ac_ext >&5
4110
 
4111
fi
4112
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4113
done
4114
rm -f conftest*
4115
if test -n "$ac_declaration"; then
4116
  echo '#ifdef __cplusplus' >>confdefs.h
4117
  echo $ac_declaration      >>confdefs.h
4118
  echo '#endif'             >>confdefs.h
4119
fi
4120
 
4121
else
4122
  echo "$as_me: failed program was:" >&5
4123
sed 's/^/| /' conftest.$ac_ext >&5
4124
 
4125
fi
4126
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4127
ac_ext=c
4128
ac_cpp='$CPP $CPPFLAGS'
4129
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132
 
4133
 
4134
cat >>confdefs.h <<\_ACEOF
4135
#define _GNU_SOURCE 1
4136
_ACEOF
4137
 
4138
 
4139
# Find a good install program.  We prefer a C program (faster),
4140
# so one script is as good as another.  But avoid the broken or
4141
# incompatible versions:
4142
# SysV /etc/install, /usr/sbin/install
4143
# SunOS /usr/etc/install
4144
# IRIX /sbin/install
4145
# AIX /bin/install
4146
# AmigaOS /C/install, which installs bootblocks on floppy discs
4147
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4148
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4149
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4150
# OS/2's system install, which has a completely different semantic
4151
# ./install, which can be erroneously created by make from ./install.sh.
4152
# Reject install programs that cannot install multiple files.
4153
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4154
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4155
if test -z "$INSTALL"; then
4156
if test "${ac_cv_path_install+set}" = set; then
4157
  echo $ECHO_N "(cached) $ECHO_C" >&6
4158
else
4159
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160
for as_dir in $PATH
4161
do
4162
  IFS=$as_save_IFS
4163
  test -z "$as_dir" && as_dir=.
4164
  # Account for people who put trailing slashes in PATH elements.
4165
case $as_dir/ in
4166
  ./ | .// | /cC/* | \
4167
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4168
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4169
  /usr/ucb/* ) ;;
4170
  *)
4171
    # OSF1 and SCO ODT 3.0 have their own names for install.
4172
    # Don't use installbsd from OSF since it installs stuff as root
4173
    # by default.
4174
    for ac_prog in ginstall scoinst install; do
4175
      for ac_exec_ext in '' $ac_executable_extensions; do
4176
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4177
          if test $ac_prog = install &&
4178
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4179
            # AIX install.  It has an incompatible calling convention.
4180
            :
4181
          elif test $ac_prog = install &&
4182
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4183
            # program-specific install script used by HP pwplus--don't use.
4184
            :
4185
          else
4186
            rm -rf conftest.one conftest.two conftest.dir
4187
            echo one > conftest.one
4188
            echo two > conftest.two
4189
            mkdir conftest.dir
4190
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4191
              test -s conftest.one && test -s conftest.two &&
4192
              test -s conftest.dir/conftest.one &&
4193
              test -s conftest.dir/conftest.two
4194
            then
4195
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4196
              break 3
4197
            fi
4198
          fi
4199
        fi
4200
      done
4201
    done
4202
    ;;
4203
esac
4204
done
4205
 
4206
rm -rf conftest.one conftest.two conftest.dir
4207
 
4208
fi
4209
  if test "${ac_cv_path_install+set}" = set; then
4210
    INSTALL=$ac_cv_path_install
4211
  else
4212
    # As a last resort, use the slow shell script.  Don't cache a
4213
    # value for INSTALL within a source directory, because that will
4214
    # break other packages using the cache if that directory is
4215
    # removed, or if the value is a relative name.
4216
    INSTALL=$ac_install_sh
4217
  fi
4218
fi
4219
echo "$as_me:$LINENO: result: $INSTALL" >&5
4220
echo "${ECHO_T}$INSTALL" >&6
4221
 
4222
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4223
# It thinks the first close brace ends the variable substitution.
4224
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4225
 
4226
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4227
 
4228
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4229
 
4230
 
4231
 
4232
 
4233
macro_version='2.1a'
4234
macro_revision='1.2435'
4235
 
4236
 
4237
 
4238
 
4239
 
4240
 
4241
 
4242
 
4243
 
4244
 
4245
 
4246
 
4247
ltmain="$ac_aux_dir/ltmain.sh"
4248
 
4249
# Set options
4250
 
4251
enable_dlopen=no
4252
 
4253
 
4254
enable_win32_dll=no
4255
 
4256
 
4257
# Check whether --enable-shared or --disable-shared was given.
4258
if test "${enable_shared+set}" = set; then
4259
  enableval="$enable_shared"
4260
  p=${PACKAGE-default}
4261
    case $enableval in
4262
    yes) enable_shared=yes ;;
4263
    no) enable_shared=no ;;
4264
    *)
4265
      enable_shared=no
4266
      # Look at the argument we got.  We use all the common list separators.
4267
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4268
      for pkg in $enableval; do
4269
        IFS="$lt_save_ifs"
4270
        if test "X$pkg" = "X$p"; then
4271
          enable_shared=yes
4272
        fi
4273
      done
4274
      IFS="$lt_save_ifs"
4275
      ;;
4276
    esac
4277
else
4278
  enable_shared=yes
4279
fi;
4280
 
4281
 
4282
 
4283
 
4284
 
4285
 
4286
 
4287
 
4288
# Check whether --enable-static or --disable-static was given.
4289
if test "${enable_static+set}" = set; then
4290
  enableval="$enable_static"
4291
  p=${PACKAGE-default}
4292
    case $enableval in
4293
    yes) enable_static=yes ;;
4294
    no) enable_static=no ;;
4295
    *)
4296
     enable_static=no
4297
      # Look at the argument we got.  We use all the common list separators.
4298
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4299
      for pkg in $enableval; do
4300
        IFS="$lt_save_ifs"
4301
        if test "X$pkg" = "X$p"; then
4302
          enable_static=yes
4303
        fi
4304
      done
4305
      IFS="$lt_save_ifs"
4306
      ;;
4307
    esac
4308
else
4309
  enable_static=yes
4310
fi;
4311
 
4312
 
4313
 
4314
 
4315
 
4316
 
4317
 
4318
 
4319
 
4320
# Check whether --with-pic or --without-pic was given.
4321
if test "${with_pic+set}" = set; then
4322
  withval="$with_pic"
4323
  pic_mode="$withval"
4324
else
4325
  pic_mode=default
4326
fi;
4327
 
4328
test -z "$pic_mode" && pic_mode=default
4329
 
4330
 
4331
 
4332
 
4333
 
4334
 
4335
 
4336
# Check whether --enable-fast-install or --disable-fast-install was given.
4337
if test "${enable_fast_install+set}" = set; then
4338
  enableval="$enable_fast_install"
4339
  p=${PACKAGE-default}
4340
    case $enableval in
4341
    yes) enable_fast_install=yes ;;
4342
    no) enable_fast_install=no ;;
4343
    *)
4344
      enable_fast_install=no
4345
      # Look at the argument we got.  We use all the common list separators.
4346
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4347
      for pkg in $enableval; do
4348
        IFS="$lt_save_ifs"
4349
        if test "X$pkg" = "X$p"; then
4350
          enable_fast_install=yes
4351
        fi
4352
      done
4353
      IFS="$lt_save_ifs"
4354
      ;;
4355
    esac
4356
else
4357
  enable_fast_install=yes
4358
fi;
4359
 
4360
 
4361
 
4362
 
4363
 
4364
 
4365
 
4366
 
4367
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4368
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4369
if test "${lt_cv_path_SED+set}" = set; then
4370
  echo $ECHO_N "(cached) $ECHO_C" >&6
4371
else
4372
  # Loop through the user's path and test for sed and gsed.
4373
# Then use that list of sed's as ones to test for truncation.
4374
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375
for as_dir in $PATH
4376
do
4377
  IFS=$as_save_IFS
4378
  test -z "$as_dir" && as_dir=.
4379
  for lt_ac_prog in sed gsed; do
4380
    for ac_exec_ext in '' $ac_executable_extensions; do
4381
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4382
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4383
      fi
4384
    done
4385
  done
4386
done
4387
IFS=$as_save_IFS
4388
lt_ac_max=0
4389
lt_ac_count=0
4390
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4391
# along with /bin/sed that truncates output.
4392
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4393
  test ! -f $lt_ac_sed && continue
4394
  cat /dev/null > conftest.in
4395
  lt_ac_count=0
4396
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4397
  # Check for GNU sed and select it if it is found.
4398
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4399
    lt_cv_path_SED=$lt_ac_sed
4400
    break
4401
  fi
4402
  while true; do
4403
    cat conftest.in conftest.in >conftest.tmp
4404
    mv conftest.tmp conftest.in
4405
    cp conftest.in conftest.nl
4406
    echo >>conftest.nl
4407
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4408
    cmp -s conftest.out conftest.nl || break
4409
    # 10000 chars as input seems more than enough
4410
    test $lt_ac_count -gt 10 && break
4411
    lt_ac_count=`expr $lt_ac_count + 1`
4412
    if test $lt_ac_count -gt $lt_ac_max; then
4413
      lt_ac_max=$lt_ac_count
4414
      lt_cv_path_SED=$lt_ac_sed
4415
    fi
4416
  done
4417
done
4418
 
4419
fi
4420
 
4421
SED=$lt_cv_path_SED
4422
 
4423
echo "$as_me:$LINENO: result: $SED" >&5
4424
echo "${ECHO_T}$SED" >&6
4425
 
4426
test -z "$SED" && SED=sed
4427
Xsed="$SED -e 1s/^X//"
4428
 
4429
 
4430
 
4431
 
4432
 
4433
 
4434
 
4435
 
4436
 
4437
 
4438
 
4439
echo "$as_me:$LINENO: checking for egrep" >&5
4440
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4441
if test "${ac_cv_prog_egrep+set}" = set; then
4442
  echo $ECHO_N "(cached) $ECHO_C" >&6
4443
else
4444
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4445
    then ac_cv_prog_egrep='grep -E'
4446
    else ac_cv_prog_egrep='egrep'
4447
    fi
4448
fi
4449
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4450
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4451
 EGREP=$ac_cv_prog_egrep
4452
 
4453
 
4454
echo "$as_me:$LINENO: checking for fgrep" >&5
4455
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4456
if test "${ac_cv_prog_fgrep+set}" = set; then
4457
  echo $ECHO_N "(cached) $ECHO_C" >&6
4458
else
4459
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4460
    then ac_cv_prog_fgrep='grep -F'
4461
    else ac_cv_prog_fgrep='fgrep'
4462
    fi
4463
fi
4464
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4465
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4466
 FGREP=$ac_cv_prog_fgrep
4467
 
4468
 
4469
test -z "$GREP" && GREP=grep
4470
 
4471
 
4472
 
4473
 
4474
 
4475
 
4476
 
4477
 
4478
 
4479
 
4480
 
4481
 
4482
 
4483
 
4484
 
4485
 
4486
 
4487
 
4488
 
4489
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4490
if test "${with_gnu_ld+set}" = set; then
4491
  withval="$with_gnu_ld"
4492
  test "$withval" = no || with_gnu_ld=yes
4493
else
4494
  with_gnu_ld=no
4495
fi;
4496
ac_prog=ld
4497
if test "$GCC" = yes; then
4498
  # Check if gcc -print-prog-name=ld gives a path.
4499
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4500
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4501
  case $host in
4502
  *-*-mingw*)
4503
    # gcc leaves a trailing carriage return which upsets mingw
4504
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4505
  *)
4506
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4507
  esac
4508
  case $ac_prog in
4509
    # Accept absolute paths.
4510
    [\\/]* | ?:[\\/]*)
4511
      re_direlt='/[^/][^/]*/\.\./'
4512
      # Canonicalize the pathname of ld
4513
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4514
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4515
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4516
      done
4517
      test -z "$LD" && LD="$ac_prog"
4518
      ;;
4519
  "")
4520
    # If it fails, then pretend we aren't using GCC.
4521
    ac_prog=ld
4522
    ;;
4523
  *)
4524
    # If it is relative, then search for the first ld in PATH.
4525
    with_gnu_ld=unknown
4526
    ;;
4527
  esac
4528
elif test "$with_gnu_ld" = yes; then
4529
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4530
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4531
else
4532
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4533
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4534
fi
4535
if test "${lt_cv_path_LD+set}" = set; then
4536
  echo $ECHO_N "(cached) $ECHO_C" >&6
4537
else
4538
  if test -z "$LD"; then
4539
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4540
  for ac_dir in $PATH; do
4541
    IFS="$lt_save_ifs"
4542
    test -z "$ac_dir" && ac_dir=.
4543
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4544
      lt_cv_path_LD="$ac_dir/$ac_prog"
4545
      # Check to see if the program is GNU ld.  I'd rather use --version,
4546
      # but apparently some variants of GNU ld only accept -v.
4547
      # Break only if it was the GNU/non-GNU ld that we prefer.
4548
      case `"$lt_cv_path_LD" -v 2>&1 
4549
      *GNU* | *'with BFD'*)
4550
        test "$with_gnu_ld" != no && break
4551
        ;;
4552
      *)
4553
        test "$with_gnu_ld" != yes && break
4554
        ;;
4555
      esac
4556
    fi
4557
  done
4558
  IFS="$lt_save_ifs"
4559
else
4560
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4561
fi
4562
fi
4563
 
4564
LD="$lt_cv_path_LD"
4565
if test -n "$LD"; then
4566
  echo "$as_me:$LINENO: result: $LD" >&5
4567
echo "${ECHO_T}$LD" >&6
4568
else
4569
  echo "$as_me:$LINENO: result: no" >&5
4570
echo "${ECHO_T}no" >&6
4571
fi
4572
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4573
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4574
   { (exit 1); exit 1; }; }
4575
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4576
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4577
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4578
  echo $ECHO_N "(cached) $ECHO_C" >&6
4579
else
4580
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4581
case `$LD -v 2>&1 
4582
*GNU* | *'with BFD'*)
4583
  lt_cv_prog_gnu_ld=yes
4584
  ;;
4585
*)
4586
  lt_cv_prog_gnu_ld=no
4587
  ;;
4588
esac
4589
fi
4590
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4591
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4592
with_gnu_ld=$lt_cv_prog_gnu_ld
4593
 
4594
 
4595
 
4596
 
4597
 
4598
 
4599
 
4600
 
4601
 
4602
 
4603
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4604
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4605
if test "${lt_cv_path_NM+set}" = set; then
4606
  echo $ECHO_N "(cached) $ECHO_C" >&6
4607
else
4608
  if test -n "$NM"; then
4609
  # Let the user override the test.
4610
  lt_cv_path_NM="$NM"
4611
else
4612
  lt_nm_to_check="${ac_tool_prefix}nm"
4613
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4614
    lt_nm_to_check="$lt_nm_to_check nm"
4615
  fi
4616
  for lt_tmp_nm in $lt_nm_to_check; do
4617
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4618
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4619
      IFS="$lt_save_ifs"
4620
      test -z "$ac_dir" && ac_dir=.
4621
      tmp_nm="$ac_dir/$lt_tmp_nm"
4622
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4623
        # Check to see if the nm accepts a BSD-compat flag.
4624
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4625
        #   nm: unknown option "B" ignored
4626
        # Tru64's nm complains that /dev/null is an invalid object file
4627
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4628
        */dev/null* | *'Invalid file or object type'*)
4629
          lt_cv_path_NM="$tmp_nm -B"
4630
          break
4631
          ;;
4632
        *)
4633
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4634
          */dev/null*)
4635
            lt_cv_path_NM="$tmp_nm -p"
4636
            break
4637
            ;;
4638
          *)
4639
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4640
            continue # so that we can try to find one that supports BSD flags
4641
            ;;
4642
          esac
4643
          ;;
4644
        esac
4645
      fi
4646
    done
4647
    IFS="$lt_save_ifs"
4648
  done
4649
  : ${lt_cv_path_NM=no}
4650
fi
4651
fi
4652
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4653
echo "${ECHO_T}$lt_cv_path_NM" >&6
4654
if test "$lt_cv_path_NM" != "no"; then
4655
  NM="$lt_cv_path_NM"
4656
else
4657
  # Didn't find any BSD compatible name lister, look for dumpbin.
4658
  if test -n "$ac_tool_prefix"; then
4659
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4660
  do
4661
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4662
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4663
echo "$as_me:$LINENO: checking for $ac_word" >&5
4664
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4666
  echo $ECHO_N "(cached) $ECHO_C" >&6
4667
else
4668
  if test -n "$DUMPBIN"; then
4669
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4670
else
4671
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672
for as_dir in $PATH
4673
do
4674
  IFS=$as_save_IFS
4675
  test -z "$as_dir" && as_dir=.
4676
  for ac_exec_ext in '' $ac_executable_extensions; do
4677
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4679
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680
    break 2
4681
  fi
4682
done
4683
done
4684
 
4685
fi
4686
fi
4687
DUMPBIN=$ac_cv_prog_DUMPBIN
4688
if test -n "$DUMPBIN"; then
4689
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4690
echo "${ECHO_T}$DUMPBIN" >&6
4691
else
4692
  echo "$as_me:$LINENO: result: no" >&5
4693
echo "${ECHO_T}no" >&6
4694
fi
4695
 
4696
    test -n "$DUMPBIN" && break
4697
  done
4698
fi
4699
if test -z "$DUMPBIN"; then
4700
  ac_ct_DUMPBIN=$DUMPBIN
4701
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4702
do
4703
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4704
set dummy $ac_prog; ac_word=$2
4705
echo "$as_me:$LINENO: checking for $ac_word" >&5
4706
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4707
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4708
  echo $ECHO_N "(cached) $ECHO_C" >&6
4709
else
4710
  if test -n "$ac_ct_DUMPBIN"; then
4711
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4712
else
4713
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714
for as_dir in $PATH
4715
do
4716
  IFS=$as_save_IFS
4717
  test -z "$as_dir" && as_dir=.
4718
  for ac_exec_ext in '' $ac_executable_extensions; do
4719
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4721
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722
    break 2
4723
  fi
4724
done
4725
done
4726
 
4727
fi
4728
fi
4729
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4730
if test -n "$ac_ct_DUMPBIN"; then
4731
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4732
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4733
else
4734
  echo "$as_me:$LINENO: result: no" >&5
4735
echo "${ECHO_T}no" >&6
4736
fi
4737
 
4738
  test -n "$ac_ct_DUMPBIN" && break
4739
done
4740
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4741
 
4742
  DUMPBIN=$ac_ct_DUMPBIN
4743
fi
4744
 
4745
 
4746
  if test "$DUMPBIN" != ":"; then
4747
    NM="$DUMPBIN"
4748
  fi
4749
fi
4750
test -z "$NM" && NM=nm
4751
 
4752
 
4753
 
4754
 
4755
 
4756
 
4757
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4758
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4759
if test "${lt_cv_nm_interface+set}" = set; then
4760
  echo $ECHO_N "(cached) $ECHO_C" >&6
4761
else
4762
  lt_cv_nm_interface="BSD nm"
4763
  echo "int some_variable = 0;" > conftest.$ac_ext
4764
  (eval echo "\"\$as_me:4764: $ac_compile\"" >&5)
4765
  (eval "$ac_compile" 2>conftest.err)
4766
  cat conftest.err >&5
4767
  (eval echo "\"\$as_me:4767: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4768
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4769
  cat conftest.err >&5
4770
  (eval echo "\"\$as_me:4770: output\"" >&5)
4771
  cat conftest.out >&5
4772
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4773
    lt_cv_nm_interface="MS dumpbin"
4774
  fi
4775
  rm -f conftest*
4776
fi
4777
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4778
echo "${ECHO_T}$lt_cv_nm_interface" >&6
4779
 
4780
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4781
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4782
LN_S=$as_ln_s
4783
if test "$LN_S" = "ln -s"; then
4784
  echo "$as_me:$LINENO: result: yes" >&5
4785
echo "${ECHO_T}yes" >&6
4786
else
4787
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4788
echo "${ECHO_T}no, using $LN_S" >&6
4789
fi
4790
 
4791
# find the maximum length of command line arguments
4792
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4793
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4794
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4795
  echo $ECHO_N "(cached) $ECHO_C" >&6
4796
else
4797
    i=0
4798
  teststring="ABCD"
4799
 
4800
  case $build_os in
4801
  msdosdjgpp*)
4802
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4803
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4804
    # during glob expansion).  Even if it were fixed, the result of this
4805
    # check would be larger than it should be.
4806
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4807
    ;;
4808
 
4809
  gnu*)
4810
    # Under GNU Hurd, this test is not required because there is
4811
    # no limit to the length of command line arguments.
4812
    # Libtool will interpret -1 as no limit whatsoever
4813
    lt_cv_sys_max_cmd_len=-1;
4814
    ;;
4815
 
4816
  cygwin* | mingw*)
4817
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4818
    # about 5 minutes as the teststring grows exponentially.
4819
    # Worse, since 9x/ME are not pre-emptively multitasking,
4820
    # you end up with a "frozen" computer, even though with patience
4821
    # the test eventually succeeds (with a max line length of 256k).
4822
    # Instead, let's just punt: use the minimum linelength reported by
4823
    # all of the supported platforms: 8192 (on NT/2K/XP).
4824
    lt_cv_sys_max_cmd_len=8192;
4825
    ;;
4826
 
4827
  amigaos*)
4828
    # On AmigaOS with pdksh, this test takes hours, literally.
4829
    # So we just punt and use a minimum line length of 8192.
4830
    lt_cv_sys_max_cmd_len=8192;
4831
    ;;
4832
 
4833
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4834
    # This has been around since 386BSD, at least.  Likely further.
4835
    if test -x /sbin/sysctl; then
4836
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4837
    elif test -x /usr/sbin/sysctl; then
4838
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4839
    else
4840
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4841
    fi
4842
    # And add a safety zone
4843
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4844
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4845
    ;;
4846
 
4847
  interix*)
4848
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4849
    lt_cv_sys_max_cmd_len=196608
4850
    ;;
4851
 
4852
  osf*)
4853
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4854
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4855
    # nice to cause kernel panics so lets avoid the loop below.
4856
    # First set a reasonable default.
4857
    lt_cv_sys_max_cmd_len=16384
4858
    #
4859
    if test -x /sbin/sysconfig; then
4860
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4861
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4862
      esac
4863
    fi
4864
    ;;
4865
  sco3.2v5*)
4866
    lt_cv_sys_max_cmd_len=102400
4867
    ;;
4868
  sysv5* | sco5v6* | sysv4.2uw2*)
4869
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4870
    if test -n "$kargmax"; then
4871
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4872
    else
4873
      lt_cv_sys_max_cmd_len=32768
4874
    fi
4875
    ;;
4876
  *)
4877
    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4878
    if test -n $lt_cv_sys_max_cmd_len; then
4879
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4880
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4881
    else
4882
      # Make teststring a little bigger before we do anything with it.
4883
      # a 1K string should be a reasonable start.
4884
      for i in 1 2 3 4 5 6 7 8 ; do
4885
        teststring=$teststring$teststring
4886
      done
4887
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4888
      # If test is not a shell built-in, we'll probably end up computing a
4889
      # maximum length that is only half of the actual maximum length, but
4890
      # we can't tell.
4891
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4892
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4893
              test $i != 17 # 1/2 MB should be enough
4894
      do
4895
        i=`expr $i + 1`
4896
        teststring=$teststring$teststring
4897
      done
4898
      # Only check the string length outside the loop.
4899
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4900
      teststring=
4901
      # Add a significant safety factor because C++ compilers can tack on
4902
      # massive amounts of additional arguments before passing them to the
4903
      # linker.  It appears as though 1/2 is a usable value.
4904
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4905
    fi
4906
    ;;
4907
  esac
4908
 
4909
fi
4910
 
4911
if test -n $lt_cv_sys_max_cmd_len ; then
4912
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4913
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4914
else
4915
  echo "$as_me:$LINENO: result: none" >&5
4916
echo "${ECHO_T}none" >&6
4917
fi
4918
max_cmd_len=$lt_cv_sys_max_cmd_len
4919
 
4920
 
4921
 
4922
 
4923
 
4924
 
4925
 
4926
: ${CP="cp -f"}
4927
: ${MV="mv -f"}
4928
: ${RM="rm -f"}
4929
 
4930
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4931
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4932
# Try some XSI features
4933
xsi_shell=no
4934
( _lt_dummy="a/b/c"
4935
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4936
      = c,a/b,, ) >/dev/null 2>&1 \
4937
  && xsi_shell=yes
4938
echo "$as_me:$LINENO: result: $xsi_shell" >&5
4939
echo "${ECHO_T}$xsi_shell" >&6
4940
 
4941
 
4942
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4943
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4944
lt_shell_append=no
4945
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4946
    >/dev/null 2>&1 \
4947
  && lt_shell_append=yes
4948
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4949
echo "${ECHO_T}$lt_shell_append" >&6
4950
 
4951
 
4952
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4953
  lt_unset=unset
4954
else
4955
  lt_unset=false
4956
fi
4957
 
4958
 
4959
 
4960
 
4961
 
4962
# test EBCDIC or ASCII
4963
case `echo X|tr X '\101'` in
4964
 A) # ASCII based system
4965
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4966
  lt_SP2NL='tr \040 \012'
4967
  lt_NL2SP='tr \015\012 \040\040'
4968
  ;;
4969
 *) # EBCDIC based system
4970
  lt_SP2NL='tr \100 \n'
4971
  lt_NL2SP='tr \r\n \100\100'
4972
  ;;
4973
esac
4974
 
4975
 
4976
 
4977
 
4978
 
4979
 
4980
 
4981
 
4982
 
4983
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4984
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4985
if test "${lt_cv_ld_reload_flag+set}" = set; then
4986
  echo $ECHO_N "(cached) $ECHO_C" >&6
4987
else
4988
  lt_cv_ld_reload_flag='-r'
4989
fi
4990
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4991
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4992
reload_flag=$lt_cv_ld_reload_flag
4993
case $reload_flag in
4994
"" | " "*) ;;
4995
*) reload_flag=" $reload_flag" ;;
4996
esac
4997
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4998
case $host_os in
4999
  darwin*)
5000
    if test "$GCC" = yes; then
5001
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5002
    else
5003
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5004
    fi
5005
    ;;
5006
esac
5007
 
5008
 
5009
 
5010
 
5011
 
5012
 
5013
 
5014
 
5015
 
5016
 
5017
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5018
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5019
if test "${lt_cv_deplibs_check_method+set}" = set; then
5020
  echo $ECHO_N "(cached) $ECHO_C" >&6
5021
else
5022
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5023
lt_cv_file_magic_test_file=
5024
lt_cv_deplibs_check_method='unknown'
5025
# Need to set the preceding variable on all platforms that support
5026
# interlibrary dependencies.
5027
# 'none' -- dependencies not supported.
5028
# `unknown' -- same as none, but documents that we really don't know.
5029
# 'pass_all' -- all dependencies passed with no checks.
5030
# 'test_compile' -- check by making test program.
5031
# 'file_magic [[regex]]' -- check by looking for files in library path
5032
# which responds to the $file_magic_cmd with a given extended regex.
5033
# If you have `file' or equivalent on your system and you're not sure
5034
# whether `pass_all' will *always* work, you probably want this one.
5035
 
5036
case $host_os in
5037
aix[4-9]*)
5038
  lt_cv_deplibs_check_method=pass_all
5039
  ;;
5040
 
5041
beos*)
5042
  lt_cv_deplibs_check_method=pass_all
5043
  ;;
5044
 
5045
bsdi[45]*)
5046
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5047
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5048
  lt_cv_file_magic_test_file=/shlib/libc.so
5049
  ;;
5050
 
5051
cygwin*)
5052
  # func_win32_libid is a shell function defined in ltmain.sh
5053
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5054
  lt_cv_file_magic_cmd='func_win32_libid'
5055
  ;;
5056
 
5057
mingw* | pw32*)
5058
  # Base MSYS/MinGW do not provide the 'file' command needed by
5059
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5060
  # unless we find 'file', for example because we are cross-compiling.
5061
  if ( file / ) >/dev/null 2>&1; then
5062
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5063
    lt_cv_file_magic_cmd='func_win32_libid'
5064
  else
5065
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5066
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5067
  fi
5068
  ;;
5069
 
5070
darwin* | rhapsody*)
5071
  lt_cv_deplibs_check_method=pass_all
5072
  ;;
5073
 
5074
freebsd* | dragonfly*)
5075
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5076
    case $host_cpu in
5077
    i*86 )
5078
      # Not sure whether the presence of OpenBSD here was a mistake.
5079
      # Let's accept both of them until this is cleared up.
5080
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5081
      lt_cv_file_magic_cmd=/usr/bin/file
5082
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5083
      ;;
5084
    esac
5085
  else
5086
    lt_cv_deplibs_check_method=pass_all
5087
  fi
5088
  ;;
5089
 
5090
gnu*)
5091
  lt_cv_deplibs_check_method=pass_all
5092
  ;;
5093
 
5094
hpux10.20* | hpux11*)
5095
  lt_cv_file_magic_cmd=/usr/bin/file
5096
  case $host_cpu in
5097
  ia64*)
5098
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5099
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5100
    ;;
5101
  hppa*64*)
5102
    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]'
5103
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5104
    ;;
5105
  *)
5106
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5107
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5108
    ;;
5109
  esac
5110
  ;;
5111
 
5112
interix[3-9]*)
5113
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5114
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5115
  ;;
5116
 
5117
irix5* | irix6* | nonstopux*)
5118
  case $LD in
5119
  *-32|*"-32 ") libmagic=32-bit;;
5120
  *-n32|*"-n32 ") libmagic=N32;;
5121
  *-64|*"-64 ") libmagic=64-bit;;
5122
  *) libmagic=never-match;;
5123
  esac
5124
  lt_cv_deplibs_check_method=pass_all
5125
  ;;
5126
 
5127
# This must be Linux ELF.
5128
linux* | k*bsd*-gnu)
5129
  lt_cv_deplibs_check_method=pass_all
5130
  ;;
5131
 
5132
netbsd*)
5133
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5134
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5135
  else
5136
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5137
  fi
5138
  ;;
5139
 
5140
newos6*)
5141
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5142
  lt_cv_file_magic_cmd=/usr/bin/file
5143
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5144
  ;;
5145
 
5146
*nto* | *qnx*)
5147
  lt_cv_deplibs_check_method=pass_all
5148
  ;;
5149
 
5150
openbsd*)
5151
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5152
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5153
  else
5154
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5155
  fi
5156
  ;;
5157
 
5158
osf3* | osf4* | osf5*)
5159
  lt_cv_deplibs_check_method=pass_all
5160
  ;;
5161
 
5162
rdos*)
5163
  lt_cv_deplibs_check_method=pass_all
5164
  ;;
5165
 
5166
solaris*)
5167
  lt_cv_deplibs_check_method=pass_all
5168
  ;;
5169
 
5170
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5171
  lt_cv_deplibs_check_method=pass_all
5172
  ;;
5173
 
5174
sysv4 | sysv4.3*)
5175
  case $host_vendor in
5176
  motorola)
5177
    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]'
5178
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5179
    ;;
5180
  ncr)
5181
    lt_cv_deplibs_check_method=pass_all
5182
    ;;
5183
  sequent)
5184
    lt_cv_file_magic_cmd='/bin/file'
5185
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5186
    ;;
5187
  sni)
5188
    lt_cv_file_magic_cmd='/bin/file'
5189
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5190
    lt_cv_file_magic_test_file=/lib/libc.so
5191
    ;;
5192
  siemens)
5193
    lt_cv_deplibs_check_method=pass_all
5194
    ;;
5195
  pc)
5196
    lt_cv_deplibs_check_method=pass_all
5197
    ;;
5198
  esac
5199
  ;;
5200
 
5201
tpf*)
5202
  lt_cv_deplibs_check_method=pass_all
5203
  ;;
5204
esac
5205
 
5206
fi
5207
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5208
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5209
file_magic_cmd=$lt_cv_file_magic_cmd
5210
deplibs_check_method=$lt_cv_deplibs_check_method
5211
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5212
 
5213
 
5214
 
5215
 
5216
 
5217
 
5218
 
5219
 
5220
 
5221
 
5222
 
5223
 
5224
if test -n "$ac_tool_prefix"; then
5225
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5226
set dummy ${ac_tool_prefix}ar; ac_word=$2
5227
echo "$as_me:$LINENO: checking for $ac_word" >&5
5228
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5229
if test "${ac_cv_prog_AR+set}" = set; then
5230
  echo $ECHO_N "(cached) $ECHO_C" >&6
5231
else
5232
  if test -n "$AR"; then
5233
  ac_cv_prog_AR="$AR" # Let the user override the test.
5234
else
5235
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236
for as_dir in $PATH
5237
do
5238
  IFS=$as_save_IFS
5239
  test -z "$as_dir" && as_dir=.
5240
  for ac_exec_ext in '' $ac_executable_extensions; do
5241
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5242
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5243
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244
    break 2
5245
  fi
5246
done
5247
done
5248
 
5249
fi
5250
fi
5251
AR=$ac_cv_prog_AR
5252
if test -n "$AR"; then
5253
  echo "$as_me:$LINENO: result: $AR" >&5
5254
echo "${ECHO_T}$AR" >&6
5255
else
5256
  echo "$as_me:$LINENO: result: no" >&5
5257
echo "${ECHO_T}no" >&6
5258
fi
5259
 
5260
fi
5261
if test -z "$ac_cv_prog_AR"; then
5262
  ac_ct_AR=$AR
5263
  # Extract the first word of "ar", so it can be a program name with args.
5264
set dummy ar; ac_word=$2
5265
echo "$as_me:$LINENO: checking for $ac_word" >&5
5266
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5267
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5268
  echo $ECHO_N "(cached) $ECHO_C" >&6
5269
else
5270
  if test -n "$ac_ct_AR"; then
5271
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5272
else
5273
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274
for as_dir in $PATH
5275
do
5276
  IFS=$as_save_IFS
5277
  test -z "$as_dir" && as_dir=.
5278
  for ac_exec_ext in '' $ac_executable_extensions; do
5279
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280
    ac_cv_prog_ac_ct_AR="ar"
5281
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282
    break 2
5283
  fi
5284
done
5285
done
5286
 
5287
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5288
fi
5289
fi
5290
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5291
if test -n "$ac_ct_AR"; then
5292
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5293
echo "${ECHO_T}$ac_ct_AR" >&6
5294
else
5295
  echo "$as_me:$LINENO: result: no" >&5
5296
echo "${ECHO_T}no" >&6
5297
fi
5298
 
5299
  AR=$ac_ct_AR
5300
else
5301
  AR="$ac_cv_prog_AR"
5302
fi
5303
 
5304
test -z "$AR" && AR=ar
5305
test -z "$AR_FLAGS" && AR_FLAGS=cru
5306
 
5307
 
5308
 
5309
 
5310
 
5311
 
5312
 
5313
 
5314
 
5315
 
5316
 
5317
if test -n "$ac_tool_prefix"; then
5318
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5319
set dummy ${ac_tool_prefix}strip; ac_word=$2
5320
echo "$as_me:$LINENO: checking for $ac_word" >&5
5321
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5322
if test "${ac_cv_prog_STRIP+set}" = set; then
5323
  echo $ECHO_N "(cached) $ECHO_C" >&6
5324
else
5325
  if test -n "$STRIP"; then
5326
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5327
else
5328
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329
for as_dir in $PATH
5330
do
5331
  IFS=$as_save_IFS
5332
  test -z "$as_dir" && as_dir=.
5333
  for ac_exec_ext in '' $ac_executable_extensions; do
5334
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5336
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337
    break 2
5338
  fi
5339
done
5340
done
5341
 
5342
fi
5343
fi
5344
STRIP=$ac_cv_prog_STRIP
5345
if test -n "$STRIP"; then
5346
  echo "$as_me:$LINENO: result: $STRIP" >&5
5347
echo "${ECHO_T}$STRIP" >&6
5348
else
5349
  echo "$as_me:$LINENO: result: no" >&5
5350
echo "${ECHO_T}no" >&6
5351
fi
5352
 
5353
fi
5354
if test -z "$ac_cv_prog_STRIP"; then
5355
  ac_ct_STRIP=$STRIP
5356
  # Extract the first word of "strip", so it can be a program name with args.
5357
set dummy strip; ac_word=$2
5358
echo "$as_me:$LINENO: checking for $ac_word" >&5
5359
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5360
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5361
  echo $ECHO_N "(cached) $ECHO_C" >&6
5362
else
5363
  if test -n "$ac_ct_STRIP"; then
5364
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5365
else
5366
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367
for as_dir in $PATH
5368
do
5369
  IFS=$as_save_IFS
5370
  test -z "$as_dir" && as_dir=.
5371
  for ac_exec_ext in '' $ac_executable_extensions; do
5372
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373
    ac_cv_prog_ac_ct_STRIP="strip"
5374
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375
    break 2
5376
  fi
5377
done
5378
done
5379
 
5380
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5381
fi
5382
fi
5383
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5384
if test -n "$ac_ct_STRIP"; then
5385
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5386
echo "${ECHO_T}$ac_ct_STRIP" >&6
5387
else
5388
  echo "$as_me:$LINENO: result: no" >&5
5389
echo "${ECHO_T}no" >&6
5390
fi
5391
 
5392
  STRIP=$ac_ct_STRIP
5393
else
5394
  STRIP="$ac_cv_prog_STRIP"
5395
fi
5396
 
5397
test -z "$STRIP" && STRIP=:
5398
 
5399
 
5400
 
5401
 
5402
 
5403
 
5404
if test -n "$ac_tool_prefix"; then
5405
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5406
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5407
echo "$as_me:$LINENO: checking for $ac_word" >&5
5408
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5409
if test "${ac_cv_prog_RANLIB+set}" = set; then
5410
  echo $ECHO_N "(cached) $ECHO_C" >&6
5411
else
5412
  if test -n "$RANLIB"; then
5413
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5414
else
5415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416
for as_dir in $PATH
5417
do
5418
  IFS=$as_save_IFS
5419
  test -z "$as_dir" && as_dir=.
5420
  for ac_exec_ext in '' $ac_executable_extensions; do
5421
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5423
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424
    break 2
5425
  fi
5426
done
5427
done
5428
 
5429
fi
5430
fi
5431
RANLIB=$ac_cv_prog_RANLIB
5432
if test -n "$RANLIB"; then
5433
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5434
echo "${ECHO_T}$RANLIB" >&6
5435
else
5436
  echo "$as_me:$LINENO: result: no" >&5
5437
echo "${ECHO_T}no" >&6
5438
fi
5439
 
5440
fi
5441
if test -z "$ac_cv_prog_RANLIB"; then
5442
  ac_ct_RANLIB=$RANLIB
5443
  # Extract the first word of "ranlib", so it can be a program name with args.
5444
set dummy ranlib; ac_word=$2
5445
echo "$as_me:$LINENO: checking for $ac_word" >&5
5446
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5447
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5448
  echo $ECHO_N "(cached) $ECHO_C" >&6
5449
else
5450
  if test -n "$ac_ct_RANLIB"; then
5451
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5452
else
5453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454
for as_dir in $PATH
5455
do
5456
  IFS=$as_save_IFS
5457
  test -z "$as_dir" && as_dir=.
5458
  for ac_exec_ext in '' $ac_executable_extensions; do
5459
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5461
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5462
    break 2
5463
  fi
5464
done
5465
done
5466
 
5467
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5468
fi
5469
fi
5470
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5471
if test -n "$ac_ct_RANLIB"; then
5472
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5473
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5474
else
5475
  echo "$as_me:$LINENO: result: no" >&5
5476
echo "${ECHO_T}no" >&6
5477
fi
5478
 
5479
  RANLIB=$ac_ct_RANLIB
5480
else
5481
  RANLIB="$ac_cv_prog_RANLIB"
5482
fi
5483
 
5484
test -z "$RANLIB" && RANLIB=:
5485
 
5486
 
5487
 
5488
 
5489
 
5490
 
5491
# Determine commands to create old-style static archives.
5492
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5493
old_postinstall_cmds='chmod 644 $oldlib'
5494
old_postuninstall_cmds=
5495
 
5496
if test -n "$RANLIB"; then
5497
  case $host_os in
5498
  openbsd*)
5499
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5500
    ;;
5501
  *)
5502
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5503
    ;;
5504
  esac
5505
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5506
fi
5507
 
5508
 
5509
 
5510
 
5511
 
5512
 
5513
 
5514
 
5515
 
5516
 
5517
 
5518
 
5519
 
5520
 
5521
 
5522
 
5523
 
5524
 
5525
 
5526
 
5527
 
5528
 
5529
 
5530
 
5531
 
5532
 
5533
 
5534
 
5535
 
5536
 
5537
 
5538
 
5539
 
5540
 
5541
# If no C compiler was specified, use CC.
5542
LTCC=${LTCC-"$CC"}
5543
 
5544
# If no C compiler flags were specified, use CFLAGS.
5545
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5546
 
5547
# Allow CC to be a program name with arguments.
5548
compiler=$CC
5549
 
5550
 
5551
# Check for command to grab the raw symbol name followed by C symbol from nm.
5552
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5553
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5554
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5555
  echo $ECHO_N "(cached) $ECHO_C" >&6
5556
else
5557
 
5558
# These are sane defaults that work on at least a few old systems.
5559
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5560
 
5561
# Character class describing NM global symbol codes.
5562
symcode='[BCDEGRST]'
5563
 
5564
# Regexp to match symbols that can be accessed directly from C.
5565
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5566
 
5567
# Define system-specific variables.
5568
case $host_os in
5569
aix*)
5570
  symcode='[BCDT]'
5571
  ;;
5572
cygwin* | mingw* | pw32*)
5573
  symcode='[ABCDGISTW]'
5574
  ;;
5575
hpux*)
5576
  if test "$host_cpu" = ia64; then
5577
    symcode='[ABCDEGRST]'
5578
  fi
5579
  ;;
5580
irix* | nonstopux*)
5581
  symcode='[BCDEGRST]'
5582
  ;;
5583
osf*)
5584
  symcode='[BCDEGQRST]'
5585
  ;;
5586
solaris*)
5587
  symcode='[BDRT]'
5588
  ;;
5589
sco3.2v5*)
5590
  symcode='[DT]'
5591
  ;;
5592
sysv4.2uw2*)
5593
  symcode='[DT]'
5594
  ;;
5595
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5596
  symcode='[ABDT]'
5597
  ;;
5598
sysv4)
5599
  symcode='[DFNSTU]'
5600
  ;;
5601
esac
5602
 
5603
# If we're using GNU nm, then use its standard symbol codes.
5604
case `$NM -V 2>&1` in
5605
*GNU* | *'with BFD'*)
5606
  symcode='[ABCDGIRSTW]' ;;
5607
esac
5608
 
5609
# Transform an extracted symbol line into a proper C declaration.
5610
# Some systems (esp. on ia64) link data and code symbols differently,
5611
# so use this general approach.
5612
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5613
 
5614
# Transform an extracted symbol line into symbol name and symbol address
5615
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5616
 
5617
# Handle CRLF in mingw tool chain
5618
opt_cr=
5619
case $build_os in
5620
mingw*)
5621
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5622
  ;;
5623
esac
5624
 
5625
# Try without a prefix underscore, then with it.
5626
for ac_symprfx in "" "_"; do
5627
 
5628
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5629
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5630
 
5631
  # Write the raw and C identifiers.
5632
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5633
    # Fake it for dumpbin and say T for any non-static function
5634
    # and D for any global variable.
5635
    # Also find C++ and __fastcall symbols from MSVC++,
5636
    # which start with @ or ?.
5637
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5638
"     {last_section=section; section=\$ 3};"\
5639
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5640
"     \$ 0!~/External *\|/{next};"\
5641
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5642
"     {if(hide[section]) next};"\
5643
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5644
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5645
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5646
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5647
"     ' prfx=^$ac_symprfx"
5648
  else
5649
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5650
  fi
5651
 
5652
  # Check to see that the pipe works correctly.
5653
  pipe_works=no
5654
 
5655
  rm -f conftest*
5656
  cat > conftest.$ac_ext <<_LT_EOF
5657
#ifdef __cplusplus
5658
extern "C" {
5659
#endif
5660
char nm_test_var;
5661
void nm_test_func(void);
5662
void nm_test_func(void){}
5663
#ifdef __cplusplus
5664
}
5665
#endif
5666
int main(){nm_test_var='a';nm_test_func();return(0);}
5667
_LT_EOF
5668
 
5669
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670
  (eval $ac_compile) 2>&5
5671
  ac_status=$?
5672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673
  (exit $ac_status); }; then
5674
    # Now try to grab the symbols.
5675
    nlist=conftest.nm
5676
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5677
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5678
  ac_status=$?
5679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680
  (exit $ac_status); } && test -s "$nlist"; then
5681
      # Try sorting and uniquifying the output.
5682
      if sort "$nlist" | uniq > "$nlist"T; then
5683
        mv -f "$nlist"T "$nlist"
5684
      else
5685
        rm -f "$nlist"T
5686
      fi
5687
 
5688
      # Make sure that we snagged all the symbols we need.
5689
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5690
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5691
          cat <<_LT_EOF > conftest.$ac_ext
5692
#ifdef __cplusplus
5693
extern "C" {
5694
#endif
5695
 
5696
_LT_EOF
5697
          # Now generate the symbol file.
5698
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5699
 
5700
          cat <<_LT_EOF >> conftest.$ac_ext
5701
 
5702
/* The mapping between symbol names and symbols.  */
5703
const struct {
5704
  const char *name;
5705
  void       *address;
5706
}
5707
lt__PROGRAM__LTX_preloaded_symbols[] =
5708
{
5709
  { "@PROGRAM@", (void *) 0 },
5710
_LT_EOF
5711
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5712
          cat <<\_LT_EOF >> conftest.$ac_ext
5713
  {0, (void *) 0}
5714
};
5715
 
5716
/* This works around a problem in FreeBSD linker */
5717
#ifdef FREEBSD_WORKAROUND
5718
static const void *lt_preloaded_setup() {
5719
  return lt__PROGRAM__LTX_preloaded_symbols;
5720
}
5721
#endif
5722
 
5723
#ifdef __cplusplus
5724
}
5725
#endif
5726
_LT_EOF
5727
          # Now try linking the two files.
5728
          mv conftest.$ac_objext conftstm.$ac_objext
5729
          lt_save_LIBS="$LIBS"
5730
          lt_save_CFLAGS="$CFLAGS"
5731
          LIBS="conftstm.$ac_objext"
5732
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5733
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734
  (eval $ac_link) 2>&5
5735
  ac_status=$?
5736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5738
            pipe_works=yes
5739
          fi
5740
          LIBS="$lt_save_LIBS"
5741
          CFLAGS="$lt_save_CFLAGS"
5742
        else
5743
          echo "cannot find nm_test_func in $nlist" >&5
5744
        fi
5745
      else
5746
        echo "cannot find nm_test_var in $nlist" >&5
5747
      fi
5748
    else
5749
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5750
    fi
5751
  else
5752
    echo "$progname: failed program was:" >&5
5753
    cat conftest.$ac_ext >&5
5754
  fi
5755
  rm -f conftest* conftst*
5756
 
5757
  # Do not use the global_symbol_pipe unless it works.
5758
  if test "$pipe_works" = yes; then
5759
    break
5760
  else
5761
    lt_cv_sys_global_symbol_pipe=
5762
  fi
5763
done
5764
 
5765
fi
5766
 
5767
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5768
  lt_cv_sys_global_symbol_to_cdecl=
5769
fi
5770
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5771
  echo "$as_me:$LINENO: result: failed" >&5
5772
echo "${ECHO_T}failed" >&6
5773
else
5774
  echo "$as_me:$LINENO: result: ok" >&5
5775
echo "${ECHO_T}ok" >&6
5776
fi
5777
 
5778
 
5779
 
5780
 
5781
 
5782
 
5783
 
5784
 
5785
 
5786
 
5787
 
5788
 
5789
 
5790
 
5791
 
5792
 
5793
 
5794
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5795
if test "${enable_libtool_lock+set}" = set; then
5796
  enableval="$enable_libtool_lock"
5797
 
5798
fi;
5799
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5800
 
5801
# Some flags need to be propagated to the compiler or linker for good
5802
# libtool support.
5803
case $host in
5804
ia64-*-hpux*)
5805
  # Find out which ABI we are using.
5806
  echo 'int i;' > conftest.$ac_ext
5807
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808
  (eval $ac_compile) 2>&5
5809
  ac_status=$?
5810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811
  (exit $ac_status); }; then
5812
    case `/usr/bin/file conftest.$ac_objext` in
5813
      *ELF-32*)
5814
        HPUX_IA64_MODE="32"
5815
        ;;
5816
      *ELF-64*)
5817
        HPUX_IA64_MODE="64"
5818
        ;;
5819
    esac
5820
  fi
5821
  rm -rf conftest*
5822
  ;;
5823
*-*-irix6*)
5824
  # Find out which ABI we are using.
5825
  echo '#line 5825 "configure"' > conftest.$ac_ext
5826
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827
  (eval $ac_compile) 2>&5
5828
  ac_status=$?
5829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830
  (exit $ac_status); }; then
5831
    if test "$lt_cv_prog_gnu_ld" = yes; then
5832
      case `/usr/bin/file conftest.$ac_objext` in
5833
        *32-bit*)
5834
          LD="${LD-ld} -melf32bsmip"
5835
          ;;
5836
        *N32*)
5837
          LD="${LD-ld} -melf32bmipn32"
5838
          ;;
5839
        *64-bit*)
5840
          LD="${LD-ld} -melf64bmip"
5841
        ;;
5842
      esac
5843
    else
5844
      case `/usr/bin/file conftest.$ac_objext` in
5845
        *32-bit*)
5846
          LD="${LD-ld} -32"
5847
          ;;
5848
        *N32*)
5849
          LD="${LD-ld} -n32"
5850
          ;;
5851
        *64-bit*)
5852
          LD="${LD-ld} -64"
5853
          ;;
5854
      esac
5855
    fi
5856
  fi
5857
  rm -rf conftest*
5858
  ;;
5859
 
5860
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5861
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5862
  # Find out which ABI we are using.
5863
  echo 'int i;' > conftest.$ac_ext
5864
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865
  (eval $ac_compile) 2>&5
5866
  ac_status=$?
5867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868
  (exit $ac_status); }; then
5869
    case `/usr/bin/file conftest.o` in
5870
      *32-bit*)
5871
        case $host in
5872
          x86_64-*kfreebsd*-gnu)
5873
            LD="${LD-ld} -m elf_i386_fbsd"
5874
            ;;
5875
          x86_64-*linux*)
5876
            LD="${LD-ld} -m elf_i386"
5877
            ;;
5878
          ppc64-*linux*|powerpc64-*linux*)
5879
            LD="${LD-ld} -m elf32ppclinux"
5880
            ;;
5881
          s390x-*linux*)
5882
            LD="${LD-ld} -m elf_s390"
5883
            ;;
5884
          sparc64-*linux*)
5885
            LD="${LD-ld} -m elf32_sparc"
5886
            ;;
5887
        esac
5888
        ;;
5889
      *64-bit*)
5890
        case $host in
5891
          x86_64-*kfreebsd*-gnu)
5892
            LD="${LD-ld} -m elf_x86_64_fbsd"
5893
            ;;
5894
          x86_64-*linux*)
5895
            LD="${LD-ld} -m elf_x86_64"
5896
            ;;
5897
          ppc*-*linux*|powerpc*-*linux*)
5898
            LD="${LD-ld} -m elf64ppc"
5899
            ;;
5900
          s390*-*linux*|s390*-*tpf*)
5901
            LD="${LD-ld} -m elf64_s390"
5902
            ;;
5903
          sparc*-*linux*)
5904
            LD="${LD-ld} -m elf64_sparc"
5905
            ;;
5906
        esac
5907
        ;;
5908
    esac
5909
  fi
5910
  rm -rf conftest*
5911
  ;;
5912
 
5913
*-*-sco3.2v5*)
5914
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5915
  SAVE_CFLAGS="$CFLAGS"
5916
  CFLAGS="$CFLAGS -belf"
5917
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5918
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5919
if test "${lt_cv_cc_needs_belf+set}" = set; then
5920
  echo $ECHO_N "(cached) $ECHO_C" >&6
5921
else
5922
  ac_ext=c
5923
ac_cpp='$CPP $CPPFLAGS'
5924
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5927
 
5928
     cat >conftest.$ac_ext <<_ACEOF
5929
/* confdefs.h.  */
5930
_ACEOF
5931
cat confdefs.h >>conftest.$ac_ext
5932
cat >>conftest.$ac_ext <<_ACEOF
5933
/* end confdefs.h.  */
5934
 
5935
int
5936
main ()
5937
{
5938
 
5939
  ;
5940
  return 0;
5941
}
5942
_ACEOF
5943
rm -f conftest.$ac_objext conftest$ac_exeext
5944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5945
  (eval $ac_link) 2>conftest.er1
5946
  ac_status=$?
5947
  grep -v '^ *+' conftest.er1 >conftest.err
5948
  rm -f conftest.er1
5949
  cat conftest.err >&5
5950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951
  (exit $ac_status); } &&
5952
         { ac_try='test -z "$ac_c_werror_flag"
5953
                         || test ! -s conftest.err'
5954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955
  (eval $ac_try) 2>&5
5956
  ac_status=$?
5957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958
  (exit $ac_status); }; } &&
5959
         { ac_try='test -s conftest$ac_exeext'
5960
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961
  (eval $ac_try) 2>&5
5962
  ac_status=$?
5963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964
  (exit $ac_status); }; }; then
5965
  lt_cv_cc_needs_belf=yes
5966
else
5967
  echo "$as_me: failed program was:" >&5
5968
sed 's/^/| /' conftest.$ac_ext >&5
5969
 
5970
lt_cv_cc_needs_belf=no
5971
fi
5972
rm -f conftest.err conftest.$ac_objext \
5973
      conftest$ac_exeext conftest.$ac_ext
5974
     ac_ext=c
5975
ac_cpp='$CPP $CPPFLAGS'
5976
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5977
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5978
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5979
 
5980
fi
5981
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5982
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5983
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5984
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5985
    CFLAGS="$SAVE_CFLAGS"
5986
  fi
5987
  ;;
5988
sparc*-*solaris*)
5989
  # Find out which ABI we are using.
5990
  echo 'int i;' > conftest.$ac_ext
5991
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992
  (eval $ac_compile) 2>&5
5993
  ac_status=$?
5994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995
  (exit $ac_status); }; then
5996
    case `/usr/bin/file conftest.o` in
5997
    *64-bit*)
5998
      case $lt_cv_prog_gnu_ld in
5999
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6000
      *)    LD="${LD-ld} -64" ;;
6001
      esac
6002
      ;;
6003
    esac
6004
  fi
6005
  rm -rf conftest*
6006
  ;;
6007
esac
6008
 
6009
need_locks="$enable_libtool_lock"
6010
 
6011
ac_ext=c
6012
ac_cpp='$CPP $CPPFLAGS'
6013
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6016
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6017
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6018
# On Suns, sometimes $CPP names a directory.
6019
if test -n "$CPP" && test -d "$CPP"; then
6020
  CPP=
6021
fi
6022
if test -z "$CPP"; then
6023
  if test "${ac_cv_prog_CPP+set}" = set; then
6024
  echo $ECHO_N "(cached) $ECHO_C" >&6
6025
else
6026
      # Double quotes because CPP needs to be expanded
6027
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6028
    do
6029
      ac_preproc_ok=false
6030
for ac_c_preproc_warn_flag in '' yes
6031
do
6032
  # Use a header file that comes with gcc, so configuring glibc
6033
  # with a fresh cross-compiler works.
6034
  # Prefer  to  if __STDC__ is defined, since
6035
  #  exists even on freestanding compilers.
6036
  # On the NeXT, cc -E runs the code through the compiler's parser,
6037
  # not just through cpp. "Syntax error" is here to catch this case.
6038
  cat >conftest.$ac_ext <<_ACEOF
6039
/* confdefs.h.  */
6040
_ACEOF
6041
cat confdefs.h >>conftest.$ac_ext
6042
cat >>conftest.$ac_ext <<_ACEOF
6043
/* end confdefs.h.  */
6044
#ifdef __STDC__
6045
# include 
6046
#else
6047
# include 
6048
#endif
6049
                     Syntax error
6050
_ACEOF
6051
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6052
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6053
  ac_status=$?
6054
  grep -v '^ *+' conftest.er1 >conftest.err
6055
  rm -f conftest.er1
6056
  cat conftest.err >&5
6057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058
  (exit $ac_status); } >/dev/null; then
6059
  if test -s conftest.err; then
6060
    ac_cpp_err=$ac_c_preproc_warn_flag
6061
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6062
  else
6063
    ac_cpp_err=
6064
  fi
6065
else
6066
  ac_cpp_err=yes
6067
fi
6068
if test -z "$ac_cpp_err"; then
6069
  :
6070
else
6071
  echo "$as_me: failed program was:" >&5
6072
sed 's/^/| /' conftest.$ac_ext >&5
6073
 
6074
  # Broken: fails on valid input.
6075
continue
6076
fi
6077
rm -f conftest.err conftest.$ac_ext
6078
 
6079
  # OK, works on sane cases.  Now check whether non-existent headers
6080
  # can be detected and how.
6081
  cat >conftest.$ac_ext <<_ACEOF
6082
/* confdefs.h.  */
6083
_ACEOF
6084
cat confdefs.h >>conftest.$ac_ext
6085
cat >>conftest.$ac_ext <<_ACEOF
6086
/* end confdefs.h.  */
6087
#include 
6088
_ACEOF
6089
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6090
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6091
  ac_status=$?
6092
  grep -v '^ *+' conftest.er1 >conftest.err
6093
  rm -f conftest.er1
6094
  cat conftest.err >&5
6095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096
  (exit $ac_status); } >/dev/null; then
6097
  if test -s conftest.err; then
6098
    ac_cpp_err=$ac_c_preproc_warn_flag
6099
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6100
  else
6101
    ac_cpp_err=
6102
  fi
6103
else
6104
  ac_cpp_err=yes
6105
fi
6106
if test -z "$ac_cpp_err"; then
6107
  # Broken: success on invalid input.
6108
continue
6109
else
6110
  echo "$as_me: failed program was:" >&5
6111
sed 's/^/| /' conftest.$ac_ext >&5
6112
 
6113
  # Passes both tests.
6114
ac_preproc_ok=:
6115
break
6116
fi
6117
rm -f conftest.err conftest.$ac_ext
6118
 
6119
done
6120
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6121
rm -f conftest.err conftest.$ac_ext
6122
if $ac_preproc_ok; then
6123
  break
6124
fi
6125
 
6126
    done
6127
    ac_cv_prog_CPP=$CPP
6128
 
6129
fi
6130
  CPP=$ac_cv_prog_CPP
6131
else
6132
  ac_cv_prog_CPP=$CPP
6133
fi
6134
echo "$as_me:$LINENO: result: $CPP" >&5
6135
echo "${ECHO_T}$CPP" >&6
6136
ac_preproc_ok=false
6137
for ac_c_preproc_warn_flag in '' yes
6138
do
6139
  # Use a header file that comes with gcc, so configuring glibc
6140
  # with a fresh cross-compiler works.
6141
  # Prefer  to  if __STDC__ is defined, since
6142
  #  exists even on freestanding compilers.
6143
  # On the NeXT, cc -E runs the code through the compiler's parser,
6144
  # not just through cpp. "Syntax error" is here to catch this case.
6145
  cat >conftest.$ac_ext <<_ACEOF
6146
/* confdefs.h.  */
6147
_ACEOF
6148
cat confdefs.h >>conftest.$ac_ext
6149
cat >>conftest.$ac_ext <<_ACEOF
6150
/* end confdefs.h.  */
6151
#ifdef __STDC__
6152
# include 
6153
#else
6154
# include 
6155
#endif
6156
                     Syntax error
6157
_ACEOF
6158
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6159
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6160
  ac_status=$?
6161
  grep -v '^ *+' conftest.er1 >conftest.err
6162
  rm -f conftest.er1
6163
  cat conftest.err >&5
6164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165
  (exit $ac_status); } >/dev/null; then
6166
  if test -s conftest.err; then
6167
    ac_cpp_err=$ac_c_preproc_warn_flag
6168
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6169
  else
6170
    ac_cpp_err=
6171
  fi
6172
else
6173
  ac_cpp_err=yes
6174
fi
6175
if test -z "$ac_cpp_err"; then
6176
  :
6177
else
6178
  echo "$as_me: failed program was:" >&5
6179
sed 's/^/| /' conftest.$ac_ext >&5
6180
 
6181
  # Broken: fails on valid input.
6182
continue
6183
fi
6184
rm -f conftest.err conftest.$ac_ext
6185
 
6186
  # OK, works on sane cases.  Now check whether non-existent headers
6187
  # can be detected and how.
6188
  cat >conftest.$ac_ext <<_ACEOF
6189
/* confdefs.h.  */
6190
_ACEOF
6191
cat confdefs.h >>conftest.$ac_ext
6192
cat >>conftest.$ac_ext <<_ACEOF
6193
/* end confdefs.h.  */
6194
#include 
6195
_ACEOF
6196
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6197
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6198
  ac_status=$?
6199
  grep -v '^ *+' conftest.er1 >conftest.err
6200
  rm -f conftest.er1
6201
  cat conftest.err >&5
6202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203
  (exit $ac_status); } >/dev/null; then
6204
  if test -s conftest.err; then
6205
    ac_cpp_err=$ac_c_preproc_warn_flag
6206
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6207
  else
6208
    ac_cpp_err=
6209
  fi
6210
else
6211
  ac_cpp_err=yes
6212
fi
6213
if test -z "$ac_cpp_err"; then
6214
  # Broken: success on invalid input.
6215
continue
6216
else
6217
  echo "$as_me: failed program was:" >&5
6218
sed 's/^/| /' conftest.$ac_ext >&5
6219
 
6220
  # Passes both tests.
6221
ac_preproc_ok=:
6222
break
6223
fi
6224
rm -f conftest.err conftest.$ac_ext
6225
 
6226
done
6227
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6228
rm -f conftest.err conftest.$ac_ext
6229
if $ac_preproc_ok; then
6230
  :
6231
else
6232
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6233
See \`config.log' for more details." >&5
6234
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6235
See \`config.log' for more details." >&2;}
6236
   { (exit 1); exit 1; }; }
6237
fi
6238
 
6239
ac_ext=c
6240
ac_cpp='$CPP $CPPFLAGS'
6241
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6242
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6243
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6244
 
6245
 
6246
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6247
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6248
if test "${ac_cv_header_stdc+set}" = set; then
6249
  echo $ECHO_N "(cached) $ECHO_C" >&6
6250
else
6251
  cat >conftest.$ac_ext <<_ACEOF
6252
/* confdefs.h.  */
6253
_ACEOF
6254
cat confdefs.h >>conftest.$ac_ext
6255
cat >>conftest.$ac_ext <<_ACEOF
6256
/* end confdefs.h.  */
6257
#include 
6258
#include 
6259
#include 
6260
#include 
6261
 
6262
int
6263
main ()
6264
{
6265
 
6266
  ;
6267
  return 0;
6268
}
6269
_ACEOF
6270
rm -f conftest.$ac_objext
6271
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6272
  (eval $ac_compile) 2>conftest.er1
6273
  ac_status=$?
6274
  grep -v '^ *+' conftest.er1 >conftest.err
6275
  rm -f conftest.er1
6276
  cat conftest.err >&5
6277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278
  (exit $ac_status); } &&
6279
         { ac_try='test -z "$ac_c_werror_flag"
6280
                         || test ! -s conftest.err'
6281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282
  (eval $ac_try) 2>&5
6283
  ac_status=$?
6284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285
  (exit $ac_status); }; } &&
6286
         { ac_try='test -s conftest.$ac_objext'
6287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288
  (eval $ac_try) 2>&5
6289
  ac_status=$?
6290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291
  (exit $ac_status); }; }; then
6292
  ac_cv_header_stdc=yes
6293
else
6294
  echo "$as_me: failed program was:" >&5
6295
sed 's/^/| /' conftest.$ac_ext >&5
6296
 
6297
ac_cv_header_stdc=no
6298
fi
6299
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6300
 
6301
if test $ac_cv_header_stdc = yes; then
6302
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6303
  cat >conftest.$ac_ext <<_ACEOF
6304
/* confdefs.h.  */
6305
_ACEOF
6306
cat confdefs.h >>conftest.$ac_ext
6307
cat >>conftest.$ac_ext <<_ACEOF
6308
/* end confdefs.h.  */
6309
#include 
6310
 
6311
_ACEOF
6312
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6313
  $EGREP "memchr" >/dev/null 2>&1; then
6314
  :
6315
else
6316
  ac_cv_header_stdc=no
6317
fi
6318
rm -f conftest*
6319
 
6320
fi
6321
 
6322
if test $ac_cv_header_stdc = yes; then
6323
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6324
  cat >conftest.$ac_ext <<_ACEOF
6325
/* confdefs.h.  */
6326
_ACEOF
6327
cat confdefs.h >>conftest.$ac_ext
6328
cat >>conftest.$ac_ext <<_ACEOF
6329
/* end confdefs.h.  */
6330
#include 
6331
 
6332
_ACEOF
6333
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6334
  $EGREP "free" >/dev/null 2>&1; then
6335
  :
6336
else
6337
  ac_cv_header_stdc=no
6338
fi
6339
rm -f conftest*
6340
 
6341
fi
6342
 
6343
if test $ac_cv_header_stdc = yes; then
6344
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6345
  if test "$cross_compiling" = yes; then
6346
  :
6347
else
6348
  cat >conftest.$ac_ext <<_ACEOF
6349
/* confdefs.h.  */
6350
_ACEOF
6351
cat confdefs.h >>conftest.$ac_ext
6352
cat >>conftest.$ac_ext <<_ACEOF
6353
/* end confdefs.h.  */
6354
#include 
6355
#if ((' ' & 0x0FF) == 0x020)
6356
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6357
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6358
#else
6359
# define ISLOWER(c) \
6360
                   (('a' <= (c) && (c) <= 'i') \
6361
                     || ('j' <= (c) && (c) <= 'r') \
6362
                     || ('s' <= (c) && (c) <= 'z'))
6363
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6364
#endif
6365
 
6366
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6367
int
6368
main ()
6369
{
6370
  int i;
6371
  for (i = 0; i < 256; i++)
6372
    if (XOR (islower (i), ISLOWER (i))
6373
        || toupper (i) != TOUPPER (i))
6374
      exit(2);
6375
  exit (0);
6376
}
6377
_ACEOF
6378
rm -f conftest$ac_exeext
6379
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6380
  (eval $ac_link) 2>&5
6381
  ac_status=$?
6382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6384
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385
  (eval $ac_try) 2>&5
6386
  ac_status=$?
6387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388
  (exit $ac_status); }; }; then
6389
  :
6390
else
6391
  echo "$as_me: program exited with status $ac_status" >&5
6392
echo "$as_me: failed program was:" >&5
6393
sed 's/^/| /' conftest.$ac_ext >&5
6394
 
6395
( exit $ac_status )
6396
ac_cv_header_stdc=no
6397
fi
6398
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6399
fi
6400
fi
6401
fi
6402
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6403
echo "${ECHO_T}$ac_cv_header_stdc" >&6
6404
if test $ac_cv_header_stdc = yes; then
6405
 
6406
cat >>confdefs.h <<\_ACEOF
6407
#define STDC_HEADERS 1
6408
_ACEOF
6409
 
6410
fi
6411
 
6412
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6413
 
6414
 
6415
 
6416
 
6417
 
6418
 
6419
 
6420
 
6421
 
6422
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6423
                  inttypes.h stdint.h unistd.h
6424
do
6425
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6426
echo "$as_me:$LINENO: checking for $ac_header" >&5
6427
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6428
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6429
  echo $ECHO_N "(cached) $ECHO_C" >&6
6430
else
6431
  cat >conftest.$ac_ext <<_ACEOF
6432
/* confdefs.h.  */
6433
_ACEOF
6434
cat confdefs.h >>conftest.$ac_ext
6435
cat >>conftest.$ac_ext <<_ACEOF
6436
/* end confdefs.h.  */
6437
$ac_includes_default
6438
 
6439
#include <$ac_header>
6440
_ACEOF
6441
rm -f conftest.$ac_objext
6442
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443
  (eval $ac_compile) 2>conftest.er1
6444
  ac_status=$?
6445
  grep -v '^ *+' conftest.er1 >conftest.err
6446
  rm -f conftest.er1
6447
  cat conftest.err >&5
6448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449
  (exit $ac_status); } &&
6450
         { ac_try='test -z "$ac_c_werror_flag"
6451
                         || test ! -s conftest.err'
6452
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453
  (eval $ac_try) 2>&5
6454
  ac_status=$?
6455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456
  (exit $ac_status); }; } &&
6457
         { ac_try='test -s conftest.$ac_objext'
6458
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459
  (eval $ac_try) 2>&5
6460
  ac_status=$?
6461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462
  (exit $ac_status); }; }; then
6463
  eval "$as_ac_Header=yes"
6464
else
6465
  echo "$as_me: failed program was:" >&5
6466
sed 's/^/| /' conftest.$ac_ext >&5
6467
 
6468
eval "$as_ac_Header=no"
6469
fi
6470
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6471
fi
6472
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6473
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6474
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6475
  cat >>confdefs.h <<_ACEOF
6476
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6477
_ACEOF
6478
 
6479
fi
6480
 
6481
done
6482
 
6483
 
6484
 
6485
for ac_header in dlfcn.h
6486
do
6487
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6488
echo "$as_me:$LINENO: checking for $ac_header" >&5
6489
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6490
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6491
  echo $ECHO_N "(cached) $ECHO_C" >&6
6492
else
6493
  cat >conftest.$ac_ext <<_ACEOF
6494
/* confdefs.h.  */
6495
_ACEOF
6496
cat confdefs.h >>conftest.$ac_ext
6497
cat >>conftest.$ac_ext <<_ACEOF
6498
/* end confdefs.h.  */
6499
$ac_includes_default
6500
 
6501
#include <$ac_header>
6502
_ACEOF
6503
rm -f conftest.$ac_objext
6504
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6505
  (eval $ac_compile) 2>conftest.er1
6506
  ac_status=$?
6507
  grep -v '^ *+' conftest.er1 >conftest.err
6508
  rm -f conftest.er1
6509
  cat conftest.err >&5
6510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511
  (exit $ac_status); } &&
6512
         { ac_try='test -z "$ac_c_werror_flag"
6513
                         || test ! -s conftest.err'
6514
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515
  (eval $ac_try) 2>&5
6516
  ac_status=$?
6517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518
  (exit $ac_status); }; } &&
6519
         { ac_try='test -s conftest.$ac_objext'
6520
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521
  (eval $ac_try) 2>&5
6522
  ac_status=$?
6523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524
  (exit $ac_status); }; }; then
6525
  eval "$as_ac_Header=yes"
6526
else
6527
  echo "$as_me: failed program was:" >&5
6528
sed 's/^/| /' conftest.$ac_ext >&5
6529
 
6530
eval "$as_ac_Header=no"
6531
fi
6532
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6533
fi
6534
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6536
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6537
  cat >>confdefs.h <<_ACEOF
6538
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6539
_ACEOF
6540
 
6541
fi
6542
 
6543
done
6544
 
6545
 
6546
 
6547
# This can be used to rebuild libtool when needed
6548
LIBTOOL_DEPS="$ltmain"
6549
 
6550
# Always use our own libtool.
6551
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6552
 
6553
 
6554
 
6555
 
6556
 
6557
 
6558
 
6559
 
6560
 
6561
 
6562
 
6563
 
6564
 
6565
 
6566
 
6567
 
6568
 
6569
 
6570
 
6571
 
6572
 
6573
 
6574
 
6575
 
6576
 
6577
test -z "$LN_S" && LN_S="ln -s"
6578
 
6579
 
6580
 
6581
 
6582
 
6583
 
6584
 
6585
 
6586
 
6587
 
6588
 
6589
 
6590
 
6591
 
6592
if test -n "${ZSH_VERSION+set}" ; then
6593
   setopt NO_GLOB_SUBST
6594
fi
6595
 
6596
echo "$as_me:$LINENO: checking for objdir" >&5
6597
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6598
if test "${lt_cv_objdir+set}" = set; then
6599
  echo $ECHO_N "(cached) $ECHO_C" >&6
6600
else
6601
  rm -f .libs 2>/dev/null
6602
mkdir .libs 2>/dev/null
6603
if test -d .libs; then
6604
  lt_cv_objdir=.libs
6605
else
6606
  # MS-DOS does not allow filenames that begin with a dot.
6607
  lt_cv_objdir=_libs
6608
fi
6609
rmdir .libs 2>/dev/null
6610
fi
6611
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6612
echo "${ECHO_T}$lt_cv_objdir" >&6
6613
objdir=$lt_cv_objdir
6614
 
6615
 
6616
 
6617
 
6618
 
6619
cat >>confdefs.h <<_ACEOF
6620
#define LT_OBJDIR "$lt_cv_objdir/"
6621
_ACEOF
6622
 
6623
 
6624
 
6625
 
6626
 
6627
 
6628
 
6629
 
6630
 
6631
 
6632
 
6633
 
6634
 
6635
 
6636
 
6637
 
6638
 
6639
case $host_os in
6640
aix3*)
6641
  # AIX sometimes has problems with the GCC collect2 program.  For some
6642
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6643
  # vanish in a puff of smoke.
6644
  if test "X${COLLECT_NAMES+set}" != Xset; then
6645
    COLLECT_NAMES=
6646
    export COLLECT_NAMES
6647
  fi
6648
  ;;
6649
esac
6650
 
6651
# Sed substitution that helps us do robust quoting.  It backslashifies
6652
# metacharacters that are still active within double-quoted strings.
6653
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6654
 
6655
# Same as above, but do not quote variable references.
6656
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6657
 
6658
# Sed substitution to delay expansion of an escaped shell variable in a
6659
# double_quote_subst'ed string.
6660
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6661
 
6662
# Sed substitution to delay expansion of an escaped single quote.
6663
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6664
 
6665
# Sed substitution to avoid accidental globbing in evaled expressions
6666
no_glob_subst='s/\*/\\\*/g'
6667
 
6668
# Global variables:
6669
ofile=libtool
6670
can_build_shared=yes
6671
 
6672
# All known linkers require a `.a' archive for static linking (except MSVC,
6673
# which needs '.lib').
6674
libext=a
6675
 
6676
with_gnu_ld="$lt_cv_prog_gnu_ld"
6677
 
6678
old_CC="$CC"
6679
old_CFLAGS="$CFLAGS"
6680
 
6681
# Set sane defaults for various variables
6682
test -z "$CC" && CC=cc
6683
test -z "$LTCC" && LTCC=$CC
6684
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6685
test -z "$LD" && LD=ld
6686
test -z "$ac_objext" && ac_objext=o
6687
 
6688
for cc_temp in $compiler""; do
6689
  case $cc_temp in
6690
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6691
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6692
    \-*) ;;
6693
    *) break;;
6694
  esac
6695
done
6696
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6697
 
6698
 
6699
# Only perform the check for file, if the check method requires it
6700
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6701
case $deplibs_check_method in
6702
file_magic*)
6703
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6704
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6705
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6706
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6707
  echo $ECHO_N "(cached) $ECHO_C" >&6
6708
else
6709
  case $MAGIC_CMD in
6710
[\\/*] |  ?:[\\/]*)
6711
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6712
  ;;
6713
*)
6714
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6715
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6716
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6717
  for ac_dir in $ac_dummy; do
6718
    IFS="$lt_save_ifs"
6719
    test -z "$ac_dir" && ac_dir=.
6720
    if test -f $ac_dir/${ac_tool_prefix}file; then
6721
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6722
      if test -n "$file_magic_test_file"; then
6723
        case $deplibs_check_method in
6724
        "file_magic "*)
6725
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6726
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6727
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6728
            $EGREP "$file_magic_regex" > /dev/null; then
6729
            :
6730
          else
6731
            cat <<_LT_EOF 1>&2
6732
 
6733
*** Warning: the command libtool uses to detect shared libraries,
6734
*** $file_magic_cmd, produces output that libtool cannot recognize.
6735
*** The result is that libtool may fail to recognize shared libraries
6736
*** as such.  This will affect the creation of libtool libraries that
6737
*** depend on shared libraries, but programs linked with such libtool
6738
*** libraries will work regardless of this problem.  Nevertheless, you
6739
*** may want to report the problem to your system manager and/or to
6740
*** bug-libtool@gnu.org
6741
 
6742
_LT_EOF
6743
          fi ;;
6744
        esac
6745
      fi
6746
      break
6747
    fi
6748
  done
6749
  IFS="$lt_save_ifs"
6750
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6751
  ;;
6752
esac
6753
fi
6754
 
6755
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6756
if test -n "$MAGIC_CMD"; then
6757
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6758
echo "${ECHO_T}$MAGIC_CMD" >&6
6759
else
6760
  echo "$as_me:$LINENO: result: no" >&5
6761
echo "${ECHO_T}no" >&6
6762
fi
6763
 
6764
 
6765
 
6766
 
6767
 
6768
if test -z "$lt_cv_path_MAGIC_CMD"; then
6769
  if test -n "$ac_tool_prefix"; then
6770
    echo "$as_me:$LINENO: checking for file" >&5
6771
echo $ECHO_N "checking for file... $ECHO_C" >&6
6772
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6773
  echo $ECHO_N "(cached) $ECHO_C" >&6
6774
else
6775
  case $MAGIC_CMD in
6776
[\\/*] |  ?:[\\/]*)
6777
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6778
  ;;
6779
*)
6780
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6781
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6782
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6783
  for ac_dir in $ac_dummy; do
6784
    IFS="$lt_save_ifs"
6785
    test -z "$ac_dir" && ac_dir=.
6786
    if test -f $ac_dir/file; then
6787
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6788
      if test -n "$file_magic_test_file"; then
6789
        case $deplibs_check_method in
6790
        "file_magic "*)
6791
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6792
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6793
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6794
            $EGREP "$file_magic_regex" > /dev/null; then
6795
            :
6796
          else
6797
            cat <<_LT_EOF 1>&2
6798
 
6799
*** Warning: the command libtool uses to detect shared libraries,
6800
*** $file_magic_cmd, produces output that libtool cannot recognize.
6801
*** The result is that libtool may fail to recognize shared libraries
6802
*** as such.  This will affect the creation of libtool libraries that
6803
*** depend on shared libraries, but programs linked with such libtool
6804
*** libraries will work regardless of this problem.  Nevertheless, you
6805
*** may want to report the problem to your system manager and/or to
6806
*** bug-libtool@gnu.org
6807
 
6808
_LT_EOF
6809
          fi ;;
6810
        esac
6811
      fi
6812
      break
6813
    fi
6814
  done
6815
  IFS="$lt_save_ifs"
6816
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6817
  ;;
6818
esac
6819
fi
6820
 
6821
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6822
if test -n "$MAGIC_CMD"; then
6823
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6824
echo "${ECHO_T}$MAGIC_CMD" >&6
6825
else
6826
  echo "$as_me:$LINENO: result: no" >&5
6827
echo "${ECHO_T}no" >&6
6828
fi
6829
 
6830
 
6831
  else
6832
    MAGIC_CMD=:
6833
  fi
6834
fi
6835
 
6836
  fi
6837
  ;;
6838
esac
6839
 
6840
# Use C for the default configuration in the libtool script
6841
 
6842
lt_save_CC="$CC"
6843
ac_ext=c
6844
ac_cpp='$CPP $CPPFLAGS'
6845
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6846
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6847
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6848
 
6849
 
6850
# Source file extension for C test sources.
6851
ac_ext=c
6852
 
6853
# Object file extension for compiled C test sources.
6854
objext=o
6855
objext=$objext
6856
 
6857
# Code to be used in simple compile tests
6858
lt_simple_compile_test_code="int some_variable = 0;"
6859
 
6860
# Code to be used in simple link tests
6861
lt_simple_link_test_code='int main(){return(0);}'
6862
 
6863
 
6864
 
6865
 
6866
 
6867
 
6868
 
6869
# If no C compiler was specified, use CC.
6870
LTCC=${LTCC-"$CC"}
6871
 
6872
# If no C compiler flags were specified, use CFLAGS.
6873
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6874
 
6875
# Allow CC to be a program name with arguments.
6876
compiler=$CC
6877
 
6878
# Save the default compiler, since it gets overwritten when the other
6879
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6880
compiler_DEFAULT=$CC
6881
 
6882
# save warnings/boilerplate of simple test code
6883
ac_outfile=conftest.$ac_objext
6884
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6885
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6886
_lt_compiler_boilerplate=`cat conftest.err`
6887
$RM conftest*
6888
 
6889
ac_outfile=conftest.$ac_objext
6890
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6891
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6892
_lt_linker_boilerplate=`cat conftest.err`
6893
$RM conftest*
6894
 
6895
 
6896
## CAVEAT EMPTOR:
6897
## There is no encapsulation within the following macros, do not change
6898
## the running order or otherwise move them around unless you know exactly
6899
## what you are doing...
6900
if test -n "$compiler"; then
6901
 
6902
lt_prog_compiler_no_builtin_flag=
6903
 
6904
if test "$GCC" = yes; then
6905
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6906
 
6907
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6908
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6909
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6910
  echo $ECHO_N "(cached) $ECHO_C" >&6
6911
else
6912
  lt_cv_prog_compiler_rtti_exceptions=no
6913
   ac_outfile=conftest.$ac_objext
6914
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6915
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6916
   # Insert the option either (1) after the last *FLAGS variable, or
6917
   # (2) before a word containing "conftest.", or (3) at the end.
6918
   # Note that $ac_compile itself does not contain backslashes and begins
6919
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6920
   # The option is referenced via a variable to avoid confusing sed.
6921
   lt_compile=`echo "$ac_compile" | $SED \
6922
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6923
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6924
   -e 's:$: $lt_compiler_flag:'`
6925
   (eval echo "\"\$as_me:6925: $lt_compile\"" >&5)
6926
   (eval "$lt_compile" 2>conftest.err)
6927
   ac_status=$?
6928
   cat conftest.err >&5
6929
   echo "$as_me:6929: \$? = $ac_status" >&5
6930
   if (exit $ac_status) && test -s "$ac_outfile"; then
6931
     # The compiler can only warn and ignore the option if not recognized
6932
     # So say no if there are warnings other than the usual output.
6933
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6934
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6935
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6936
       lt_cv_prog_compiler_rtti_exceptions=yes
6937
     fi
6938
   fi
6939
   $RM conftest*
6940
 
6941
fi
6942
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6943
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6944
 
6945
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6946
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6947
else
6948
    :
6949
fi
6950
 
6951
fi
6952
 
6953
 
6954
 
6955
 
6956
 
6957
 
6958
  lt_prog_compiler_wl=
6959
lt_prog_compiler_pic=
6960
lt_prog_compiler_static=
6961
 
6962
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6963
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6964
 
6965
  if test "$GCC" = yes; then
6966
    lt_prog_compiler_wl='-Wl,'
6967
    lt_prog_compiler_static='-static'
6968
 
6969
    case $host_os in
6970
      aix*)
6971
      # All AIX code is PIC.
6972
      if test "$host_cpu" = ia64; then
6973
        # AIX 5 now supports IA64 processor
6974
        lt_prog_compiler_static='-Bstatic'
6975
      fi
6976
      ;;
6977
 
6978
    amigaos*)
6979
      if test "$host_cpu" = m68k; then
6980
        # FIXME: we need at least 68020 code to build shared libraries, but
6981
        # adding the `-m68020' flag to GCC prevents building anything better,
6982
        # like `-m68040'.
6983
        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6984
      fi
6985
      ;;
6986
 
6987
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6988
      # PIC is the default for these OSes.
6989
      ;;
6990
 
6991
    mingw* | cygwin* | pw32* | os2*)
6992
      # This hack is so that the source file can tell whether it is being
6993
      # built for inclusion in a dll (and should export symbols for example).
6994
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6995
      # (--disable-auto-import) libraries
6996
      lt_prog_compiler_pic='-DDLL_EXPORT'
6997
      ;;
6998
 
6999
    darwin* | rhapsody*)
7000
      # PIC is the default on this platform
7001
      # Common symbols not allowed in MH_DYLIB files
7002
      lt_prog_compiler_pic='-fno-common'
7003
      ;;
7004
 
7005
    hpux*)
7006
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7007
      # not for PA HP-UX.
7008
      case $host_cpu in
7009
      hppa*64*|ia64*)
7010
        # +Z the default
7011
        ;;
7012
      *)
7013
        lt_prog_compiler_pic='-fPIC'
7014
        ;;
7015
      esac
7016
      ;;
7017
 
7018
    interix[3-9]*)
7019
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7020
      # Instead, we relocate shared libraries at runtime.
7021
      ;;
7022
 
7023
    msdosdjgpp*)
7024
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7025
      # on systems that don't support them.
7026
      lt_prog_compiler_can_build_shared=no
7027
      enable_shared=no
7028
      ;;
7029
 
7030
    *nto* | *qnx*)
7031
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7032
      # it will coredump.
7033
      lt_prog_compiler_pic='-fPIC -shared'
7034
      ;;
7035
 
7036
    sysv4*MP*)
7037
      if test -d /usr/nec; then
7038
        lt_prog_compiler_pic=-Kconform_pic
7039
      fi
7040
      ;;
7041
 
7042
    *)
7043
      lt_prog_compiler_pic='-fPIC'
7044
      ;;
7045
    esac
7046
  else
7047
    # PORTME Check for flag to pass linker flags through the system compiler.
7048
    case $host_os in
7049
    aix*)
7050
      lt_prog_compiler_wl='-Wl,'
7051
      if test "$host_cpu" = ia64; then
7052
        # AIX 5 now supports IA64 processor
7053
        lt_prog_compiler_static='-Bstatic'
7054
      else
7055
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7056
      fi
7057
      ;;
7058
    darwin*)
7059
      # PIC is the default on this platform
7060
      # Common symbols not allowed in MH_DYLIB files
7061
      case $cc_basename in
7062
      xlc*)
7063
        lt_prog_compiler_pic='-qnocommon'
7064
        lt_prog_compiler_wl='-Wl,'
7065
        ;;
7066
      esac
7067
      ;;
7068
 
7069
    mingw* | cygwin* | pw32* | os2*)
7070
      # This hack is so that the source file can tell whether it is being
7071
      # built for inclusion in a dll (and should export symbols for example).
7072
      lt_prog_compiler_pic='-DDLL_EXPORT'
7073
      ;;
7074
 
7075
    hpux9* | hpux10* | hpux11*)
7076
      lt_prog_compiler_wl='-Wl,'
7077
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7078
      # not for PA HP-UX.
7079
      case $host_cpu in
7080
      hppa*64*|ia64*)
7081
        # +Z the default
7082
        ;;
7083
      *)
7084
        lt_prog_compiler_pic='+Z'
7085
        ;;
7086
      esac
7087
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7088
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7089
      ;;
7090
 
7091
    irix5* | irix6* | nonstopux*)
7092
      lt_prog_compiler_wl='-Wl,'
7093
      # PIC (with -KPIC) is the default.
7094
      lt_prog_compiler_static='-non_shared'
7095
      ;;
7096
 
7097
    linux* | k*bsd*-gnu)
7098
      case $cc_basename in
7099
      icc* | ecc*)
7100
        lt_prog_compiler_wl='-Wl,'
7101
        lt_prog_compiler_pic='-KPIC'
7102
        lt_prog_compiler_static='-static'
7103
        ;;
7104
      pgcc* | pgf77* | pgf90* | pgf95*)
7105
        # Portland Group compilers (*not* the Pentium gcc compiler,
7106
        # which looks to be a dead project)
7107
        lt_prog_compiler_wl='-Wl,'
7108
        lt_prog_compiler_pic='-fpic'
7109
        lt_prog_compiler_static='-Bstatic'
7110
        ;;
7111
      ccc*)
7112
        lt_prog_compiler_wl='-Wl,'
7113
        # All Alpha code is PIC.
7114
        lt_prog_compiler_static='-non_shared'
7115
        ;;
7116
      *)
7117
        case `$CC -V 2>&1 | sed 5q` in
7118
        *Sun\ C*)
7119
          # Sun C 5.9
7120
          lt_prog_compiler_pic='-KPIC'
7121
          lt_prog_compiler_static='-Bstatic'
7122
          lt_prog_compiler_wl='-Wl,'
7123
          ;;
7124
        *Sun\ F*)
7125
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7126
          lt_prog_compiler_pic='-KPIC'
7127
          lt_prog_compiler_static='-Bstatic'
7128
          lt_prog_compiler_wl=''
7129
          ;;
7130
        esac
7131
        ;;
7132
      esac
7133
      ;;
7134
 
7135
    newsos6)
7136
      lt_prog_compiler_pic='-KPIC'
7137
      lt_prog_compiler_static='-Bstatic'
7138
      ;;
7139
 
7140
    *nto* | *qnx*)
7141
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7142
      # it will coredump.
7143
      lt_prog_compiler_pic='-fPIC -shared'
7144
      ;;
7145
 
7146
    osf3* | osf4* | osf5*)
7147
      lt_prog_compiler_wl='-Wl,'
7148
      # All OSF/1 code is PIC.
7149
      lt_prog_compiler_static='-non_shared'
7150
      ;;
7151
 
7152
    rdos*)
7153
      lt_prog_compiler_static='-non_shared'
7154
      ;;
7155
 
7156
    solaris*)
7157
      lt_prog_compiler_pic='-KPIC'
7158
      lt_prog_compiler_static='-Bstatic'
7159
      case $cc_basename in
7160
      f77* | f90* | f95*)
7161
        lt_prog_compiler_wl='-Qoption ld ';;
7162
      *)
7163
        lt_prog_compiler_wl='-Wl,';;
7164
      esac
7165
      ;;
7166
 
7167
    sunos4*)
7168
      lt_prog_compiler_wl='-Qoption ld '
7169
      lt_prog_compiler_pic='-PIC'
7170
      lt_prog_compiler_static='-Bstatic'
7171
      ;;
7172
 
7173
    sysv4 | sysv4.2uw2* | sysv4.3*)
7174
      lt_prog_compiler_wl='-Wl,'
7175
      lt_prog_compiler_pic='-KPIC'
7176
      lt_prog_compiler_static='-Bstatic'
7177
      ;;
7178
 
7179
    sysv4*MP*)
7180
      if test -d /usr/nec ;then
7181
        lt_prog_compiler_pic='-Kconform_pic'
7182
        lt_prog_compiler_static='-Bstatic'
7183
      fi
7184
      ;;
7185
 
7186
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7187
      lt_prog_compiler_wl='-Wl,'
7188
      lt_prog_compiler_pic='-KPIC'
7189
      lt_prog_compiler_static='-Bstatic'
7190
      ;;
7191
 
7192
    unicos*)
7193
      lt_prog_compiler_wl='-Wl,'
7194
      lt_prog_compiler_can_build_shared=no
7195
      ;;
7196
 
7197
    uts4*)
7198
      lt_prog_compiler_pic='-pic'
7199
      lt_prog_compiler_static='-Bstatic'
7200
      ;;
7201
 
7202
    *)
7203
      lt_prog_compiler_can_build_shared=no
7204
      ;;
7205
    esac
7206
  fi
7207
 
7208
case $host_os in
7209
  # For platforms which do not support PIC, -DPIC is meaningless:
7210
  *djgpp*)
7211
    lt_prog_compiler_pic=
7212
    ;;
7213
  *)
7214
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7215
    ;;
7216
esac
7217
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7218
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7219
 
7220
 
7221
 
7222
 
7223
 
7224
 
7225
#
7226
# Check to make sure the PIC flag actually works.
7227
#
7228
if test -n "$lt_prog_compiler_pic"; then
7229
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7230
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7231
if test "${lt_prog_compiler_pic_works+set}" = set; then
7232
  echo $ECHO_N "(cached) $ECHO_C" >&6
7233
else
7234
  lt_prog_compiler_pic_works=no
7235
   ac_outfile=conftest.$ac_objext
7236
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7237
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7238
   # Insert the option either (1) after the last *FLAGS variable, or
7239
   # (2) before a word containing "conftest.", or (3) at the end.
7240
   # Note that $ac_compile itself does not contain backslashes and begins
7241
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7242
   # The option is referenced via a variable to avoid confusing sed.
7243
   lt_compile=`echo "$ac_compile" | $SED \
7244
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7245
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7246
   -e 's:$: $lt_compiler_flag:'`
7247
   (eval echo "\"\$as_me:7247: $lt_compile\"" >&5)
7248
   (eval "$lt_compile" 2>conftest.err)
7249
   ac_status=$?
7250
   cat conftest.err >&5
7251
   echo "$as_me:7251: \$? = $ac_status" >&5
7252
   if (exit $ac_status) && test -s "$ac_outfile"; then
7253
     # The compiler can only warn and ignore the option if not recognized
7254
     # So say no if there are warnings other than the usual output.
7255
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7256
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7257
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7258
       lt_prog_compiler_pic_works=yes
7259
     fi
7260
   fi
7261
   $RM conftest*
7262
 
7263
fi
7264
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7265
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7266
 
7267
if test x"$lt_prog_compiler_pic_works" = xyes; then
7268
    case $lt_prog_compiler_pic in
7269
     "" | " "*) ;;
7270
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7271
     esac
7272
else
7273
    lt_prog_compiler_pic=
7274
     lt_prog_compiler_can_build_shared=no
7275
fi
7276
 
7277
fi
7278
 
7279
 
7280
 
7281
 
7282
 
7283
 
7284
#
7285
# Check to make sure the static flag actually works.
7286
#
7287
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7288
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7289
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7290
if test "${lt_prog_compiler_static_works+set}" = set; then
7291
  echo $ECHO_N "(cached) $ECHO_C" >&6
7292
else
7293
  lt_prog_compiler_static_works=no
7294
   save_LDFLAGS="$LDFLAGS"
7295
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7296
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7297
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7298
     # The linker can only warn and ignore the option if not recognized
7299
     # So say no if there are warnings
7300
     if test -s conftest.err; then
7301
       # Append any errors to the config.log.
7302
       cat conftest.err 1>&5
7303
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7304
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7305
       if diff conftest.exp conftest.er2 >/dev/null; then
7306
         lt_prog_compiler_static_works=yes
7307
       fi
7308
     else
7309
       lt_prog_compiler_static_works=yes
7310
     fi
7311
   fi
7312
   $RM conftest*
7313
   LDFLAGS="$save_LDFLAGS"
7314
 
7315
fi
7316
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7317
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7318
 
7319
if test x"$lt_prog_compiler_static_works" = xyes; then
7320
    :
7321
else
7322
    lt_prog_compiler_static=
7323
fi
7324
 
7325
 
7326
 
7327
 
7328
 
7329
 
7330
 
7331
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7332
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7333
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7334
  echo $ECHO_N "(cached) $ECHO_C" >&6
7335
else
7336
  lt_cv_prog_compiler_c_o=no
7337
   $RM -r conftest 2>/dev/null
7338
   mkdir conftest
7339
   cd conftest
7340
   mkdir out
7341
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7342
 
7343
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7344
   # Insert the option either (1) after the last *FLAGS variable, or
7345
   # (2) before a word containing "conftest.", or (3) at the end.
7346
   # Note that $ac_compile itself does not contain backslashes and begins
7347
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7348
   lt_compile=`echo "$ac_compile" | $SED \
7349
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7350
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7351
   -e 's:$: $lt_compiler_flag:'`
7352
   (eval echo "\"\$as_me:7352: $lt_compile\"" >&5)
7353
   (eval "$lt_compile" 2>out/conftest.err)
7354
   ac_status=$?
7355
   cat out/conftest.err >&5
7356
   echo "$as_me:7356: \$? = $ac_status" >&5
7357
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7358
   then
7359
     # The compiler can only warn and ignore the option if not recognized
7360
     # So say no if there are warnings
7361
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7362
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7363
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7364
       lt_cv_prog_compiler_c_o=yes
7365
     fi
7366
   fi
7367
   chmod u+w . 2>&5
7368
   $RM conftest*
7369
   # SGI C++ compiler will create directory out/ii_files/ for
7370
   # template instantiation
7371
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7372
   $RM out/* && rmdir out
7373
   cd ..
7374
   $RM -r conftest
7375
   $RM conftest*
7376
 
7377
fi
7378
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7379
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7380
 
7381
 
7382
 
7383
 
7384
 
7385
 
7386
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7387
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7388
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7389
  echo $ECHO_N "(cached) $ECHO_C" >&6
7390
else
7391
  lt_cv_prog_compiler_c_o=no
7392
   $RM -r conftest 2>/dev/null
7393
   mkdir conftest
7394
   cd conftest
7395
   mkdir out
7396
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7397
 
7398
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7399
   # Insert the option either (1) after the last *FLAGS variable, or
7400
   # (2) before a word containing "conftest.", or (3) at the end.
7401
   # Note that $ac_compile itself does not contain backslashes and begins
7402
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7403
   lt_compile=`echo "$ac_compile" | $SED \
7404
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7405
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7406
   -e 's:$: $lt_compiler_flag:'`
7407
   (eval echo "\"\$as_me:7407: $lt_compile\"" >&5)
7408
   (eval "$lt_compile" 2>out/conftest.err)
7409
   ac_status=$?
7410
   cat out/conftest.err >&5
7411
   echo "$as_me:7411: \$? = $ac_status" >&5
7412
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7413
   then
7414
     # The compiler can only warn and ignore the option if not recognized
7415
     # So say no if there are warnings
7416
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7417
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7418
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7419
       lt_cv_prog_compiler_c_o=yes
7420
     fi
7421
   fi
7422
   chmod u+w . 2>&5
7423
   $RM conftest*
7424
   # SGI C++ compiler will create directory out/ii_files/ for
7425
   # template instantiation
7426
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7427
   $RM out/* && rmdir out
7428
   cd ..
7429
   $RM -r conftest
7430
   $RM conftest*
7431
 
7432
fi
7433
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7434
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7435
 
7436
 
7437
 
7438
 
7439
hard_links="nottested"
7440
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7441
  # do not overwrite the value of need_locks provided by the user
7442
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7443
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7444
  hard_links=yes
7445
  $RM conftest*
7446
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7447
  touch conftest.a
7448
  ln conftest.a conftest.b 2>&5 || hard_links=no
7449
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7450
  echo "$as_me:$LINENO: result: $hard_links" >&5
7451
echo "${ECHO_T}$hard_links" >&6
7452
  if test "$hard_links" = no; then
7453
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7454
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7455
    need_locks=warn
7456
  fi
7457
else
7458
  need_locks=no
7459
fi
7460
 
7461
 
7462
 
7463
 
7464
 
7465
 
7466
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7467
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7468
 
7469
  runpath_var=
7470
  allow_undefined_flag=
7471
  always_export_symbols=no
7472
  archive_cmds=
7473
  archive_expsym_cmds=
7474
  compiler_needs_object=no
7475
  enable_shared_with_static_runtimes=no
7476
  export_dynamic_flag_spec=
7477
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7478
  hardcode_automatic=no
7479
  hardcode_direct=no
7480
  hardcode_direct_absolute=no
7481
  hardcode_libdir_flag_spec=
7482
  hardcode_libdir_flag_spec_ld=
7483
  hardcode_libdir_separator=
7484
  hardcode_minus_L=no
7485
  hardcode_shlibpath_var=unsupported
7486
  inherit_rpath=no
7487
  link_all_deplibs=unknown
7488
  module_cmds=
7489
  module_expsym_cmds=
7490
  old_archive_from_new_cmds=
7491
  old_archive_from_expsyms_cmds=
7492
  thread_safe_flag_spec=
7493
  whole_archive_flag_spec=
7494
  # include_expsyms should be a list of space-separated symbols to be *always*
7495
  # included in the symbol list
7496
  include_expsyms=
7497
  # exclude_expsyms can be an extended regexp of symbols to exclude
7498
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7499
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7500
  # as well as any symbol that contains `d'.
7501
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7502
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7503
  # platforms (ab)use it in PIC code, but their linkers get confused if
7504
  # the symbol is explicitly referenced.  Since portable code cannot
7505
  # rely on this symbol name, it's probably fine to never include it in
7506
  # preloaded symbol tables.
7507
  extract_expsyms_cmds=
7508
 
7509
  case $host_os in
7510
  cygwin* | mingw* | pw32*)
7511
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7512
    # When not using gcc, we currently assume that we are using
7513
    # Microsoft Visual C++.
7514
    if test "$GCC" != yes; then
7515
      with_gnu_ld=no
7516
    fi
7517
    ;;
7518
  interix*)
7519
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7520
    with_gnu_ld=yes
7521
    ;;
7522
  openbsd*)
7523
    with_gnu_ld=no
7524
    ;;
7525
  esac
7526
 
7527
  ld_shlibs=yes
7528
  if test "$with_gnu_ld" = yes; then
7529
    # If archive_cmds runs LD, not CC, wlarc should be empty
7530
    wlarc='${wl}'
7531
 
7532
    # Set some defaults for GNU ld with shared library support. These
7533
    # are reset later if shared libraries are not supported. Putting them
7534
    # here allows them to be overridden if necessary.
7535
    runpath_var=LD_RUN_PATH
7536
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7537
    export_dynamic_flag_spec='${wl}--export-dynamic'
7538
    # ancient GNU ld didn't support --whole-archive et. al.
7539
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7540
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7541
    else
7542
      whole_archive_flag_spec=
7543
    fi
7544
    supports_anon_versioning=no
7545
    case `$LD -v 2>&1` in
7546
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7547
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7548
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7549
      *\ 2.11.*) ;; # other 2.11 versions
7550
      *) supports_anon_versioning=yes ;;
7551
    esac
7552
 
7553
    # See if GNU ld supports shared libraries.
7554
    case $host_os in
7555
    aix[3-9]*)
7556
      # On AIX/PPC, the GNU linker is very broken
7557
      if test "$host_cpu" != ia64; then
7558
        ld_shlibs=no
7559
        cat <<_LT_EOF 1>&2
7560
 
7561
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7562
*** to be unable to reliably create shared libraries on AIX.
7563
*** Therefore, libtool is disabling shared libraries support.  If you
7564
*** really care for shared libraries, you may want to modify your PATH
7565
*** so that a non-GNU linker is found, and then restart.
7566
 
7567
_LT_EOF
7568
      fi
7569
      ;;
7570
 
7571
    amigaos*)
7572
      if test "$host_cpu" = m68k; then
7573
        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)'
7574
        hardcode_libdir_flag_spec='-L$libdir'
7575
        hardcode_minus_L=yes
7576
      fi
7577
 
7578
      # Samuel A. Falvo II  reports
7579
      # that the semantics of dynamic libraries on AmigaOS, at least up
7580
      # to version 4, is to share data among multiple programs linked
7581
      # with the same dynamic library.  Since this doesn't match the
7582
      # behavior of shared libraries on other platforms, we can't use
7583
      # them.
7584
      ld_shlibs=no
7585
      ;;
7586
 
7587
    beos*)
7588
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7589
        allow_undefined_flag=unsupported
7590
        # Joseph Beckenbach  says some releases of gcc
7591
        # support --undefined.  This deserves some investigation.  FIXME
7592
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7593
      else
7594
        ld_shlibs=no
7595
      fi
7596
      ;;
7597
 
7598
    cygwin* | mingw* | pw32*)
7599
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7600
      # as there is no search path for DLLs.
7601
      hardcode_libdir_flag_spec='-L$libdir'
7602
      allow_undefined_flag=unsupported
7603
      always_export_symbols=no
7604
      enable_shared_with_static_runtimes=yes
7605
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7606
 
7607
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7608
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7609
        # If the export-symbols file already is a .def file (1st line
7610
        # is EXPORTS), use it as is; otherwise, prepend...
7611
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7612
          cp $export_symbols $output_objdir/$soname.def;
7613
        else
7614
          echo EXPORTS > $output_objdir/$soname.def;
7615
          cat $export_symbols >> $output_objdir/$soname.def;
7616
        fi~
7617
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7618
      else
7619
        ld_shlibs=no
7620
      fi
7621
      ;;
7622
 
7623
    interix[3-9]*)
7624
      hardcode_direct=no
7625
      hardcode_shlibpath_var=no
7626
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7627
      export_dynamic_flag_spec='${wl}-E'
7628
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7629
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7630
      # default) and relocated if they conflict, which is a slow very memory
7631
      # consuming and fragmenting process.  To avoid this, we pick a random,
7632
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7633
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7634
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7635
      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'
7636
      ;;
7637
 
7638
    gnu* | linux* | tpf* | k*bsd*-gnu)
7639
      tmp_diet=no
7640
      if test "$host_os" = linux-dietlibc; then
7641
        case $cc_basename in
7642
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7643
        esac
7644
      fi
7645
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7646
         && test "$tmp_diet" = no
7647
      then
7648
        tmp_addflag=
7649
        case $cc_basename,$host_cpu in
7650
        pgcc*)                          # Portland Group C compiler
7651
          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'
7652
          tmp_addflag=' $pic_flag'
7653
          ;;
7654
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7655
          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'
7656
          tmp_addflag=' $pic_flag -Mnomain' ;;
7657
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7658
          tmp_addflag=' -i_dynamic' ;;
7659
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7660
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7661
        ifc* | ifort*)                  # Intel Fortran compiler
7662
          tmp_addflag=' -nofor_main' ;;
7663
        esac
7664
        case `$CC -V 2>&1 | sed 5q` in
7665
        *Sun\ C*)                       # Sun C 5.9
7666
          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'
7667
          compiler_needs_object=yes
7668
          tmp_sharedflag='-G' ;;
7669
        *Sun\ F*)                       # Sun Fortran 8.3
7670
          tmp_sharedflag='-G' ;;
7671
        *)
7672
          tmp_sharedflag='-shared' ;;
7673
        esac
7674
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7675
 
7676
        if test "x$supports_anon_versioning" = xyes; then
7677
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7678
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7679
            echo "local: *; };" >> $output_objdir/$libname.ver~
7680
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7681
        fi
7682
      else
7683
        ld_shlibs=no
7684
      fi
7685
      ;;
7686
 
7687
    netbsd*)
7688
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7689
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7690
        wlarc=
7691
      else
7692
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7693
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7694
      fi
7695
      ;;
7696
 
7697
    solaris*)
7698
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7699
        ld_shlibs=no
7700
        cat <<_LT_EOF 1>&2
7701
 
7702
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7703
*** create shared libraries on Solaris systems.  Therefore, libtool
7704
*** is disabling shared libraries support.  We urge you to upgrade GNU
7705
*** binutils to release 2.9.1 or newer.  Another option is to modify
7706
*** your PATH or compiler configuration so that the native linker is
7707
*** used, and then restart.
7708
 
7709
_LT_EOF
7710
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7711
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7712
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7713
      else
7714
        ld_shlibs=no
7715
      fi
7716
      ;;
7717
 
7718
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7719
      case `$LD -v 2>&1` in
7720
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7721
        ld_shlibs=no
7722
        cat <<_LT_EOF 1>&2
7723
 
7724
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7725
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7726
*** is disabling shared libraries support.  We urge you to upgrade GNU
7727
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7728
*** your PATH or compiler configuration so that the native linker is
7729
*** used, and then restart.
7730
 
7731
_LT_EOF
7732
        ;;
7733
        *)
7734
          # For security reasons, it is highly recommended that you always
7735
          # use absolute paths for naming shared libraries, and exclude the
7736
          # DT_RUNPATH tag from executables and libraries.  But doing so
7737
          # requires that you compile everything twice, which is a pain.
7738
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7739
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7740
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7741
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7742
          else
7743
            ld_shlibs=no
7744
          fi
7745
        ;;
7746
      esac
7747
      ;;
7748
 
7749
    sunos4*)
7750
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7751
      wlarc=
7752
      hardcode_direct=yes
7753
      hardcode_shlibpath_var=no
7754
      ;;
7755
 
7756
    *)
7757
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7758
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7759
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7760
      else
7761
        ld_shlibs=no
7762
      fi
7763
      ;;
7764
    esac
7765
 
7766
    if test "$ld_shlibs" = no; then
7767
      runpath_var=
7768
      hardcode_libdir_flag_spec=
7769
      export_dynamic_flag_spec=
7770
      whole_archive_flag_spec=
7771
    fi
7772
  else
7773
    # PORTME fill in a description of your system's linker (not GNU ld)
7774
    case $host_os in
7775
    aix3*)
7776
      allow_undefined_flag=unsupported
7777
      always_export_symbols=yes
7778
      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'
7779
      # Note: this linker hardcodes the directories in LIBPATH if there
7780
      # are no directories specified by -L.
7781
      hardcode_minus_L=yes
7782
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7783
        # Neither direct hardcoding nor static linking is supported with a
7784
        # broken collect2.
7785
        hardcode_direct=unsupported
7786
      fi
7787
      ;;
7788
 
7789
    aix[4-9]*)
7790
      if test "$host_cpu" = ia64; then
7791
        # On IA64, the linker does run time linking by default, so we don't
7792
        # have to do anything special.
7793
        aix_use_runtimelinking=no
7794
        exp_sym_flag='-Bexport'
7795
        no_entry_flag=""
7796
      else
7797
        # If we're using GNU nm, then we don't want the "-C" option.
7798
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7799
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7800
          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'
7801
        else
7802
          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'
7803
        fi
7804
        aix_use_runtimelinking=no
7805
 
7806
        # Test if we are trying to use run time linking or normal
7807
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7808
        # need to do runtime linking.
7809
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7810
          for ld_flag in $LDFLAGS; do
7811
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7812
            aix_use_runtimelinking=yes
7813
            break
7814
          fi
7815
          done
7816
          ;;
7817
        esac
7818
 
7819
        exp_sym_flag='-bexport'
7820
        no_entry_flag='-bnoentry'
7821
      fi
7822
 
7823
      # When large executables or shared objects are built, AIX ld can
7824
      # have problems creating the table of contents.  If linking a library
7825
      # or program results in "error TOC overflow" add -mminimal-toc to
7826
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7827
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7828
 
7829
      archive_cmds=''
7830
      hardcode_direct=yes
7831
      hardcode_direct_absolute=yes
7832
      hardcode_libdir_separator=':'
7833
      link_all_deplibs=yes
7834
      file_list_spec='${wl}-f,'
7835
 
7836
      if test "$GCC" = yes; then
7837
        case $host_os in aix4.[012]|aix4.[012].*)
7838
        # We only want to do this on AIX 4.2 and lower, the check
7839
        # below for broken collect2 doesn't work under 4.3+
7840
          collect2name=`${CC} -print-prog-name=collect2`
7841
          if test -f "$collect2name" &&
7842
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7843
          then
7844
          # We have reworked collect2
7845
          :
7846
          else
7847
          # We have old collect2
7848
          hardcode_direct=unsupported
7849
          # It fails to find uninstalled libraries when the uninstalled
7850
          # path is not listed in the libpath.  Setting hardcode_minus_L
7851
          # to unsupported forces relinking
7852
          hardcode_minus_L=yes
7853
          hardcode_libdir_flag_spec='-L$libdir'
7854
          hardcode_libdir_separator=
7855
          fi
7856
          ;;
7857
        esac
7858
        shared_flag='-shared'
7859
        if test "$aix_use_runtimelinking" = yes; then
7860
          shared_flag="$shared_flag "'${wl}-G'
7861
        fi
7862
      else
7863
        # not using gcc
7864
        if test "$host_cpu" = ia64; then
7865
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7866
        # chokes on -Wl,-G. The following line is correct:
7867
          shared_flag='-G'
7868
        else
7869
          if test "$aix_use_runtimelinking" = yes; then
7870
            shared_flag='${wl}-G'
7871
          else
7872
            shared_flag='${wl}-bM:SRE'
7873
          fi
7874
        fi
7875
      fi
7876
 
7877
      # It seems that -bexpall does not export symbols beginning with
7878
      # underscore (_), so it is better to generate a list of symbols to export.
7879
      always_export_symbols=yes
7880
      if test "$aix_use_runtimelinking" = yes; then
7881
        # Warning - without using the other runtime loading flags (-brtl),
7882
        # -berok will link without error, but may produce a broken library.
7883
        allow_undefined_flag='-berok'
7884
        # Determine the default libpath from the value encoded in an
7885
        # empty executable.
7886
        cat >conftest.$ac_ext <<_ACEOF
7887
/* confdefs.h.  */
7888
_ACEOF
7889
cat confdefs.h >>conftest.$ac_ext
7890
cat >>conftest.$ac_ext <<_ACEOF
7891
/* end confdefs.h.  */
7892
 
7893
int
7894
main ()
7895
{
7896
 
7897
  ;
7898
  return 0;
7899
}
7900
_ACEOF
7901
rm -f conftest.$ac_objext conftest$ac_exeext
7902
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903
  (eval $ac_link) 2>conftest.er1
7904
  ac_status=$?
7905
  grep -v '^ *+' conftest.er1 >conftest.err
7906
  rm -f conftest.er1
7907
  cat conftest.err >&5
7908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909
  (exit $ac_status); } &&
7910
         { ac_try='test -z "$ac_c_werror_flag"
7911
                         || test ! -s conftest.err'
7912
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913
  (eval $ac_try) 2>&5
7914
  ac_status=$?
7915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916
  (exit $ac_status); }; } &&
7917
         { ac_try='test -s conftest$ac_exeext'
7918
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919
  (eval $ac_try) 2>&5
7920
  ac_status=$?
7921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922
  (exit $ac_status); }; }; then
7923
 
7924
lt_aix_libpath_sed='
7925
    /Import File Strings/,/^$/ {
7926
        /^0/ {
7927
            s/^0  *\(.*\)$/\1/
7928
            p
7929
        }
7930
    }'
7931
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7932
# Check for a 64-bit object if we didn't find anything.
7933
if test -z "$aix_libpath"; then
7934
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7935
fi
7936
else
7937
  echo "$as_me: failed program was:" >&5
7938
sed 's/^/| /' conftest.$ac_ext >&5
7939
 
7940
fi
7941
rm -f conftest.err conftest.$ac_objext \
7942
      conftest$ac_exeext conftest.$ac_ext
7943
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7944
 
7945
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7946
        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"
7947
      else
7948
        if test "$host_cpu" = ia64; then
7949
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7950
          allow_undefined_flag="-z nodefs"
7951
          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"
7952
        else
7953
         # Determine the default libpath from the value encoded in an
7954
         # empty executable.
7955
         cat >conftest.$ac_ext <<_ACEOF
7956
/* confdefs.h.  */
7957
_ACEOF
7958
cat confdefs.h >>conftest.$ac_ext
7959
cat >>conftest.$ac_ext <<_ACEOF
7960
/* end confdefs.h.  */
7961
 
7962
int
7963
main ()
7964
{
7965
 
7966
  ;
7967
  return 0;
7968
}
7969
_ACEOF
7970
rm -f conftest.$ac_objext conftest$ac_exeext
7971
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7972
  (eval $ac_link) 2>conftest.er1
7973
  ac_status=$?
7974
  grep -v '^ *+' conftest.er1 >conftest.err
7975
  rm -f conftest.er1
7976
  cat conftest.err >&5
7977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978
  (exit $ac_status); } &&
7979
         { ac_try='test -z "$ac_c_werror_flag"
7980
                         || test ! -s conftest.err'
7981
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982
  (eval $ac_try) 2>&5
7983
  ac_status=$?
7984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985
  (exit $ac_status); }; } &&
7986
         { ac_try='test -s conftest$ac_exeext'
7987
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988
  (eval $ac_try) 2>&5
7989
  ac_status=$?
7990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991
  (exit $ac_status); }; }; then
7992
 
7993
lt_aix_libpath_sed='
7994
    /Import File Strings/,/^$/ {
7995
        /^0/ {
7996
            s/^0  *\(.*\)$/\1/
7997
            p
7998
        }
7999
    }'
8000
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8001
# Check for a 64-bit object if we didn't find anything.
8002
if test -z "$aix_libpath"; then
8003
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8004
fi
8005
else
8006
  echo "$as_me: failed program was:" >&5
8007
sed 's/^/| /' conftest.$ac_ext >&5
8008
 
8009
fi
8010
rm -f conftest.err conftest.$ac_objext \
8011
      conftest$ac_exeext conftest.$ac_ext
8012
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8013
 
8014
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8015
          # Warning - without using the other run time loading flags,
8016
          # -berok will link without error, but may produce a broken library.
8017
          no_undefined_flag=' ${wl}-bernotok'
8018
          allow_undefined_flag=' ${wl}-berok'
8019
          # Exported symbols can be pulled into shared objects from archives
8020
          whole_archive_flag_spec='$convenience'
8021
          archive_cmds_need_lc=yes
8022
          # This is similar to how AIX traditionally builds its shared libraries.
8023
          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'
8024
        fi
8025
      fi
8026
      ;;
8027
 
8028
    amigaos*)
8029
      if test "$host_cpu" = m68k; then
8030
        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)'
8031
        hardcode_libdir_flag_spec='-L$libdir'
8032
        hardcode_minus_L=yes
8033
      fi
8034
      # see comment about different semantics on the GNU ld section
8035
      ld_shlibs=no
8036
      ;;
8037
 
8038
    bsdi[45]*)
8039
      export_dynamic_flag_spec=-rdynamic
8040
      ;;
8041
 
8042
    cygwin* | mingw* | pw32*)
8043
      # When not using gcc, we currently assume that we are using
8044
      # Microsoft Visual C++.
8045
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8046
      # no search path for DLLs.
8047
      hardcode_libdir_flag_spec=' '
8048
      allow_undefined_flag=unsupported
8049
      # Tell ltmain to make .lib files, not .a files.
8050
      libext=lib
8051
      # Tell ltmain to make .dll files, not .so files.
8052
      shrext_cmds=".dll"
8053
      # FIXME: Setting linknames here is a bad hack.
8054
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8055
      # The linker will automatically build a .lib file if we build a DLL.
8056
      old_archive_from_new_cmds='true'
8057
      # FIXME: Should let the user specify the lib program.
8058
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8059
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8060
      enable_shared_with_static_runtimes=yes
8061
      ;;
8062
 
8063
    darwin* | rhapsody*)
8064
      case $host_os in
8065
      rhapsody* | darwin1.[012])
8066
        allow_undefined_flag='${wl}-undefined ${wl}suppress'
8067
        ;;
8068
      *) # Darwin 1.3 on
8069
        case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8070
        10.[012])
8071
          allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8072
          ;;
8073
        10.*)
8074
          allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8075
          ;;
8076
        esac
8077
        ;;
8078
      esac
8079
      archive_cmds_need_lc=no
8080
      hardcode_direct=no
8081
      hardcode_automatic=yes
8082
      hardcode_shlibpath_var=unsupported
8083
      whole_archive_flag_spec=''
8084
      link_all_deplibs=yes
8085
      if test "$GCC" = yes ; then
8086
        if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8087
  echo $ECHO_N "(cached) $ECHO_C" >&6
8088
else
8089
  lt_cv_apple_cc_single_mod=no
8090
        if test -z "${LT_MULTI_MODULE}"; then
8091
          # By default we will add the -single_module flag. You can override
8092
          # by either setting the environment variable LT_MULTI_MODULE
8093
          # non-empty at configure time, or by adding -multi-module to the
8094
          # link flags.
8095
          echo "int foo(void){return 1;}" > conftest.c
8096
          $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8097
              -dynamiclib ${wl}-single_module conftest.c
8098
          if test -f libconftest.dylib; then
8099
              lt_cv_apple_cc_single_mod=yes
8100
              rm libconftest.dylib
8101
          fi
8102
          rm conftest.$ac_ext
8103
        fi
8104
fi
8105
 
8106
        output_verbose_link_cmd=echo
8107
        if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8108
          archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8109
          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}'
8110
        else
8111
          archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8112
          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}'
8113
        fi
8114
        module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8115
        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}'
8116
      else
8117
        case $cc_basename in
8118
        xlc*)
8119
          output_verbose_link_cmd=echo
8120
          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8121
          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8122
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8123
          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}'
8124
          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}'
8125
          ;;
8126
        *)
8127
          ld_shlibs=no
8128
          ;;
8129
        esac
8130
      fi
8131
      ;;
8132
 
8133
    dgux*)
8134
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8135
      hardcode_libdir_flag_spec='-L$libdir'
8136
      hardcode_shlibpath_var=no
8137
      ;;
8138
 
8139
    freebsd1*)
8140
      ld_shlibs=no
8141
      ;;
8142
 
8143
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8144
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8145
    # does not break anything, and helps significantly (at the cost of a little
8146
    # extra space).
8147
    freebsd2.2*)
8148
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8149
      hardcode_libdir_flag_spec='-R$libdir'
8150
      hardcode_direct=yes
8151
      hardcode_shlibpath_var=no
8152
      ;;
8153
 
8154
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8155
    freebsd2*)
8156
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8157
      hardcode_direct=yes
8158
      hardcode_minus_L=yes
8159
      hardcode_shlibpath_var=no
8160
      ;;
8161
 
8162
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8163
    freebsd* | dragonfly*)
8164
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8165
      hardcode_libdir_flag_spec='-R$libdir'
8166
      hardcode_direct=yes
8167
      hardcode_shlibpath_var=no
8168
      ;;
8169
 
8170
    hpux9*)
8171
      if test "$GCC" = yes; then
8172
        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'
8173
      else
8174
        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'
8175
      fi
8176
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8177
      hardcode_libdir_separator=:
8178
      hardcode_direct=yes
8179
 
8180
      # hardcode_minus_L: Not really in the search PATH,
8181
      # but as the default location of the library.
8182
      hardcode_minus_L=yes
8183
      export_dynamic_flag_spec='${wl}-E'
8184
      ;;
8185
 
8186
    hpux10*)
8187
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8188
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8189
      else
8190
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8191
      fi
8192
      if test "$with_gnu_ld" = no; then
8193
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8194
        hardcode_libdir_flag_spec_ld='+b $libdir'
8195
        hardcode_libdir_separator=:
8196
        hardcode_direct=yes
8197
        hardcode_direct_absolute=yes
8198
        export_dynamic_flag_spec='${wl}-E'
8199
        # hardcode_minus_L: Not really in the search PATH,
8200
        # but as the default location of the library.
8201
        hardcode_minus_L=yes
8202
      fi
8203
      ;;
8204
 
8205
    hpux11*)
8206
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8207
        case $host_cpu in
8208
        hppa*64*)
8209
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8210
          ;;
8211
        ia64*)
8212
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8213
          ;;
8214
        *)
8215
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8216
          ;;
8217
        esac
8218
      else
8219
        case $host_cpu in
8220
        hppa*64*)
8221
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8222
          ;;
8223
        ia64*)
8224
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8225
          ;;
8226
        *)
8227
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8228
          ;;
8229
        esac
8230
      fi
8231
      if test "$with_gnu_ld" = no; then
8232
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8233
        hardcode_libdir_separator=:
8234
 
8235
        case $host_cpu in
8236
        hppa*64*|ia64*)
8237
          hardcode_direct=no
8238
          hardcode_shlibpath_var=no
8239
          ;;
8240
        *)
8241
          hardcode_direct=yes
8242
          hardcode_direct_absolute=yes
8243
          export_dynamic_flag_spec='${wl}-E'
8244
 
8245
          # hardcode_minus_L: Not really in the search PATH,
8246
          # but as the default location of the library.
8247
          hardcode_minus_L=yes
8248
          ;;
8249
        esac
8250
      fi
8251
      ;;
8252
 
8253
    irix5* | irix6* | nonstopux*)
8254
      if test "$GCC" = yes; then
8255
        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'
8256
        # Try to use the -exported_symbol ld option, if it does not
8257
        # work, assume that -exports_file does not work either and
8258
        # implicitly export all symbols.
8259
        save_LDFLAGS="$LDFLAGS"
8260
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8261
        cat >conftest.$ac_ext <<_ACEOF
8262
int foo(void) {}
8263
_ACEOF
8264
rm -f conftest.$ac_objext conftest$ac_exeext
8265
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266
  (eval $ac_link) 2>conftest.er1
8267
  ac_status=$?
8268
  grep -v '^ *+' conftest.er1 >conftest.err
8269
  rm -f conftest.er1
8270
  cat conftest.err >&5
8271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272
  (exit $ac_status); } &&
8273
         { ac_try='test -z "$ac_c_werror_flag"
8274
                         || test ! -s conftest.err'
8275
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276
  (eval $ac_try) 2>&5
8277
  ac_status=$?
8278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279
  (exit $ac_status); }; } &&
8280
         { ac_try='test -s conftest$ac_exeext'
8281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282
  (eval $ac_try) 2>&5
8283
  ac_status=$?
8284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285
  (exit $ac_status); }; }; then
8286
  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'
8287
 
8288
else
8289
  echo "$as_me: failed program was:" >&5
8290
sed 's/^/| /' conftest.$ac_ext >&5
8291
 
8292
fi
8293
rm -f conftest.err conftest.$ac_objext \
8294
      conftest$ac_exeext conftest.$ac_ext
8295
        LDFLAGS="$save_LDFLAGS"
8296
      else
8297
        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'
8298
        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'
8299
      fi
8300
      archive_cmds_need_lc='no'
8301
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8302
      hardcode_libdir_separator=:
8303
      inherit_rpath=yes
8304
      link_all_deplibs=yes
8305
      ;;
8306
 
8307
    netbsd*)
8308
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8309
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8310
      else
8311
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8312
      fi
8313
      hardcode_libdir_flag_spec='-R$libdir'
8314
      hardcode_direct=yes
8315
      hardcode_shlibpath_var=no
8316
      ;;
8317
 
8318
    newsos6)
8319
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8320
      hardcode_direct=yes
8321
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8322
      hardcode_libdir_separator=:
8323
      hardcode_shlibpath_var=no
8324
      ;;
8325
 
8326
    *nto* | *qnx*)
8327
      ;;
8328
 
8329
    openbsd*)
8330
      hardcode_direct=yes
8331
      hardcode_shlibpath_var=no
8332
      hardcode_direct_absolute=yes
8333
      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8334
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8335
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8336
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8337
        export_dynamic_flag_spec='${wl}-E'
8338
      else
8339
        case $host_os in
8340
        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8341
          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8342
          hardcode_libdir_flag_spec='-R$libdir'
8343
          ;;
8344
        *)
8345
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8346
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8347
          ;;
8348
        esac
8349
      fi
8350
      ;;
8351
 
8352
    os2*)
8353
      hardcode_libdir_flag_spec='-L$libdir'
8354
      hardcode_minus_L=yes
8355
      allow_undefined_flag=unsupported
8356
      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'
8357
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8358
      ;;
8359
 
8360
    osf3*)
8361
      if test "$GCC" = yes; then
8362
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8363
        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'
8364
      else
8365
        allow_undefined_flag=' -expect_unresolved \*'
8366
        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'
8367
      fi
8368
      archive_cmds_need_lc='no'
8369
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8370
      hardcode_libdir_separator=:
8371
      ;;
8372
 
8373
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8374
      if test "$GCC" = yes; then
8375
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8376
        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'
8377
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8378
      else
8379
        allow_undefined_flag=' -expect_unresolved \*'
8380
        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'
8381
        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~
8382
        $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'
8383
 
8384
        # Both c and cxx compiler support -rpath directly
8385
        hardcode_libdir_flag_spec='-rpath $libdir'
8386
      fi
8387
      archive_cmds_need_lc='no'
8388
      hardcode_libdir_separator=:
8389
      ;;
8390
 
8391
    solaris*)
8392
      no_undefined_flag=' -z defs'
8393
      if test "$GCC" = yes; then
8394
        wlarc='${wl}'
8395
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8396
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8397
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8398
      else
8399
        case `$CC -V 2>&1` in
8400
        *"Compilers 5.0"*)
8401
          wlarc=''
8402
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8403
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8404
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8405
          ;;
8406
        *)
8407
          wlarc='${wl}'
8408
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8409
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8410
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8411
          ;;
8412
        esac
8413
      fi
8414
      hardcode_libdir_flag_spec='-R$libdir'
8415
      hardcode_shlibpath_var=no
8416
      case $host_os in
8417
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8418
      *)
8419
        # The compiler driver will combine and reorder linker options,
8420
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8421
        # but is careful enough not to reorder.
8422
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8423
        if test "$GCC" = yes; then
8424
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8425
        else
8426
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8427
        fi
8428
        ;;
8429
      esac
8430
      link_all_deplibs=yes
8431
      ;;
8432
 
8433
    sunos4*)
8434
      if test "x$host_vendor" = xsequent; then
8435
        # Use $CC to link under sequent, because it throws in some extra .o
8436
        # files that make .init and .fini sections work.
8437
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8438
      else
8439
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8440
      fi
8441
      hardcode_libdir_flag_spec='-L$libdir'
8442
      hardcode_direct=yes
8443
      hardcode_minus_L=yes
8444
      hardcode_shlibpath_var=no
8445
      ;;
8446
 
8447
    sysv4)
8448
      case $host_vendor in
8449
        sni)
8450
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8451
          hardcode_direct=yes # is this really true???
8452
        ;;
8453
        siemens)
8454
          ## LD is ld it makes a PLAMLIB
8455
          ## CC just makes a GrossModule.
8456
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8457
          reload_cmds='$CC -r -o $output$reload_objs'
8458
          hardcode_direct=no
8459
        ;;
8460
        motorola)
8461
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8462
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8463
        ;;
8464
      esac
8465
      runpath_var='LD_RUN_PATH'
8466
      hardcode_shlibpath_var=no
8467
      ;;
8468
 
8469
    sysv4.3*)
8470
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8471
      hardcode_shlibpath_var=no
8472
      export_dynamic_flag_spec='-Bexport'
8473
      ;;
8474
 
8475
    sysv4*MP*)
8476
      if test -d /usr/nec; then
8477
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8478
        hardcode_shlibpath_var=no
8479
        runpath_var=LD_RUN_PATH
8480
        hardcode_runpath_var=yes
8481
        ld_shlibs=yes
8482
      fi
8483
      ;;
8484
 
8485
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8486
      no_undefined_flag='${wl}-z,text'
8487
      archive_cmds_need_lc=no
8488
      hardcode_shlibpath_var=no
8489
      runpath_var='LD_RUN_PATH'
8490
 
8491
      if test "$GCC" = yes; then
8492
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8493
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8494
      else
8495
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8496
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8497
      fi
8498
      ;;
8499
 
8500
    sysv5* | sco3.2v5* | sco5v6*)
8501
      # Note: We can NOT use -z defs as we might desire, because we do not
8502
      # link with -lc, and that would cause any symbols used from libc to
8503
      # always be unresolved, which means just about no library would
8504
      # ever link correctly.  If we're not using GNU ld we use -z text
8505
      # though, which does catch some bad symbols but isn't as heavy-handed
8506
      # as -z defs.
8507
      no_undefined_flag='${wl}-z,text'
8508
      allow_undefined_flag='${wl}-z,nodefs'
8509
      archive_cmds_need_lc=no
8510
      hardcode_shlibpath_var=no
8511
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8512
      hardcode_libdir_separator=':'
8513
      link_all_deplibs=yes
8514
      export_dynamic_flag_spec='${wl}-Bexport'
8515
      runpath_var='LD_RUN_PATH'
8516
 
8517
      if test "$GCC" = yes; then
8518
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8519
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8520
      else
8521
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8522
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8523
      fi
8524
      ;;
8525
 
8526
    uts4*)
8527
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8528
      hardcode_libdir_flag_spec='-L$libdir'
8529
      hardcode_shlibpath_var=no
8530
      ;;
8531
 
8532
    *)
8533
      ld_shlibs=no
8534
      ;;
8535
    esac
8536
 
8537
    if test x$host_vendor = xsni; then
8538
      case $host in
8539
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8540
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8541
        ;;
8542
      esac
8543
    fi
8544
  fi
8545
 
8546
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8547
echo "${ECHO_T}$ld_shlibs" >&6
8548
test "$ld_shlibs" = no && can_build_shared=no
8549
 
8550
with_gnu_ld=$with_gnu_ld
8551
 
8552
 
8553
 
8554
 
8555
 
8556
 
8557
 
8558
 
8559
 
8560
 
8561
 
8562
 
8563
 
8564
 
8565
 
8566
#
8567
# Do we need to explicitly link libc?
8568
#
8569
case "x$archive_cmds_need_lc" in
8570
x|xyes)
8571
  # Assume -lc should be added
8572
  archive_cmds_need_lc=yes
8573
 
8574
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8575
    case $archive_cmds in
8576
    *'~'*)
8577
      # FIXME: we may have to deal with multi-command sequences.
8578
      ;;
8579
    '$CC '*)
8580
      # Test whether the compiler implicitly links with -lc since on some
8581
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8582
      # to ld, don't add -lc before -lgcc.
8583
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8584
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8585
      $RM conftest*
8586
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8587
 
8588
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589
  (eval $ac_compile) 2>&5
8590
  ac_status=$?
8591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592
  (exit $ac_status); } 2>conftest.err; then
8593
        soname=conftest
8594
        lib=conftest
8595
        libobjs=conftest.$ac_objext
8596
        deplibs=
8597
        wl=$lt_prog_compiler_wl
8598
        pic_flag=$lt_prog_compiler_pic
8599
        compiler_flags=-v
8600
        linker_flags=-v
8601
        verstring=
8602
        output_objdir=.
8603
        libname=conftest
8604
        lt_save_allow_undefined_flag=$allow_undefined_flag
8605
        allow_undefined_flag=
8606
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8607
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8608
  ac_status=$?
8609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610
  (exit $ac_status); }
8611
        then
8612
          archive_cmds_need_lc=no
8613
        else
8614
          archive_cmds_need_lc=yes
8615
        fi
8616
        allow_undefined_flag=$lt_save_allow_undefined_flag
8617
      else
8618
        cat conftest.err 1>&5
8619
      fi
8620
      $RM conftest*
8621
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8622
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8623
      ;;
8624
    esac
8625
  fi
8626
  ;;
8627
esac
8628
 
8629
 
8630
 
8631
 
8632
 
8633
 
8634
 
8635
 
8636
 
8637
 
8638
 
8639
 
8640
 
8641
 
8642
 
8643
 
8644
 
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
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8786
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8787
withGCC=$GCC
8788
if test "$withGCC" = yes; then
8789
  case $host_os in
8790
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8791
    *) lt_awk_arg="/^libraries:/" ;;
8792
  esac
8793
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8794
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8795
    # if the path contains ";" then we assume it to be the separator
8796
    # otherwise default to the standard path separator (i.e. ":") - it is
8797
    # assumed that no part of a normal pathname contains ";" but that should
8798
    # okay in the real world where ";" in dirpaths is itself problematic.
8799
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8800
  else
8801
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8802
  fi
8803
  # Ok, now we have the path, separated by spaces, we can step through it
8804
  # and add multilib dir if necessary.
8805
  lt_tmp_lt_search_path_spec=
8806
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8807
  for lt_sys_path in $lt_search_path_spec; do
8808
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8809
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8810
    else
8811
      test -d "$lt_sys_path" && \
8812
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8813
    fi
8814
  done
8815
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8816
BEGIN {RS=" "; FS="/|\n";} {
8817
  lt_foo="";
8818
  lt_count=0;
8819
  for (lt_i = NF; lt_i > 0; lt_i--) {
8820
    if ($lt_i != "" && $lt_i != ".") {
8821
      if ($lt_i == "..") {
8822
        lt_count++;
8823
      } else {
8824
        if (lt_count == 0) {
8825
          lt_foo="/" $lt_i lt_foo;
8826
        } else {
8827
          lt_count--;
8828
        }
8829
      }
8830
    }
8831
  }
8832
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8833
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8834
}'`
8835
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8836
else
8837
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8838
fi
8839
library_names_spec=
8840
libname_spec='lib$name'
8841
soname_spec=
8842
shrext_cmds=".so"
8843
postinstall_cmds=
8844
postuninstall_cmds=
8845
finish_cmds=
8846
finish_eval=
8847
shlibpath_var=
8848
shlibpath_overrides_runpath=unknown
8849
version_type=none
8850
dynamic_linker="$host_os ld.so"
8851
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8852
need_lib_prefix=unknown
8853
hardcode_into_libs=no
8854
 
8855
# when you set need_version to no, make sure it does not cause -set_version
8856
# flags to be left without arguments
8857
need_version=unknown
8858
 
8859
case $host_os in
8860
aix3*)
8861
  version_type=linux
8862
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8863
  shlibpath_var=LIBPATH
8864
 
8865
  # AIX 3 has no versioning support, so we append a major version to the name.
8866
  soname_spec='${libname}${release}${shared_ext}$major'
8867
  ;;
8868
 
8869
aix[4-9]*)
8870
  version_type=linux
8871
  need_lib_prefix=no
8872
  need_version=no
8873
  hardcode_into_libs=yes
8874
  if test "$host_cpu" = ia64; then
8875
    # AIX 5 supports IA64
8876
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8877
    shlibpath_var=LD_LIBRARY_PATH
8878
  else
8879
    # With GCC up to 2.95.x, collect2 would create an import file
8880
    # for dependence libraries.  The import file would start with
8881
    # the line `#! .'.  This would cause the generated library to
8882
    # depend on `.', always an invalid library.  This was fixed in
8883
    # development snapshots of GCC prior to 3.0.
8884
    case $host_os in
8885
      aix4 | aix4.[01] | aix4.[01].*)
8886
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8887
           echo ' yes '
8888
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8889
        :
8890
      else
8891
        can_build_shared=no
8892
      fi
8893
      ;;
8894
    esac
8895
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8896
    # soname into executable. Probably we can add versioning support to
8897
    # collect2, so additional links can be useful in future.
8898
    if test "$aix_use_runtimelinking" = yes; then
8899
      # If using run time linking (on AIX 4.2 or later) use lib.so
8900
      # instead of lib.a to let people know that these are not
8901
      # typical AIX shared libraries.
8902
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8903
    else
8904
      # We preserve .a as extension for shared libraries through AIX4.2
8905
      # and later when we are not doing run time linking.
8906
      library_names_spec='${libname}${release}.a $libname.a'
8907
      soname_spec='${libname}${release}${shared_ext}$major'
8908
    fi
8909
    shlibpath_var=LIBPATH
8910
  fi
8911
  ;;
8912
 
8913
amigaos*)
8914
  if test "$host_cpu" = m68k; then
8915
    library_names_spec='$libname.ixlibrary $libname.a'
8916
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8917
    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'
8918
  else
8919
    dynamic_linker=no
8920
  fi
8921
  ;;
8922
 
8923
beos*)
8924
  library_names_spec='${libname}${shared_ext}'
8925
  dynamic_linker="$host_os ld.so"
8926
  shlibpath_var=LIBRARY_PATH
8927
  ;;
8928
 
8929
bsdi[45]*)
8930
  version_type=linux
8931
  need_version=no
8932
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933
  soname_spec='${libname}${release}${shared_ext}$major'
8934
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8935
  shlibpath_var=LD_LIBRARY_PATH
8936
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8937
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8938
  # the default ld.so.conf also contains /usr/contrib/lib and
8939
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8940
  # libtool to hard-code these into programs
8941
  ;;
8942
 
8943
cygwin* | mingw* | pw32*)
8944
  version_type=windows
8945
  shrext_cmds=".dll"
8946
  need_version=no
8947
  need_lib_prefix=no
8948
 
8949
  case $withGCC,$host_os in
8950
  yes,cygwin* | yes,mingw* | yes,pw32*)
8951
    library_names_spec='$libname.dll.a'
8952
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8953
    postinstall_cmds='base_file=`basename \${file}`~
8954
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8955
      dldir=$destdir/`dirname \$dlpath`~
8956
      test -d \$dldir || mkdir -p \$dldir~
8957
      $install_prog $dir/$dlname \$dldir/$dlname~
8958
      chmod a+x \$dldir/$dlname~
8959
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8960
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8961
      fi'
8962
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8963
      dlpath=$dir/\$dldll~
8964
       $RM \$dlpath'
8965
    shlibpath_overrides_runpath=yes
8966
 
8967
    case $host_os in
8968
    cygwin*)
8969
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8970
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8971
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8972
      ;;
8973
    mingw*)
8974
      # MinGW DLLs use traditional 'lib' prefix
8975
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8976
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8977
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8978
        # It is most probably a Windows format PATH printed by
8979
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8980
        # path with ; separators, and with drive letters. We can handle the
8981
        # drive letters (cygwin fileutils understands them), so leave them,
8982
        # especially as we might pass files found there to a mingw objdump,
8983
        # which wouldn't understand a cygwinified path. Ahh.
8984
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8985
      else
8986
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8987
      fi
8988
      ;;
8989
    pw32*)
8990
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8991
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8992
      ;;
8993
    esac
8994
    ;;
8995
 
8996
  *)
8997
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8998
    ;;
8999
  esac
9000
  dynamic_linker='Win32 ld.exe'
9001
  # FIXME: first we should search . and the directory the executable is in
9002
  shlibpath_var=PATH
9003
  ;;
9004
 
9005
darwin* | rhapsody*)
9006
  dynamic_linker="$host_os dyld"
9007
  version_type=darwin
9008
  need_lib_prefix=no
9009
  need_version=no
9010
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9011
  soname_spec='${libname}${release}${major}$shared_ext'
9012
  shlibpath_overrides_runpath=yes
9013
  shlibpath_var=DYLD_LIBRARY_PATH
9014
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9015
 
9016
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9017
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9018
  ;;
9019
 
9020
dgux*)
9021
  version_type=linux
9022
  need_lib_prefix=no
9023
  need_version=no
9024
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9025
  soname_spec='${libname}${release}${shared_ext}$major'
9026
  shlibpath_var=LD_LIBRARY_PATH
9027
  ;;
9028
 
9029
freebsd1*)
9030
  dynamic_linker=no
9031
  ;;
9032
 
9033
freebsd* | dragonfly*)
9034
  # DragonFly does not have aout.  When/if they implement a new
9035
  # versioning mechanism, adjust this.
9036
  if test -x /usr/bin/objformat; then
9037
    objformat=`/usr/bin/objformat`
9038
  else
9039
    case $host_os in
9040
    freebsd[123]*) objformat=aout ;;
9041
    *) objformat=elf ;;
9042
    esac
9043
  fi
9044
  version_type=freebsd-$objformat
9045
  case $version_type in
9046
    freebsd-elf*)
9047
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9048
      need_version=no
9049
      need_lib_prefix=no
9050
      ;;
9051
    freebsd-*)
9052
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9053
      need_version=yes
9054
      ;;
9055
  esac
9056
  shlibpath_var=LD_LIBRARY_PATH
9057
  case $host_os in
9058
  freebsd2*)
9059
    shlibpath_overrides_runpath=yes
9060
    ;;
9061
  freebsd3.[01]* | freebsdelf3.[01]*)
9062
    shlibpath_overrides_runpath=yes
9063
    hardcode_into_libs=yes
9064
    ;;
9065
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9066
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9067
    shlibpath_overrides_runpath=no
9068
    hardcode_into_libs=yes
9069
    ;;
9070
  *) # from 4.6 on, and DragonFly
9071
    shlibpath_overrides_runpath=yes
9072
    hardcode_into_libs=yes
9073
    ;;
9074
  esac
9075
  ;;
9076
 
9077
gnu*)
9078
  version_type=linux
9079
  need_lib_prefix=no
9080
  need_version=no
9081
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9082
  soname_spec='${libname}${release}${shared_ext}$major'
9083
  shlibpath_var=LD_LIBRARY_PATH
9084
  hardcode_into_libs=yes
9085
  ;;
9086
 
9087
hpux9* | hpux10* | hpux11*)
9088
  # Give a soname corresponding to the major version so that dld.sl refuses to
9089
  # link against other versions.
9090
  version_type=sunos
9091
  need_lib_prefix=no
9092
  need_version=no
9093
  case $host_cpu in
9094
  ia64*)
9095
    shrext_cmds='.so'
9096
    hardcode_into_libs=yes
9097
    dynamic_linker="$host_os dld.so"
9098
    shlibpath_var=LD_LIBRARY_PATH
9099
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9100
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101
    soname_spec='${libname}${release}${shared_ext}$major'
9102
    if test "X$HPUX_IA64_MODE" = X32; then
9103
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9104
    else
9105
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9106
    fi
9107
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9108
    ;;
9109
  hppa*64*)
9110
    shrext_cmds='.sl'
9111
    hardcode_into_libs=yes
9112
    dynamic_linker="$host_os dld.sl"
9113
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9114
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9115
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116
    soname_spec='${libname}${release}${shared_ext}$major'
9117
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9118
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9119
    ;;
9120
  *)
9121
    shrext_cmds='.sl'
9122
    dynamic_linker="$host_os dld.sl"
9123
    shlibpath_var=SHLIB_PATH
9124
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9125
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126
    soname_spec='${libname}${release}${shared_ext}$major'
9127
    ;;
9128
  esac
9129
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9130
  postinstall_cmds='chmod 555 $lib'
9131
  ;;
9132
 
9133
interix[3-9]*)
9134
  version_type=linux
9135
  need_lib_prefix=no
9136
  need_version=no
9137
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9138
  soname_spec='${libname}${release}${shared_ext}$major'
9139
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9140
  shlibpath_var=LD_LIBRARY_PATH
9141
  shlibpath_overrides_runpath=no
9142
  hardcode_into_libs=yes
9143
  ;;
9144
 
9145
irix5* | irix6* | nonstopux*)
9146
  case $host_os in
9147
    nonstopux*) version_type=nonstopux ;;
9148
    *)
9149
        if test "$lt_cv_prog_gnu_ld" = yes; then
9150
                version_type=linux
9151
        else
9152
                version_type=irix
9153
        fi ;;
9154
  esac
9155
  need_lib_prefix=no
9156
  need_version=no
9157
  soname_spec='${libname}${release}${shared_ext}$major'
9158
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9159
  case $host_os in
9160
  irix5* | nonstopux*)
9161
    libsuff= shlibsuff=
9162
    ;;
9163
  *)
9164
    case $LD in # libtool.m4 will add one of these switches to LD
9165
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9166
      libsuff= shlibsuff= libmagic=32-bit;;
9167
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9168
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9169
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9170
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9171
    *) libsuff= shlibsuff= libmagic=never-match;;
9172
    esac
9173
    ;;
9174
  esac
9175
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9176
  shlibpath_overrides_runpath=no
9177
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9178
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9179
  hardcode_into_libs=yes
9180
  ;;
9181
 
9182
# No shared lib support for Linux oldld, aout, or coff.
9183
linux*oldld* | linux*aout* | linux*coff*)
9184
  dynamic_linker=no
9185
  ;;
9186
 
9187
# This must be Linux ELF.
9188
linux* | k*bsd*-gnu)
9189
  version_type=linux
9190
  need_lib_prefix=no
9191
  need_version=no
9192
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193
  soname_spec='${libname}${release}${shared_ext}$major'
9194
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9195
  shlibpath_var=LD_LIBRARY_PATH
9196
  shlibpath_overrides_runpath=no
9197
  # Some binutils ld are patched to set DT_RUNPATH
9198
  save_LDFLAGS=$LDFLAGS
9199
  save_libdir=$libdir
9200
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9201
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9202
  cat >conftest.$ac_ext <<_ACEOF
9203
/* confdefs.h.  */
9204
_ACEOF
9205
cat confdefs.h >>conftest.$ac_ext
9206
cat >>conftest.$ac_ext <<_ACEOF
9207
/* end confdefs.h.  */
9208
 
9209
int
9210
main ()
9211
{
9212
 
9213
  ;
9214
  return 0;
9215
}
9216
_ACEOF
9217
rm -f conftest.$ac_objext conftest$ac_exeext
9218
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219
  (eval $ac_link) 2>conftest.er1
9220
  ac_status=$?
9221
  grep -v '^ *+' conftest.er1 >conftest.err
9222
  rm -f conftest.er1
9223
  cat conftest.err >&5
9224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225
  (exit $ac_status); } &&
9226
         { ac_try='test -z "$ac_c_werror_flag"
9227
                         || test ! -s conftest.err'
9228
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229
  (eval $ac_try) 2>&5
9230
  ac_status=$?
9231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232
  (exit $ac_status); }; } &&
9233
         { ac_try='test -s conftest$ac_exeext'
9234
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235
  (eval $ac_try) 2>&5
9236
  ac_status=$?
9237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238
  (exit $ac_status); }; }; then
9239
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9240
  shlibpath_overrides_runpath=yes
9241
fi
9242
 
9243
else
9244
  echo "$as_me: failed program was:" >&5
9245
sed 's/^/| /' conftest.$ac_ext >&5
9246
 
9247
fi
9248
rm -f conftest.err conftest.$ac_objext \
9249
      conftest$ac_exeext conftest.$ac_ext
9250
  LDFLAGS=$save_LDFLAGS
9251
  libdir=$save_libdir
9252
 
9253
  # This implies no fast_install, which is unacceptable.
9254
  # Some rework will be needed to allow for fast_install
9255
  # before this can be enabled.
9256
  hardcode_into_libs=yes
9257
 
9258
  # Append ld.so.conf contents to the search path
9259
  if test -f /etc/ld.so.conf; then
9260
    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' ' '`
9261
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9262
  fi
9263
 
9264
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9265
  # powerpc, because MkLinux only supported shared libraries with the
9266
  # GNU dynamic linker.  Since this was broken with cross compilers,
9267
  # most powerpc-linux boxes support dynamic linking these days and
9268
  # people can always --disable-shared, the test was removed, and we
9269
  # assume the GNU/Linux dynamic linker is in use.
9270
  dynamic_linker='GNU/Linux ld.so'
9271
  ;;
9272
 
9273
netbsd*)
9274
  version_type=sunos
9275
  need_lib_prefix=no
9276
  need_version=no
9277
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9278
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9279
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9280
    dynamic_linker='NetBSD (a.out) ld.so'
9281
  else
9282
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9283
    soname_spec='${libname}${release}${shared_ext}$major'
9284
    dynamic_linker='NetBSD ld.elf_so'
9285
  fi
9286
  shlibpath_var=LD_LIBRARY_PATH
9287
  shlibpath_overrides_runpath=yes
9288
  hardcode_into_libs=yes
9289
  ;;
9290
 
9291
newsos6)
9292
  version_type=linux
9293
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294
  shlibpath_var=LD_LIBRARY_PATH
9295
  shlibpath_overrides_runpath=yes
9296
  ;;
9297
 
9298
*nto* | *qnx*)
9299
  version_type=qnx
9300
  need_lib_prefix=no
9301
  need_version=no
9302
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303
  soname_spec='${libname}${release}${shared_ext}$major'
9304
  shlibpath_var=LD_LIBRARY_PATH
9305
  shlibpath_overrides_runpath=no
9306
  hardcode_into_libs=yes
9307
  dynamic_linker='ldqnx.so'
9308
  ;;
9309
 
9310
openbsd*)
9311
  version_type=sunos
9312
  sys_lib_dlsearch_path_spec="/usr/lib"
9313
  need_lib_prefix=no
9314
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9315
  case $host_os in
9316
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9317
    *)                          need_version=no  ;;
9318
  esac
9319
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9320
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9321
  shlibpath_var=LD_LIBRARY_PATH
9322
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9323
    case $host_os in
9324
      openbsd2.[89] | openbsd2.[89].*)
9325
        shlibpath_overrides_runpath=no
9326
        ;;
9327
      *)
9328
        shlibpath_overrides_runpath=yes
9329
        ;;
9330
      esac
9331
  else
9332
    shlibpath_overrides_runpath=yes
9333
  fi
9334
  ;;
9335
 
9336
os2*)
9337
  libname_spec='$name'
9338
  shrext_cmds=".dll"
9339
  need_lib_prefix=no
9340
  library_names_spec='$libname${shared_ext} $libname.a'
9341
  dynamic_linker='OS/2 ld.exe'
9342
  shlibpath_var=LIBPATH
9343
  ;;
9344
 
9345
osf3* | osf4* | osf5*)
9346
  version_type=osf
9347
  need_lib_prefix=no
9348
  need_version=no
9349
  soname_spec='${libname}${release}${shared_ext}$major'
9350
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351
  shlibpath_var=LD_LIBRARY_PATH
9352
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9353
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9354
  ;;
9355
 
9356
rdos*)
9357
  dynamic_linker=no
9358
  ;;
9359
 
9360
solaris*)
9361
  version_type=linux
9362
  need_lib_prefix=no
9363
  need_version=no
9364
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365
  soname_spec='${libname}${release}${shared_ext}$major'
9366
  shlibpath_var=LD_LIBRARY_PATH
9367
  shlibpath_overrides_runpath=yes
9368
  hardcode_into_libs=yes
9369
  # ldd complains unless libraries are executable
9370
  postinstall_cmds='chmod +x $lib'
9371
  ;;
9372
 
9373
sunos4*)
9374
  version_type=sunos
9375
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9376
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9377
  shlibpath_var=LD_LIBRARY_PATH
9378
  shlibpath_overrides_runpath=yes
9379
  if test "$with_gnu_ld" = yes; then
9380
    need_lib_prefix=no
9381
  fi
9382
  need_version=yes
9383
  ;;
9384
 
9385
sysv4 | sysv4.3*)
9386
  version_type=linux
9387
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9388
  soname_spec='${libname}${release}${shared_ext}$major'
9389
  shlibpath_var=LD_LIBRARY_PATH
9390
  case $host_vendor in
9391
    sni)
9392
      shlibpath_overrides_runpath=no
9393
      need_lib_prefix=no
9394
      runpath_var=LD_RUN_PATH
9395
      ;;
9396
    siemens)
9397
      need_lib_prefix=no
9398
      ;;
9399
    motorola)
9400
      need_lib_prefix=no
9401
      need_version=no
9402
      shlibpath_overrides_runpath=no
9403
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9404
      ;;
9405
  esac
9406
  ;;
9407
 
9408
sysv4*MP*)
9409
  if test -d /usr/nec ;then
9410
    version_type=linux
9411
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9412
    soname_spec='$libname${shared_ext}.$major'
9413
    shlibpath_var=LD_LIBRARY_PATH
9414
  fi
9415
  ;;
9416
 
9417
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9418
  version_type=freebsd-elf
9419
  need_lib_prefix=no
9420
  need_version=no
9421
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9422
  soname_spec='${libname}${release}${shared_ext}$major'
9423
  shlibpath_var=LD_LIBRARY_PATH
9424
  shlibpath_overrides_runpath=yes
9425
  hardcode_into_libs=yes
9426
  if test "$with_gnu_ld" = yes; then
9427
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9428
  else
9429
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9430
    case $host_os in
9431
      sco3.2v5*)
9432
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9433
        ;;
9434
    esac
9435
  fi
9436
  sys_lib_dlsearch_path_spec='/usr/lib'
9437
  ;;
9438
 
9439
tpf*)
9440
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9441
  version_type=linux
9442
  need_lib_prefix=no
9443
  need_version=no
9444
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445
  shlibpath_var=LD_LIBRARY_PATH
9446
  shlibpath_overrides_runpath=no
9447
  hardcode_into_libs=yes
9448
  ;;
9449
 
9450
uts4*)
9451
  version_type=linux
9452
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453
  soname_spec='${libname}${release}${shared_ext}$major'
9454
  shlibpath_var=LD_LIBRARY_PATH
9455
  ;;
9456
 
9457
*)
9458
  dynamic_linker=no
9459
  ;;
9460
esac
9461
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9462
echo "${ECHO_T}$dynamic_linker" >&6
9463
test "$dynamic_linker" = no && can_build_shared=no
9464
 
9465
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9466
if test "$GCC" = yes; then
9467
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9468
fi
9469
 
9470
 
9471
 
9472
 
9473
 
9474
 
9475
 
9476
 
9477
 
9478
 
9479
 
9480
 
9481
 
9482
 
9483
 
9484
 
9485
 
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
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9557
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9558
hardcode_action=
9559
if test -n "$hardcode_libdir_flag_spec" ||
9560
   test -n "$runpath_var" ||
9561
   test "X$hardcode_automatic" = "Xyes" ; then
9562
 
9563
  # We can hardcode non-existent directories.
9564
  if test "$hardcode_direct" != no &&
9565
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9566
     # have to relink, otherwise we might link with an installed library
9567
     # when we should be linking with a yet-to-be-installed one
9568
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9569
     test "$hardcode_minus_L" != no; then
9570
    # Linking always hardcodes the temporary library directory.
9571
    hardcode_action=relink
9572
  else
9573
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9574
    hardcode_action=immediate
9575
  fi
9576
else
9577
  # We cannot hardcode anything, or else we can only hardcode existing
9578
  # directories.
9579
  hardcode_action=unsupported
9580
fi
9581
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9582
echo "${ECHO_T}$hardcode_action" >&6
9583
 
9584
if test "$hardcode_action" = relink ||
9585
   test "$inherit_rpath" = yes; then
9586
  # Fast installation is not supported
9587
  enable_fast_install=no
9588
elif test "$shlibpath_overrides_runpath" = yes ||
9589
     test "$enable_shared" = no; then
9590
  # Fast installation is not necessary
9591
  enable_fast_install=needless
9592
fi
9593
 
9594
 
9595
 
9596
 
9597
 
9598
 
9599
  if test "x$enable_dlopen" != xyes; then
9600
  enable_dlopen=unknown
9601
  enable_dlopen_self=unknown
9602
  enable_dlopen_self_static=unknown
9603
else
9604
  lt_cv_dlopen=no
9605
  lt_cv_dlopen_libs=
9606
 
9607
  case $host_os in
9608
  beos*)
9609
    lt_cv_dlopen="load_add_on"
9610
    lt_cv_dlopen_libs=
9611
    lt_cv_dlopen_self=yes
9612
    ;;
9613
 
9614
  mingw* | pw32*)
9615
    lt_cv_dlopen="LoadLibrary"
9616
    lt_cv_dlopen_libs=
9617
    ;;
9618
 
9619
  cygwin*)
9620
    lt_cv_dlopen="dlopen"
9621
    lt_cv_dlopen_libs=
9622
    ;;
9623
 
9624
  darwin*)
9625
  # if libdl is installed we need to link against it
9626
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9627
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9628
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9629
  echo $ECHO_N "(cached) $ECHO_C" >&6
9630
else
9631
  ac_check_lib_save_LIBS=$LIBS
9632
LIBS="-ldl  $LIBS"
9633
cat >conftest.$ac_ext <<_ACEOF
9634
/* confdefs.h.  */
9635
_ACEOF
9636
cat confdefs.h >>conftest.$ac_ext
9637
cat >>conftest.$ac_ext <<_ACEOF
9638
/* end confdefs.h.  */
9639
 
9640
/* Override any gcc2 internal prototype to avoid an error.  */
9641
#ifdef __cplusplus
9642
extern "C"
9643
#endif
9644
/* We use char because int might match the return type of a gcc2
9645
   builtin and then its argument prototype would still apply.  */
9646
char dlopen ();
9647
int
9648
main ()
9649
{
9650
dlopen ();
9651
  ;
9652
  return 0;
9653
}
9654
_ACEOF
9655
rm -f conftest.$ac_objext conftest$ac_exeext
9656
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9657
  (eval $ac_link) 2>conftest.er1
9658
  ac_status=$?
9659
  grep -v '^ *+' conftest.er1 >conftest.err
9660
  rm -f conftest.er1
9661
  cat conftest.err >&5
9662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663
  (exit $ac_status); } &&
9664
         { ac_try='test -z "$ac_c_werror_flag"
9665
                         || test ! -s conftest.err'
9666
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667
  (eval $ac_try) 2>&5
9668
  ac_status=$?
9669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670
  (exit $ac_status); }; } &&
9671
         { ac_try='test -s conftest$ac_exeext'
9672
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673
  (eval $ac_try) 2>&5
9674
  ac_status=$?
9675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676
  (exit $ac_status); }; }; then
9677
  ac_cv_lib_dl_dlopen=yes
9678
else
9679
  echo "$as_me: failed program was:" >&5
9680
sed 's/^/| /' conftest.$ac_ext >&5
9681
 
9682
ac_cv_lib_dl_dlopen=no
9683
fi
9684
rm -f conftest.err conftest.$ac_objext \
9685
      conftest$ac_exeext conftest.$ac_ext
9686
LIBS=$ac_check_lib_save_LIBS
9687
fi
9688
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9689
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9690
if test $ac_cv_lib_dl_dlopen = yes; then
9691
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9692
else
9693
 
9694
    lt_cv_dlopen="dyld"
9695
    lt_cv_dlopen_libs=
9696
    lt_cv_dlopen_self=yes
9697
 
9698
fi
9699
 
9700
    ;;
9701
 
9702
  *)
9703
    echo "$as_me:$LINENO: checking for shl_load" >&5
9704
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9705
if test "${ac_cv_func_shl_load+set}" = set; then
9706
  echo $ECHO_N "(cached) $ECHO_C" >&6
9707
else
9708
  cat >conftest.$ac_ext <<_ACEOF
9709
/* confdefs.h.  */
9710
_ACEOF
9711
cat confdefs.h >>conftest.$ac_ext
9712
cat >>conftest.$ac_ext <<_ACEOF
9713
/* end confdefs.h.  */
9714
/* Define shl_load to an innocuous variant, in case  declares shl_load.
9715
   For example, HP-UX 11i  declares gettimeofday.  */
9716
#define shl_load innocuous_shl_load
9717
 
9718
/* System header to define __stub macros and hopefully few prototypes,
9719
    which can conflict with char shl_load (); below.
9720
    Prefer  to  if __STDC__ is defined, since
9721
     exists even on freestanding compilers.  */
9722
 
9723
#ifdef __STDC__
9724
# include 
9725
#else
9726
# include 
9727
#endif
9728
 
9729
#undef shl_load
9730
 
9731
/* Override any gcc2 internal prototype to avoid an error.  */
9732
#ifdef __cplusplus
9733
extern "C"
9734
{
9735
#endif
9736
/* We use char because int might match the return type of a gcc2
9737
   builtin and then its argument prototype would still apply.  */
9738
char shl_load ();
9739
/* The GNU C library defines this for functions which it implements
9740
    to always fail with ENOSYS.  Some functions are actually named
9741
    something starting with __ and the normal name is an alias.  */
9742
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9743
choke me
9744
#else
9745
char (*f) () = shl_load;
9746
#endif
9747
#ifdef __cplusplus
9748
}
9749
#endif
9750
 
9751
int
9752
main ()
9753
{
9754
return f != shl_load;
9755
  ;
9756
  return 0;
9757
}
9758
_ACEOF
9759
rm -f conftest.$ac_objext conftest$ac_exeext
9760
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9761
  (eval $ac_link) 2>conftest.er1
9762
  ac_status=$?
9763
  grep -v '^ *+' conftest.er1 >conftest.err
9764
  rm -f conftest.er1
9765
  cat conftest.err >&5
9766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767
  (exit $ac_status); } &&
9768
         { ac_try='test -z "$ac_c_werror_flag"
9769
                         || test ! -s conftest.err'
9770
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771
  (eval $ac_try) 2>&5
9772
  ac_status=$?
9773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774
  (exit $ac_status); }; } &&
9775
         { ac_try='test -s conftest$ac_exeext'
9776
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777
  (eval $ac_try) 2>&5
9778
  ac_status=$?
9779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780
  (exit $ac_status); }; }; then
9781
  ac_cv_func_shl_load=yes
9782
else
9783
  echo "$as_me: failed program was:" >&5
9784
sed 's/^/| /' conftest.$ac_ext >&5
9785
 
9786
ac_cv_func_shl_load=no
9787
fi
9788
rm -f conftest.err conftest.$ac_objext \
9789
      conftest$ac_exeext conftest.$ac_ext
9790
fi
9791
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9792
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9793
if test $ac_cv_func_shl_load = yes; then
9794
  lt_cv_dlopen="shl_load"
9795
else
9796
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9797
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9798
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9799
  echo $ECHO_N "(cached) $ECHO_C" >&6
9800
else
9801
  ac_check_lib_save_LIBS=$LIBS
9802
LIBS="-ldld  $LIBS"
9803
cat >conftest.$ac_ext <<_ACEOF
9804
/* confdefs.h.  */
9805
_ACEOF
9806
cat confdefs.h >>conftest.$ac_ext
9807
cat >>conftest.$ac_ext <<_ACEOF
9808
/* end confdefs.h.  */
9809
 
9810
/* Override any gcc2 internal prototype to avoid an error.  */
9811
#ifdef __cplusplus
9812
extern "C"
9813
#endif
9814
/* We use char because int might match the return type of a gcc2
9815
   builtin and then its argument prototype would still apply.  */
9816
char shl_load ();
9817
int
9818
main ()
9819
{
9820
shl_load ();
9821
  ;
9822
  return 0;
9823
}
9824
_ACEOF
9825
rm -f conftest.$ac_objext conftest$ac_exeext
9826
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9827
  (eval $ac_link) 2>conftest.er1
9828
  ac_status=$?
9829
  grep -v '^ *+' conftest.er1 >conftest.err
9830
  rm -f conftest.er1
9831
  cat conftest.err >&5
9832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833
  (exit $ac_status); } &&
9834
         { ac_try='test -z "$ac_c_werror_flag"
9835
                         || test ! -s conftest.err'
9836
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837
  (eval $ac_try) 2>&5
9838
  ac_status=$?
9839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840
  (exit $ac_status); }; } &&
9841
         { ac_try='test -s conftest$ac_exeext'
9842
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843
  (eval $ac_try) 2>&5
9844
  ac_status=$?
9845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846
  (exit $ac_status); }; }; then
9847
  ac_cv_lib_dld_shl_load=yes
9848
else
9849
  echo "$as_me: failed program was:" >&5
9850
sed 's/^/| /' conftest.$ac_ext >&5
9851
 
9852
ac_cv_lib_dld_shl_load=no
9853
fi
9854
rm -f conftest.err conftest.$ac_objext \
9855
      conftest$ac_exeext conftest.$ac_ext
9856
LIBS=$ac_check_lib_save_LIBS
9857
fi
9858
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9859
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9860
if test $ac_cv_lib_dld_shl_load = yes; then
9861
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9862
else
9863
  echo "$as_me:$LINENO: checking for dlopen" >&5
9864
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9865
if test "${ac_cv_func_dlopen+set}" = set; then
9866
  echo $ECHO_N "(cached) $ECHO_C" >&6
9867
else
9868
  cat >conftest.$ac_ext <<_ACEOF
9869
/* confdefs.h.  */
9870
_ACEOF
9871
cat confdefs.h >>conftest.$ac_ext
9872
cat >>conftest.$ac_ext <<_ACEOF
9873
/* end confdefs.h.  */
9874
/* Define dlopen to an innocuous variant, in case  declares dlopen.
9875
   For example, HP-UX 11i  declares gettimeofday.  */
9876
#define dlopen innocuous_dlopen
9877
 
9878
/* System header to define __stub macros and hopefully few prototypes,
9879
    which can conflict with char dlopen (); below.
9880
    Prefer  to  if __STDC__ is defined, since
9881
     exists even on freestanding compilers.  */
9882
 
9883
#ifdef __STDC__
9884
# include 
9885
#else
9886
# include 
9887
#endif
9888
 
9889
#undef dlopen
9890
 
9891
/* Override any gcc2 internal prototype to avoid an error.  */
9892
#ifdef __cplusplus
9893
extern "C"
9894
{
9895
#endif
9896
/* We use char because int might match the return type of a gcc2
9897
   builtin and then its argument prototype would still apply.  */
9898
char dlopen ();
9899
/* The GNU C library defines this for functions which it implements
9900
    to always fail with ENOSYS.  Some functions are actually named
9901
    something starting with __ and the normal name is an alias.  */
9902
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9903
choke me
9904
#else
9905
char (*f) () = dlopen;
9906
#endif
9907
#ifdef __cplusplus
9908
}
9909
#endif
9910
 
9911
int
9912
main ()
9913
{
9914
return f != dlopen;
9915
  ;
9916
  return 0;
9917
}
9918
_ACEOF
9919
rm -f conftest.$ac_objext conftest$ac_exeext
9920
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921
  (eval $ac_link) 2>conftest.er1
9922
  ac_status=$?
9923
  grep -v '^ *+' conftest.er1 >conftest.err
9924
  rm -f conftest.er1
9925
  cat conftest.err >&5
9926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927
  (exit $ac_status); } &&
9928
         { ac_try='test -z "$ac_c_werror_flag"
9929
                         || test ! -s conftest.err'
9930
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931
  (eval $ac_try) 2>&5
9932
  ac_status=$?
9933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934
  (exit $ac_status); }; } &&
9935
         { ac_try='test -s conftest$ac_exeext'
9936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937
  (eval $ac_try) 2>&5
9938
  ac_status=$?
9939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940
  (exit $ac_status); }; }; then
9941
  ac_cv_func_dlopen=yes
9942
else
9943
  echo "$as_me: failed program was:" >&5
9944
sed 's/^/| /' conftest.$ac_ext >&5
9945
 
9946
ac_cv_func_dlopen=no
9947
fi
9948
rm -f conftest.err conftest.$ac_objext \
9949
      conftest$ac_exeext conftest.$ac_ext
9950
fi
9951
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9952
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9953
if test $ac_cv_func_dlopen = yes; then
9954
  lt_cv_dlopen="dlopen"
9955
else
9956
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9957
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9958
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9959
  echo $ECHO_N "(cached) $ECHO_C" >&6
9960
else
9961
  ac_check_lib_save_LIBS=$LIBS
9962
LIBS="-ldl  $LIBS"
9963
cat >conftest.$ac_ext <<_ACEOF
9964
/* confdefs.h.  */
9965
_ACEOF
9966
cat confdefs.h >>conftest.$ac_ext
9967
cat >>conftest.$ac_ext <<_ACEOF
9968
/* end confdefs.h.  */
9969
 
9970
/* Override any gcc2 internal prototype to avoid an error.  */
9971
#ifdef __cplusplus
9972
extern "C"
9973
#endif
9974
/* We use char because int might match the return type of a gcc2
9975
   builtin and then its argument prototype would still apply.  */
9976
char dlopen ();
9977
int
9978
main ()
9979
{
9980
dlopen ();
9981
  ;
9982
  return 0;
9983
}
9984
_ACEOF
9985
rm -f conftest.$ac_objext conftest$ac_exeext
9986
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987
  (eval $ac_link) 2>conftest.er1
9988
  ac_status=$?
9989
  grep -v '^ *+' conftest.er1 >conftest.err
9990
  rm -f conftest.er1
9991
  cat conftest.err >&5
9992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993
  (exit $ac_status); } &&
9994
         { ac_try='test -z "$ac_c_werror_flag"
9995
                         || test ! -s conftest.err'
9996
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997
  (eval $ac_try) 2>&5
9998
  ac_status=$?
9999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000
  (exit $ac_status); }; } &&
10001
         { ac_try='test -s conftest$ac_exeext'
10002
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003
  (eval $ac_try) 2>&5
10004
  ac_status=$?
10005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006
  (exit $ac_status); }; }; then
10007
  ac_cv_lib_dl_dlopen=yes
10008
else
10009
  echo "$as_me: failed program was:" >&5
10010
sed 's/^/| /' conftest.$ac_ext >&5
10011
 
10012
ac_cv_lib_dl_dlopen=no
10013
fi
10014
rm -f conftest.err conftest.$ac_objext \
10015
      conftest$ac_exeext conftest.$ac_ext
10016
LIBS=$ac_check_lib_save_LIBS
10017
fi
10018
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10019
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10020
if test $ac_cv_lib_dl_dlopen = yes; then
10021
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10022
else
10023
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10024
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10025
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10026
  echo $ECHO_N "(cached) $ECHO_C" >&6
10027
else
10028
  ac_check_lib_save_LIBS=$LIBS
10029
LIBS="-lsvld  $LIBS"
10030
cat >conftest.$ac_ext <<_ACEOF
10031
/* confdefs.h.  */
10032
_ACEOF
10033
cat confdefs.h >>conftest.$ac_ext
10034
cat >>conftest.$ac_ext <<_ACEOF
10035
/* end confdefs.h.  */
10036
 
10037
/* Override any gcc2 internal prototype to avoid an error.  */
10038
#ifdef __cplusplus
10039
extern "C"
10040
#endif
10041
/* We use char because int might match the return type of a gcc2
10042
   builtin and then its argument prototype would still apply.  */
10043
char dlopen ();
10044
int
10045
main ()
10046
{
10047
dlopen ();
10048
  ;
10049
  return 0;
10050
}
10051
_ACEOF
10052
rm -f conftest.$ac_objext conftest$ac_exeext
10053
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10054
  (eval $ac_link) 2>conftest.er1
10055
  ac_status=$?
10056
  grep -v '^ *+' conftest.er1 >conftest.err
10057
  rm -f conftest.er1
10058
  cat conftest.err >&5
10059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060
  (exit $ac_status); } &&
10061
         { ac_try='test -z "$ac_c_werror_flag"
10062
                         || test ! -s conftest.err'
10063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064
  (eval $ac_try) 2>&5
10065
  ac_status=$?
10066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067
  (exit $ac_status); }; } &&
10068
         { ac_try='test -s conftest$ac_exeext'
10069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070
  (eval $ac_try) 2>&5
10071
  ac_status=$?
10072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073
  (exit $ac_status); }; }; then
10074
  ac_cv_lib_svld_dlopen=yes
10075
else
10076
  echo "$as_me: failed program was:" >&5
10077
sed 's/^/| /' conftest.$ac_ext >&5
10078
 
10079
ac_cv_lib_svld_dlopen=no
10080
fi
10081
rm -f conftest.err conftest.$ac_objext \
10082
      conftest$ac_exeext conftest.$ac_ext
10083
LIBS=$ac_check_lib_save_LIBS
10084
fi
10085
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10086
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10087
if test $ac_cv_lib_svld_dlopen = yes; then
10088
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10089
else
10090
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10091
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10092
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10093
  echo $ECHO_N "(cached) $ECHO_C" >&6
10094
else
10095
  ac_check_lib_save_LIBS=$LIBS
10096
LIBS="-ldld  $LIBS"
10097
cat >conftest.$ac_ext <<_ACEOF
10098
/* confdefs.h.  */
10099
_ACEOF
10100
cat confdefs.h >>conftest.$ac_ext
10101
cat >>conftest.$ac_ext <<_ACEOF
10102
/* end confdefs.h.  */
10103
 
10104
/* Override any gcc2 internal prototype to avoid an error.  */
10105
#ifdef __cplusplus
10106
extern "C"
10107
#endif
10108
/* We use char because int might match the return type of a gcc2
10109
   builtin and then its argument prototype would still apply.  */
10110
char dld_link ();
10111
int
10112
main ()
10113
{
10114
dld_link ();
10115
  ;
10116
  return 0;
10117
}
10118
_ACEOF
10119
rm -f conftest.$ac_objext conftest$ac_exeext
10120
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10121
  (eval $ac_link) 2>conftest.er1
10122
  ac_status=$?
10123
  grep -v '^ *+' conftest.er1 >conftest.err
10124
  rm -f conftest.er1
10125
  cat conftest.err >&5
10126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127
  (exit $ac_status); } &&
10128
         { ac_try='test -z "$ac_c_werror_flag"
10129
                         || test ! -s conftest.err'
10130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131
  (eval $ac_try) 2>&5
10132
  ac_status=$?
10133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134
  (exit $ac_status); }; } &&
10135
         { ac_try='test -s conftest$ac_exeext'
10136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137
  (eval $ac_try) 2>&5
10138
  ac_status=$?
10139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140
  (exit $ac_status); }; }; then
10141
  ac_cv_lib_dld_dld_link=yes
10142
else
10143
  echo "$as_me: failed program was:" >&5
10144
sed 's/^/| /' conftest.$ac_ext >&5
10145
 
10146
ac_cv_lib_dld_dld_link=no
10147
fi
10148
rm -f conftest.err conftest.$ac_objext \
10149
      conftest$ac_exeext conftest.$ac_ext
10150
LIBS=$ac_check_lib_save_LIBS
10151
fi
10152
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10153
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10154
if test $ac_cv_lib_dld_dld_link = yes; then
10155
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10156
fi
10157
 
10158
 
10159
fi
10160
 
10161
 
10162
fi
10163
 
10164
 
10165
fi
10166
 
10167
 
10168
fi
10169
 
10170
 
10171
fi
10172
 
10173
    ;;
10174
  esac
10175
 
10176
  if test "x$lt_cv_dlopen" != xno; then
10177
    enable_dlopen=yes
10178
  else
10179
    enable_dlopen=no
10180
  fi
10181
 
10182
  case $lt_cv_dlopen in
10183
  dlopen)
10184
    save_CPPFLAGS="$CPPFLAGS"
10185
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10186
 
10187
    save_LDFLAGS="$LDFLAGS"
10188
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10189
 
10190
    save_LIBS="$LIBS"
10191
    LIBS="$lt_cv_dlopen_libs $LIBS"
10192
 
10193
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10194
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10195
if test "${lt_cv_dlopen_self+set}" = set; then
10196
  echo $ECHO_N "(cached) $ECHO_C" >&6
10197
else
10198
          if test "$cross_compiling" = yes; then :
10199
  lt_cv_dlopen_self=cross
10200
else
10201
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10202
  lt_status=$lt_dlunknown
10203
  cat > conftest.$ac_ext <<_LT_EOF
10204
#line 10204 "configure"
10205
#include "confdefs.h"
10206
 
10207
#if HAVE_DLFCN_H
10208
#include 
10209
#endif
10210
 
10211
#include 
10212
 
10213
#ifdef RTLD_GLOBAL
10214
#  define LT_DLGLOBAL           RTLD_GLOBAL
10215
#else
10216
#  ifdef DL_GLOBAL
10217
#    define LT_DLGLOBAL         DL_GLOBAL
10218
#  else
10219
#    define LT_DLGLOBAL         0
10220
#  endif
10221
#endif
10222
 
10223
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10224
   find out it does not work in some platform. */
10225
#ifndef LT_DLLAZY_OR_NOW
10226
#  ifdef RTLD_LAZY
10227
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10228
#  else
10229
#    ifdef DL_LAZY
10230
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10231
#    else
10232
#      ifdef RTLD_NOW
10233
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10234
#      else
10235
#        ifdef DL_NOW
10236
#          define LT_DLLAZY_OR_NOW      DL_NOW
10237
#        else
10238
#          define LT_DLLAZY_OR_NOW      0
10239
#        endif
10240
#      endif
10241
#    endif
10242
#  endif
10243
#endif
10244
 
10245
#ifdef __cplusplus
10246
extern "C" void exit (int);
10247
#endif
10248
 
10249
void fnord() { int i=42;}
10250
int main ()
10251
{
10252
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10253
  int status = $lt_dlunknown;
10254
 
10255
  if (self)
10256
    {
10257
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10258
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10259
      /* dlclose (self); */
10260
    }
10261
  else
10262
    puts (dlerror ());
10263
 
10264
    exit (status);
10265
}
10266
_LT_EOF
10267
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268
  (eval $ac_link) 2>&5
10269
  ac_status=$?
10270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10272
    (./conftest; exit; ) >&5 2>/dev/null
10273
    lt_status=$?
10274
    case x$lt_status in
10275
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10276
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10277
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10278
    esac
10279
  else :
10280
    # compilation failed
10281
    lt_cv_dlopen_self=no
10282
  fi
10283
fi
10284
rm -fr conftest*
10285
 
10286
 
10287
fi
10288
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10289
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10290
 
10291
    if test "x$lt_cv_dlopen_self" = xyes; then
10292
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10293
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10294
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10295
if test "${lt_cv_dlopen_self_static+set}" = set; then
10296
  echo $ECHO_N "(cached) $ECHO_C" >&6
10297
else
10298
          if test "$cross_compiling" = yes; then :
10299
  lt_cv_dlopen_self_static=cross
10300
else
10301
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10302
  lt_status=$lt_dlunknown
10303
  cat > conftest.$ac_ext <<_LT_EOF
10304
#line 10304 "configure"
10305
#include "confdefs.h"
10306
 
10307
#if HAVE_DLFCN_H
10308
#include 
10309
#endif
10310
 
10311
#include 
10312
 
10313
#ifdef RTLD_GLOBAL
10314
#  define LT_DLGLOBAL           RTLD_GLOBAL
10315
#else
10316
#  ifdef DL_GLOBAL
10317
#    define LT_DLGLOBAL         DL_GLOBAL
10318
#  else
10319
#    define LT_DLGLOBAL         0
10320
#  endif
10321
#endif
10322
 
10323
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10324
   find out it does not work in some platform. */
10325
#ifndef LT_DLLAZY_OR_NOW
10326
#  ifdef RTLD_LAZY
10327
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10328
#  else
10329
#    ifdef DL_LAZY
10330
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10331
#    else
10332
#      ifdef RTLD_NOW
10333
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10334
#      else
10335
#        ifdef DL_NOW
10336
#          define LT_DLLAZY_OR_NOW      DL_NOW
10337
#        else
10338
#          define LT_DLLAZY_OR_NOW      0
10339
#        endif
10340
#      endif
10341
#    endif
10342
#  endif
10343
#endif
10344
 
10345
#ifdef __cplusplus
10346
extern "C" void exit (int);
10347
#endif
10348
 
10349
void fnord() { int i=42;}
10350
int main ()
10351
{
10352
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10353
  int status = $lt_dlunknown;
10354
 
10355
  if (self)
10356
    {
10357
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10358
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10359
      /* dlclose (self); */
10360
    }
10361
  else
10362
    puts (dlerror ());
10363
 
10364
    exit (status);
10365
}
10366
_LT_EOF
10367
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10368
  (eval $ac_link) 2>&5
10369
  ac_status=$?
10370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10372
    (./conftest; exit; ) >&5 2>/dev/null
10373
    lt_status=$?
10374
    case x$lt_status in
10375
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10376
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10377
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10378
    esac
10379
  else :
10380
    # compilation failed
10381
    lt_cv_dlopen_self_static=no
10382
  fi
10383
fi
10384
rm -fr conftest*
10385
 
10386
 
10387
fi
10388
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10389
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10390
    fi
10391
 
10392
    CPPFLAGS="$save_CPPFLAGS"
10393
    LDFLAGS="$save_LDFLAGS"
10394
    LIBS="$save_LIBS"
10395
    ;;
10396
  esac
10397
 
10398
  case $lt_cv_dlopen_self in
10399
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10400
  *) enable_dlopen_self=unknown ;;
10401
  esac
10402
 
10403
  case $lt_cv_dlopen_self_static in
10404
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10405
  *) enable_dlopen_self_static=unknown ;;
10406
  esac
10407
fi
10408
 
10409
 
10410
 
10411
 
10412
 
10413
 
10414
 
10415
 
10416
 
10417
 
10418
 
10419
 
10420
 
10421
 
10422
 
10423
 
10424
 
10425
striplib=
10426
old_striplib=
10427
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10428
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10429
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10430
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10431
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10432
  echo "$as_me:$LINENO: result: yes" >&5
10433
echo "${ECHO_T}yes" >&6
10434
else
10435
# FIXME - insert some real tests, host_os isn't really good enough
10436
  case $host_os in
10437
  darwin*)
10438
    if test -n "$STRIP" ; then
10439
      striplib="$STRIP -x"
10440
      old_striplib="$STRIP -S"
10441
      echo "$as_me:$LINENO: result: yes" >&5
10442
echo "${ECHO_T}yes" >&6
10443
    else
10444
      echo "$as_me:$LINENO: result: no" >&5
10445
echo "${ECHO_T}no" >&6
10446
    fi
10447
    ;;
10448
  *)
10449
    echo "$as_me:$LINENO: result: no" >&5
10450
echo "${ECHO_T}no" >&6
10451
    ;;
10452
  esac
10453
fi
10454
 
10455
 
10456
 
10457
 
10458
 
10459
 
10460
 
10461
 
10462
 
10463
 
10464
 
10465
 
10466
  # Report which library types will actually be built
10467
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10468
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10469
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
10470
echo "${ECHO_T}$can_build_shared" >&6
10471
 
10472
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10473
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10474
  test "$can_build_shared" = "no" && enable_shared=no
10475
 
10476
  # On AIX, shared libraries and static libraries use the same namespace, and
10477
  # are all built from PIC.
10478
  case $host_os in
10479
  aix3*)
10480
    test "$enable_shared" = yes && enable_static=no
10481
    if test -n "$RANLIB"; then
10482
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10483
      postinstall_cmds='$RANLIB $lib'
10484
    fi
10485
    ;;
10486
 
10487
  aix[4-9]*)
10488
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10489
      test "$enable_shared" = yes && enable_static=no
10490
    fi
10491
    ;;
10492
  esac
10493
  echo "$as_me:$LINENO: result: $enable_shared" >&5
10494
echo "${ECHO_T}$enable_shared" >&6
10495
 
10496
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10497
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10498
  # Make sure either enable_shared or enable_static is yes.
10499
  test "$enable_shared" = yes || enable_static=yes
10500
  echo "$as_me:$LINENO: result: $enable_static" >&5
10501
echo "${ECHO_T}$enable_static" >&6
10502
 
10503
 
10504
 
10505
 
10506
fi
10507
ac_ext=c
10508
ac_cpp='$CPP $CPPFLAGS'
10509
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10510
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10511
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10512
 
10513
CC="$lt_save_CC"
10514
 
10515
 
10516
 
10517
 
10518
 
10519
 
10520
 
10521
 
10522
 
10523
 
10524
 
10525
 
10526
 
10527
                  ac_config_commands="$ac_config_commands libtool"
10528
 
10529
 
10530
 
10531
 
10532
# Only expand once:
10533
 
10534
 
10535
 
10536
ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi"
10537
# If we haven't got the data from the intl directory,
10538
# assume NLS is disabled.
10539
USE_NLS=no
10540
LIBINTL=
10541
LIBINTL_DEP=
10542
INCINTL=
10543
XGETTEXT=
10544
GMSGFMT=
10545
POSUB=
10546
 
10547
if test -f  ../intl/config.intl; then
10548
  .  ../intl/config.intl
10549
fi
10550
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10551
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10552
if test x"$USE_NLS" != xyes; then
10553
  echo "$as_me:$LINENO: result: no" >&5
10554
echo "${ECHO_T}no" >&6
10555
else
10556
  echo "$as_me:$LINENO: result: yes" >&5
10557
echo "${ECHO_T}yes" >&6
10558
 
10559
cat >>confdefs.h <<\_ACEOF
10560
#define ENABLE_NLS 1
10561
_ACEOF
10562
 
10563
 
10564
  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10565
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10566
  # Look for .po and .gmo files in the source directory.
10567
  CATALOGS=
10568
  XLINGUAS=
10569
  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10570
    # If there aren't any .gmo files the shell will give us the
10571
    # literal string "../path/to/srcdir/po/*.gmo" which has to be
10572
    # weeded out.
10573
    case "$cat" in *\**)
10574
      continue;;
10575
    esac
10576
    # The quadruple backslash is collapsed to a double backslash
10577
    # by the backticks, then collapsed again by the double quotes,
10578
    # leaving us with one backslash in the sed expression (right
10579
    # before the dot that mustn't act as a wildcard).
10580
    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10581
    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10582
    # The user is allowed to set LINGUAS to a list of languages to
10583
    # install catalogs for.  If it's empty that means "all of them."
10584
    if test "x$LINGUAS" = x; then
10585
      CATALOGS="$CATALOGS $cat"
10586
      XLINGUAS="$XLINGUAS $lang"
10587
    else
10588
      case "$LINGUAS" in *$lang*)
10589
        CATALOGS="$CATALOGS $cat"
10590
        XLINGUAS="$XLINGUAS $lang"
10591
        ;;
10592
      esac
10593
    fi
10594
  done
10595
  LINGUAS="$XLINGUAS"
10596
  echo "$as_me:$LINENO: result: $LINGUAS" >&5
10597
echo "${ECHO_T}$LINGUAS" >&6
10598
 
10599
 
10600
    DATADIRNAME=share
10601
 
10602
  INSTOBJEXT=.mo
10603
 
10604
  GENCAT=gencat
10605
 
10606
  CATOBJEXT=.gmo
10607
 
10608
fi
10609
 
10610
        MKINSTALLDIRS=
10611
  if test -n "$ac_aux_dir"; then
10612
    case "$ac_aux_dir" in
10613
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10614
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10615
    esac
10616
  fi
10617
  if test -z "$MKINSTALLDIRS"; then
10618
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10619
  fi
10620
 
10621
 
10622
 
10623
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10624
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10625
    # Check whether --enable-nls or --disable-nls was given.
10626
if test "${enable_nls+set}" = set; then
10627
  enableval="$enable_nls"
10628
  USE_NLS=$enableval
10629
else
10630
  USE_NLS=yes
10631
fi;
10632
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
10633
echo "${ECHO_T}$USE_NLS" >&6
10634
 
10635
 
10636
 
10637
 
10638
 
10639
 
10640
# Prepare PATH_SEPARATOR.
10641
# The user is always right.
10642
if test "${PATH_SEPARATOR+set}" != set; then
10643
  echo "#! /bin/sh" >conf$$.sh
10644
  echo  "exit 0"   >>conf$$.sh
10645
  chmod +x conf$$.sh
10646
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10647
    PATH_SEPARATOR=';'
10648
  else
10649
    PATH_SEPARATOR=:
10650
  fi
10651
  rm -f conf$$.sh
10652
fi
10653
 
10654
# Find out how to test for executable files. Don't use a zero-byte file,
10655
# as systems may use methods other than mode bits to determine executability.
10656
cat >conf$$.file <<_ASEOF
10657
#! /bin/sh
10658
exit 0
10659
_ASEOF
10660
chmod +x conf$$.file
10661
if test -x conf$$.file >/dev/null 2>&1; then
10662
  ac_executable_p="test -x"
10663
else
10664
  ac_executable_p="test -f"
10665
fi
10666
rm -f conf$$.file
10667
 
10668
# Extract the first word of "msgfmt", so it can be a program name with args.
10669
set dummy msgfmt; ac_word=$2
10670
echo "$as_me:$LINENO: checking for $ac_word" >&5
10671
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10672
if test "${ac_cv_path_MSGFMT+set}" = set; then
10673
  echo $ECHO_N "(cached) $ECHO_C" >&6
10674
else
10675
  case "$MSGFMT" in
10676
  [\\/]* | ?:[\\/]*)
10677
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10678
    ;;
10679
  *)
10680
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10681
    for ac_dir in $PATH; do
10682
      IFS="$ac_save_IFS"
10683
      test -z "$ac_dir" && ac_dir=.
10684
      for ac_exec_ext in '' $ac_executable_extensions; do
10685
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10686
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10687
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10688
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10689
            break 2
10690
          fi
10691
        fi
10692
      done
10693
    done
10694
    IFS="$ac_save_IFS"
10695
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10696
    ;;
10697
esac
10698
fi
10699
MSGFMT="$ac_cv_path_MSGFMT"
10700
if test "$MSGFMT" != ":"; then
10701
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
10702
echo "${ECHO_T}$MSGFMT" >&6
10703
else
10704
  echo "$as_me:$LINENO: result: no" >&5
10705
echo "${ECHO_T}no" >&6
10706
fi
10707
 
10708
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
10709
set dummy gmsgfmt; ac_word=$2
10710
echo "$as_me:$LINENO: checking for $ac_word" >&5
10711
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10712
if test "${ac_cv_path_GMSGFMT+set}" = set; then
10713
  echo $ECHO_N "(cached) $ECHO_C" >&6
10714
else
10715
  case $GMSGFMT in
10716
  [\\/]* | ?:[\\/]*)
10717
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10718
  ;;
10719
  *)
10720
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721
for as_dir in $PATH
10722
do
10723
  IFS=$as_save_IFS
10724
  test -z "$as_dir" && as_dir=.
10725
  for ac_exec_ext in '' $ac_executable_extensions; do
10726
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10727
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10728
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10729
    break 2
10730
  fi
10731
done
10732
done
10733
 
10734
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10735
  ;;
10736
esac
10737
fi
10738
GMSGFMT=$ac_cv_path_GMSGFMT
10739
 
10740
if test -n "$GMSGFMT"; then
10741
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10742
echo "${ECHO_T}$GMSGFMT" >&6
10743
else
10744
  echo "$as_me:$LINENO: result: no" >&5
10745
echo "${ECHO_T}no" >&6
10746
fi
10747
 
10748
 
10749
 
10750
# Prepare PATH_SEPARATOR.
10751
# The user is always right.
10752
if test "${PATH_SEPARATOR+set}" != set; then
10753
  echo "#! /bin/sh" >conf$$.sh
10754
  echo  "exit 0"   >>conf$$.sh
10755
  chmod +x conf$$.sh
10756
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10757
    PATH_SEPARATOR=';'
10758
  else
10759
    PATH_SEPARATOR=:
10760
  fi
10761
  rm -f conf$$.sh
10762
fi
10763
 
10764
# Find out how to test for executable files. Don't use a zero-byte file,
10765
# as systems may use methods other than mode bits to determine executability.
10766
cat >conf$$.file <<_ASEOF
10767
#! /bin/sh
10768
exit 0
10769
_ASEOF
10770
chmod +x conf$$.file
10771
if test -x conf$$.file >/dev/null 2>&1; then
10772
  ac_executable_p="test -x"
10773
else
10774
  ac_executable_p="test -f"
10775
fi
10776
rm -f conf$$.file
10777
 
10778
# Extract the first word of "xgettext", so it can be a program name with args.
10779
set dummy xgettext; ac_word=$2
10780
echo "$as_me:$LINENO: checking for $ac_word" >&5
10781
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10782
if test "${ac_cv_path_XGETTEXT+set}" = set; then
10783
  echo $ECHO_N "(cached) $ECHO_C" >&6
10784
else
10785
  case "$XGETTEXT" in
10786
  [\\/]* | ?:[\\/]*)
10787
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10788
    ;;
10789
  *)
10790
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10791
    for ac_dir in $PATH; do
10792
      IFS="$ac_save_IFS"
10793
      test -z "$ac_dir" && ac_dir=.
10794
      for ac_exec_ext in '' $ac_executable_extensions; do
10795
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10796
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10797
     (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
10798
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10799
            break 2
10800
          fi
10801
        fi
10802
      done
10803
    done
10804
    IFS="$ac_save_IFS"
10805
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10806
    ;;
10807
esac
10808
fi
10809
XGETTEXT="$ac_cv_path_XGETTEXT"
10810
if test "$XGETTEXT" != ":"; then
10811
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10812
echo "${ECHO_T}$XGETTEXT" >&6
10813
else
10814
  echo "$as_me:$LINENO: result: no" >&5
10815
echo "${ECHO_T}no" >&6
10816
fi
10817
 
10818
    rm -f messages.po
10819
 
10820
 
10821
# Prepare PATH_SEPARATOR.
10822
# The user is always right.
10823
if test "${PATH_SEPARATOR+set}" != set; then
10824
  echo "#! /bin/sh" >conf$$.sh
10825
  echo  "exit 0"   >>conf$$.sh
10826
  chmod +x conf$$.sh
10827
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10828
    PATH_SEPARATOR=';'
10829
  else
10830
    PATH_SEPARATOR=:
10831
  fi
10832
  rm -f conf$$.sh
10833
fi
10834
 
10835
# Find out how to test for executable files. Don't use a zero-byte file,
10836
# as systems may use methods other than mode bits to determine executability.
10837
cat >conf$$.file <<_ASEOF
10838
#! /bin/sh
10839
exit 0
10840
_ASEOF
10841
chmod +x conf$$.file
10842
if test -x conf$$.file >/dev/null 2>&1; then
10843
  ac_executable_p="test -x"
10844
else
10845
  ac_executable_p="test -f"
10846
fi
10847
rm -f conf$$.file
10848
 
10849
# Extract the first word of "msgmerge", so it can be a program name with args.
10850
set dummy msgmerge; ac_word=$2
10851
echo "$as_me:$LINENO: checking for $ac_word" >&5
10852
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10853
if test "${ac_cv_path_MSGMERGE+set}" = set; then
10854
  echo $ECHO_N "(cached) $ECHO_C" >&6
10855
else
10856
  case "$MSGMERGE" in
10857
  [\\/]* | ?:[\\/]*)
10858
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10859
    ;;
10860
  *)
10861
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10862
    for ac_dir in $PATH; do
10863
      IFS="$ac_save_IFS"
10864
      test -z "$ac_dir" && ac_dir=.
10865
      for ac_exec_ext in '' $ac_executable_extensions; do
10866
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10867
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10868
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10869
            break 2
10870
          fi
10871
        fi
10872
      done
10873
    done
10874
    IFS="$ac_save_IFS"
10875
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10876
    ;;
10877
esac
10878
fi
10879
MSGMERGE="$ac_cv_path_MSGMERGE"
10880
if test "$MSGMERGE" != ":"; then
10881
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10882
echo "${ECHO_T}$MSGMERGE" >&6
10883
else
10884
  echo "$as_me:$LINENO: result: no" >&5
10885
echo "${ECHO_T}no" >&6
10886
fi
10887
 
10888
 
10889
      if test "$GMSGFMT" != ":"; then
10890
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10891
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10892
      : ;
10893
    else
10894
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10895
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10896
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10897
      GMSGFMT=":"
10898
    fi
10899
  fi
10900
 
10901
      if test "$XGETTEXT" != ":"; then
10902
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10903
       (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
10904
      : ;
10905
    else
10906
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10907
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10908
      XGETTEXT=":"
10909
    fi
10910
        rm -f messages.po
10911
  fi
10912
 
10913
            ac_config_commands="$ac_config_commands default-1"
10914
 
10915
 
10916
 
10917
 
10918
 
10919
for ac_prog in 'bison -y' byacc
10920
do
10921
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10922
set dummy $ac_prog; ac_word=$2
10923
echo "$as_me:$LINENO: checking for $ac_word" >&5
10924
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10925
if test "${ac_cv_prog_YACC+set}" = set; then
10926
  echo $ECHO_N "(cached) $ECHO_C" >&6
10927
else
10928
  if test -n "$YACC"; then
10929
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
10930
else
10931
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932
for as_dir in $PATH
10933
do
10934
  IFS=$as_save_IFS
10935
  test -z "$as_dir" && as_dir=.
10936
  for ac_exec_ext in '' $ac_executable_extensions; do
10937
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10938
    ac_cv_prog_YACC="$ac_prog"
10939
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10940
    break 2
10941
  fi
10942
done
10943
done
10944
 
10945
fi
10946
fi
10947
YACC=$ac_cv_prog_YACC
10948
if test -n "$YACC"; then
10949
  echo "$as_me:$LINENO: result: $YACC" >&5
10950
echo "${ECHO_T}$YACC" >&6
10951
else
10952
  echo "$as_me:$LINENO: result: no" >&5
10953
echo "${ECHO_T}no" >&6
10954
fi
10955
 
10956
  test -n "$YACC" && break
10957
done
10958
test -n "$YACC" || YACC="yacc"
10959
 
10960
for ac_prog in flex lex
10961
do
10962
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10963
set dummy $ac_prog; ac_word=$2
10964
echo "$as_me:$LINENO: checking for $ac_word" >&5
10965
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10966
if test "${ac_cv_prog_LEX+set}" = set; then
10967
  echo $ECHO_N "(cached) $ECHO_C" >&6
10968
else
10969
  if test -n "$LEX"; then
10970
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
10971
else
10972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973
for as_dir in $PATH
10974
do
10975
  IFS=$as_save_IFS
10976
  test -z "$as_dir" && as_dir=.
10977
  for ac_exec_ext in '' $ac_executable_extensions; do
10978
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10979
    ac_cv_prog_LEX="$ac_prog"
10980
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10981
    break 2
10982
  fi
10983
done
10984
done
10985
 
10986
fi
10987
fi
10988
LEX=$ac_cv_prog_LEX
10989
if test -n "$LEX"; then
10990
  echo "$as_me:$LINENO: result: $LEX" >&5
10991
echo "${ECHO_T}$LEX" >&6
10992
else
10993
  echo "$as_me:$LINENO: result: no" >&5
10994
echo "${ECHO_T}no" >&6
10995
fi
10996
 
10997
  test -n "$LEX" && break
10998
done
10999
test -n "$LEX" || LEX=":"
11000
 
11001
if test -z "$LEXLIB"
11002
then
11003
  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11004
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11005
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11006
  echo $ECHO_N "(cached) $ECHO_C" >&6
11007
else
11008
  ac_check_lib_save_LIBS=$LIBS
11009
LIBS="-lfl  $LIBS"
11010
cat >conftest.$ac_ext <<_ACEOF
11011
/* confdefs.h.  */
11012
_ACEOF
11013
cat confdefs.h >>conftest.$ac_ext
11014
cat >>conftest.$ac_ext <<_ACEOF
11015
/* end confdefs.h.  */
11016
 
11017
/* Override any gcc2 internal prototype to avoid an error.  */
11018
#ifdef __cplusplus
11019
extern "C"
11020
#endif
11021
/* We use char because int might match the return type of a gcc2
11022
   builtin and then its argument prototype would still apply.  */
11023
char yywrap ();
11024
int
11025
main ()
11026
{
11027
yywrap ();
11028
  ;
11029
  return 0;
11030
}
11031
_ACEOF
11032
rm -f conftest.$ac_objext conftest$ac_exeext
11033
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11034
  (eval $ac_link) 2>conftest.er1
11035
  ac_status=$?
11036
  grep -v '^ *+' conftest.er1 >conftest.err
11037
  rm -f conftest.er1
11038
  cat conftest.err >&5
11039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040
  (exit $ac_status); } &&
11041
         { ac_try='test -z "$ac_c_werror_flag"
11042
                         || test ! -s conftest.err'
11043
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044
  (eval $ac_try) 2>&5
11045
  ac_status=$?
11046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047
  (exit $ac_status); }; } &&
11048
         { ac_try='test -s conftest$ac_exeext'
11049
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050
  (eval $ac_try) 2>&5
11051
  ac_status=$?
11052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053
  (exit $ac_status); }; }; then
11054
  ac_cv_lib_fl_yywrap=yes
11055
else
11056
  echo "$as_me: failed program was:" >&5
11057
sed 's/^/| /' conftest.$ac_ext >&5
11058
 
11059
ac_cv_lib_fl_yywrap=no
11060
fi
11061
rm -f conftest.err conftest.$ac_objext \
11062
      conftest$ac_exeext conftest.$ac_ext
11063
LIBS=$ac_check_lib_save_LIBS
11064
fi
11065
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11066
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11067
if test $ac_cv_lib_fl_yywrap = yes; then
11068
  LEXLIB="-lfl"
11069
else
11070
  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11071
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11072
if test "${ac_cv_lib_l_yywrap+set}" = set; then
11073
  echo $ECHO_N "(cached) $ECHO_C" >&6
11074
else
11075
  ac_check_lib_save_LIBS=$LIBS
11076
LIBS="-ll  $LIBS"
11077
cat >conftest.$ac_ext <<_ACEOF
11078
/* confdefs.h.  */
11079
_ACEOF
11080
cat confdefs.h >>conftest.$ac_ext
11081
cat >>conftest.$ac_ext <<_ACEOF
11082
/* end confdefs.h.  */
11083
 
11084
/* Override any gcc2 internal prototype to avoid an error.  */
11085
#ifdef __cplusplus
11086
extern "C"
11087
#endif
11088
/* We use char because int might match the return type of a gcc2
11089
   builtin and then its argument prototype would still apply.  */
11090
char yywrap ();
11091
int
11092
main ()
11093
{
11094
yywrap ();
11095
  ;
11096
  return 0;
11097
}
11098
_ACEOF
11099
rm -f conftest.$ac_objext conftest$ac_exeext
11100
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101
  (eval $ac_link) 2>conftest.er1
11102
  ac_status=$?
11103
  grep -v '^ *+' conftest.er1 >conftest.err
11104
  rm -f conftest.er1
11105
  cat conftest.err >&5
11106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107
  (exit $ac_status); } &&
11108
         { ac_try='test -z "$ac_c_werror_flag"
11109
                         || test ! -s conftest.err'
11110
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111
  (eval $ac_try) 2>&5
11112
  ac_status=$?
11113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114
  (exit $ac_status); }; } &&
11115
         { ac_try='test -s conftest$ac_exeext'
11116
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117
  (eval $ac_try) 2>&5
11118
  ac_status=$?
11119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120
  (exit $ac_status); }; }; then
11121
  ac_cv_lib_l_yywrap=yes
11122
else
11123
  echo "$as_me: failed program was:" >&5
11124
sed 's/^/| /' conftest.$ac_ext >&5
11125
 
11126
ac_cv_lib_l_yywrap=no
11127
fi
11128
rm -f conftest.err conftest.$ac_objext \
11129
      conftest$ac_exeext conftest.$ac_ext
11130
LIBS=$ac_check_lib_save_LIBS
11131
fi
11132
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11133
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11134
if test $ac_cv_lib_l_yywrap = yes; then
11135
  LEXLIB="-ll"
11136
fi
11137
 
11138
fi
11139
 
11140
fi
11141
 
11142
if test "x$LEX" != "x:"; then
11143
  echo "$as_me:$LINENO: checking lex output file root" >&5
11144
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11145
if test "${ac_cv_prog_lex_root+set}" = set; then
11146
  echo $ECHO_N "(cached) $ECHO_C" >&6
11147
else
11148
  # The minimal lex program is just a single line: %%.  But some broken lexes
11149
# (Solaris, I think it was) want two %% lines, so accommodate them.
11150
cat >conftest.l <<_ACEOF
11151
%%
11152
%%
11153
_ACEOF
11154
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11155
  (eval $LEX conftest.l) 2>&5
11156
  ac_status=$?
11157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158
  (exit $ac_status); }
11159
if test -f lex.yy.c; then
11160
  ac_cv_prog_lex_root=lex.yy
11161
elif test -f lexyy.c; then
11162
  ac_cv_prog_lex_root=lexyy
11163
else
11164
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11165
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11166
   { (exit 1); exit 1; }; }
11167
fi
11168
fi
11169
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11170
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11171
rm -f conftest.l
11172
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11173
 
11174
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11175
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11176
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11177
  echo $ECHO_N "(cached) $ECHO_C" >&6
11178
else
11179
  # POSIX says lex can declare yytext either as a pointer or an array; the
11180
# default is implementation-dependent. Figure out which it is, since
11181
# not all implementations provide the %pointer and %array declarations.
11182
ac_cv_prog_lex_yytext_pointer=no
11183
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11184
ac_save_LIBS=$LIBS
11185
LIBS="$LIBS $LEXLIB"
11186
cat >conftest.$ac_ext <<_ACEOF
11187
`cat $LEX_OUTPUT_ROOT.c`
11188
_ACEOF
11189
rm -f conftest.$ac_objext conftest$ac_exeext
11190
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11191
  (eval $ac_link) 2>conftest.er1
11192
  ac_status=$?
11193
  grep -v '^ *+' conftest.er1 >conftest.err
11194
  rm -f conftest.er1
11195
  cat conftest.err >&5
11196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197
  (exit $ac_status); } &&
11198
         { ac_try='test -z "$ac_c_werror_flag"
11199
                         || test ! -s conftest.err'
11200
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201
  (eval $ac_try) 2>&5
11202
  ac_status=$?
11203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204
  (exit $ac_status); }; } &&
11205
         { ac_try='test -s conftest$ac_exeext'
11206
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207
  (eval $ac_try) 2>&5
11208
  ac_status=$?
11209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210
  (exit $ac_status); }; }; then
11211
  ac_cv_prog_lex_yytext_pointer=yes
11212
else
11213
  echo "$as_me: failed program was:" >&5
11214
sed 's/^/| /' conftest.$ac_ext >&5
11215
 
11216
fi
11217
rm -f conftest.err conftest.$ac_objext \
11218
      conftest$ac_exeext conftest.$ac_ext
11219
LIBS=$ac_save_LIBS
11220
rm -f "${LEX_OUTPUT_ROOT}.c"
11221
 
11222
fi
11223
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11224
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11225
if test $ac_cv_prog_lex_yytext_pointer = yes; then
11226
 
11227
cat >>confdefs.h <<\_ACEOF
11228
#define YYTEXT_POINTER 1
11229
_ACEOF
11230
 
11231
fi
11232
 
11233
fi
11234
if test "$LEX" = :; then
11235
  LEX=${am_missing_run}flex
11236
fi
11237
 
11238
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11239
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11240
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11241
if test "${enable_maintainer_mode+set}" = set; then
11242
  enableval="$enable_maintainer_mode"
11243
  USE_MAINTAINER_MODE=$enableval
11244
else
11245
  USE_MAINTAINER_MODE=no
11246
fi;
11247
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11248
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11249
 
11250
 
11251
if test $USE_MAINTAINER_MODE = yes; then
11252
  MAINTAINER_MODE_TRUE=
11253
  MAINTAINER_MODE_FALSE='#'
11254
else
11255
  MAINTAINER_MODE_TRUE='#'
11256
  MAINTAINER_MODE_FALSE=
11257
fi
11258
 
11259
  MAINT=$MAINTAINER_MODE_TRUE
11260
 
11261
 
11262
 
11263
 
11264
if false; then
11265
  GENINSRC_NEVER_TRUE=
11266
  GENINSRC_NEVER_FALSE='#'
11267
else
11268
  GENINSRC_NEVER_TRUE='#'
11269
  GENINSRC_NEVER_FALSE=
11270
fi
11271
 
11272
 
11273
. ${srcdir}/configure.host
11274
 
11275
 
11276
 
11277
 
11278
 
11279
 
11280
 
11281
 
11282
 
11283
 
11284
 
11285
 
11286
 
11287
for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
11288
do
11289
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11290
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11291
  echo "$as_me:$LINENO: checking for $ac_header" >&5
11292
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11293
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11294
  echo $ECHO_N "(cached) $ECHO_C" >&6
11295
fi
11296
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11297
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11298
else
11299
  # Is the header compilable?
11300
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11301
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11302
cat >conftest.$ac_ext <<_ACEOF
11303
/* confdefs.h.  */
11304
_ACEOF
11305
cat confdefs.h >>conftest.$ac_ext
11306
cat >>conftest.$ac_ext <<_ACEOF
11307
/* end confdefs.h.  */
11308
$ac_includes_default
11309
#include <$ac_header>
11310
_ACEOF
11311
rm -f conftest.$ac_objext
11312
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11313
  (eval $ac_compile) 2>conftest.er1
11314
  ac_status=$?
11315
  grep -v '^ *+' conftest.er1 >conftest.err
11316
  rm -f conftest.er1
11317
  cat conftest.err >&5
11318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319
  (exit $ac_status); } &&
11320
         { ac_try='test -z "$ac_c_werror_flag"
11321
                         || test ! -s conftest.err'
11322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323
  (eval $ac_try) 2>&5
11324
  ac_status=$?
11325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326
  (exit $ac_status); }; } &&
11327
         { ac_try='test -s conftest.$ac_objext'
11328
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329
  (eval $ac_try) 2>&5
11330
  ac_status=$?
11331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332
  (exit $ac_status); }; }; then
11333
  ac_header_compiler=yes
11334
else
11335
  echo "$as_me: failed program was:" >&5
11336
sed 's/^/| /' conftest.$ac_ext >&5
11337
 
11338
ac_header_compiler=no
11339
fi
11340
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11341
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11342
echo "${ECHO_T}$ac_header_compiler" >&6
11343
 
11344
# Is the header present?
11345
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11346
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11347
cat >conftest.$ac_ext <<_ACEOF
11348
/* confdefs.h.  */
11349
_ACEOF
11350
cat confdefs.h >>conftest.$ac_ext
11351
cat >>conftest.$ac_ext <<_ACEOF
11352
/* end confdefs.h.  */
11353
#include <$ac_header>
11354
_ACEOF
11355
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11356
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11357
  ac_status=$?
11358
  grep -v '^ *+' conftest.er1 >conftest.err
11359
  rm -f conftest.er1
11360
  cat conftest.err >&5
11361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362
  (exit $ac_status); } >/dev/null; then
11363
  if test -s conftest.err; then
11364
    ac_cpp_err=$ac_c_preproc_warn_flag
11365
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11366
  else
11367
    ac_cpp_err=
11368
  fi
11369
else
11370
  ac_cpp_err=yes
11371
fi
11372
if test -z "$ac_cpp_err"; then
11373
  ac_header_preproc=yes
11374
else
11375
  echo "$as_me: failed program was:" >&5
11376
sed 's/^/| /' conftest.$ac_ext >&5
11377
 
11378
  ac_header_preproc=no
11379
fi
11380
rm -f conftest.err conftest.$ac_ext
11381
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11382
echo "${ECHO_T}$ac_header_preproc" >&6
11383
 
11384
# So?  What about this header?
11385
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11386
  yes:no: )
11387
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11388
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11389
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11390
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11391
    ac_header_preproc=yes
11392
    ;;
11393
  no:yes:* )
11394
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11395
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11396
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11397
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11398
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11399
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11400
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11401
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11402
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11403
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11404
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11405
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11406
    (
11407
      cat <<\_ASBOX
11408
## ------------------------------------------ ##
11409
## Report this to the AC_PACKAGE_NAME lists.  ##
11410
## ------------------------------------------ ##
11411
_ASBOX
11412
    ) |
11413
      sed "s/^/$as_me: WARNING:     /" >&2
11414
    ;;
11415
esac
11416
echo "$as_me:$LINENO: checking for $ac_header" >&5
11417
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11418
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11419
  echo $ECHO_N "(cached) $ECHO_C" >&6
11420
else
11421
  eval "$as_ac_Header=\$ac_header_preproc"
11422
fi
11423
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11424
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11425
 
11426
fi
11427
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11428
  cat >>confdefs.h <<_ACEOF
11429
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11430
_ACEOF
11431
 
11432
fi
11433
 
11434
done
11435
 
11436
 
11437
 
11438
 
11439
 
11440
 
11441
for ac_func in glob mkstemp realpath sbrk waitpid
11442
do
11443
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11444
echo "$as_me:$LINENO: checking for $ac_func" >&5
11445
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11446
if eval "test \"\${$as_ac_var+set}\" = set"; then
11447
  echo $ECHO_N "(cached) $ECHO_C" >&6
11448
else
11449
  cat >conftest.$ac_ext <<_ACEOF
11450
/* confdefs.h.  */
11451
_ACEOF
11452
cat confdefs.h >>conftest.$ac_ext
11453
cat >>conftest.$ac_ext <<_ACEOF
11454
/* end confdefs.h.  */
11455
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
11456
   For example, HP-UX 11i  declares gettimeofday.  */
11457
#define $ac_func innocuous_$ac_func
11458
 
11459
/* System header to define __stub macros and hopefully few prototypes,
11460
    which can conflict with char $ac_func (); below.
11461
    Prefer  to  if __STDC__ is defined, since
11462
     exists even on freestanding compilers.  */
11463
 
11464
#ifdef __STDC__
11465
# include 
11466
#else
11467
# include 
11468
#endif
11469
 
11470
#undef $ac_func
11471
 
11472
/* Override any gcc2 internal prototype to avoid an error.  */
11473
#ifdef __cplusplus
11474
extern "C"
11475
{
11476
#endif
11477
/* We use char because int might match the return type of a gcc2
11478
   builtin and then its argument prototype would still apply.  */
11479
char $ac_func ();
11480
/* The GNU C library defines this for functions which it implements
11481
    to always fail with ENOSYS.  Some functions are actually named
11482
    something starting with __ and the normal name is an alias.  */
11483
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11484
choke me
11485
#else
11486
char (*f) () = $ac_func;
11487
#endif
11488
#ifdef __cplusplus
11489
}
11490
#endif
11491
 
11492
int
11493
main ()
11494
{
11495
return f != $ac_func;
11496
  ;
11497
  return 0;
11498
}
11499
_ACEOF
11500
rm -f conftest.$ac_objext conftest$ac_exeext
11501
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11502
  (eval $ac_link) 2>conftest.er1
11503
  ac_status=$?
11504
  grep -v '^ *+' conftest.er1 >conftest.err
11505
  rm -f conftest.er1
11506
  cat conftest.err >&5
11507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508
  (exit $ac_status); } &&
11509
         { ac_try='test -z "$ac_c_werror_flag"
11510
                         || test ! -s conftest.err'
11511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512
  (eval $ac_try) 2>&5
11513
  ac_status=$?
11514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515
  (exit $ac_status); }; } &&
11516
         { ac_try='test -s conftest$ac_exeext'
11517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518
  (eval $ac_try) 2>&5
11519
  ac_status=$?
11520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521
  (exit $ac_status); }; }; then
11522
  eval "$as_ac_var=yes"
11523
else
11524
  echo "$as_me: failed program was:" >&5
11525
sed 's/^/| /' conftest.$ac_ext >&5
11526
 
11527
eval "$as_ac_var=no"
11528
fi
11529
rm -f conftest.err conftest.$ac_objext \
11530
      conftest$ac_exeext conftest.$ac_ext
11531
fi
11532
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11533
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11534
if test `eval echo '${'$as_ac_var'}'` = yes; then
11535
  cat >>confdefs.h <<_ACEOF
11536
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11537
_ACEOF
11538
 
11539
fi
11540
done
11541
 
11542
 
11543
 
11544
 
11545
 
11546
 
11547
ac_header_dirent=no
11548
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11549
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11550
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11551
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11552
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11553
  echo $ECHO_N "(cached) $ECHO_C" >&6
11554
else
11555
  cat >conftest.$ac_ext <<_ACEOF
11556
/* confdefs.h.  */
11557
_ACEOF
11558
cat confdefs.h >>conftest.$ac_ext
11559
cat >>conftest.$ac_ext <<_ACEOF
11560
/* end confdefs.h.  */
11561
#include 
11562
#include <$ac_hdr>
11563
 
11564
int
11565
main ()
11566
{
11567
if ((DIR *) 0)
11568
return 0;
11569
  ;
11570
  return 0;
11571
}
11572
_ACEOF
11573
rm -f conftest.$ac_objext
11574
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11575
  (eval $ac_compile) 2>conftest.er1
11576
  ac_status=$?
11577
  grep -v '^ *+' conftest.er1 >conftest.err
11578
  rm -f conftest.er1
11579
  cat conftest.err >&5
11580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581
  (exit $ac_status); } &&
11582
         { ac_try='test -z "$ac_c_werror_flag"
11583
                         || test ! -s conftest.err'
11584
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585
  (eval $ac_try) 2>&5
11586
  ac_status=$?
11587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588
  (exit $ac_status); }; } &&
11589
         { ac_try='test -s conftest.$ac_objext'
11590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591
  (eval $ac_try) 2>&5
11592
  ac_status=$?
11593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594
  (exit $ac_status); }; }; then
11595
  eval "$as_ac_Header=yes"
11596
else
11597
  echo "$as_me: failed program was:" >&5
11598
sed 's/^/| /' conftest.$ac_ext >&5
11599
 
11600
eval "$as_ac_Header=no"
11601
fi
11602
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11603
fi
11604
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11605
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11606
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11607
  cat >>confdefs.h <<_ACEOF
11608
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11609
_ACEOF
11610
 
11611
ac_header_dirent=$ac_hdr; break
11612
fi
11613
 
11614
done
11615
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11616
if test $ac_header_dirent = dirent.h; then
11617
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
11618
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11619
if test "${ac_cv_search_opendir+set}" = set; then
11620
  echo $ECHO_N "(cached) $ECHO_C" >&6
11621
else
11622
  ac_func_search_save_LIBS=$LIBS
11623
ac_cv_search_opendir=no
11624
cat >conftest.$ac_ext <<_ACEOF
11625
/* confdefs.h.  */
11626
_ACEOF
11627
cat confdefs.h >>conftest.$ac_ext
11628
cat >>conftest.$ac_ext <<_ACEOF
11629
/* end confdefs.h.  */
11630
 
11631
/* Override any gcc2 internal prototype to avoid an error.  */
11632
#ifdef __cplusplus
11633
extern "C"
11634
#endif
11635
/* We use char because int might match the return type of a gcc2
11636
   builtin and then its argument prototype would still apply.  */
11637
char opendir ();
11638
int
11639
main ()
11640
{
11641
opendir ();
11642
  ;
11643
  return 0;
11644
}
11645
_ACEOF
11646
rm -f conftest.$ac_objext conftest$ac_exeext
11647
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648
  (eval $ac_link) 2>conftest.er1
11649
  ac_status=$?
11650
  grep -v '^ *+' conftest.er1 >conftest.err
11651
  rm -f conftest.er1
11652
  cat conftest.err >&5
11653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654
  (exit $ac_status); } &&
11655
         { ac_try='test -z "$ac_c_werror_flag"
11656
                         || test ! -s conftest.err'
11657
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658
  (eval $ac_try) 2>&5
11659
  ac_status=$?
11660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661
  (exit $ac_status); }; } &&
11662
         { ac_try='test -s conftest$ac_exeext'
11663
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664
  (eval $ac_try) 2>&5
11665
  ac_status=$?
11666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667
  (exit $ac_status); }; }; then
11668
  ac_cv_search_opendir="none required"
11669
else
11670
  echo "$as_me: failed program was:" >&5
11671
sed 's/^/| /' conftest.$ac_ext >&5
11672
 
11673
fi
11674
rm -f conftest.err conftest.$ac_objext \
11675
      conftest$ac_exeext conftest.$ac_ext
11676
if test "$ac_cv_search_opendir" = no; then
11677
  for ac_lib in dir; do
11678
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11679
    cat >conftest.$ac_ext <<_ACEOF
11680
/* confdefs.h.  */
11681
_ACEOF
11682
cat confdefs.h >>conftest.$ac_ext
11683
cat >>conftest.$ac_ext <<_ACEOF
11684
/* end confdefs.h.  */
11685
 
11686
/* Override any gcc2 internal prototype to avoid an error.  */
11687
#ifdef __cplusplus
11688
extern "C"
11689
#endif
11690
/* We use char because int might match the return type of a gcc2
11691
   builtin and then its argument prototype would still apply.  */
11692
char opendir ();
11693
int
11694
main ()
11695
{
11696
opendir ();
11697
  ;
11698
  return 0;
11699
}
11700
_ACEOF
11701
rm -f conftest.$ac_objext conftest$ac_exeext
11702
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11703
  (eval $ac_link) 2>conftest.er1
11704
  ac_status=$?
11705
  grep -v '^ *+' conftest.er1 >conftest.err
11706
  rm -f conftest.er1
11707
  cat conftest.err >&5
11708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709
  (exit $ac_status); } &&
11710
         { ac_try='test -z "$ac_c_werror_flag"
11711
                         || test ! -s conftest.err'
11712
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713
  (eval $ac_try) 2>&5
11714
  ac_status=$?
11715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716
  (exit $ac_status); }; } &&
11717
         { ac_try='test -s conftest$ac_exeext'
11718
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719
  (eval $ac_try) 2>&5
11720
  ac_status=$?
11721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722
  (exit $ac_status); }; }; then
11723
  ac_cv_search_opendir="-l$ac_lib"
11724
break
11725
else
11726
  echo "$as_me: failed program was:" >&5
11727
sed 's/^/| /' conftest.$ac_ext >&5
11728
 
11729
fi
11730
rm -f conftest.err conftest.$ac_objext \
11731
      conftest$ac_exeext conftest.$ac_ext
11732
  done
11733
fi
11734
LIBS=$ac_func_search_save_LIBS
11735
fi
11736
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11737
echo "${ECHO_T}$ac_cv_search_opendir" >&6
11738
if test "$ac_cv_search_opendir" != no; then
11739
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11740
 
11741
fi
11742
 
11743
else
11744
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
11745
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11746
if test "${ac_cv_search_opendir+set}" = set; then
11747
  echo $ECHO_N "(cached) $ECHO_C" >&6
11748
else
11749
  ac_func_search_save_LIBS=$LIBS
11750
ac_cv_search_opendir=no
11751
cat >conftest.$ac_ext <<_ACEOF
11752
/* confdefs.h.  */
11753
_ACEOF
11754
cat confdefs.h >>conftest.$ac_ext
11755
cat >>conftest.$ac_ext <<_ACEOF
11756
/* end confdefs.h.  */
11757
 
11758
/* Override any gcc2 internal prototype to avoid an error.  */
11759
#ifdef __cplusplus
11760
extern "C"
11761
#endif
11762
/* We use char because int might match the return type of a gcc2
11763
   builtin and then its argument prototype would still apply.  */
11764
char opendir ();
11765
int
11766
main ()
11767
{
11768
opendir ();
11769
  ;
11770
  return 0;
11771
}
11772
_ACEOF
11773
rm -f conftest.$ac_objext conftest$ac_exeext
11774
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11775
  (eval $ac_link) 2>conftest.er1
11776
  ac_status=$?
11777
  grep -v '^ *+' conftest.er1 >conftest.err
11778
  rm -f conftest.er1
11779
  cat conftest.err >&5
11780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781
  (exit $ac_status); } &&
11782
         { ac_try='test -z "$ac_c_werror_flag"
11783
                         || test ! -s conftest.err'
11784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785
  (eval $ac_try) 2>&5
11786
  ac_status=$?
11787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788
  (exit $ac_status); }; } &&
11789
         { ac_try='test -s conftest$ac_exeext'
11790
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791
  (eval $ac_try) 2>&5
11792
  ac_status=$?
11793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794
  (exit $ac_status); }; }; then
11795
  ac_cv_search_opendir="none required"
11796
else
11797
  echo "$as_me: failed program was:" >&5
11798
sed 's/^/| /' conftest.$ac_ext >&5
11799
 
11800
fi
11801
rm -f conftest.err conftest.$ac_objext \
11802
      conftest$ac_exeext conftest.$ac_ext
11803
if test "$ac_cv_search_opendir" = no; then
11804
  for ac_lib in x; do
11805
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11806
    cat >conftest.$ac_ext <<_ACEOF
11807
/* confdefs.h.  */
11808
_ACEOF
11809
cat confdefs.h >>conftest.$ac_ext
11810
cat >>conftest.$ac_ext <<_ACEOF
11811
/* end confdefs.h.  */
11812
 
11813
/* Override any gcc2 internal prototype to avoid an error.  */
11814
#ifdef __cplusplus
11815
extern "C"
11816
#endif
11817
/* We use char because int might match the return type of a gcc2
11818
   builtin and then its argument prototype would still apply.  */
11819
char opendir ();
11820
int
11821
main ()
11822
{
11823
opendir ();
11824
  ;
11825
  return 0;
11826
}
11827
_ACEOF
11828
rm -f conftest.$ac_objext conftest$ac_exeext
11829
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11830
  (eval $ac_link) 2>conftest.er1
11831
  ac_status=$?
11832
  grep -v '^ *+' conftest.er1 >conftest.err
11833
  rm -f conftest.er1
11834
  cat conftest.err >&5
11835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836
  (exit $ac_status); } &&
11837
         { ac_try='test -z "$ac_c_werror_flag"
11838
                         || test ! -s conftest.err'
11839
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840
  (eval $ac_try) 2>&5
11841
  ac_status=$?
11842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843
  (exit $ac_status); }; } &&
11844
         { ac_try='test -s conftest$ac_exeext'
11845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846
  (eval $ac_try) 2>&5
11847
  ac_status=$?
11848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849
  (exit $ac_status); }; }; then
11850
  ac_cv_search_opendir="-l$ac_lib"
11851
break
11852
else
11853
  echo "$as_me: failed program was:" >&5
11854
sed 's/^/| /' conftest.$ac_ext >&5
11855
 
11856
fi
11857
rm -f conftest.err conftest.$ac_objext \
11858
      conftest$ac_exeext conftest.$ac_ext
11859
  done
11860
fi
11861
LIBS=$ac_func_search_save_LIBS
11862
fi
11863
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11864
echo "${ECHO_T}$ac_cv_search_opendir" >&6
11865
if test "$ac_cv_search_opendir" != no; then
11866
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11867
 
11868
fi
11869
 
11870
fi
11871
 
11872
 
11873
echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11874
echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11875
if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then
11876
  echo $ECHO_N "(cached) $ECHO_C" >&6
11877
else
11878
  cat >conftest.$ac_ext <<_ACEOF
11879
/* confdefs.h.  */
11880
_ACEOF
11881
cat confdefs.h >>conftest.$ac_ext
11882
cat >>conftest.$ac_ext <<_ACEOF
11883
/* end confdefs.h.  */
11884
#include 
11885
int
11886
main ()
11887
{
11888
extern int getopt (int, char *const*, const char *);
11889
  ;
11890
  return 0;
11891
}
11892
_ACEOF
11893
rm -f conftest.$ac_objext
11894
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11895
  (eval $ac_compile) 2>conftest.er1
11896
  ac_status=$?
11897
  grep -v '^ *+' conftest.er1 >conftest.err
11898
  rm -f conftest.er1
11899
  cat conftest.err >&5
11900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901
  (exit $ac_status); } &&
11902
         { ac_try='test -z "$ac_c_werror_flag"
11903
                         || test ! -s conftest.err'
11904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905
  (eval $ac_try) 2>&5
11906
  ac_status=$?
11907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908
  (exit $ac_status); }; } &&
11909
         { ac_try='test -s conftest.$ac_objext'
11910
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911
  (eval $ac_try) 2>&5
11912
  ac_status=$?
11913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914
  (exit $ac_status); }; }; then
11915
  ld_cv_decl_getopt_unistd_h=yes
11916
else
11917
  echo "$as_me: failed program was:" >&5
11918
sed 's/^/| /' conftest.$ac_ext >&5
11919
 
11920
ld_cv_decl_getopt_unistd_h=no
11921
fi
11922
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11923
fi
11924
 
11925
echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5
11926
echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6
11927
if test $ld_cv_decl_getopt_unistd_h = yes; then
11928
 
11929
cat >>confdefs.h <<\_ACEOF
11930
#define HAVE_DECL_GETOPT 1
11931
_ACEOF
11932
 
11933
fi
11934
 
11935
 
11936
case "${host}" in
11937
*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
11938
 
11939
cat >>confdefs.h <<\_ACEOF
11940
#define USE_BINARY_FOPEN 1
11941
_ACEOF
11942
 ;;
11943
esac
11944
 
11945
echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11946
echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11947
if test "${ac_cv_have_decl_strstr+set}" = set; then
11948
  echo $ECHO_N "(cached) $ECHO_C" >&6
11949
else
11950
  cat >conftest.$ac_ext <<_ACEOF
11951
/* confdefs.h.  */
11952
_ACEOF
11953
cat confdefs.h >>conftest.$ac_ext
11954
cat >>conftest.$ac_ext <<_ACEOF
11955
/* end confdefs.h.  */
11956
$ac_includes_default
11957
int
11958
main ()
11959
{
11960
#ifndef strstr
11961
  char *p = (char *) strstr;
11962
#endif
11963
 
11964
  ;
11965
  return 0;
11966
}
11967
_ACEOF
11968
rm -f conftest.$ac_objext
11969
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11970
  (eval $ac_compile) 2>conftest.er1
11971
  ac_status=$?
11972
  grep -v '^ *+' conftest.er1 >conftest.err
11973
  rm -f conftest.er1
11974
  cat conftest.err >&5
11975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976
  (exit $ac_status); } &&
11977
         { ac_try='test -z "$ac_c_werror_flag"
11978
                         || test ! -s conftest.err'
11979
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980
  (eval $ac_try) 2>&5
11981
  ac_status=$?
11982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983
  (exit $ac_status); }; } &&
11984
         { ac_try='test -s conftest.$ac_objext'
11985
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986
  (eval $ac_try) 2>&5
11987
  ac_status=$?
11988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989
  (exit $ac_status); }; }; then
11990
  ac_cv_have_decl_strstr=yes
11991
else
11992
  echo "$as_me: failed program was:" >&5
11993
sed 's/^/| /' conftest.$ac_ext >&5
11994
 
11995
ac_cv_have_decl_strstr=no
11996
fi
11997
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11998
fi
11999
echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12000
echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
12001
if test $ac_cv_have_decl_strstr = yes; then
12002
 
12003
cat >>confdefs.h <<_ACEOF
12004
#define HAVE_DECL_STRSTR 1
12005
_ACEOF
12006
 
12007
 
12008
else
12009
  cat >>confdefs.h <<_ACEOF
12010
#define HAVE_DECL_STRSTR 0
12011
_ACEOF
12012
 
12013
 
12014
fi
12015
echo "$as_me:$LINENO: checking whether free is declared" >&5
12016
echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12017
if test "${ac_cv_have_decl_free+set}" = set; then
12018
  echo $ECHO_N "(cached) $ECHO_C" >&6
12019
else
12020
  cat >conftest.$ac_ext <<_ACEOF
12021
/* confdefs.h.  */
12022
_ACEOF
12023
cat confdefs.h >>conftest.$ac_ext
12024
cat >>conftest.$ac_ext <<_ACEOF
12025
/* end confdefs.h.  */
12026
$ac_includes_default
12027
int
12028
main ()
12029
{
12030
#ifndef free
12031
  char *p = (char *) free;
12032
#endif
12033
 
12034
  ;
12035
  return 0;
12036
}
12037
_ACEOF
12038
rm -f conftest.$ac_objext
12039
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12040
  (eval $ac_compile) 2>conftest.er1
12041
  ac_status=$?
12042
  grep -v '^ *+' conftest.er1 >conftest.err
12043
  rm -f conftest.er1
12044
  cat conftest.err >&5
12045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046
  (exit $ac_status); } &&
12047
         { ac_try='test -z "$ac_c_werror_flag"
12048
                         || test ! -s conftest.err'
12049
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050
  (eval $ac_try) 2>&5
12051
  ac_status=$?
12052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053
  (exit $ac_status); }; } &&
12054
         { ac_try='test -s conftest.$ac_objext'
12055
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056
  (eval $ac_try) 2>&5
12057
  ac_status=$?
12058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059
  (exit $ac_status); }; }; then
12060
  ac_cv_have_decl_free=yes
12061
else
12062
  echo "$as_me: failed program was:" >&5
12063
sed 's/^/| /' conftest.$ac_ext >&5
12064
 
12065
ac_cv_have_decl_free=no
12066
fi
12067
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12068
fi
12069
echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12070
echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12071
if test $ac_cv_have_decl_free = yes; then
12072
 
12073
cat >>confdefs.h <<_ACEOF
12074
#define HAVE_DECL_FREE 1
12075
_ACEOF
12076
 
12077
 
12078
else
12079
  cat >>confdefs.h <<_ACEOF
12080
#define HAVE_DECL_FREE 0
12081
_ACEOF
12082
 
12083
 
12084
fi
12085
echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
12086
echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
12087
if test "${ac_cv_have_decl_sbrk+set}" = set; then
12088
  echo $ECHO_N "(cached) $ECHO_C" >&6
12089
else
12090
  cat >conftest.$ac_ext <<_ACEOF
12091
/* confdefs.h.  */
12092
_ACEOF
12093
cat confdefs.h >>conftest.$ac_ext
12094
cat >>conftest.$ac_ext <<_ACEOF
12095
/* end confdefs.h.  */
12096
$ac_includes_default
12097
int
12098
main ()
12099
{
12100
#ifndef sbrk
12101
  char *p = (char *) sbrk;
12102
#endif
12103
 
12104
  ;
12105
  return 0;
12106
}
12107
_ACEOF
12108
rm -f conftest.$ac_objext
12109
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12110
  (eval $ac_compile) 2>conftest.er1
12111
  ac_status=$?
12112
  grep -v '^ *+' conftest.er1 >conftest.err
12113
  rm -f conftest.er1
12114
  cat conftest.err >&5
12115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116
  (exit $ac_status); } &&
12117
         { ac_try='test -z "$ac_c_werror_flag"
12118
                         || test ! -s conftest.err'
12119
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120
  (eval $ac_try) 2>&5
12121
  ac_status=$?
12122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123
  (exit $ac_status); }; } &&
12124
         { ac_try='test -s conftest.$ac_objext'
12125
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126
  (eval $ac_try) 2>&5
12127
  ac_status=$?
12128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129
  (exit $ac_status); }; }; then
12130
  ac_cv_have_decl_sbrk=yes
12131
else
12132
  echo "$as_me: failed program was:" >&5
12133
sed 's/^/| /' conftest.$ac_ext >&5
12134
 
12135
ac_cv_have_decl_sbrk=no
12136
fi
12137
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12138
fi
12139
echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
12140
echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
12141
if test $ac_cv_have_decl_sbrk = yes; then
12142
 
12143
cat >>confdefs.h <<_ACEOF
12144
#define HAVE_DECL_SBRK 1
12145
_ACEOF
12146
 
12147
 
12148
else
12149
  cat >>confdefs.h <<_ACEOF
12150
#define HAVE_DECL_SBRK 0
12151
_ACEOF
12152
 
12153
 
12154
fi
12155
echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12156
echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12157
if test "${ac_cv_have_decl_getenv+set}" = set; then
12158
  echo $ECHO_N "(cached) $ECHO_C" >&6
12159
else
12160
  cat >conftest.$ac_ext <<_ACEOF
12161
/* confdefs.h.  */
12162
_ACEOF
12163
cat confdefs.h >>conftest.$ac_ext
12164
cat >>conftest.$ac_ext <<_ACEOF
12165
/* end confdefs.h.  */
12166
$ac_includes_default
12167
int
12168
main ()
12169
{
12170
#ifndef getenv
12171
  char *p = (char *) getenv;
12172
#endif
12173
 
12174
  ;
12175
  return 0;
12176
}
12177
_ACEOF
12178
rm -f conftest.$ac_objext
12179
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12180
  (eval $ac_compile) 2>conftest.er1
12181
  ac_status=$?
12182
  grep -v '^ *+' conftest.er1 >conftest.err
12183
  rm -f conftest.er1
12184
  cat conftest.err >&5
12185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186
  (exit $ac_status); } &&
12187
         { ac_try='test -z "$ac_c_werror_flag"
12188
                         || test ! -s conftest.err'
12189
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190
  (eval $ac_try) 2>&5
12191
  ac_status=$?
12192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193
  (exit $ac_status); }; } &&
12194
         { ac_try='test -s conftest.$ac_objext'
12195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196
  (eval $ac_try) 2>&5
12197
  ac_status=$?
12198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199
  (exit $ac_status); }; }; then
12200
  ac_cv_have_decl_getenv=yes
12201
else
12202
  echo "$as_me: failed program was:" >&5
12203
sed 's/^/| /' conftest.$ac_ext >&5
12204
 
12205
ac_cv_have_decl_getenv=no
12206
fi
12207
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12208
fi
12209
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12210
echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12211
if test $ac_cv_have_decl_getenv = yes; then
12212
 
12213
cat >>confdefs.h <<_ACEOF
12214
#define HAVE_DECL_GETENV 1
12215
_ACEOF
12216
 
12217
 
12218
else
12219
  cat >>confdefs.h <<_ACEOF
12220
#define HAVE_DECL_GETENV 0
12221
_ACEOF
12222
 
12223
 
12224
fi
12225
echo "$as_me:$LINENO: checking whether environ is declared" >&5
12226
echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
12227
if test "${ac_cv_have_decl_environ+set}" = set; then
12228
  echo $ECHO_N "(cached) $ECHO_C" >&6
12229
else
12230
  cat >conftest.$ac_ext <<_ACEOF
12231
/* confdefs.h.  */
12232
_ACEOF
12233
cat confdefs.h >>conftest.$ac_ext
12234
cat >>conftest.$ac_ext <<_ACEOF
12235
/* end confdefs.h.  */
12236
$ac_includes_default
12237
int
12238
main ()
12239
{
12240
#ifndef environ
12241
  char *p = (char *) environ;
12242
#endif
12243
 
12244
  ;
12245
  return 0;
12246
}
12247
_ACEOF
12248
rm -f conftest.$ac_objext
12249
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12250
  (eval $ac_compile) 2>conftest.er1
12251
  ac_status=$?
12252
  grep -v '^ *+' conftest.er1 >conftest.err
12253
  rm -f conftest.er1
12254
  cat conftest.err >&5
12255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256
  (exit $ac_status); } &&
12257
         { ac_try='test -z "$ac_c_werror_flag"
12258
                         || test ! -s conftest.err'
12259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260
  (eval $ac_try) 2>&5
12261
  ac_status=$?
12262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263
  (exit $ac_status); }; } &&
12264
         { ac_try='test -s conftest.$ac_objext'
12265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266
  (eval $ac_try) 2>&5
12267
  ac_status=$?
12268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269
  (exit $ac_status); }; }; then
12270
  ac_cv_have_decl_environ=yes
12271
else
12272
  echo "$as_me: failed program was:" >&5
12273
sed 's/^/| /' conftest.$ac_ext >&5
12274
 
12275
ac_cv_have_decl_environ=no
12276
fi
12277
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12278
fi
12279
echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
12280
echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
12281
if test $ac_cv_have_decl_environ = yes; then
12282
 
12283
cat >>confdefs.h <<_ACEOF
12284
#define HAVE_DECL_ENVIRON 1
12285
_ACEOF
12286
 
12287
 
12288
else
12289
  cat >>confdefs.h <<_ACEOF
12290
#define HAVE_DECL_ENVIRON 0
12291
_ACEOF
12292
 
12293
 
12294
fi
12295
 
12296
 
12297
 
12298
# When converting linker scripts into strings for use in emulation
12299
# files, use astring.sed if the compiler supports ANSI string
12300
# concatenation, or ostring.sed otherwise.  This is to support the
12301
# broken Microsoft MSVC compiler, which limits the length of string
12302
# constants, while still supporting pre-ANSI compilers which do not
12303
# support string concatenation.
12304
echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
12305
echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
12306
if test "${ld_cv_string_concatenation+set}" = set; then
12307
  echo $ECHO_N "(cached) $ECHO_C" >&6
12308
else
12309
  cat >conftest.$ac_ext <<_ACEOF
12310
/* confdefs.h.  */
12311
_ACEOF
12312
cat confdefs.h >>conftest.$ac_ext
12313
cat >>conftest.$ac_ext <<_ACEOF
12314
/* end confdefs.h.  */
12315
 
12316
int
12317
main ()
12318
{
12319
char *a = "a" "a";
12320
  ;
12321
  return 0;
12322
}
12323
_ACEOF
12324
rm -f conftest.$ac_objext
12325
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12326
  (eval $ac_compile) 2>conftest.er1
12327
  ac_status=$?
12328
  grep -v '^ *+' conftest.er1 >conftest.err
12329
  rm -f conftest.er1
12330
  cat conftest.err >&5
12331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332
  (exit $ac_status); } &&
12333
         { ac_try='test -z "$ac_c_werror_flag"
12334
                         || test ! -s conftest.err'
12335
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336
  (eval $ac_try) 2>&5
12337
  ac_status=$?
12338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339
  (exit $ac_status); }; } &&
12340
         { ac_try='test -s conftest.$ac_objext'
12341
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342
  (eval $ac_try) 2>&5
12343
  ac_status=$?
12344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345
  (exit $ac_status); }; }; then
12346
  ld_cv_string_concatenation=yes
12347
else
12348
  echo "$as_me: failed program was:" >&5
12349
sed 's/^/| /' conftest.$ac_ext >&5
12350
 
12351
ld_cv_string_concatenation=no
12352
fi
12353
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12354
fi
12355
 
12356
echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
12357
echo "${ECHO_T}$ld_cv_string_concatenation" >&6
12358
if test "$ld_cv_string_concatenation" = "yes"; then
12359
  STRINGIFY=astring.sed
12360
else
12361
  STRINGIFY=ostring.sed
12362
fi
12363
 
12364
 
12365
# target-specific stuff:
12366
 
12367
all_targets=
12368
EMUL=
12369
all_emuls=
12370
all_emul_extras=
12371
all_libpath=
12372
 
12373
rm -f tdirs
12374
 
12375
for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
12376
do
12377
  if test "$targ_alias" = "all"; then
12378
    all_targets=true
12379
  else
12380
    # Canonicalize the secondary target names.
12381
    result=`$ac_config_sub $targ_alias 2>/dev/null`
12382
    if test -n "$result"; then
12383
        targ=$result
12384
    else
12385
        targ=$targ_alias
12386
    fi
12387
 
12388
    . ${srcdir}/configure.tgt
12389
 
12390
    if test "$targ" = "$target"; then
12391
      EMUL=$targ_emul
12392
    fi
12393
 
12394
    if test x${want64} = xfalse; then
12395
      . ${srcdir}/../bfd/config.bfd
12396
    fi
12397
 
12398
    if test x${want64} = xtrue; then
12399
      targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
12400
      targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
12401
    fi
12402
 
12403
    for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
12404
        case " $all_emuls " in
12405
        *" e${i}.o "*) ;;
12406
        *)
12407
          all_emuls="$all_emuls e${i}.o"
12408
          eval result=\$tdir_$i
12409
          test -z "$result" && result=$targ_alias
12410
          echo tdir_$i=$result >> tdirs
12411
          ;;
12412
        esac
12413
    done
12414
 
12415
    for i in $targ_emul $targ_extra_libpath; do
12416
        case " $all_libpath " in
12417
        *" ${i} "*) ;;
12418
        *)
12419
          if test -z "$all_libpath"; then
12420
            all_libpath=${i}
12421
          else
12422
            all_libpath="$all_libpath ${i}"
12423
          fi
12424
          ;;
12425
        esac
12426
    done
12427
 
12428
    for i in $targ_extra_ofiles; do
12429
        case " $all_emul_extras " in
12430
        *" ${i} "*) ;;
12431
        *)
12432
          all_emul_extras="$all_emul_extras ${i}"
12433
          ;;
12434
        esac
12435
    done
12436
  fi
12437
done
12438
 
12439
 
12440
 
12441
TDIRS=tdirs
12442
 
12443
 
12444
if test x${all_targets} = xtrue; then
12445
  if test x${want64} = xfalse; then
12446
    echo "$as_me:$LINENO: checking for long" >&5
12447
echo $ECHO_N "checking for long... $ECHO_C" >&6
12448
if test "${ac_cv_type_long+set}" = set; then
12449
  echo $ECHO_N "(cached) $ECHO_C" >&6
12450
else
12451
  cat >conftest.$ac_ext <<_ACEOF
12452
/* confdefs.h.  */
12453
_ACEOF
12454
cat confdefs.h >>conftest.$ac_ext
12455
cat >>conftest.$ac_ext <<_ACEOF
12456
/* end confdefs.h.  */
12457
$ac_includes_default
12458
int
12459
main ()
12460
{
12461
if ((long *) 0)
12462
  return 0;
12463
if (sizeof (long))
12464
  return 0;
12465
  ;
12466
  return 0;
12467
}
12468
_ACEOF
12469
rm -f conftest.$ac_objext
12470
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12471
  (eval $ac_compile) 2>conftest.er1
12472
  ac_status=$?
12473
  grep -v '^ *+' conftest.er1 >conftest.err
12474
  rm -f conftest.er1
12475
  cat conftest.err >&5
12476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477
  (exit $ac_status); } &&
12478
         { ac_try='test -z "$ac_c_werror_flag"
12479
                         || test ! -s conftest.err'
12480
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481
  (eval $ac_try) 2>&5
12482
  ac_status=$?
12483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484
  (exit $ac_status); }; } &&
12485
         { ac_try='test -s conftest.$ac_objext'
12486
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487
  (eval $ac_try) 2>&5
12488
  ac_status=$?
12489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490
  (exit $ac_status); }; }; then
12491
  ac_cv_type_long=yes
12492
else
12493
  echo "$as_me: failed program was:" >&5
12494
sed 's/^/| /' conftest.$ac_ext >&5
12495
 
12496
ac_cv_type_long=no
12497
fi
12498
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12499
fi
12500
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12501
echo "${ECHO_T}$ac_cv_type_long" >&6
12502
 
12503
echo "$as_me:$LINENO: checking size of long" >&5
12504
echo $ECHO_N "checking size of long... $ECHO_C" >&6
12505
if test "${ac_cv_sizeof_long+set}" = set; then
12506
  echo $ECHO_N "(cached) $ECHO_C" >&6
12507
else
12508
  if test "$ac_cv_type_long" = yes; then
12509
  # The cast to unsigned long works around a bug in the HP C Compiler
12510
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12511
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12512
  # This bug is HP SR number 8606223364.
12513
  if test "$cross_compiling" = yes; then
12514
  # Depending upon the size, compute the lo and hi bounds.
12515
cat >conftest.$ac_ext <<_ACEOF
12516
/* confdefs.h.  */
12517
_ACEOF
12518
cat confdefs.h >>conftest.$ac_ext
12519
cat >>conftest.$ac_ext <<_ACEOF
12520
/* end confdefs.h.  */
12521
$ac_includes_default
12522
int
12523
main ()
12524
{
12525
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12526
test_array [0] = 0
12527
 
12528
  ;
12529
  return 0;
12530
}
12531
_ACEOF
12532
rm -f conftest.$ac_objext
12533
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12534
  (eval $ac_compile) 2>conftest.er1
12535
  ac_status=$?
12536
  grep -v '^ *+' conftest.er1 >conftest.err
12537
  rm -f conftest.er1
12538
  cat conftest.err >&5
12539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540
  (exit $ac_status); } &&
12541
         { ac_try='test -z "$ac_c_werror_flag"
12542
                         || test ! -s conftest.err'
12543
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544
  (eval $ac_try) 2>&5
12545
  ac_status=$?
12546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547
  (exit $ac_status); }; } &&
12548
         { ac_try='test -s conftest.$ac_objext'
12549
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550
  (eval $ac_try) 2>&5
12551
  ac_status=$?
12552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553
  (exit $ac_status); }; }; then
12554
  ac_lo=0 ac_mid=0
12555
  while :; do
12556
    cat >conftest.$ac_ext <<_ACEOF
12557
/* confdefs.h.  */
12558
_ACEOF
12559
cat confdefs.h >>conftest.$ac_ext
12560
cat >>conftest.$ac_ext <<_ACEOF
12561
/* end confdefs.h.  */
12562
$ac_includes_default
12563
int
12564
main ()
12565
{
12566
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12567
test_array [0] = 0
12568
 
12569
  ;
12570
  return 0;
12571
}
12572
_ACEOF
12573
rm -f conftest.$ac_objext
12574
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12575
  (eval $ac_compile) 2>conftest.er1
12576
  ac_status=$?
12577
  grep -v '^ *+' conftest.er1 >conftest.err
12578
  rm -f conftest.er1
12579
  cat conftest.err >&5
12580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581
  (exit $ac_status); } &&
12582
         { ac_try='test -z "$ac_c_werror_flag"
12583
                         || test ! -s conftest.err'
12584
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585
  (eval $ac_try) 2>&5
12586
  ac_status=$?
12587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588
  (exit $ac_status); }; } &&
12589
         { ac_try='test -s conftest.$ac_objext'
12590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591
  (eval $ac_try) 2>&5
12592
  ac_status=$?
12593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594
  (exit $ac_status); }; }; then
12595
  ac_hi=$ac_mid; break
12596
else
12597
  echo "$as_me: failed program was:" >&5
12598
sed 's/^/| /' conftest.$ac_ext >&5
12599
 
12600
ac_lo=`expr $ac_mid + 1`
12601
                    if test $ac_lo -le $ac_mid; then
12602
                      ac_lo= ac_hi=
12603
                      break
12604
                    fi
12605
                    ac_mid=`expr 2 '*' $ac_mid + 1`
12606
fi
12607
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12608
  done
12609
else
12610
  echo "$as_me: failed program was:" >&5
12611
sed 's/^/| /' conftest.$ac_ext >&5
12612
 
12613
cat >conftest.$ac_ext <<_ACEOF
12614
/* confdefs.h.  */
12615
_ACEOF
12616
cat confdefs.h >>conftest.$ac_ext
12617
cat >>conftest.$ac_ext <<_ACEOF
12618
/* end confdefs.h.  */
12619
$ac_includes_default
12620
int
12621
main ()
12622
{
12623
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12624
test_array [0] = 0
12625
 
12626
  ;
12627
  return 0;
12628
}
12629
_ACEOF
12630
rm -f conftest.$ac_objext
12631
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12632
  (eval $ac_compile) 2>conftest.er1
12633
  ac_status=$?
12634
  grep -v '^ *+' conftest.er1 >conftest.err
12635
  rm -f conftest.er1
12636
  cat conftest.err >&5
12637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638
  (exit $ac_status); } &&
12639
         { ac_try='test -z "$ac_c_werror_flag"
12640
                         || test ! -s conftest.err'
12641
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642
  (eval $ac_try) 2>&5
12643
  ac_status=$?
12644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645
  (exit $ac_status); }; } &&
12646
         { ac_try='test -s conftest.$ac_objext'
12647
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648
  (eval $ac_try) 2>&5
12649
  ac_status=$?
12650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651
  (exit $ac_status); }; }; then
12652
  ac_hi=-1 ac_mid=-1
12653
  while :; do
12654
    cat >conftest.$ac_ext <<_ACEOF
12655
/* confdefs.h.  */
12656
_ACEOF
12657
cat confdefs.h >>conftest.$ac_ext
12658
cat >>conftest.$ac_ext <<_ACEOF
12659
/* end confdefs.h.  */
12660
$ac_includes_default
12661
int
12662
main ()
12663
{
12664
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12665
test_array [0] = 0
12666
 
12667
  ;
12668
  return 0;
12669
}
12670
_ACEOF
12671
rm -f conftest.$ac_objext
12672
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673
  (eval $ac_compile) 2>conftest.er1
12674
  ac_status=$?
12675
  grep -v '^ *+' conftest.er1 >conftest.err
12676
  rm -f conftest.er1
12677
  cat conftest.err >&5
12678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679
  (exit $ac_status); } &&
12680
         { ac_try='test -z "$ac_c_werror_flag"
12681
                         || test ! -s conftest.err'
12682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683
  (eval $ac_try) 2>&5
12684
  ac_status=$?
12685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686
  (exit $ac_status); }; } &&
12687
         { ac_try='test -s conftest.$ac_objext'
12688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689
  (eval $ac_try) 2>&5
12690
  ac_status=$?
12691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692
  (exit $ac_status); }; }; then
12693
  ac_lo=$ac_mid; break
12694
else
12695
  echo "$as_me: failed program was:" >&5
12696
sed 's/^/| /' conftest.$ac_ext >&5
12697
 
12698
ac_hi=`expr '(' $ac_mid ')' - 1`
12699
                       if test $ac_mid -le $ac_hi; then
12700
                         ac_lo= ac_hi=
12701
                         break
12702
                       fi
12703
                       ac_mid=`expr 2 '*' $ac_mid`
12704
fi
12705
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12706
  done
12707
else
12708
  echo "$as_me: failed program was:" >&5
12709
sed 's/^/| /' conftest.$ac_ext >&5
12710
 
12711
ac_lo= ac_hi=
12712
fi
12713
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12714
fi
12715
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12716
# Binary search between lo and hi bounds.
12717
while test "x$ac_lo" != "x$ac_hi"; do
12718
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
$ac_includes_default
12726
int
12727
main ()
12728
{
12729
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12730
test_array [0] = 0
12731
 
12732
  ;
12733
  return 0;
12734
}
12735
_ACEOF
12736
rm -f conftest.$ac_objext
12737
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738
  (eval $ac_compile) 2>conftest.er1
12739
  ac_status=$?
12740
  grep -v '^ *+' conftest.er1 >conftest.err
12741
  rm -f conftest.er1
12742
  cat conftest.err >&5
12743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744
  (exit $ac_status); } &&
12745
         { ac_try='test -z "$ac_c_werror_flag"
12746
                         || test ! -s conftest.err'
12747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748
  (eval $ac_try) 2>&5
12749
  ac_status=$?
12750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751
  (exit $ac_status); }; } &&
12752
         { ac_try='test -s conftest.$ac_objext'
12753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754
  (eval $ac_try) 2>&5
12755
  ac_status=$?
12756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757
  (exit $ac_status); }; }; then
12758
  ac_hi=$ac_mid
12759
else
12760
  echo "$as_me: failed program was:" >&5
12761
sed 's/^/| /' conftest.$ac_ext >&5
12762
 
12763
ac_lo=`expr '(' $ac_mid ')' + 1`
12764
fi
12765
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12766
done
12767
case $ac_lo in
12768
?*) ac_cv_sizeof_long=$ac_lo;;
12769
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12770
See \`config.log' for more details." >&5
12771
echo "$as_me: error: cannot compute sizeof (long), 77
12772
See \`config.log' for more details." >&2;}
12773
   { (exit 1); exit 1; }; } ;;
12774
esac
12775
else
12776
  if test "$cross_compiling" = yes; then
12777
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12778
See \`config.log' for more details." >&5
12779
echo "$as_me: error: cannot run test program while cross compiling
12780
See \`config.log' for more details." >&2;}
12781
   { (exit 1); exit 1; }; }
12782
else
12783
  cat >conftest.$ac_ext <<_ACEOF
12784
/* confdefs.h.  */
12785
_ACEOF
12786
cat confdefs.h >>conftest.$ac_ext
12787
cat >>conftest.$ac_ext <<_ACEOF
12788
/* end confdefs.h.  */
12789
$ac_includes_default
12790
long longval () { return (long) (sizeof (long)); }
12791
unsigned long ulongval () { return (long) (sizeof (long)); }
12792
#include 
12793
#include 
12794
int
12795
main ()
12796
{
12797
 
12798
  FILE *f = fopen ("conftest.val", "w");
12799
  if (! f)
12800
    exit (1);
12801
  if (((long) (sizeof (long))) < 0)
12802
    {
12803
      long i = longval ();
12804
      if (i != ((long) (sizeof (long))))
12805
        exit (1);
12806
      fprintf (f, "%ld\n", i);
12807
    }
12808
  else
12809
    {
12810
      unsigned long i = ulongval ();
12811
      if (i != ((long) (sizeof (long))))
12812
        exit (1);
12813
      fprintf (f, "%lu\n", i);
12814
    }
12815
  exit (ferror (f) || fclose (f) != 0);
12816
 
12817
  ;
12818
  return 0;
12819
}
12820
_ACEOF
12821
rm -f conftest$ac_exeext
12822
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12823
  (eval $ac_link) 2>&5
12824
  ac_status=$?
12825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828
  (eval $ac_try) 2>&5
12829
  ac_status=$?
12830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831
  (exit $ac_status); }; }; then
12832
  ac_cv_sizeof_long=`cat conftest.val`
12833
else
12834
  echo "$as_me: program exited with status $ac_status" >&5
12835
echo "$as_me: failed program was:" >&5
12836
sed 's/^/| /' conftest.$ac_ext >&5
12837
 
12838
( exit $ac_status )
12839
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12840
See \`config.log' for more details." >&5
12841
echo "$as_me: error: cannot compute sizeof (long), 77
12842
See \`config.log' for more details." >&2;}
12843
   { (exit 1); exit 1; }; }
12844
fi
12845
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12846
fi
12847
fi
12848
rm -f conftest.val
12849
else
12850
  ac_cv_sizeof_long=0
12851
fi
12852
fi
12853
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12854
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12855
cat >>confdefs.h <<_ACEOF
12856
#define SIZEOF_LONG $ac_cv_sizeof_long
12857
_ACEOF
12858
 
12859
 
12860
    if test "x${ac_cv_sizeof_long}" = "x8"; then
12861
      want64=true
12862
    fi
12863
  fi
12864
  if test x${want64} = xtrue; then
12865
    EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
12866
  else
12867
    EMULATION_OFILES='$(ALL_EMULATIONS)'
12868
  fi
12869
  EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
12870
else
12871
  EMULATION_OFILES=$all_emuls
12872
  EMUL_EXTRA_OFILES=$all_emul_extras
12873
fi
12874
 
12875
 
12876
 
12877
 
12878
EMULATION_LIBPATH=$all_libpath
12879
 
12880
 
12881
if test x${enable_static} = xno; then
12882
  TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
12883
else
12884
  TESTBFDLIB="../bfd/.libs/libbfd.a"
12885
fi
12886
 
12887
 
12888
target_vendor=${target_vendor=$host_vendor}
12889
case "$target_vendor" in
12890
  hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
12891
  *)  EXTRA_SHLIB_EXTENSION= ;;
12892
esac
12893
 
12894
case "$target_os" in
12895
  lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
12896
esac
12897
 
12898
if test x${EXTRA_SHLIB_EXTENSION} != x ; then
12899
 
12900
cat >>confdefs.h <<_ACEOF
12901
#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
12902
_ACEOF
12903
 
12904
fi
12905
 
12906
 
12907
 
12908
 
12909
 
12910
                    ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
12911
cat >confcache <<\_ACEOF
12912
# This file is a shell script that caches the results of configure
12913
# tests run on this system so they can be shared between configure
12914
# scripts and configure runs, see configure's option --config-cache.
12915
# It is not useful on other systems.  If it contains results you don't
12916
# want to keep, you may remove or edit it.
12917
#
12918
# config.status only pays attention to the cache file if you give it
12919
# the --recheck option to rerun configure.
12920
#
12921
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12922
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12923
# following values.
12924
 
12925
_ACEOF
12926
 
12927
# The following way of writing the cache mishandles newlines in values,
12928
# but we know of no workaround that is simple, portable, and efficient.
12929
# So, don't put newlines in cache variables' values.
12930
# Ultrix sh set writes to stderr and can't be redirected directly,
12931
# and sets the high bit in the cache file unless we assign to the vars.
12932
{
12933
  (set) 2>&1 |
12934
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
12935
    *ac_space=\ *)
12936
      # `set' does not quote correctly, so add quotes (double-quote
12937
      # substitution turns \\\\ into \\, and sed turns \\ into \).
12938
      sed -n \
12939
        "s/'/'\\\\''/g;
12940
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12941
      ;;
12942
    *)
12943
      # `set' quotes correctly as required by POSIX, so do not add quotes.
12944
      sed -n \
12945
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12946
      ;;
12947
    esac;
12948
} |
12949
  sed '
12950
     t clear
12951
     : clear
12952
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12953
     t end
12954
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12955
     : end' >>confcache
12956
if diff $cache_file confcache >/dev/null 2>&1; then :; else
12957
  if test -w $cache_file; then
12958
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12959
    cat confcache >$cache_file
12960
  else
12961
    echo "not updating unwritable cache $cache_file"
12962
  fi
12963
fi
12964
rm -f confcache
12965
 
12966
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12967
# Let make expand exec_prefix.
12968
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12969
 
12970
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12971
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12972
# trailing colons and then remove the whole line if VPATH becomes empty
12973
# (actually we leave an empty line to preserve line numbers).
12974
if test "x$srcdir" = x.; then
12975
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
12976
s/:*\$(srcdir):*/:/;
12977
s/:*\${srcdir}:*/:/;
12978
s/:*@srcdir@:*/:/;
12979
s/^\([^=]*=[     ]*\):*/\1/;
12980
s/:*$//;
12981
s/^[^=]*=[       ]*$//;
12982
}'
12983
fi
12984
 
12985
DEFS=-DHAVE_CONFIG_H
12986
 
12987
ac_libobjs=
12988
ac_ltlibobjs=
12989
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12990
  # 1. Remove the extension, and $U if already installed.
12991
  ac_i=`echo "$ac_i" |
12992
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12993
  # 2. Add them.
12994
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12995
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12996
done
12997
LIBOBJS=$ac_libobjs
12998
 
12999
LTLIBOBJS=$ac_ltlibobjs
13000
 
13001
 
13002
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13003
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13004
Usually this means the macro was only invoked conditionally." >&5
13005
echo "$as_me: error: conditional \"AMDEP\" was never defined.
13006
Usually this means the macro was only invoked conditionally." >&2;}
13007
   { (exit 1); exit 1; }; }
13008
fi
13009
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13010
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13011
Usually this means the macro was only invoked conditionally." >&5
13012
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13013
Usually this means the macro was only invoked conditionally." >&2;}
13014
   { (exit 1); exit 1; }; }
13015
fi
13016
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13017
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13018
Usually this means the macro was only invoked conditionally." >&5
13019
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13020
Usually this means the macro was only invoked conditionally." >&2;}
13021
   { (exit 1); exit 1; }; }
13022
fi
13023
if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
13024
  { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
13025
Usually this means the macro was only invoked conditionally." >&5
13026
echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
13027
Usually this means the macro was only invoked conditionally." >&2;}
13028
   { (exit 1); exit 1; }; }
13029
fi
13030
 
13031
: ${CONFIG_STATUS=./config.status}
13032
ac_clean_files_save=$ac_clean_files
13033
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13034
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13035
echo "$as_me: creating $CONFIG_STATUS" >&6;}
13036
cat >$CONFIG_STATUS <<_ACEOF
13037
#! $SHELL
13038
# Generated by $as_me.
13039
# Run this file to recreate the current configuration.
13040
# Compiler output produced by configure, useful for debugging
13041
# configure, is in config.log if it exists.
13042
 
13043
debug=false
13044
ac_cs_recheck=false
13045
ac_cs_silent=false
13046
SHELL=\${CONFIG_SHELL-$SHELL}
13047
_ACEOF
13048
 
13049
cat >>$CONFIG_STATUS <<\_ACEOF
13050
## --------------------- ##
13051
## M4sh Initialization.  ##
13052
## --------------------- ##
13053
 
13054
# Be Bourne compatible
13055
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13056
  emulate sh
13057
  NULLCMD=:
13058
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13059
  # is contrary to our usage.  Disable this feature.
13060
  alias -g '${1+"$@"}'='"$@"'
13061
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13062
  set -o posix
13063
fi
13064
DUALCASE=1; export DUALCASE # for MKS sh
13065
 
13066
# Support unset when possible.
13067
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13068
  as_unset=unset
13069
else
13070
  as_unset=false
13071
fi
13072
 
13073
 
13074
# Work around bugs in pre-3.0 UWIN ksh.
13075
$as_unset ENV MAIL MAILPATH
13076
PS1='$ '
13077
PS2='> '
13078
PS4='+ '
13079
 
13080
# NLS nuisances.
13081
for as_var in \
13082
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13083
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13084
  LC_TELEPHONE LC_TIME
13085
do
13086
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13087
    eval $as_var=C; export $as_var
13088
  else
13089
    $as_unset $as_var
13090
  fi
13091
done
13092
 
13093
# Required to use basename.
13094
if expr a : '\(a\)' >/dev/null 2>&1; then
13095
  as_expr=expr
13096
else
13097
  as_expr=false
13098
fi
13099
 
13100
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13101
  as_basename=basename
13102
else
13103
  as_basename=false
13104
fi
13105
 
13106
 
13107
# Name of the executable.
13108
as_me=`$as_basename "$0" ||
13109
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13110
         X"$0" : 'X\(//\)$' \| \
13111
         X"$0" : 'X\(/\)$' \| \
13112
         .     : '\(.\)' 2>/dev/null ||
13113
echo X/"$0" |
13114
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13115
          /^X\/\(\/\/\)$/{ s//\1/; q; }
13116
          /^X\/\(\/\).*/{ s//\1/; q; }
13117
          s/.*/./; q'`
13118
 
13119
 
13120
# PATH needs CR, and LINENO needs CR and PATH.
13121
# Avoid depending upon Character Ranges.
13122
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13123
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13124
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13125
as_cr_digits='0123456789'
13126
as_cr_alnum=$as_cr_Letters$as_cr_digits
13127
 
13128
# The user is always right.
13129
if test "${PATH_SEPARATOR+set}" != set; then
13130
  echo "#! /bin/sh" >conf$$.sh
13131
  echo  "exit 0"   >>conf$$.sh
13132
  chmod +x conf$$.sh
13133
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13134
    PATH_SEPARATOR=';'
13135
  else
13136
    PATH_SEPARATOR=:
13137
  fi
13138
  rm -f conf$$.sh
13139
fi
13140
 
13141
 
13142
  as_lineno_1=$LINENO
13143
  as_lineno_2=$LINENO
13144
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13145
  test "x$as_lineno_1" != "x$as_lineno_2" &&
13146
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13147
  # Find who we are.  Look in the path if we contain no path at all
13148
  # relative or not.
13149
  case $0 in
13150
    *[\\/]* ) as_myself=$0 ;;
13151
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152
for as_dir in $PATH
13153
do
13154
  IFS=$as_save_IFS
13155
  test -z "$as_dir" && as_dir=.
13156
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13157
done
13158
 
13159
       ;;
13160
  esac
13161
  # We did not find ourselves, most probably we were run as `sh COMMAND'
13162
  # in which case we are not to be found in the path.
13163
  if test "x$as_myself" = x; then
13164
    as_myself=$0
13165
  fi
13166
  if test ! -f "$as_myself"; then
13167
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13168
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13169
   { (exit 1); exit 1; }; }
13170
  fi
13171
  case $CONFIG_SHELL in
13172
  '')
13173
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13175
do
13176
  IFS=$as_save_IFS
13177
  test -z "$as_dir" && as_dir=.
13178
  for as_base in sh bash ksh sh5; do
13179
         case $as_dir in
13180
         /*)
13181
           if ("$as_dir/$as_base" -c '
13182
  as_lineno_1=$LINENO
13183
  as_lineno_2=$LINENO
13184
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13185
  test "x$as_lineno_1" != "x$as_lineno_2" &&
13186
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13187
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13188
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13189
             CONFIG_SHELL=$as_dir/$as_base
13190
             export CONFIG_SHELL
13191
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13192
           fi;;
13193
         esac
13194
       done
13195
done
13196
;;
13197
  esac
13198
 
13199
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13200
  # uniformly replaced by the line number.  The first 'sed' inserts a
13201
  # line-number line before each line; the second 'sed' does the real
13202
  # work.  The second script uses 'N' to pair each line-number line
13203
  # with the numbered line, and appends trailing '-' during
13204
  # substitution so that $LINENO is not a special case at line end.
13205
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13206
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13207
  sed '=' <$as_myself |
13208
    sed '
13209
      N
13210
      s,$,-,
13211
      : loop
13212
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13213
      t loop
13214
      s,-$,,
13215
      s,^['$as_cr_digits']*\n,,
13216
    ' >$as_me.lineno &&
13217
  chmod +x $as_me.lineno ||
13218
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13219
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13220
   { (exit 1); exit 1; }; }
13221
 
13222
  # Don't try to exec as it changes $[0], causing all sort of problems
13223
  # (the dirname of $[0] is not the place where we might find the
13224
  # original and so on.  Autoconf is especially sensible to this).
13225
  . ./$as_me.lineno
13226
  # Exit status is that of the last command.
13227
  exit
13228
}
13229
 
13230
 
13231
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13232
  *c*,-n*) ECHO_N= ECHO_C='
13233
' ECHO_T='      ' ;;
13234
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13235
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13236
esac
13237
 
13238
if expr a : '\(a\)' >/dev/null 2>&1; then
13239
  as_expr=expr
13240
else
13241
  as_expr=false
13242
fi
13243
 
13244
rm -f conf$$ conf$$.exe conf$$.file
13245
echo >conf$$.file
13246
if ln -s conf$$.file conf$$ 2>/dev/null; then
13247
  # We could just check for DJGPP; but this test a) works b) is more generic
13248
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13249
  if test -f conf$$.exe; then
13250
    # Don't use ln at all; we don't have any links
13251
    as_ln_s='cp -p'
13252
  else
13253
    as_ln_s='ln -s'
13254
  fi
13255
elif ln conf$$.file conf$$ 2>/dev/null; then
13256
  as_ln_s=ln
13257
else
13258
  as_ln_s='cp -p'
13259
fi
13260
rm -f conf$$ conf$$.exe conf$$.file
13261
 
13262
if mkdir -p . 2>/dev/null; then
13263
  as_mkdir_p=:
13264
else
13265
  test -d ./-p && rmdir ./-p
13266
  as_mkdir_p=false
13267
fi
13268
 
13269
as_executable_p="test -f"
13270
 
13271
# Sed expression to map a string onto a valid CPP name.
13272
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13273
 
13274
# Sed expression to map a string onto a valid variable name.
13275
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13276
 
13277
 
13278
# IFS
13279
# We need space, tab and new line, in precisely that order.
13280
as_nl='
13281
'
13282
IFS="   $as_nl"
13283
 
13284
# CDPATH.
13285
$as_unset CDPATH
13286
 
13287
exec 6>&1
13288
 
13289
# Open the log real soon, to keep \$[0] and so on meaningful, and to
13290
# report actual input values of CONFIG_FILES etc. instead of their
13291
# values after options handling.  Logging --version etc. is OK.
13292
exec 5>>config.log
13293
{
13294
  echo
13295
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13296
## Running $as_me. ##
13297
_ASBOX
13298
} >&5
13299
cat >&5 <<_CSEOF
13300
 
13301
This file was extended by $as_me, which was
13302
generated by GNU Autoconf 2.59.  Invocation command line was
13303
 
13304
  CONFIG_FILES    = $CONFIG_FILES
13305
  CONFIG_HEADERS  = $CONFIG_HEADERS
13306
  CONFIG_LINKS    = $CONFIG_LINKS
13307
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13308
  $ $0 $@
13309
 
13310
_CSEOF
13311
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13312
echo >&5
13313
_ACEOF
13314
 
13315
# Files that config.status was made for.
13316
if test -n "$ac_config_files"; then
13317
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13318
fi
13319
 
13320
if test -n "$ac_config_headers"; then
13321
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13322
fi
13323
 
13324
if test -n "$ac_config_links"; then
13325
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13326
fi
13327
 
13328
if test -n "$ac_config_commands"; then
13329
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13330
fi
13331
 
13332
cat >>$CONFIG_STATUS <<\_ACEOF
13333
 
13334
ac_cs_usage="\
13335
\`$as_me' instantiates files from templates according to the
13336
current configuration.
13337
 
13338
Usage: $0 [OPTIONS] [FILE]...
13339
 
13340
  -h, --help       print this help, then exit
13341
  -V, --version    print version number, then exit
13342
  -q, --quiet      do not print progress messages
13343
  -d, --debug      don't remove temporary files
13344
      --recheck    update $as_me by reconfiguring in the same conditions
13345
  --file=FILE[:TEMPLATE]
13346
                   instantiate the configuration file FILE
13347
  --header=FILE[:TEMPLATE]
13348
                   instantiate the configuration header FILE
13349
 
13350
Configuration files:
13351
$config_files
13352
 
13353
Configuration headers:
13354
$config_headers
13355
 
13356
Configuration commands:
13357
$config_commands
13358
 
13359
Report bugs to ."
13360
_ACEOF
13361
 
13362
cat >>$CONFIG_STATUS <<_ACEOF
13363
ac_cs_version="\\
13364
config.status
13365
configured by $0, generated by GNU Autoconf 2.59,
13366
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13367
 
13368
Copyright (C) 2003 Free Software Foundation, Inc.
13369
This config.status script is free software; the Free Software Foundation
13370
gives unlimited permission to copy, distribute and modify it."
13371
srcdir=$srcdir
13372
INSTALL="$INSTALL"
13373
_ACEOF
13374
 
13375
cat >>$CONFIG_STATUS <<\_ACEOF
13376
# If no file are specified by the user, then we need to provide default
13377
# value.  By we need to know if files were specified by the user.
13378
ac_need_defaults=:
13379
while test $# != 0
13380
do
13381
  case $1 in
13382
  --*=*)
13383
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
13384
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13385
    ac_shift=:
13386
    ;;
13387
  -*)
13388
    ac_option=$1
13389
    ac_optarg=$2
13390
    ac_shift=shift
13391
    ;;
13392
  *) # This is not an option, so the user has probably given explicit
13393
     # arguments.
13394
     ac_option=$1
13395
     ac_need_defaults=false;;
13396
  esac
13397
 
13398
  case $ac_option in
13399
  # Handling of the options.
13400
_ACEOF
13401
cat >>$CONFIG_STATUS <<\_ACEOF
13402
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13403
    ac_cs_recheck=: ;;
13404
  --version | --vers* | -V )
13405
    echo "$ac_cs_version"; exit 0 ;;
13406
  --he | --h)
13407
    # Conflict between --help and --header
13408
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
13409
Try \`$0 --help' for more information." >&5
13410
echo "$as_me: error: ambiguous option: $1
13411
Try \`$0 --help' for more information." >&2;}
13412
   { (exit 1); exit 1; }; };;
13413
  --help | --hel | -h )
13414
    echo "$ac_cs_usage"; exit 0 ;;
13415
  --debug | --d* | -d )
13416
    debug=: ;;
13417
  --file | --fil | --fi | --f )
13418
    $ac_shift
13419
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13420
    ac_need_defaults=false;;
13421
  --header | --heade | --head | --hea )
13422
    $ac_shift
13423
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13424
    ac_need_defaults=false;;
13425
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13426
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13427
    ac_cs_silent=: ;;
13428
 
13429
  # This is an error.
13430
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13431
Try \`$0 --help' for more information." >&5
13432
echo "$as_me: error: unrecognized option: $1
13433
Try \`$0 --help' for more information." >&2;}
13434
   { (exit 1); exit 1; }; } ;;
13435
 
13436
  *) ac_config_targets="$ac_config_targets $1" ;;
13437
 
13438
  esac
13439
  shift
13440
done
13441
 
13442
ac_configure_extra_args=
13443
 
13444
if $ac_cs_silent; then
13445
  exec 6>/dev/null
13446
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13447
fi
13448
 
13449
_ACEOF
13450
cat >>$CONFIG_STATUS <<_ACEOF
13451
if \$ac_cs_recheck; then
13452
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13453
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13454
fi
13455
 
13456
_ACEOF
13457
 
13458
cat >>$CONFIG_STATUS <<_ACEOF
13459
#
13460
# INIT-COMMANDS section.
13461
#
13462
 
13463
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13464
 
13465
 
13466
# The HP-UX ksh and POSIX shell print the target directory to stdout
13467
# if CDPATH is set.
13468
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13469
 
13470
sed_quote_subst='$sed_quote_subst'
13471
double_quote_subst='$double_quote_subst'
13472
delay_variable_subst='$delay_variable_subst'
13473
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13474
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13475
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13476
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13477
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13478
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13479
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13480
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13481
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13482
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13483
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13484
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13485
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13486
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13487
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13488
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13489
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13490
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13491
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13492
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13493
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13494
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13495
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13496
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13497
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13498
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13499
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13500
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13501
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13502
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13503
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13504
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13505
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13506
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13507
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13508
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13509
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13510
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13511
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13512
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13513
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13514
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13515
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13516
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"`'
13517
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13518
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13519
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13520
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13521
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13522
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13523
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13524
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13525
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13526
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13527
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13528
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13529
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13530
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13531
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13532
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13533
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13534
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13535
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13536
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13537
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13538
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13539
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13540
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13541
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13542
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13543
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13544
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13545
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13546
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13547
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13548
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13549
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13550
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13551
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13552
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13553
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13554
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13555
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13556
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13557
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13558
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13559
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13560
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13561
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13562
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13563
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13564
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13565
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13566
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13567
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13568
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13569
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13570
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13571
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13572
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13573
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13574
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13575
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13576
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13577
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13578
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13579
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13580
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13581
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13582
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13583
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13584
 
13585
LTCC='$LTCC'
13586
LTCFLAGS='$LTCFLAGS'
13587
compiler='$compiler_DEFAULT'
13588
 
13589
# Quote evaled strings.
13590
for var in SED \
13591
GREP \
13592
EGREP \
13593
FGREP \
13594
LD \
13595
NM \
13596
LN_S \
13597
lt_SP2NL \
13598
lt_NL2SP \
13599
reload_flag \
13600
deplibs_check_method \
13601
file_magic_cmd \
13602
AR \
13603
AR_FLAGS \
13604
STRIP \
13605
RANLIB \
13606
CC \
13607
CFLAGS \
13608
compiler \
13609
lt_cv_sys_global_symbol_pipe \
13610
lt_cv_sys_global_symbol_to_cdecl \
13611
lt_cv_sys_global_symbol_to_c_name_address \
13612
SHELL \
13613
ECHO \
13614
lt_prog_compiler_no_builtin_flag \
13615
lt_prog_compiler_wl \
13616
lt_prog_compiler_pic \
13617
lt_prog_compiler_static \
13618
lt_cv_prog_compiler_c_o \
13619
need_locks \
13620
shrext_cmds \
13621
export_dynamic_flag_spec \
13622
whole_archive_flag_spec \
13623
compiler_needs_object \
13624
with_gnu_ld \
13625
allow_undefined_flag \
13626
no_undefined_flag \
13627
hardcode_libdir_flag_spec \
13628
hardcode_libdir_flag_spec_ld \
13629
hardcode_libdir_separator \
13630
fix_srcfile_path \
13631
exclude_expsyms \
13632
include_expsyms \
13633
file_list_spec \
13634
variables_saved_for_relink \
13635
libname_spec \
13636
library_names_spec \
13637
soname_spec \
13638
finish_eval \
13639
old_striplib \
13640
striplib; do
13641
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13642
    *[\\\\\\\`\\"\\\$]*)
13643
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13644
      ;;
13645
    *)
13646
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13647
      ;;
13648
    esac
13649
done
13650
 
13651
# Double-quote double-evaled strings.
13652
for var in reload_cmds \
13653
old_postinstall_cmds \
13654
old_postuninstall_cmds \
13655
old_archive_cmds \
13656
extract_expsyms_cmds \
13657
old_archive_from_new_cmds \
13658
old_archive_from_expsyms_cmds \
13659
archive_cmds \
13660
archive_expsym_cmds \
13661
module_cmds \
13662
module_expsym_cmds \
13663
export_symbols_cmds \
13664
prelink_cmds \
13665
postinstall_cmds \
13666
postuninstall_cmds \
13667
finish_cmds \
13668
sys_lib_search_path_spec \
13669
sys_lib_dlsearch_path_spec; do
13670
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13671
    *[\\\\\\\`\\"\\\$]*)
13672
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13673
      ;;
13674
    *)
13675
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13676
      ;;
13677
    esac
13678
done
13679
 
13680
# Fix-up fallback echo if it was mangled by the above quoting rules.
13681
case \$lt_ECHO in
13682
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13683
  ;;
13684
esac
13685
 
13686
ac_aux_dir='$ac_aux_dir'
13687
xsi_shell='$xsi_shell'
13688
lt_shell_append='$lt_shell_append'
13689
 
13690
# See if we are running on zsh, and set the options which allow our
13691
# commands through without removal of \ escapes INIT.
13692
if test -n "\${ZSH_VERSION+set}" ; then
13693
   setopt NO_GLOB_SUBST
13694
fi
13695
 
13696
 
13697
    PACKAGE='$PACKAGE'
13698
    VERSION='$VERSION'
13699
    TIMESTAMP='$TIMESTAMP'
13700
    RM='$RM'
13701
    ofile='$ofile'
13702
 
13703
 
13704
 
13705
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13706
    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13707
    # from automake.
13708
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13709
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
13710
    LINGUAS="${LINGUAS-%UNSET%}"
13711
 
13712
 
13713
_ACEOF
13714
 
13715
 
13716
 
13717
cat >>$CONFIG_STATUS <<\_ACEOF
13718
for ac_config_target in $ac_config_targets
13719
do
13720
  case "$ac_config_target" in
13721
  # Handling of arguments.
13722
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13723
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13724
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13725
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13726
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13727
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13728
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13729
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13730
   { (exit 1); exit 1; }; };;
13731
  esac
13732
done
13733
 
13734
# If the user did not use the arguments to specify the items to instantiate,
13735
# then the envvar interface is used.  Set only those that are not.
13736
# We use the long form for the default assignment because of an extremely
13737
# bizarre bug on SunOS 4.1.3.
13738
if $ac_need_defaults; then
13739
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13740
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13741
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13742
fi
13743
 
13744
# Have a temporary directory for convenience.  Make it in the build tree
13745
# simply because there is no reason to put it here, and in addition,
13746
# creating and moving files from /tmp can sometimes cause problems.
13747
# Create a temporary directory, and hook for its removal unless debugging.
13748
$debug ||
13749
{
13750
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13751
  trap '{ (exit 1); exit 1; }' 1 2 13 15
13752
}
13753
 
13754
# Create a (secure) tmp directory for tmp files.
13755
 
13756
{
13757
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13758
  test -n "$tmp" && test -d "$tmp"
13759
}  ||
13760
{
13761
  tmp=./confstat$$-$RANDOM
13762
  (umask 077 && mkdir $tmp)
13763
} ||
13764
{
13765
   echo "$me: cannot create a temporary directory in ." >&2
13766
   { (exit 1); exit 1; }
13767
}
13768
 
13769
_ACEOF
13770
 
13771
cat >>$CONFIG_STATUS <<_ACEOF
13772
 
13773
#
13774
# CONFIG_FILES section.
13775
#
13776
 
13777
# No need to generate the scripts if there are no CONFIG_FILES.
13778
# This happens for instance when ./config.status config.h
13779
if test -n "\$CONFIG_FILES"; then
13780
  # Protect against being on the right side of a sed subst in config.status.
13781
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13782
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13783
s,@SHELL@,$SHELL,;t t
13784
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13785
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13786
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13787
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13788
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13789
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13790
s,@exec_prefix@,$exec_prefix,;t t
13791
s,@prefix@,$prefix,;t t
13792
s,@program_transform_name@,$program_transform_name,;t t
13793
s,@bindir@,$bindir,;t t
13794
s,@sbindir@,$sbindir,;t t
13795
s,@libexecdir@,$libexecdir,;t t
13796
s,@datadir@,$datadir,;t t
13797
s,@sysconfdir@,$sysconfdir,;t t
13798
s,@sharedstatedir@,$sharedstatedir,;t t
13799
s,@localstatedir@,$localstatedir,;t t
13800
s,@libdir@,$libdir,;t t
13801
s,@includedir@,$includedir,;t t
13802
s,@oldincludedir@,$oldincludedir,;t t
13803
s,@infodir@,$infodir,;t t
13804
s,@mandir@,$mandir,;t t
13805
s,@build_alias@,$build_alias,;t t
13806
s,@host_alias@,$host_alias,;t t
13807
s,@target_alias@,$target_alias,;t t
13808
s,@DEFS@,$DEFS,;t t
13809
s,@ECHO_C@,$ECHO_C,;t t
13810
s,@ECHO_N@,$ECHO_N,;t t
13811
s,@ECHO_T@,$ECHO_T,;t t
13812
s,@LIBS@,$LIBS,;t t
13813
s,@build@,$build,;t t
13814
s,@build_cpu@,$build_cpu,;t t
13815
s,@build_vendor@,$build_vendor,;t t
13816
s,@build_os@,$build_os,;t t
13817
s,@host@,$host,;t t
13818
s,@host_cpu@,$host_cpu,;t t
13819
s,@host_vendor@,$host_vendor,;t t
13820
s,@host_os@,$host_os,;t t
13821
s,@target@,$target,;t t
13822
s,@target_cpu@,$target_cpu,;t t
13823
s,@target_vendor@,$target_vendor,;t t
13824
s,@target_os@,$target_os,;t t
13825
s,@CC@,$CC,;t t
13826
s,@CFLAGS@,$CFLAGS,;t t
13827
s,@LDFLAGS@,$LDFLAGS,;t t
13828
s,@CPPFLAGS@,$CPPFLAGS,;t t
13829
s,@ac_ct_CC@,$ac_ct_CC,;t t
13830
s,@EXEEXT@,$EXEEXT,;t t
13831
s,@OBJEXT@,$OBJEXT,;t t
13832
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13833
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13834
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13835
s,@CYGPATH_W@,$CYGPATH_W,;t t
13836
s,@PACKAGE@,$PACKAGE,;t t
13837
s,@VERSION@,$VERSION,;t t
13838
s,@ACLOCAL@,$ACLOCAL,;t t
13839
s,@AUTOCONF@,$AUTOCONF,;t t
13840
s,@AUTOMAKE@,$AUTOMAKE,;t t
13841
s,@AUTOHEADER@,$AUTOHEADER,;t t
13842
s,@MAKEINFO@,$MAKEINFO,;t t
13843
s,@install_sh@,$install_sh,;t t
13844
s,@STRIP@,$STRIP,;t t
13845
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13846
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13847
s,@mkdir_p@,$mkdir_p,;t t
13848
s,@AWK@,$AWK,;t t
13849
s,@SET_MAKE@,$SET_MAKE,;t t
13850
s,@am__leading_dot@,$am__leading_dot,;t t
13851
s,@AMTAR@,$AMTAR,;t t
13852
s,@am__tar@,$am__tar,;t t
13853
s,@am__untar@,$am__untar,;t t
13854
s,@DEPDIR@,$DEPDIR,;t t
13855
s,@am__include@,$am__include,;t t
13856
s,@am__quote@,$am__quote,;t t
13857
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13858
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13859
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13860
s,@CCDEPMODE@,$CCDEPMODE,;t t
13861
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13862
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13863
s,@use_sysroot@,$use_sysroot,;t t
13864
s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13865
s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13866
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13867
s,@NO_WERROR@,$NO_WERROR,;t t
13868
s,@LIBTOOL@,$LIBTOOL,;t t
13869
s,@SED@,$SED,;t t
13870
s,@EGREP@,$EGREP,;t t
13871
s,@FGREP@,$FGREP,;t t
13872
s,@GREP@,$GREP,;t t
13873
s,@LD@,$LD,;t t
13874
s,@DUMPBIN@,$DUMPBIN,;t t
13875
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13876
s,@NM@,$NM,;t t
13877
s,@LN_S@,$LN_S,;t t
13878
s,@AR@,$AR,;t t
13879
s,@ac_ct_AR@,$ac_ct_AR,;t t
13880
s,@RANLIB@,$RANLIB,;t t
13881
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13882
s,@lt_ECHO@,$lt_ECHO,;t t
13883
s,@CPP@,$CPP,;t t
13884
s,@USE_NLS@,$USE_NLS,;t t
13885
s,@LIBINTL@,$LIBINTL,;t t
13886
s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13887
s,@INCINTL@,$INCINTL,;t t
13888
s,@XGETTEXT@,$XGETTEXT,;t t
13889
s,@GMSGFMT@,$GMSGFMT,;t t
13890
s,@POSUB@,$POSUB,;t t
13891
s,@CATALOGS@,$CATALOGS,;t t
13892
s,@DATADIRNAME@,$DATADIRNAME,;t t
13893
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13894
s,@GENCAT@,$GENCAT,;t t
13895
s,@CATOBJEXT@,$CATOBJEXT,;t t
13896
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13897
s,@MSGFMT@,$MSGFMT,;t t
13898
s,@MSGMERGE@,$MSGMERGE,;t t
13899
s,@YACC@,$YACC,;t t
13900
s,@LEX@,$LEX,;t t
13901
s,@LEXLIB@,$LEXLIB,;t t
13902
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13903
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13904
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13905
s,@MAINT@,$MAINT,;t t
13906
s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13907
s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
13908
s,@HDEFINES@,$HDEFINES,;t t
13909
s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
13910
s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
13911
s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
13912
s,@STRINGIFY@,$STRINGIFY,;t t
13913
s,@EMUL@,$EMUL,;t t
13914
s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
13915
s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
13916
s,@LIB_PATH@,$LIB_PATH,;t t
13917
s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
13918
s,@TESTBFDLIB@,$TESTBFDLIB,;t t
13919
s,@datarootdir@,$datarootdir,;t t
13920
s,@docdir@,$docdir,;t t
13921
s,@htmldir@,$htmldir,;t t
13922
s,@LIBOBJS@,$LIBOBJS,;t t
13923
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13924
/@TDIRS@/r $TDIRS
13925
s,@TDIRS@,,;t t
13926
CEOF
13927
 
13928
_ACEOF
13929
 
13930
  cat >>$CONFIG_STATUS <<\_ACEOF
13931
  # Split the substitutions into bite-sized pieces for seds with
13932
  # small command number limits, like on Digital OSF/1 and HP-UX.
13933
  ac_max_sed_lines=48
13934
  ac_sed_frag=1 # Number of current file.
13935
  ac_beg=1 # First line for current file.
13936
  ac_end=$ac_max_sed_lines # Line after last line for current file.
13937
  ac_more_lines=:
13938
  ac_sed_cmds=
13939
  while $ac_more_lines; do
13940
    if test $ac_beg -gt 1; then
13941
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13942
    else
13943
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13944
    fi
13945
    if test ! -s $tmp/subs.frag; then
13946
      ac_more_lines=false
13947
    else
13948
      # The purpose of the label and of the branching condition is to
13949
      # speed up the sed processing (if there are no `@' at all, there
13950
      # is no need to browse any of the substitutions).
13951
      # These are the two extra sed commands mentioned above.
13952
      (echo ':t
13953
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13954
      if test -z "$ac_sed_cmds"; then
13955
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13956
      else
13957
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13958
      fi
13959
      ac_sed_frag=`expr $ac_sed_frag + 1`
13960
      ac_beg=$ac_end
13961
      ac_end=`expr $ac_end + $ac_max_sed_lines`
13962
    fi
13963
  done
13964
  if test -z "$ac_sed_cmds"; then
13965
    ac_sed_cmds=cat
13966
  fi
13967
fi # test -n "$CONFIG_FILES"
13968
 
13969
_ACEOF
13970
cat >>$CONFIG_STATUS <<\_ACEOF
13971
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13972
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13973
  case $ac_file in
13974
  - | *:- | *:-:* ) # input from stdin
13975
        cat >$tmp/stdin
13976
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13977
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13978
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13979
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13980
  * )   ac_file_in=$ac_file.in ;;
13981
  esac
13982
 
13983
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13984
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13985
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13986
         X"$ac_file" : 'X\(//\)[^/]' \| \
13987
         X"$ac_file" : 'X\(//\)$' \| \
13988
         X"$ac_file" : 'X\(/\)' \| \
13989
         .     : '\(.\)' 2>/dev/null ||
13990
echo X"$ac_file" |
13991
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13992
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13993
          /^X\(\/\/\)$/{ s//\1/; q; }
13994
          /^X\(\/\).*/{ s//\1/; q; }
13995
          s/.*/./; q'`
13996
  { if $as_mkdir_p; then
13997
    mkdir -p "$ac_dir"
13998
  else
13999
    as_dir="$ac_dir"
14000
    as_dirs=
14001
    while test ! -d "$as_dir"; do
14002
      as_dirs="$as_dir $as_dirs"
14003
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
14004
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14005
         X"$as_dir" : 'X\(//\)[^/]' \| \
14006
         X"$as_dir" : 'X\(//\)$' \| \
14007
         X"$as_dir" : 'X\(/\)' \| \
14008
         .     : '\(.\)' 2>/dev/null ||
14009
echo X"$as_dir" |
14010
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14011
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14012
          /^X\(\/\/\)$/{ s//\1/; q; }
14013
          /^X\(\/\).*/{ s//\1/; q; }
14014
          s/.*/./; q'`
14015
    done
14016
    test ! -n "$as_dirs" || mkdir $as_dirs
14017
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14018
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14019
   { (exit 1); exit 1; }; }; }
14020
 
14021
  ac_builddir=.
14022
 
14023
if test "$ac_dir" != .; then
14024
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14025
  # A "../" for each directory in $ac_dir_suffix.
14026
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14027
else
14028
  ac_dir_suffix= ac_top_builddir=
14029
fi
14030
 
14031
case $srcdir in
14032
  .)  # No --srcdir option.  We are building in place.
14033
    ac_srcdir=.
14034
    if test -z "$ac_top_builddir"; then
14035
       ac_top_srcdir=.
14036
    else
14037
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14038
    fi ;;
14039
  [\\/]* | ?:[\\/]* )  # Absolute path.
14040
    ac_srcdir=$srcdir$ac_dir_suffix;
14041
    ac_top_srcdir=$srcdir ;;
14042
  *) # Relative path.
14043
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14044
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
14045
esac
14046
 
14047
# Do not use `cd foo && pwd` to compute absolute paths, because
14048
# the directories may not exist.
14049
case `pwd` in
14050
.) ac_abs_builddir="$ac_dir";;
14051
*)
14052
  case "$ac_dir" in
14053
  .) ac_abs_builddir=`pwd`;;
14054
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14055
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
14056
  esac;;
14057
esac
14058
case $ac_abs_builddir in
14059
.) ac_abs_top_builddir=${ac_top_builddir}.;;
14060
*)
14061
  case ${ac_top_builddir}. in
14062
  .) ac_abs_top_builddir=$ac_abs_builddir;;
14063
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14064
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14065
  esac;;
14066
esac
14067
case $ac_abs_builddir in
14068
.) ac_abs_srcdir=$ac_srcdir;;
14069
*)
14070
  case $ac_srcdir in
14071
  .) ac_abs_srcdir=$ac_abs_builddir;;
14072
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14073
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14074
  esac;;
14075
esac
14076
case $ac_abs_builddir in
14077
.) ac_abs_top_srcdir=$ac_top_srcdir;;
14078
*)
14079
  case $ac_top_srcdir in
14080
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
14081
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14082
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14083
  esac;;
14084
esac
14085
 
14086
 
14087
  case $INSTALL in
14088
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14089
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14090
  esac
14091
 
14092
  if test x"$ac_file" != x-; then
14093
    { echo "$as_me:$LINENO: creating $ac_file" >&5
14094
echo "$as_me: creating $ac_file" >&6;}
14095
    rm -f "$ac_file"
14096
  fi
14097
  # Let's still pretend it is `configure' which instantiates (i.e., don't
14098
  # use $as_me), people would be surprised to read:
14099
  #    /* config.h.  Generated by config.status.  */
14100
  if test x"$ac_file" = x-; then
14101
    configure_input=
14102
  else
14103
    configure_input="$ac_file.  "
14104
  fi
14105
  configure_input=$configure_input"Generated from `echo $ac_file_in |
14106
                                     sed 's,.*/,,'` by configure."
14107
 
14108
  # First look for the input files in the build tree, otherwise in the
14109
  # src tree.
14110
  ac_file_inputs=`IFS=:
14111
    for f in $ac_file_in; do
14112
      case $f in
14113
      -) echo $tmp/stdin ;;
14114
      [\\/$]*)
14115
         # Absolute (can't be DOS-style, as IFS=:)
14116
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14117
echo "$as_me: error: cannot find input file: $f" >&2;}
14118
   { (exit 1); exit 1; }; }
14119
         echo "$f";;
14120
      *) # Relative
14121
         if test -f "$f"; then
14122
           # Build tree
14123
           echo "$f"
14124
         elif test -f "$srcdir/$f"; then
14125
           # Source tree
14126
           echo "$srcdir/$f"
14127
         else
14128
           # /dev/null tree
14129
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14130
echo "$as_me: error: cannot find input file: $f" >&2;}
14131
   { (exit 1); exit 1; }; }
14132
         fi;;
14133
      esac
14134
    done` || { (exit 1); exit 1; }
14135
_ACEOF
14136
cat >>$CONFIG_STATUS <<_ACEOF
14137
  sed "$ac_vpsub
14138
$extrasub
14139
_ACEOF
14140
cat >>$CONFIG_STATUS <<\_ACEOF
14141
:t
14142
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14143
s,@configure_input@,$configure_input,;t t
14144
s,@srcdir@,$ac_srcdir,;t t
14145
s,@abs_srcdir@,$ac_abs_srcdir,;t t
14146
s,@top_srcdir@,$ac_top_srcdir,;t t
14147
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14148
s,@builddir@,$ac_builddir,;t t
14149
s,@abs_builddir@,$ac_abs_builddir,;t t
14150
s,@top_builddir@,$ac_top_builddir,;t t
14151
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14152
s,@INSTALL@,$ac_INSTALL,;t t
14153
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14154
  rm -f $tmp/stdin
14155
  if test x"$ac_file" != x-; then
14156
    mv $tmp/out $ac_file
14157
  else
14158
    cat $tmp/out
14159
    rm -f $tmp/out
14160
  fi
14161
 
14162
done
14163
_ACEOF
14164
cat >>$CONFIG_STATUS <<\_ACEOF
14165
 
14166
#
14167
# CONFIG_HEADER section.
14168
#
14169
 
14170
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14171
# NAME is the cpp macro being defined and VALUE is the value it is being given.
14172
#
14173
# ac_d sets the value in "#define NAME VALUE" lines.
14174
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
14175
ac_dB='[         ].*$,\1#\2'
14176
ac_dC=' '
14177
ac_dD=',;t'
14178
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14179
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14180
ac_uB='$,\1#\2define\3'
14181
ac_uC=' '
14182
ac_uD=',;t'
14183
 
14184
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14185
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14186
  case $ac_file in
14187
  - | *:- | *:-:* ) # input from stdin
14188
        cat >$tmp/stdin
14189
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14190
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14191
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14192
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14193
  * )   ac_file_in=$ac_file.in ;;
14194
  esac
14195
 
14196
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14197
echo "$as_me: creating $ac_file" >&6;}
14198
 
14199
  # First look for the input files in the build tree, otherwise in the
14200
  # src tree.
14201
  ac_file_inputs=`IFS=:
14202
    for f in $ac_file_in; do
14203
      case $f in
14204
      -) echo $tmp/stdin ;;
14205
      [\\/$]*)
14206
         # Absolute (can't be DOS-style, as IFS=:)
14207
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14208
echo "$as_me: error: cannot find input file: $f" >&2;}
14209
   { (exit 1); exit 1; }; }
14210
         # Do quote $f, to prevent DOS paths from being IFS'd.
14211
         echo "$f";;
14212
      *) # Relative
14213
         if test -f "$f"; then
14214
           # Build tree
14215
           echo "$f"
14216
         elif test -f "$srcdir/$f"; then
14217
           # Source tree
14218
           echo "$srcdir/$f"
14219
         else
14220
           # /dev/null tree
14221
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14222
echo "$as_me: error: cannot find input file: $f" >&2;}
14223
   { (exit 1); exit 1; }; }
14224
         fi;;
14225
      esac
14226
    done` || { (exit 1); exit 1; }
14227
  # Remove the trailing spaces.
14228
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
14229
 
14230
_ACEOF
14231
 
14232
# Transform confdefs.h into two sed scripts, `conftest.defines' and
14233
# `conftest.undefs', that substitutes the proper values into
14234
# config.h.in to produce config.h.  The first handles `#define'
14235
# templates, and the second `#undef' templates.
14236
# And first: Protect against being on the right side of a sed subst in
14237
# config.status.  Protect against being in an unquoted here document
14238
# in config.status.
14239
rm -f conftest.defines conftest.undefs
14240
# Using a here document instead of a string reduces the quoting nightmare.
14241
# Putting comments in sed scripts is not portable.
14242
#
14243
# `end' is used to avoid that the second main sed command (meant for
14244
# 0-ary CPP macros) applies to n-ary macro definitions.
14245
# See the Autoconf documentation for `clear'.
14246
cat >confdef2sed.sed <<\_ACEOF
14247
s/[\\&,]/\\&/g
14248
s,[\\$`],\\&,g
14249
t clear
14250
: clear
14251
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14252
t end
14253
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14254
: end
14255
_ACEOF
14256
# If some macros were called several times there might be several times
14257
# the same #defines, which is useless.  Nevertheless, we may not want to
14258
# sort them, since we want the *last* AC-DEFINE to be honored.
14259
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14260
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14261
rm -f confdef2sed.sed
14262
 
14263
# This sed command replaces #undef with comments.  This is necessary, for
14264
# example, in the case of _POSIX_SOURCE, which is predefined and required
14265
# on some systems where configure will not decide to define it.
14266
cat >>conftest.undefs <<\_ACEOF
14267
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14268
_ACEOF
14269
 
14270
# Break up conftest.defines because some shells have a limit on the size
14271
# of here documents, and old seds have small limits too (100 cmds).
14272
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14273
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14274
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14275
echo '  :' >>$CONFIG_STATUS
14276
rm -f conftest.tail
14277
while grep . conftest.defines >/dev/null
14278
do
14279
  # Write a limited-size here document to $tmp/defines.sed.
14280
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
14281
  # Speed up: don't consider the non `#define' lines.
14282
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
14283
  # Work around the forget-to-reset-the-flag bug.
14284
  echo 't clr' >>$CONFIG_STATUS
14285
  echo ': clr' >>$CONFIG_STATUS
14286
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14287
  echo 'CEOF
14288
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
14289
  rm -f $tmp/in
14290
  mv $tmp/out $tmp/in
14291
' >>$CONFIG_STATUS
14292
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14293
  rm -f conftest.defines
14294
  mv conftest.tail conftest.defines
14295
done
14296
rm -f conftest.defines
14297
echo '  fi # grep' >>$CONFIG_STATUS
14298
echo >>$CONFIG_STATUS
14299
 
14300
# Break up conftest.undefs because some shells have a limit on the size
14301
# of here documents, and old seds have small limits too (100 cmds).
14302
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
14303
rm -f conftest.tail
14304
while grep . conftest.undefs >/dev/null
14305
do
14306
  # Write a limited-size here document to $tmp/undefs.sed.
14307
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
14308
  # Speed up: don't consider the non `#undef'
14309
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
14310
  # Work around the forget-to-reset-the-flag bug.
14311
  echo 't clr' >>$CONFIG_STATUS
14312
  echo ': clr' >>$CONFIG_STATUS
14313
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14314
  echo 'CEOF
14315
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14316
  rm -f $tmp/in
14317
  mv $tmp/out $tmp/in
14318
' >>$CONFIG_STATUS
14319
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14320
  rm -f conftest.undefs
14321
  mv conftest.tail conftest.undefs
14322
done
14323
rm -f conftest.undefs
14324
 
14325
cat >>$CONFIG_STATUS <<\_ACEOF
14326
  # Let's still pretend it is `configure' which instantiates (i.e., don't
14327
  # use $as_me), people would be surprised to read:
14328
  #    /* config.h.  Generated by config.status.  */
14329
  if test x"$ac_file" = x-; then
14330
    echo "/* Generated by configure.  */" >$tmp/config.h
14331
  else
14332
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
14333
  fi
14334
  cat $tmp/in >>$tmp/config.h
14335
  rm -f $tmp/in
14336
  if test x"$ac_file" != x-; then
14337
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14338
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14339
echo "$as_me: $ac_file is unchanged" >&6;}
14340
    else
14341
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14342
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14343
         X"$ac_file" : 'X\(//\)[^/]' \| \
14344
         X"$ac_file" : 'X\(//\)$' \| \
14345
         X"$ac_file" : 'X\(/\)' \| \
14346
         .     : '\(.\)' 2>/dev/null ||
14347
echo X"$ac_file" |
14348
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14349
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14350
          /^X\(\/\/\)$/{ s//\1/; q; }
14351
          /^X\(\/\).*/{ s//\1/; q; }
14352
          s/.*/./; q'`
14353
      { if $as_mkdir_p; then
14354
    mkdir -p "$ac_dir"
14355
  else
14356
    as_dir="$ac_dir"
14357
    as_dirs=
14358
    while test ! -d "$as_dir"; do
14359
      as_dirs="$as_dir $as_dirs"
14360
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
14361
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14362
         X"$as_dir" : 'X\(//\)[^/]' \| \
14363
         X"$as_dir" : 'X\(//\)$' \| \
14364
         X"$as_dir" : 'X\(/\)' \| \
14365
         .     : '\(.\)' 2>/dev/null ||
14366
echo X"$as_dir" |
14367
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14368
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14369
          /^X\(\/\/\)$/{ s//\1/; q; }
14370
          /^X\(\/\).*/{ s//\1/; q; }
14371
          s/.*/./; q'`
14372
    done
14373
    test ! -n "$as_dirs" || mkdir $as_dirs
14374
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14375
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14376
   { (exit 1); exit 1; }; }; }
14377
 
14378
      rm -f $ac_file
14379
      mv $tmp/config.h $ac_file
14380
    fi
14381
  else
14382
    cat $tmp/config.h
14383
    rm -f $tmp/config.h
14384
  fi
14385
# Compute $ac_file's index in $config_headers.
14386
_am_stamp_count=1
14387
for _am_header in $config_headers :; do
14388
  case $_am_header in
14389
    $ac_file | $ac_file:* )
14390
      break ;;
14391
    * )
14392
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14393
  esac
14394
done
14395
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14396
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14397
         X$ac_file : 'X\(//\)[^/]' \| \
14398
         X$ac_file : 'X\(//\)$' \| \
14399
         X$ac_file : 'X\(/\)' \| \
14400
         .     : '\(.\)' 2>/dev/null ||
14401
echo X$ac_file |
14402
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14403
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14404
          /^X\(\/\/\)$/{ s//\1/; q; }
14405
          /^X\(\/\).*/{ s//\1/; q; }
14406
          s/.*/./; q'`/stamp-h$_am_stamp_count
14407
done
14408
_ACEOF
14409
cat >>$CONFIG_STATUS <<\_ACEOF
14410
 
14411
#
14412
# CONFIG_COMMANDS section.
14413
#
14414
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14415
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14416
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14417
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14418
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14419
         X"$ac_dest" : 'X\(//\)[^/]' \| \
14420
         X"$ac_dest" : 'X\(//\)$' \| \
14421
         X"$ac_dest" : 'X\(/\)' \| \
14422
         .     : '\(.\)' 2>/dev/null ||
14423
echo X"$ac_dest" |
14424
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14425
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14426
          /^X\(\/\/\)$/{ s//\1/; q; }
14427
          /^X\(\/\).*/{ s//\1/; q; }
14428
          s/.*/./; q'`
14429
  { if $as_mkdir_p; then
14430
    mkdir -p "$ac_dir"
14431
  else
14432
    as_dir="$ac_dir"
14433
    as_dirs=
14434
    while test ! -d "$as_dir"; do
14435
      as_dirs="$as_dir $as_dirs"
14436
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
14437
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14438
         X"$as_dir" : 'X\(//\)[^/]' \| \
14439
         X"$as_dir" : 'X\(//\)$' \| \
14440
         X"$as_dir" : 'X\(/\)' \| \
14441
         .     : '\(.\)' 2>/dev/null ||
14442
echo X"$as_dir" |
14443
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14444
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14445
          /^X\(\/\/\)$/{ s//\1/; q; }
14446
          /^X\(\/\).*/{ s//\1/; q; }
14447
          s/.*/./; q'`
14448
    done
14449
    test ! -n "$as_dirs" || mkdir $as_dirs
14450
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14451
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14452
   { (exit 1); exit 1; }; }; }
14453
 
14454
  ac_builddir=.
14455
 
14456
if test "$ac_dir" != .; then
14457
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14458
  # A "../" for each directory in $ac_dir_suffix.
14459
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14460
else
14461
  ac_dir_suffix= ac_top_builddir=
14462
fi
14463
 
14464
case $srcdir in
14465
  .)  # No --srcdir option.  We are building in place.
14466
    ac_srcdir=.
14467
    if test -z "$ac_top_builddir"; then
14468
       ac_top_srcdir=.
14469
    else
14470
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14471
    fi ;;
14472
  [\\/]* | ?:[\\/]* )  # Absolute path.
14473
    ac_srcdir=$srcdir$ac_dir_suffix;
14474
    ac_top_srcdir=$srcdir ;;
14475
  *) # Relative path.
14476
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14477
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
14478
esac
14479
 
14480
# Do not use `cd foo && pwd` to compute absolute paths, because
14481
# the directories may not exist.
14482
case `pwd` in
14483
.) ac_abs_builddir="$ac_dir";;
14484
*)
14485
  case "$ac_dir" in
14486
  .) ac_abs_builddir=`pwd`;;
14487
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14488
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
14489
  esac;;
14490
esac
14491
case $ac_abs_builddir in
14492
.) ac_abs_top_builddir=${ac_top_builddir}.;;
14493
*)
14494
  case ${ac_top_builddir}. in
14495
  .) ac_abs_top_builddir=$ac_abs_builddir;;
14496
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14497
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14498
  esac;;
14499
esac
14500
case $ac_abs_builddir in
14501
.) ac_abs_srcdir=$ac_srcdir;;
14502
*)
14503
  case $ac_srcdir in
14504
  .) ac_abs_srcdir=$ac_abs_builddir;;
14505
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14506
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14507
  esac;;
14508
esac
14509
case $ac_abs_builddir in
14510
.) ac_abs_top_srcdir=$ac_top_srcdir;;
14511
*)
14512
  case $ac_top_srcdir in
14513
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
14514
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14515
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14516
  esac;;
14517
esac
14518
 
14519
 
14520
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14521
echo "$as_me: executing $ac_dest commands" >&6;}
14522
  case $ac_dest in
14523
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14524
  # Strip MF so we end up with the name of the file.
14525
  mf=`echo "$mf" | sed -e 's/:.*$//'`
14526
  # Check whether this is an Automake generated Makefile or not.
14527
  # We used to match only the files named `Makefile.in', but
14528
  # some people rename them; so instead we look at the file content.
14529
  # Grep'ing the first line is not enough: some people post-process
14530
  # each Makefile.in and add a new line on top of each file to say so.
14531
  # So let's grep whole file.
14532
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14533
    dirpart=`(dirname "$mf") 2>/dev/null ||
14534
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14535
         X"$mf" : 'X\(//\)[^/]' \| \
14536
         X"$mf" : 'X\(//\)$' \| \
14537
         X"$mf" : 'X\(/\)' \| \
14538
         .     : '\(.\)' 2>/dev/null ||
14539
echo X"$mf" |
14540
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14541
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14542
          /^X\(\/\/\)$/{ s//\1/; q; }
14543
          /^X\(\/\).*/{ s//\1/; q; }
14544
          s/.*/./; q'`
14545
  else
14546
    continue
14547
  fi
14548
  # Extract the definition of DEPDIR, am__include, and am__quote
14549
  # from the Makefile without running `make'.
14550
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14551
  test -z "$DEPDIR" && continue
14552
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
14553
  test -z "am__include" && continue
14554
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14555
  # When using ansi2knr, U may be empty or an underscore; expand it
14556
  U=`sed -n 's/^U = //p' < "$mf"`
14557
  # Find all dependency output files, they are included files with
14558
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
14559
  # simplest approach to changing $(DEPDIR) to its actual value in the
14560
  # expansion.
14561
  for file in `sed -n "
14562
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14563
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14564
    # Make sure the directory exists.
14565
    test -f "$dirpart/$file" && continue
14566
    fdir=`(dirname "$file") 2>/dev/null ||
14567
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14568
         X"$file" : 'X\(//\)[^/]' \| \
14569
         X"$file" : 'X\(//\)$' \| \
14570
         X"$file" : 'X\(/\)' \| \
14571
         .     : '\(.\)' 2>/dev/null ||
14572
echo X"$file" |
14573
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14574
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14575
          /^X\(\/\/\)$/{ s//\1/; q; }
14576
          /^X\(\/\).*/{ s//\1/; q; }
14577
          s/.*/./; q'`
14578
    { if $as_mkdir_p; then
14579
    mkdir -p $dirpart/$fdir
14580
  else
14581
    as_dir=$dirpart/$fdir
14582
    as_dirs=
14583
    while test ! -d "$as_dir"; do
14584
      as_dirs="$as_dir $as_dirs"
14585
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
14586
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14587
         X"$as_dir" : 'X\(//\)[^/]' \| \
14588
         X"$as_dir" : 'X\(//\)$' \| \
14589
         X"$as_dir" : 'X\(/\)' \| \
14590
         .     : '\(.\)' 2>/dev/null ||
14591
echo X"$as_dir" |
14592
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14593
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14594
          /^X\(\/\/\)$/{ s//\1/; q; }
14595
          /^X\(\/\).*/{ s//\1/; q; }
14596
          s/.*/./; q'`
14597
    done
14598
    test ! -n "$as_dirs" || mkdir $as_dirs
14599
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14600
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14601
   { (exit 1); exit 1; }; }; }
14602
 
14603
    # echo "creating $dirpart/$file"
14604
    echo '# dummy' > "$dirpart/$file"
14605
  done
14606
done
14607
 ;;
14608
    libtool )
14609
 
14610
    # See if we are running on zsh, and set the options which allow our
14611
    # commands through without removal of \ escapes.
14612
    if test -n "${ZSH_VERSION+set}" ; then
14613
      setopt NO_GLOB_SUBST
14614
    fi
14615
 
14616
    cfgfile="${ofile}T"
14617
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14618
    $RM "$cfgfile"
14619
 
14620
    cat <<_LT_EOF >> "$cfgfile"
14621
#! $SHELL
14622
 
14623
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14624
# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14625
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14626
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14627
#
14628
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14629
# 2006, 2007 Free Software Foundation, Inc.
14630
#
14631
# This file is part of GNU Libtool:
14632
# Originally by Gordon Matzigkeit , 1996
14633
#
14634
# This program is free software; you can redistribute it and/or modify
14635
# it under the terms of the GNU General Public License as published by
14636
# the Free Software Foundation; either version 2 of the License, or
14637
# (at your option) any later version.
14638
#
14639
# This program is distributed in the hope that it will be useful, but
14640
# WITHOUT ANY WARRANTY; without even the implied warranty of
14641
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14642
# General Public License for more details.
14643
#
14644
# You should have received a copy of the GNU General Public License
14645
# along with this program; if not, a copy can be downloaded from
14646
# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14647
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14648
# MA 02110-1301, USA.
14649
#
14650
# As a special exception to the GNU General Public License, if you
14651
# distribute this file as part of a program that contains a
14652
# configuration script generated by Autoconf, you may include it under
14653
# the same distribution terms that you use for the rest of that program.
14654
 
14655
 
14656
# The names of the tagged configurations supported by this script.
14657
available_tags=""
14658
 
14659
# ### BEGIN LIBTOOL CONFIG
14660
 
14661
# Which release of libtool.m4 was used?
14662
macro_version=$macro_version
14663
macro_revision=$macro_revision
14664
 
14665
# Whether or not to build shared libraries.
14666
build_libtool_libs=$enable_shared
14667
 
14668
# Whether or not to build static libraries.
14669
build_old_libs=$enable_static
14670
 
14671
# What type of objects to build.
14672
pic_mode=$pic_mode
14673
 
14674
# Whether or not to optimize for fast installation.
14675
fast_install=$enable_fast_install
14676
 
14677
# The host system.
14678
host_alias=$host_alias
14679
host=$host
14680
host_os=$host_os
14681
 
14682
# The build system.
14683
build_alias=$build_alias
14684
build=$build
14685
build_os=$build_os
14686
 
14687
# A sed program that does not truncate output.
14688
SED=$lt_SED
14689
 
14690
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14691
Xsed="\$SED -e 1s/^X//"
14692
 
14693
# A grep program that handles long lines.
14694
GREP=$lt_GREP
14695
 
14696
# An ERE matcher.
14697
EGREP=$lt_EGREP
14698
 
14699
# A literal string matcher.
14700
FGREP=$lt_FGREP
14701
 
14702
# A BSD- or MS-compatible name lister.
14703
NM=$lt_NM
14704
 
14705
# Whether we need soft or hard links.
14706
LN_S=$lt_LN_S
14707
 
14708
# What is the maximum length of a command?
14709
max_cmd_len=$max_cmd_len
14710
 
14711
# Object file suffix (normally "o").
14712
objext=$ac_objext
14713
 
14714
# Executable file suffix (normally "").
14715
exeext=$exeext
14716
 
14717
# whether the shell understands "unset".
14718
lt_unset=$lt_unset
14719
 
14720
# turn spaces into newlines.
14721
SP2NL=$lt_lt_SP2NL
14722
 
14723
# turn newlines into spaces.
14724
NL2SP=$lt_lt_NL2SP
14725
 
14726
# How to create reloadable object files.
14727
reload_flag=$lt_reload_flag
14728
reload_cmds=$lt_reload_cmds
14729
 
14730
# Method to check whether dependent libraries are shared objects.
14731
deplibs_check_method=$lt_deplibs_check_method
14732
 
14733
# Command to use when deplibs_check_method == "file_magic".
14734
file_magic_cmd=$lt_file_magic_cmd
14735
 
14736
# The archiver.
14737
AR=$lt_AR
14738
AR_FLAGS=$lt_AR_FLAGS
14739
 
14740
# A symbol stripping program.
14741
STRIP=$lt_STRIP
14742
 
14743
# Commands used to install an old-style archive.
14744
RANLIB=$lt_RANLIB
14745
old_postinstall_cmds=$lt_old_postinstall_cmds
14746
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14747
 
14748
# A C compiler.
14749
LTCC=$lt_CC
14750
 
14751
# LTCC compiler flags.
14752
LTCFLAGS=$lt_CFLAGS
14753
 
14754
# Take the output of nm and produce a listing of raw symbols and C names.
14755
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14756
 
14757
# Transform the output of nm in a proper C declaration.
14758
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14759
 
14760
# Transform the output of nm in a C name address pair.
14761
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14762
 
14763
# The name of the directory that contains temporary libtool files.
14764
objdir=$objdir
14765
 
14766
# Shell to use when invoking shell scripts.
14767
SHELL=$lt_SHELL
14768
 
14769
# An echo program that does not interpret backslashes.
14770
ECHO=$lt_ECHO
14771
 
14772
# Used to examine libraries when file_magic_cmd begins with "file".
14773
MAGIC_CMD=$MAGIC_CMD
14774
 
14775
# Must we lock files when doing compilation?
14776
need_locks=$lt_need_locks
14777
 
14778
# Old archive suffix (normally "a").
14779
libext=$libext
14780
 
14781
# Shared library suffix (normally ".so").
14782
shrext_cmds=$lt_shrext_cmds
14783
 
14784
# The commands to extract the exported symbol list from a shared archive.
14785
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14786
 
14787
# Variables whose values should be saved in libtool wrapper scripts and
14788
# restored at link time.
14789
variables_saved_for_relink=$lt_variables_saved_for_relink
14790
 
14791
# Do we need the "lib" prefix for modules?
14792
need_lib_prefix=$need_lib_prefix
14793
 
14794
# Do we need a version for libraries?
14795
need_version=$need_version
14796
 
14797
# Library versioning type.
14798
version_type=$version_type
14799
 
14800
# Shared library runtime path variable.
14801
runpath_var=$runpath_var
14802
 
14803
# Shared library path variable.
14804
shlibpath_var=$shlibpath_var
14805
 
14806
# Is shlibpath searched before the hard-coded library search path?
14807
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14808
 
14809
# Format of library name prefix.
14810
libname_spec=$lt_libname_spec
14811
 
14812
# List of archive names.  First name is the real one, the rest are links.
14813
# The last name is the one that the linker finds with -lNAME
14814
library_names_spec=$lt_library_names_spec
14815
 
14816
# The coded name of the library, if different from the real name.
14817
soname_spec=$lt_soname_spec
14818
 
14819
# Command to use after installation of a shared archive.
14820
postinstall_cmds=$lt_postinstall_cmds
14821
 
14822
# Command to use after uninstallation of a shared archive.
14823
postuninstall_cmds=$lt_postuninstall_cmds
14824
 
14825
# Commands used to finish a libtool library installation in a directory.
14826
finish_cmds=$lt_finish_cmds
14827
 
14828
# As "finish_cmds", except a single script fragment to be evaled but
14829
# not shown.
14830
finish_eval=$lt_finish_eval
14831
 
14832
# Whether we should hardcode library paths into libraries.
14833
hardcode_into_libs=$hardcode_into_libs
14834
 
14835
# Compile-time system search path for libraries.
14836
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14837
 
14838
# Run-time system search path for libraries.
14839
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14840
 
14841
# Whether dlopen is supported.
14842
dlopen_support=$enable_dlopen
14843
 
14844
# Whether dlopen of programs is supported.
14845
dlopen_self=$enable_dlopen_self
14846
 
14847
# Whether dlopen of statically linked programs is supported.
14848
dlopen_self_static=$enable_dlopen_self_static
14849
 
14850
# Commands to strip libraries.
14851
old_striplib=$lt_old_striplib
14852
striplib=$lt_striplib
14853
 
14854
 
14855
# The linker used to build libraries.
14856
LD=$lt_LD
14857
 
14858
# Commands used to build an old-style archive.
14859
old_archive_cmds=$lt_old_archive_cmds
14860
 
14861
# A language specific compiler.
14862
CC=$lt_compiler
14863
 
14864
# Is the compiler the GNU compiler?
14865
with_gcc=$GCC
14866
 
14867
# Compiler flag to turn off builtin functions.
14868
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14869
 
14870
# How to pass a linker flag through the compiler.
14871
wl=$lt_lt_prog_compiler_wl
14872
 
14873
# Additional compiler flags for building library objects.
14874
pic_flag=$lt_lt_prog_compiler_pic
14875
 
14876
# Compiler flag to prevent dynamic linking.
14877
link_static_flag=$lt_lt_prog_compiler_static
14878
 
14879
# Does compiler simultaneously support -c and -o options?
14880
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14881
 
14882
# Whether or not to add -lc for building shared libraries.
14883
build_libtool_need_lc=$archive_cmds_need_lc
14884
 
14885
# Whether or not to disallow shared libs when runtime libs are static.
14886
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14887
 
14888
# Compiler flag to allow reflexive dlopens.
14889
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14890
 
14891
# Compiler flag to generate shared objects directly from archives.
14892
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14893
 
14894
# Whether the compiler copes with passing no objects directly.
14895
compiler_needs_object=$lt_compiler_needs_object
14896
 
14897
# Create an old-style archive from a shared archive.
14898
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14899
 
14900
# Create a temporary old-style archive to link instead of a shared archive.
14901
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14902
 
14903
# Commands used to build a shared archive.
14904
archive_cmds=$lt_archive_cmds
14905
archive_expsym_cmds=$lt_archive_expsym_cmds
14906
 
14907
# Commands used to build a loadable module if different from building
14908
# a shared archive.
14909
module_cmds=$lt_module_cmds
14910
module_expsym_cmds=$lt_module_expsym_cmds
14911
 
14912
# Whether we are building with GNU ld or not.
14913
with_gnu_ld=$lt_with_gnu_ld
14914
 
14915
# Flag that allows shared libraries with undefined symbols to be built.
14916
allow_undefined_flag=$lt_allow_undefined_flag
14917
 
14918
# Flag that enforces no undefined symbols.
14919
no_undefined_flag=$lt_no_undefined_flag
14920
 
14921
# Flag to hardcode \$libdir into a binary during linking.
14922
# This must work even if \$libdir does not exist
14923
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14924
 
14925
# If ld is used when linking, flag to hardcode \$libdir into a binary
14926
# during linking.  This must work even if \$libdir does not exist.
14927
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14928
 
14929
# Whether we need a single "-rpath" flag with a separated argument.
14930
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14931
 
14932
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14933
# DIR into the resulting binary.
14934
hardcode_direct=$hardcode_direct
14935
 
14936
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14937
# DIR into the resulting binary and the resulting library dependency is
14938
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14939
# library is relocated.
14940
hardcode_direct_absolute=$hardcode_direct_absolute
14941
 
14942
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14943
# into the resulting binary.
14944
hardcode_minus_L=$hardcode_minus_L
14945
 
14946
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14947
# into the resulting binary.
14948
hardcode_shlibpath_var=$hardcode_shlibpath_var
14949
 
14950
# Set to "yes" if building a shared library automatically hardcodes DIR
14951
# into the library and all subsequent libraries and executables linked
14952
# against it.
14953
hardcode_automatic=$hardcode_automatic
14954
 
14955
# Set to yes if linker adds runtime paths of dependent libraries
14956
# to runtime path list.
14957
inherit_rpath=$inherit_rpath
14958
 
14959
# Whether libtool must link a program against all its dependency libraries.
14960
link_all_deplibs=$link_all_deplibs
14961
 
14962
# Fix the shell variable \$srcfile for the compiler.
14963
fix_srcfile_path=$lt_fix_srcfile_path
14964
 
14965
# Set to "yes" if exported symbols are required.
14966
always_export_symbols=$always_export_symbols
14967
 
14968
# The commands to list exported symbols.
14969
export_symbols_cmds=$lt_export_symbols_cmds
14970
 
14971
# Symbols that should not be listed in the preloaded symbols.
14972
exclude_expsyms=$lt_exclude_expsyms
14973
 
14974
# Symbols that must always be exported.
14975
include_expsyms=$lt_include_expsyms
14976
 
14977
# Commands necessary for linking programs (against libraries) with templates.
14978
prelink_cmds=$lt_prelink_cmds
14979
 
14980
# Specify filename containing input files.
14981
file_list_spec=$lt_file_list_spec
14982
 
14983
# How to hardcode a shared library path into an executable.
14984
hardcode_action=$hardcode_action
14985
 
14986
# ### END LIBTOOL CONFIG
14987
 
14988
_LT_EOF
14989
 
14990
  case $host_os in
14991
  aix3*)
14992
    cat <<\_LT_EOF >> "$cfgfile"
14993
# AIX sometimes has problems with the GCC collect2 program.  For some
14994
# reason, if we set the COLLECT_NAMES environment variable, the problems
14995
# vanish in a puff of smoke.
14996
if test "X${COLLECT_NAMES+set}" != Xset; then
14997
  COLLECT_NAMES=
14998
  export COLLECT_NAMES
14999
fi
15000
_LT_EOF
15001
    ;;
15002
  esac
15003
 
15004
 
15005
ltmain="$ac_aux_dir/ltmain.sh"
15006
 
15007
 
15008
  # We use sed instead of cat because bash on DJGPP gets confused if
15009
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15010
  # text mode, it properly converts lines to CR/LF.  This bash problem
15011
  # is reportedly fixed, but why not run on old versions too?
15012
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15013
    || (rm -f "$cfgfile"; exit 1)
15014
 
15015
  case $xsi_shell in
15016
  yes)
15017
    cat << \_LT_EOF >> "$cfgfile"
15018
# func_dirname file append nondir_replacement
15019
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15020
# otherwise set result to NONDIR_REPLACEMENT.
15021
func_dirname ()
15022
{
15023
  case ${1} in
15024
    */*) func_dirname_result="${1%/*}${2}" ;;
15025
    *  ) func_dirname_result="${3}" ;;
15026
  esac
15027
}
15028
 
15029
# func_basename file
15030
func_basename ()
15031
{
15032
  func_basename_result="${1##*/}"
15033
}
15034
 
15035
# func_stripname prefix suffix name
15036
# strip PREFIX and SUFFIX off of NAME.
15037
# PREFIX and SUFFIX must not contain globbing or regex special
15038
# characters, hashes, percent signs, but SUFFIX may contain a leading
15039
# dot (in which case that matches only a dot).
15040
func_stripname ()
15041
{
15042
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15043
  # positional parameters, so assign one to ordinary parameter first.
15044
  func_stripname_result=${3}
15045
  func_stripname_result=${func_stripname_result#"${1}"}
15046
  func_stripname_result=${func_stripname_result%"${2}"}
15047
}
15048
 
15049
# func_opt_split
15050
func_opt_split ()
15051
{
15052
  func_opt_split_opt=${1%%=*}
15053
  func_opt_split_arg=${1#*=}
15054
}
15055
 
15056
# func_lo2o object
15057
func_lo2o ()
15058
{
15059
  case ${1} in
15060
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15061
    *)    func_lo2o_result=${1} ;;
15062
  esac
15063
}
15064
_LT_EOF
15065
    ;;
15066
  *) # Bourne compatible functions.
15067
    cat << \_LT_EOF >> "$cfgfile"
15068
# func_dirname file append nondir_replacement
15069
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15070
# otherwise set result to NONDIR_REPLACEMENT.
15071
func_dirname ()
15072
{
15073
  # Extract subdirectory from the argument.
15074
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15075
  if test "X$func_dirname_result" = "X${1}"; then
15076
    func_dirname_result="${3}"
15077
  else
15078
    func_dirname_result="$func_dirname_result${2}"
15079
  fi
15080
}
15081
 
15082
# func_basename file
15083
func_basename ()
15084
{
15085
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15086
}
15087
 
15088
# func_stripname prefix suffix name
15089
# strip PREFIX and SUFFIX off of NAME.
15090
# PREFIX and SUFFIX must not contain globbing or regex special
15091
# characters, hashes, percent signs, but SUFFIX may contain a leading
15092
# dot (in which case that matches only a dot).
15093
# func_strip_suffix prefix name
15094
func_stripname ()
15095
{
15096
  case ${2} in
15097
    .*) func_stripname_result=`$ECHO "X${3}" \
15098
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15099
    *)  func_stripname_result=`$ECHO "X${3}" \
15100
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15101
  esac
15102
}
15103
 
15104
# sed scripts:
15105
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15106
my_sed_long_arg='1s/^-[^=]*=//'
15107
 
15108
# func_opt_split
15109
func_opt_split ()
15110
{
15111
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15112
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15113
}
15114
 
15115
# func_lo2o object
15116
func_lo2o ()
15117
{
15118
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15119
}
15120
_LT_EOF
15121
esac
15122
 
15123
case $lt_shell_append in
15124
  yes)
15125
    cat << \_LT_EOF >> "$cfgfile"
15126
 
15127
# func_append var value
15128
# Append VALUE to the end of shell variable VAR.
15129
func_append ()
15130
{
15131
  eval "$1+=\$2"
15132
}
15133
_LT_EOF
15134
    ;;
15135
  *)
15136
    cat << \_LT_EOF >> "$cfgfile"
15137
 
15138
# func_append var value
15139
# Append VALUE to the end of shell variable VAR.
15140
func_append ()
15141
{
15142
  eval "$1=\$$1\$2"
15143
}
15144
_LT_EOF
15145
    ;;
15146
  esac
15147
 
15148
 
15149
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15150
    || (rm -f "$cfgfile"; exit 1)
15151
 
15152
  mv -f "$cfgfile" "$ofile" ||
15153
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15154
  chmod +x "$ofile"
15155
 
15156
 ;;
15157
    default-1 )
15158
    for ac_file in $CONFIG_FILES; do
15159
      # Support "outfile[:infile[:infile...]]"
15160
      case "$ac_file" in
15161
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15162
      esac
15163
      # PO directories have a Makefile.in generated from Makefile.in.in.
15164
      case "$ac_file" in */Makefile.in)
15165
        # Adjust a relative srcdir.
15166
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15167
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15168
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15169
        # In autoconf-2.13 it is called $ac_given_srcdir.
15170
        # In autoconf-2.50 it is called $srcdir.
15171
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15172
        case "$ac_given_srcdir" in
15173
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15174
          /*) top_srcdir="$ac_given_srcdir" ;;
15175
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15176
        esac
15177
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15178
          rm -f "$ac_dir/POTFILES"
15179
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15180
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15181
          POMAKEFILEDEPS="POTFILES.in"
15182
          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15183
          # on $ac_dir but don't depend on user-specified configuration
15184
          # parameters.
15185
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15186
            # The LINGUAS file contains the set of available languages.
15187
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
15188
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15189
            fi
15190
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15191
            # Hide the ALL_LINGUAS assigment from automake.
15192
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15193
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15194
          else
15195
            # The set of available languages was given in configure.in.
15196
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15197
          fi
15198
          case "$ac_given_srcdir" in
15199
            .) srcdirpre= ;;
15200
            *) srcdirpre='$(srcdir)/' ;;
15201
          esac
15202
          POFILES=
15203
          GMOFILES=
15204
          UPDATEPOFILES=
15205
          DUMMYPOFILES=
15206
          for lang in $ALL_LINGUAS; do
15207
            POFILES="$POFILES $srcdirpre$lang.po"
15208
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15209
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15210
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15211
          done
15212
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
15213
          # environment variable.
15214
          INST_LINGUAS=
15215
          if test -n "$ALL_LINGUAS"; then
15216
            for presentlang in $ALL_LINGUAS; do
15217
              useit=no
15218
              if test "%UNSET%" != "$LINGUAS"; then
15219
                desiredlanguages="$LINGUAS"
15220
              else
15221
                desiredlanguages="$ALL_LINGUAS"
15222
              fi
15223
              for desiredlang in $desiredlanguages; do
15224
                # Use the presentlang catalog if desiredlang is
15225
                #   a. equal to presentlang, or
15226
                #   b. a variant of presentlang (because in this case,
15227
                #      presentlang can be used as a fallback for messages
15228
                #      which are not translated in the desiredlang catalog).
15229
                case "$desiredlang" in
15230
                  "$presentlang"*) useit=yes;;
15231
                esac
15232
              done
15233
              if test $useit = yes; then
15234
                INST_LINGUAS="$INST_LINGUAS $presentlang"
15235
              fi
15236
            done
15237
          fi
15238
          CATALOGS=
15239
          if test -n "$INST_LINGUAS"; then
15240
            for lang in $INST_LINGUAS; do
15241
              CATALOGS="$CATALOGS $lang.gmo"
15242
            done
15243
          fi
15244
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15245
          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"
15246
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15247
            if test -f "$f"; then
15248
              case "$f" in
15249
                *.orig | *.bak | *~) ;;
15250
                *) cat "$f" >> "$ac_dir/Makefile" ;;
15251
              esac
15252
            fi
15253
          done
15254
        fi
15255
        ;;
15256
      esac
15257
    done ;;
15258
  esac
15259
done
15260
_ACEOF
15261
 
15262
cat >>$CONFIG_STATUS <<\_ACEOF
15263
 
15264
{ (exit 0); exit 0; }
15265
_ACEOF
15266
chmod +x $CONFIG_STATUS
15267
ac_clean_files=$ac_clean_files_save
15268
 
15269
 
15270
# configure is writing to config.log, and then calls config.status.
15271
# config.status does its own redirection, appending to config.log.
15272
# Unfortunately, on DOS this fails, as config.log is still kept open
15273
# by configure, so config.status won't be able to write to it; its
15274
# output is simply discarded.  So we exec the FD to /dev/null,
15275
# effectively closing config.log, so it can be properly (re)opened and
15276
# appended to by config.status.  When coming back to configure, we
15277
# need to make the FD available again.
15278
if test "$no_create" != yes; then
15279
  ac_cs_success=:
15280
  ac_config_status_args=
15281
  test "$silent" = yes &&
15282
    ac_config_status_args="$ac_config_status_args --quiet"
15283
  exec 5>/dev/null
15284
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15285
  exec 5>>config.log
15286
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15287
  # would make configure fail if this is the last instruction.
15288
  $ac_cs_success || { (exit 1); exit 1; }
15289
fi
15290
 

powered by: WebSVN 2.1.0

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