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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [configure] - Blame information for rev 158

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

Line No. Rev Author Line
1 148 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for newlib 1.17.0.
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='newlib'
418
PACKAGE_TARNAME='newlib'
419
PACKAGE_VERSION='1.17.0'
420
PACKAGE_STRING='newlib 1.17.0'
421
PACKAGE_BUGREPORT=''
422
 
423
ac_unique_file="sys.tex"
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_subdirs_all="$ac_subdirs_all machine sys"
462
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 MAY_SUPPLY_SYSCALLS_TRUE MAY_SUPPLY_SYSCALLS_FALSE newlib_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB READELF ac_ct_READELF MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CCAS CCASFLAGS NEWLIB_CFLAGS LDFLAGS ELIX_LEVEL_0_TRUE ELIX_LEVEL_0_FALSE ELIX_LEVEL_1_TRUE ELIX_LEVEL_1_FALSE ELIX_LEVEL_2_TRUE ELIX_LEVEL_2_FALSE ELIX_LEVEL_3_TRUE ELIX_LEVEL_3_FALSE ELIX_LEVEL_4_TRUE ELIX_LEVEL_4_FALSE USE_LIBTOOL_TRUE USE_LIBTOOL_FALSE OBJEXT oext aext lpfx libm_machine_dir machine_dir sys_dir SED DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL CFLAGS CPPFLAGS ac_ct_CC EXEEXT EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP subdirs CRT0 LIBC_POSIX_LIB HAVE_POSIX_DIR_TRUE HAVE_POSIX_DIR_FALSE LIBC_SIGNAL_LIB LIBC_SIGNAL_DEF HAVE_SIGNAL_DIR_TRUE HAVE_SIGNAL_DIR_FALSE LIBC_STDIO_LIB LIBC_STDIO_DEF HAVE_STDIO_DIR_TRUE HAVE_STDIO_DIR_FALSE LIBC_STDIO64_LIB LIBC_STDIO64_DEF HAVE_STDIO64_DIR_TRUE HAVE_STDIO64_DIR_FALSE LIBC_SYSCALL_LIB HAVE_SYSCALL_DIR_TRUE HAVE_SYSCALL_DIR_FALSE LIBC_UNIX_LIB HAVE_UNIX_DIR_TRUE HAVE_UNIX_DIR_FALSE LIBC_EXTRA_LIB LIBC_EXTRA_DEF extra_dir LIBC_SYS_LIB ENABLE_NEWLIB_ICONV_TRUE ENABLE_NEWLIB_ICONV_FALSE LIBC_MACHINE_LIB LIBOBJS LTLIBOBJS'
463
ac_subst_files=''
464
 
465
# Initialize some variables set by options.
466
ac_init_help=
467
ac_init_version=false
468
# The variables have the same names as the options, with
469
# dashes changed to underlines.
470
cache_file=/dev/null
471
exec_prefix=NONE
472
no_create=
473
no_recursion=
474
prefix=NONE
475
program_prefix=NONE
476
program_suffix=NONE
477
program_transform_name=s,x,x,
478
silent=
479
site=
480
srcdir=
481
verbose=
482
x_includes=NONE
483
x_libraries=NONE
484
 
485
# Installation directory options.
486
# These are left unexpanded so users can "make install exec_prefix=/foo"
487
# and all the variables that are supposed to be based on exec_prefix
488
# by default will actually change.
489
# Use braces instead of parens because sh, perl, etc. also accept them.
490
bindir='${exec_prefix}/bin'
491
sbindir='${exec_prefix}/sbin'
492
libexecdir='${exec_prefix}/libexec'
493
datadir='${prefix}/share'
494
sysconfdir='${prefix}/etc'
495
sharedstatedir='${prefix}/com'
496
localstatedir='${prefix}/var'
497
libdir='${exec_prefix}/lib'
498
includedir='${prefix}/include'
499
oldincludedir='/usr/include'
500
infodir='${prefix}/info'
501
mandir='${prefix}/man'
502
 
503
ac_prev=
504
for ac_option
505
do
506
  # If the previous option needs an argument, assign it.
507
  if test -n "$ac_prev"; then
508
    eval "$ac_prev=\$ac_option"
509
    ac_prev=
510
    continue
511
  fi
512
 
513
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
 
515
  # Accept the important Cygnus configure options, so we can diagnose typos.
516
 
517
  case $ac_option in
518
 
519
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
520
    ac_prev=bindir ;;
521
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522
    bindir=$ac_optarg ;;
523
 
524
  -build | --build | --buil | --bui | --bu)
525
    ac_prev=build_alias ;;
526
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527
    build_alias=$ac_optarg ;;
528
 
529
  -cache-file | --cache-file | --cache-fil | --cache-fi \
530
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531
    ac_prev=cache_file ;;
532
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534
    cache_file=$ac_optarg ;;
535
 
536
  --config-cache | -C)
537
    cache_file=config.cache ;;
538
 
539
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540
    ac_prev=datadir ;;
541
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542
  | --da=*)
543
    datadir=$ac_optarg ;;
544
 
545
  -disable-* | --disable-*)
546
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547
    # Reject names that are not valid shell variable names.
548
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550
   { (exit 1); exit 1; }; }
551
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552
    eval "enable_$ac_feature=no" ;;
553
 
554
  -enable-* | --enable-*)
555
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556
    # Reject names that are not valid shell variable names.
557
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559
   { (exit 1); exit 1; }; }
560
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561
    case $ac_option in
562
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563
      *) ac_optarg=yes ;;
564
    esac
565
    eval "enable_$ac_feature='$ac_optarg'" ;;
566
 
567
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569
  | --exec | --exe | --ex)
570
    ac_prev=exec_prefix ;;
571
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573
  | --exec=* | --exe=* | --ex=*)
574
    exec_prefix=$ac_optarg ;;
575
 
576
  -gas | --gas | --ga | --g)
577
    # Obsolete; use --with-gas.
578
    with_gas=yes ;;
579
 
580
  -help | --help | --hel | --he | -h)
581
    ac_init_help=long ;;
582
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583
    ac_init_help=recursive ;;
584
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585
    ac_init_help=short ;;
586
 
587
  -host | --host | --hos | --ho)
588
    ac_prev=host_alias ;;
589
  -host=* | --host=* | --hos=* | --ho=*)
590
    host_alias=$ac_optarg ;;
591
 
592
  -includedir | --includedir | --includedi | --included | --include \
593
  | --includ | --inclu | --incl | --inc)
594
    ac_prev=includedir ;;
595
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596
  | --includ=* | --inclu=* | --incl=* | --inc=*)
597
    includedir=$ac_optarg ;;
598
 
599
  -infodir | --infodir | --infodi | --infod | --info | --inf)
600
    ac_prev=infodir ;;
601
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602
    infodir=$ac_optarg ;;
603
 
604
  -libdir | --libdir | --libdi | --libd)
605
    ac_prev=libdir ;;
606
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
607
    libdir=$ac_optarg ;;
608
 
609
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610
  | --libexe | --libex | --libe)
611
    ac_prev=libexecdir ;;
612
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613
  | --libexe=* | --libex=* | --libe=*)
614
    libexecdir=$ac_optarg ;;
615
 
616
  -localstatedir | --localstatedir | --localstatedi | --localstated \
617
  | --localstate | --localstat | --localsta | --localst \
618
  | --locals | --local | --loca | --loc | --lo)
619
    ac_prev=localstatedir ;;
620
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623
    localstatedir=$ac_optarg ;;
624
 
625
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626
    ac_prev=mandir ;;
627
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628
    mandir=$ac_optarg ;;
629
 
630
  -nfp | --nfp | --nf)
631
    # Obsolete; use --without-fp.
632
    with_fp=no ;;
633
 
634
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635
  | --no-cr | --no-c | -n)
636
    no_create=yes ;;
637
 
638
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640
    no_recursion=yes ;;
641
 
642
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644
  | --oldin | --oldi | --old | --ol | --o)
645
    ac_prev=oldincludedir ;;
646
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649
    oldincludedir=$ac_optarg ;;
650
 
651
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652
    ac_prev=prefix ;;
653
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654
    prefix=$ac_optarg ;;
655
 
656
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
657
  | --program-pre | --program-pr | --program-p)
658
    ac_prev=program_prefix ;;
659
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
660
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661
    program_prefix=$ac_optarg ;;
662
 
663
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
664
  | --program-suf | --program-su | --program-s)
665
    ac_prev=program_suffix ;;
666
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
667
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668
    program_suffix=$ac_optarg ;;
669
 
670
  -program-transform-name | --program-transform-name \
671
  | --program-transform-nam | --program-transform-na \
672
  | --program-transform-n | --program-transform- \
673
  | --program-transform | --program-transfor \
674
  | --program-transfo | --program-transf \
675
  | --program-trans | --program-tran \
676
  | --progr-tra | --program-tr | --program-t)
677
    ac_prev=program_transform_name ;;
678
  -program-transform-name=* | --program-transform-name=* \
679
  | --program-transform-nam=* | --program-transform-na=* \
680
  | --program-transform-n=* | --program-transform-=* \
681
  | --program-transform=* | --program-transfor=* \
682
  | --program-transfo=* | --program-transf=* \
683
  | --program-trans=* | --program-tran=* \
684
  | --progr-tra=* | --program-tr=* | --program-t=*)
685
    program_transform_name=$ac_optarg ;;
686
 
687
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688
  | -silent | --silent | --silen | --sile | --sil)
689
    silent=yes ;;
690
 
691
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692
    ac_prev=sbindir ;;
693
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694
  | --sbi=* | --sb=*)
695
    sbindir=$ac_optarg ;;
696
 
697
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
698
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699
  | --sharedst | --shareds | --shared | --share | --shar \
700
  | --sha | --sh)
701
    ac_prev=sharedstatedir ;;
702
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705
  | --sha=* | --sh=*)
706
    sharedstatedir=$ac_optarg ;;
707
 
708
  -site | --site | --sit)
709
    ac_prev=site ;;
710
  -site=* | --site=* | --sit=*)
711
    site=$ac_optarg ;;
712
 
713
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714
    ac_prev=srcdir ;;
715
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716
    srcdir=$ac_optarg ;;
717
 
718
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719
  | --syscon | --sysco | --sysc | --sys | --sy)
720
    ac_prev=sysconfdir ;;
721
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723
    sysconfdir=$ac_optarg ;;
724
 
725
  -target | --target | --targe | --targ | --tar | --ta | --t)
726
    ac_prev=target_alias ;;
727
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728
    target_alias=$ac_optarg ;;
729
 
730
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
731
    verbose=yes ;;
732
 
733
  -version | --version | --versio | --versi | --vers | -V)
734
    ac_init_version=: ;;
735
 
736
  -with-* | --with-*)
737
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738
    # Reject names that are not valid shell variable names.
739
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740
      { echo "$as_me: error: invalid package name: $ac_package" >&2
741
   { (exit 1); exit 1; }; }
742
    ac_package=`echo $ac_package| sed 's/-/_/g'`
743
    case $ac_option in
744
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745
      *) ac_optarg=yes ;;
746
    esac
747
    eval "with_$ac_package='$ac_optarg'" ;;
748
 
749
  -without-* | --without-*)
750
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751
    # Reject names that are not valid shell variable names.
752
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753
      { echo "$as_me: error: invalid package name: $ac_package" >&2
754
   { (exit 1); exit 1; }; }
755
    ac_package=`echo $ac_package | sed 's/-/_/g'`
756
    eval "with_$ac_package=no" ;;
757
 
758
  --x)
759
    # Obsolete; use --with-x.
760
    with_x=yes ;;
761
 
762
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763
  | --x-incl | --x-inc | --x-in | --x-i)
764
    ac_prev=x_includes ;;
765
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767
    x_includes=$ac_optarg ;;
768
 
769
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
770
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771
    ac_prev=x_libraries ;;
772
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774
    x_libraries=$ac_optarg ;;
775
 
776
  -*) { echo "$as_me: error: unrecognized option: $ac_option
777
Try \`$0 --help' for more information." >&2
778
   { (exit 1); exit 1; }; }
779
    ;;
780
 
781
  *=*)
782
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783
    # Reject names that are not valid shell variable names.
784
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786
   { (exit 1); exit 1; }; }
787
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788
    eval "$ac_envvar='$ac_optarg'"
789
    export $ac_envvar ;;
790
 
791
  *)
792
    # FIXME: should be removed in autoconf 3.0.
793
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797
    ;;
798
 
799
  esac
800
done
801
 
802
if test -n "$ac_prev"; then
803
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804
  { echo "$as_me: error: missing argument to $ac_option" >&2
805
   { (exit 1); exit 1; }; }
806
fi
807
 
808
# Be sure to have absolute paths.
809
for ac_var in exec_prefix prefix
810
do
811
  eval ac_val=$`echo $ac_var`
812
  case $ac_val in
813
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815
   { (exit 1); exit 1; }; };;
816
  esac
817
done
818
 
819
# Be sure to have absolute paths.
820
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821
              localstatedir libdir includedir oldincludedir infodir mandir
822
do
823
  eval ac_val=$`echo $ac_var`
824
  case $ac_val in
825
    [\\/$]* | ?:[\\/]* ) ;;
826
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827
   { (exit 1); exit 1; }; };;
828
  esac
829
done
830
 
831
# There might be people who depend on the old broken behavior: `$host'
832
# used to hold the argument of --host etc.
833
# FIXME: To remove some day.
834
build=$build_alias
835
host=$host_alias
836
target=$target_alias
837
 
838
# FIXME: To remove some day.
839
if test "x$host_alias" != x; then
840
  if test "x$build_alias" = x; then
841
    cross_compiling=maybe
842
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843
    If a cross compiler is detected then cross compile mode will be used." >&2
844
  elif test "x$build_alias" != "x$host_alias"; then
845
    cross_compiling=yes
846
  fi
847
fi
848
 
849
ac_tool_prefix=
850
test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
 
852
test "$silent" = yes && exec 6>/dev/null
853
 
854
 
855
# Find the source files, if location was not specified.
856
if test -z "$srcdir"; then
857
  ac_srcdir_defaulted=yes
858
  # Try the directory containing this script, then its parent.
859
  ac_confdir=`(dirname "$0") 2>/dev/null ||
860
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861
         X"$0" : 'X\(//\)[^/]' \| \
862
         X"$0" : 'X\(//\)$' \| \
863
         X"$0" : 'X\(/\)' \| \
864
         .     : '\(.\)' 2>/dev/null ||
865
echo X"$0" |
866
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868
          /^X\(\/\/\)$/{ s//\1/; q; }
869
          /^X\(\/\).*/{ s//\1/; q; }
870
          s/.*/./; q'`
871
  srcdir=$ac_confdir
872
  if test ! -r $srcdir/$ac_unique_file; then
873
    srcdir=..
874
  fi
875
else
876
  ac_srcdir_defaulted=no
877
fi
878
if test ! -r $srcdir/$ac_unique_file; then
879
  if test "$ac_srcdir_defaulted" = yes; then
880
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881
   { (exit 1); exit 1; }; }
882
  else
883
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884
   { (exit 1); exit 1; }; }
885
  fi
886
fi
887
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889
   { (exit 1); exit 1; }; }
890
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891
ac_env_build_alias_set=${build_alias+set}
892
ac_env_build_alias_value=$build_alias
893
ac_cv_env_build_alias_set=${build_alias+set}
894
ac_cv_env_build_alias_value=$build_alias
895
ac_env_host_alias_set=${host_alias+set}
896
ac_env_host_alias_value=$host_alias
897
ac_cv_env_host_alias_set=${host_alias+set}
898
ac_cv_env_host_alias_value=$host_alias
899
ac_env_target_alias_set=${target_alias+set}
900
ac_env_target_alias_value=$target_alias
901
ac_cv_env_target_alias_set=${target_alias+set}
902
ac_cv_env_target_alias_value=$target_alias
903
ac_env_CCAS_set=${CCAS+set}
904
ac_env_CCAS_value=$CCAS
905
ac_cv_env_CCAS_set=${CCAS+set}
906
ac_cv_env_CCAS_value=$CCAS
907
ac_env_CCASFLAGS_set=${CCASFLAGS+set}
908
ac_env_CCASFLAGS_value=$CCASFLAGS
909
ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
910
ac_cv_env_CCASFLAGS_value=$CCASFLAGS
911
ac_env_CC_set=${CC+set}
912
ac_env_CC_value=$CC
913
ac_cv_env_CC_set=${CC+set}
914
ac_cv_env_CC_value=$CC
915
ac_env_CFLAGS_set=${CFLAGS+set}
916
ac_env_CFLAGS_value=$CFLAGS
917
ac_cv_env_CFLAGS_set=${CFLAGS+set}
918
ac_cv_env_CFLAGS_value=$CFLAGS
919
ac_env_LDFLAGS_set=${LDFLAGS+set}
920
ac_env_LDFLAGS_value=$LDFLAGS
921
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922
ac_cv_env_LDFLAGS_value=$LDFLAGS
923
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924
ac_env_CPPFLAGS_value=$CPPFLAGS
925
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927
ac_env_CPP_set=${CPP+set}
928
ac_env_CPP_value=$CPP
929
ac_cv_env_CPP_set=${CPP+set}
930
ac_cv_env_CPP_value=$CPP
931
 
932
#
933
# Report the --help message.
934
#
935
if test "$ac_init_help" = "long"; then
936
  # Omit some internal or obsolete options to make the list less imposing.
937
  # This message is too long to be a string in the A/UX 3.1 sh.
938
  cat <<_ACEOF
939
\`configure' configures newlib 1.17.0 to adapt to many kinds of systems.
940
 
941
Usage: $0 [OPTION]... [VAR=VALUE]...
942
 
943
To assign environment variables (e.g., CC, CFLAGS...), specify them as
944
VAR=VALUE.  See below for descriptions of some of the useful variables.
945
 
946
Defaults for the options are specified in brackets.
947
 
948
Configuration:
949
  -h, --help              display this help and exit
950
      --help=short        display options specific to this package
951
      --help=recursive    display the short help of all the included packages
952
  -V, --version           display version information and exit
953
  -q, --quiet, --silent   do not print \`checking...' messages
954
      --cache-file=FILE   cache test results in FILE [disabled]
955
  -C, --config-cache      alias for \`--cache-file=config.cache'
956
  -n, --no-create         do not create output files
957
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
958
 
959
_ACEOF
960
 
961
  cat <<_ACEOF
962
Installation directories:
963
  --prefix=PREFIX         install architecture-independent files in PREFIX
964
                          [$ac_default_prefix]
965
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
966
                          [PREFIX]
967
 
968
By default, \`make install' will install all the files in
969
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
970
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971
for instance \`--prefix=\$HOME'.
972
 
973
For better control, use the options below.
974
 
975
Fine tuning of the installation directories:
976
  --bindir=DIR           user executables [EPREFIX/bin]
977
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
978
  --libexecdir=DIR       program executables [EPREFIX/libexec]
979
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
980
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
981
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
982
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
983
  --libdir=DIR           object code libraries [EPREFIX/lib]
984
  --includedir=DIR       C header files [PREFIX/include]
985
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
986
  --infodir=DIR          info documentation [PREFIX/info]
987
  --mandir=DIR           man documentation [PREFIX/man]
988
_ACEOF
989
 
990
  cat <<\_ACEOF
991
 
992
Program names:
993
  --program-prefix=PREFIX            prepend PREFIX to installed program names
994
  --program-suffix=SUFFIX            append SUFFIX to installed program names
995
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
996
 
997
System types:
998
  --build=BUILD     configure for building on BUILD [guessed]
999
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1000
_ACEOF
1001
fi
1002
 
1003
if test -n "$ac_init_help"; then
1004
  case $ac_init_help in
1005
     short | recursive ) echo "Configuration of newlib 1.17.0:";;
1006
   esac
1007
  cat <<\_ACEOF
1008
 
1009
Optional Features:
1010
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1011
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1012
  --enable-newlib-io-pos-args enable printf-family positional arg support
1013
  --enable-multilib         build many library versions (default)
1014
  --enable-target-optspace  optimize for space
1015
  --enable-malloc-debugging indicate malloc debugging requested
1016
  --enable-newlib-multithread        enable support for multiple threads
1017
  --enable-newlib-iconv     enable iconv library support
1018
  --enable-newlib-elix-level         supply desired elix library level (1-4)
1019
  --disable-newlib-io-float disable printf/scanf family float support
1020
  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1021
  --disable-dependency-tracking  speeds up one-time build
1022
  --enable-dependency-tracking   do not reject slow dependency extractors
1023
  --enable-maintainer-mode  enable make rules and dependencies not useful
1024
                          (and sometimes confusing) to the casual installer
1025
  --enable-shared[=PKGS]
1026
                          build shared libraries [default=yes]
1027
  --enable-static[=PKGS]
1028
                          build static libraries [default=yes]
1029
  --enable-fast-install[=PKGS]
1030
                          optimize for fast installation [default=yes]
1031
  --disable-libtool-lock  avoid locking (might break parallel builds)
1032
 
1033
Optional Packages:
1034
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1035
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1036
  --with-pic              try to use only PIC/non-PIC objects [default=use
1037
                          both]
1038
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1039
 
1040
Some influential environment variables:
1041
  CCAS        assembler compiler command (defaults to CC)
1042
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1043
  CC          C compiler command
1044
  CFLAGS      C compiler flags
1045
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1046
              nonstandard directory 
1047
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
1048
              headers in a nonstandard directory 
1049
  CPP         C preprocessor
1050
 
1051
Use these variables to override the choices made by `configure' or to help
1052
it to find libraries and programs with nonstandard names/locations.
1053
 
1054
_ACEOF
1055
fi
1056
 
1057
if test "$ac_init_help" = "recursive"; then
1058
  # If there are subdirs, report their specific --help.
1059
  ac_popdir=`pwd`
1060
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1061
    test -d $ac_dir || continue
1062
    ac_builddir=.
1063
 
1064
if test "$ac_dir" != .; then
1065
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1066
  # A "../" for each directory in $ac_dir_suffix.
1067
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1068
else
1069
  ac_dir_suffix= ac_top_builddir=
1070
fi
1071
 
1072
case $srcdir in
1073
  .)  # No --srcdir option.  We are building in place.
1074
    ac_srcdir=.
1075
    if test -z "$ac_top_builddir"; then
1076
       ac_top_srcdir=.
1077
    else
1078
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1079
    fi ;;
1080
  [\\/]* | ?:[\\/]* )  # Absolute path.
1081
    ac_srcdir=$srcdir$ac_dir_suffix;
1082
    ac_top_srcdir=$srcdir ;;
1083
  *) # Relative path.
1084
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1085
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1086
esac
1087
 
1088
# Do not use `cd foo && pwd` to compute absolute paths, because
1089
# the directories may not exist.
1090
case `pwd` in
1091
.) ac_abs_builddir="$ac_dir";;
1092
*)
1093
  case "$ac_dir" in
1094
  .) ac_abs_builddir=`pwd`;;
1095
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1096
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1097
  esac;;
1098
esac
1099
case $ac_abs_builddir in
1100
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1101
*)
1102
  case ${ac_top_builddir}. in
1103
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1104
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1105
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1106
  esac;;
1107
esac
1108
case $ac_abs_builddir in
1109
.) ac_abs_srcdir=$ac_srcdir;;
1110
*)
1111
  case $ac_srcdir in
1112
  .) ac_abs_srcdir=$ac_abs_builddir;;
1113
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1114
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1115
  esac;;
1116
esac
1117
case $ac_abs_builddir in
1118
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1119
*)
1120
  case $ac_top_srcdir in
1121
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1122
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1123
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1124
  esac;;
1125
esac
1126
 
1127
    cd $ac_dir
1128
    # Check for guested configure; otherwise get Cygnus style configure.
1129
    if test -f $ac_srcdir/configure.gnu; then
1130
      echo
1131
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1132
    elif test -f $ac_srcdir/configure; then
1133
      echo
1134
      $SHELL $ac_srcdir/configure  --help=recursive
1135
    elif test -f $ac_srcdir/configure.ac ||
1136
           test -f $ac_srcdir/configure.in; then
1137
      echo
1138
      $ac_configure --help
1139
    else
1140
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1141
    fi
1142
    cd $ac_popdir
1143
  done
1144
fi
1145
 
1146
test -n "$ac_init_help" && exit 0
1147
if $ac_init_version; then
1148
  cat <<\_ACEOF
1149
newlib configure 1.17.0
1150
generated by GNU Autoconf 2.59
1151
 
1152
Copyright (C) 2003 Free Software Foundation, Inc.
1153
This configure script is free software; the Free Software Foundation
1154
gives unlimited permission to copy, distribute and modify it.
1155
_ACEOF
1156
  exit 0
1157
fi
1158
exec 5>config.log
1159
cat >&5 <<_ACEOF
1160
This file contains any messages produced by compilers while
1161
running configure, to aid debugging if configure makes a mistake.
1162
 
1163
It was created by newlib $as_me 1.17.0, which was
1164
generated by GNU Autoconf 2.59.  Invocation command line was
1165
 
1166
  $ $0 $@
1167
 
1168
_ACEOF
1169
{
1170
cat <<_ASUNAME
1171
## --------- ##
1172
## Platform. ##
1173
## --------- ##
1174
 
1175
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1176
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1177
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1178
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1179
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1180
 
1181
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1182
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1183
 
1184
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1185
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1186
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1187
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1188
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1189
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1190
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1191
 
1192
_ASUNAME
1193
 
1194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1195
for as_dir in $PATH
1196
do
1197
  IFS=$as_save_IFS
1198
  test -z "$as_dir" && as_dir=.
1199
  echo "PATH: $as_dir"
1200
done
1201
 
1202
} >&5
1203
 
1204
cat >&5 <<_ACEOF
1205
 
1206
 
1207
## ----------- ##
1208
## Core tests. ##
1209
## ----------- ##
1210
 
1211
_ACEOF
1212
 
1213
 
1214
# Keep a trace of the command line.
1215
# Strip out --no-create and --no-recursion so they do not pile up.
1216
# Strip out --silent because we don't want to record it for future runs.
1217
# Also quote any args containing shell meta-characters.
1218
# Make two passes to allow for proper duplicate-argument suppression.
1219
ac_configure_args=
1220
ac_configure_args0=
1221
ac_configure_args1=
1222
ac_sep=
1223
ac_must_keep_next=false
1224
for ac_pass in 1 2
1225
do
1226
  for ac_arg
1227
  do
1228
    case $ac_arg in
1229
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1230
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231
    | -silent | --silent | --silen | --sile | --sil)
1232
      continue ;;
1233
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1235
    esac
1236
    case $ac_pass in
1237
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1238
    2)
1239
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1240
      if test $ac_must_keep_next = true; then
1241
        ac_must_keep_next=false # Got value, back to normal.
1242
      else
1243
        case $ac_arg in
1244
          *=* | --config-cache | -C | -disable-* | --disable-* \
1245
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1246
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1247
          | -with-* | --with-* | -without-* | --without-* | --x)
1248
            case "$ac_configure_args0 " in
1249
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1250
            esac
1251
            ;;
1252
          -* ) ac_must_keep_next=true ;;
1253
        esac
1254
      fi
1255
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1256
      # Get rid of the leading space.
1257
      ac_sep=" "
1258
      ;;
1259
    esac
1260
  done
1261
done
1262
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1263
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1264
 
1265
# When interrupted or exit'd, cleanup temporary files, and complete
1266
# config.log.  We remove comments because anyway the quotes in there
1267
# would cause problems or look ugly.
1268
# WARNING: Be sure not to use single quotes in there, as some shells,
1269
# such as our DU 5.0 friend, will then `close' the trap.
1270
trap 'exit_status=$?
1271
  # Save into config.log some information that might help in debugging.
1272
  {
1273
    echo
1274
 
1275
    cat <<\_ASBOX
1276
## ---------------- ##
1277
## Cache variables. ##
1278
## ---------------- ##
1279
_ASBOX
1280
    echo
1281
    # The following way of writing the cache mishandles newlines in values,
1282
{
1283
  (set) 2>&1 |
1284
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1285
    *ac_space=\ *)
1286
      sed -n \
1287
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1288
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1289
      ;;
1290
    *)
1291
      sed -n \
1292
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1293
      ;;
1294
    esac;
1295
}
1296
    echo
1297
 
1298
    cat <<\_ASBOX
1299
## ----------------- ##
1300
## Output variables. ##
1301
## ----------------- ##
1302
_ASBOX
1303
    echo
1304
    for ac_var in $ac_subst_vars
1305
    do
1306
      eval ac_val=$`echo $ac_var`
1307
      echo "$ac_var='"'"'$ac_val'"'"'"
1308
    done | sort
1309
    echo
1310
 
1311
    if test -n "$ac_subst_files"; then
1312
      cat <<\_ASBOX
1313
## ------------- ##
1314
## Output files. ##
1315
## ------------- ##
1316
_ASBOX
1317
      echo
1318
      for ac_var in $ac_subst_files
1319
      do
1320
        eval ac_val=$`echo $ac_var`
1321
        echo "$ac_var='"'"'$ac_val'"'"'"
1322
      done | sort
1323
      echo
1324
    fi
1325
 
1326
    if test -s confdefs.h; then
1327
      cat <<\_ASBOX
1328
## ----------- ##
1329
## confdefs.h. ##
1330
## ----------- ##
1331
_ASBOX
1332
      echo
1333
      sed "/^$/d" confdefs.h | sort
1334
      echo
1335
    fi
1336
    test "$ac_signal" != 0 &&
1337
      echo "$as_me: caught signal $ac_signal"
1338
    echo "$as_me: exit $exit_status"
1339
  } >&5
1340
  rm -f core *.core &&
1341
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1342
    exit $exit_status
1343
     ' 0
1344
for ac_signal in 1 2 13 15; do
1345
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1346
done
1347
ac_signal=0
1348
 
1349
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1350
rm -rf conftest* confdefs.h
1351
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1352
echo >confdefs.h
1353
 
1354
# Predefined preprocessor variables.
1355
 
1356
cat >>confdefs.h <<_ACEOF
1357
#define PACKAGE_NAME "$PACKAGE_NAME"
1358
_ACEOF
1359
 
1360
 
1361
cat >>confdefs.h <<_ACEOF
1362
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1363
_ACEOF
1364
 
1365
 
1366
cat >>confdefs.h <<_ACEOF
1367
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1368
_ACEOF
1369
 
1370
 
1371
cat >>confdefs.h <<_ACEOF
1372
#define PACKAGE_STRING "$PACKAGE_STRING"
1373
_ACEOF
1374
 
1375
 
1376
cat >>confdefs.h <<_ACEOF
1377
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1378
_ACEOF
1379
 
1380
 
1381
# Let the site file select an alternate cache file if it wants to.
1382
# Prefer explicitly selected file to automatically selected ones.
1383
if test -z "$CONFIG_SITE"; then
1384
  if test "x$prefix" != xNONE; then
1385
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1386
  else
1387
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1388
  fi
1389
fi
1390
for ac_site_file in $CONFIG_SITE; do
1391
  if test -r "$ac_site_file"; then
1392
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1393
echo "$as_me: loading site script $ac_site_file" >&6;}
1394
    sed 's/^/| /' "$ac_site_file" >&5
1395
    . "$ac_site_file"
1396
  fi
1397
done
1398
 
1399
if test -r "$cache_file"; then
1400
  # Some versions of bash will fail to source /dev/null (special
1401
  # files actually), so we avoid doing that.
1402
  if test -f "$cache_file"; then
1403
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1404
echo "$as_me: loading cache $cache_file" >&6;}
1405
    case $cache_file in
1406
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1407
      *)                      . ./$cache_file;;
1408
    esac
1409
  fi
1410
else
1411
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1412
echo "$as_me: creating cache $cache_file" >&6;}
1413
  >$cache_file
1414
fi
1415
 
1416
# Check that the precious variables saved in the cache have kept the same
1417
# value.
1418
ac_cache_corrupted=false
1419
for ac_var in `(set) 2>&1 |
1420
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1421
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1422
  eval ac_new_set=\$ac_env_${ac_var}_set
1423
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1424
  eval ac_new_val="\$ac_env_${ac_var}_value"
1425
  case $ac_old_set,$ac_new_set in
1426
    set,)
1427
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1428
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1429
      ac_cache_corrupted=: ;;
1430
    ,set)
1431
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1432
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1433
      ac_cache_corrupted=: ;;
1434
    ,);;
1435
    *)
1436
      if test "x$ac_old_val" != "x$ac_new_val"; then
1437
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1438
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1439
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1440
echo "$as_me:   former value:  $ac_old_val" >&2;}
1441
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1442
echo "$as_me:   current value: $ac_new_val" >&2;}
1443
        ac_cache_corrupted=:
1444
      fi;;
1445
  esac
1446
  # Pass precious variables to config.status.
1447
  if test "$ac_new_set" = set; then
1448
    case $ac_new_val in
1449
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1450
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1451
    *) ac_arg=$ac_var=$ac_new_val ;;
1452
    esac
1453
    case " $ac_configure_args " in
1454
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1455
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1456
    esac
1457
  fi
1458
done
1459
if $ac_cache_corrupted; then
1460
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1461
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1462
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1463
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1464
   { (exit 1); exit 1; }; }
1465
fi
1466
 
1467
ac_ext=c
1468
ac_cpp='$CPP $CPPFLAGS'
1469
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472
 
1473
 
1474
 
1475
 
1476
 
1477
 
1478
 
1479
 
1480
 
1481
 
1482
 
1483
 
1484
 
1485
 
1486
 
1487
 
1488
 
1489
 
1490
 
1491
 
1492
 
1493
 
1494
 
1495
 
1496
 
1497
 
1498
 
1499
 
1500
 
1501
ac_aux_dir=
1502
for ac_dir in ../.. $srcdir/../..; do
1503
  if test -f $ac_dir/install-sh; then
1504
    ac_aux_dir=$ac_dir
1505
    ac_install_sh="$ac_aux_dir/install-sh -c"
1506
    break
1507
  elif test -f $ac_dir/install.sh; then
1508
    ac_aux_dir=$ac_dir
1509
    ac_install_sh="$ac_aux_dir/install.sh -c"
1510
    break
1511
  elif test -f $ac_dir/shtool; then
1512
    ac_aux_dir=$ac_dir
1513
    ac_install_sh="$ac_aux_dir/shtool install -c"
1514
    break
1515
  fi
1516
done
1517
if test -z "$ac_aux_dir"; then
1518
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&5
1519
echo "$as_me: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&2;}
1520
   { (exit 1); exit 1; }; }
1521
fi
1522
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1525
 
1526
 
1527
# Check whether --enable-newlib-io-pos-args or --disable-newlib-io-pos-args was given.
1528
if test "${enable_newlib_io_pos_args+set}" = set; then
1529
  enableval="$enable_newlib_io_pos_args"
1530
  case "${enableval}" in
1531
  yes) newlib_io_pos_args=yes ;;
1532
  no)  newlib_io_pos_args=no ;;
1533
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-pos-args option" >&5
1534
echo "$as_me: error: bad value ${enableval} for newlib-io-pos-args option" >&2;}
1535
   { (exit 1); exit 1; }; } ;;
1536
 esac
1537
else
1538
  newlib_io_pos_args=no
1539
fi;
1540
 
1541
# Make sure we can run config.sub.
1542
$ac_config_sub sun4 >/dev/null 2>&1 ||
1543
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1544
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1545
   { (exit 1); exit 1; }; }
1546
 
1547
echo "$as_me:$LINENO: checking build system type" >&5
1548
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1549
if test "${ac_cv_build+set}" = set; then
1550
  echo $ECHO_N "(cached) $ECHO_C" >&6
1551
else
1552
  ac_cv_build_alias=$build_alias
1553
test -z "$ac_cv_build_alias" &&
1554
  ac_cv_build_alias=`$ac_config_guess`
1555
test -z "$ac_cv_build_alias" &&
1556
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1557
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1558
   { (exit 1); exit 1; }; }
1559
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1560
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1561
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1562
   { (exit 1); exit 1; }; }
1563
 
1564
fi
1565
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1566
echo "${ECHO_T}$ac_cv_build" >&6
1567
build=$ac_cv_build
1568
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571
 
1572
 
1573
am__api_version="1.9"
1574
# Find a good install program.  We prefer a C program (faster),
1575
# so one script is as good as another.  But avoid the broken or
1576
# incompatible versions:
1577
# SysV /etc/install, /usr/sbin/install
1578
# SunOS /usr/etc/install
1579
# IRIX /sbin/install
1580
# AIX /bin/install
1581
# AmigaOS /C/install, which installs bootblocks on floppy discs
1582
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1583
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1584
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1585
# OS/2's system install, which has a completely different semantic
1586
# ./install, which can be erroneously created by make from ./install.sh.
1587
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1588
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1589
if test -z "$INSTALL"; then
1590
if test "${ac_cv_path_install+set}" = set; then
1591
  echo $ECHO_N "(cached) $ECHO_C" >&6
1592
else
1593
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594
for as_dir in $PATH
1595
do
1596
  IFS=$as_save_IFS
1597
  test -z "$as_dir" && as_dir=.
1598
  # Account for people who put trailing slashes in PATH elements.
1599
case $as_dir/ in
1600
  ./ | .// | /cC/* | \
1601
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1602
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1603
  /usr/ucb/* ) ;;
1604
  *)
1605
    # OSF1 and SCO ODT 3.0 have their own names for install.
1606
    # Don't use installbsd from OSF since it installs stuff as root
1607
    # by default.
1608
    for ac_prog in ginstall scoinst install; do
1609
      for ac_exec_ext in '' $ac_executable_extensions; do
1610
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1611
          if test $ac_prog = install &&
1612
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1613
            # AIX install.  It has an incompatible calling convention.
1614
            :
1615
          elif test $ac_prog = install &&
1616
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1617
            # program-specific install script used by HP pwplus--don't use.
1618
            :
1619
          else
1620
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1621
            break 3
1622
          fi
1623
        fi
1624
      done
1625
    done
1626
    ;;
1627
esac
1628
done
1629
 
1630
 
1631
fi
1632
  if test "${ac_cv_path_install+set}" = set; then
1633
    INSTALL=$ac_cv_path_install
1634
  else
1635
    # As a last resort, use the slow shell script.  We don't cache a
1636
    # path for INSTALL within a source directory, because that will
1637
    # break other packages using the cache if that directory is
1638
    # removed, or if the path is relative.
1639
    INSTALL=$ac_install_sh
1640
  fi
1641
fi
1642
echo "$as_me:$LINENO: result: $INSTALL" >&5
1643
echo "${ECHO_T}$INSTALL" >&6
1644
 
1645
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1646
# It thinks the first close brace ends the variable substitution.
1647
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1648
 
1649
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1650
 
1651
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1652
 
1653
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1654
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1655
# Just in case
1656
sleep 1
1657
echo timestamp > conftest.file
1658
# Do `set' in a subshell so we don't clobber the current shell's
1659
# arguments.  Must try -L first in case configure is actually a
1660
# symlink; some systems play weird games with the mod time of symlinks
1661
# (eg FreeBSD returns the mod time of the symlink's containing
1662
# directory).
1663
if (
1664
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1665
   if test "$*" = "X"; then
1666
      # -L didn't work.
1667
      set X `ls -t $srcdir/configure conftest.file`
1668
   fi
1669
   rm -f conftest.file
1670
   if test "$*" != "X $srcdir/configure conftest.file" \
1671
      && test "$*" != "X conftest.file $srcdir/configure"; then
1672
 
1673
      # If neither matched, then we have a broken ls.  This can happen
1674
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1675
      # broken ls alias from the environment.  This has actually
1676
      # happened.  Such a system could not be considered "sane".
1677
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1678
alias in your environment" >&5
1679
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1680
alias in your environment" >&2;}
1681
   { (exit 1); exit 1; }; }
1682
   fi
1683
 
1684
   test "$2" = conftest.file
1685
   )
1686
then
1687
   # Ok.
1688
   :
1689
else
1690
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1691
Check your system clock" >&5
1692
echo "$as_me: error: newly created file is older than distributed files!
1693
Check your system clock" >&2;}
1694
   { (exit 1); exit 1; }; }
1695
fi
1696
echo "$as_me:$LINENO: result: yes" >&5
1697
echo "${ECHO_T}yes" >&6
1698
test "$program_prefix" != NONE &&
1699
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1700
# Use a double $ so make ignores it.
1701
test "$program_suffix" != NONE &&
1702
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1703
# Double any \ or $.  echo might interpret backslashes.
1704
# By default was `s,x,x', remove it if useless.
1705
cat <<\_ACEOF >conftest.sed
1706
s/[\\$]/&&/g;s/;s,x,x,$//
1707
_ACEOF
1708
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1709
rm conftest.sed
1710
 
1711
# expand $ac_aux_dir to an absolute path
1712
am_aux_dir=`cd $ac_aux_dir && pwd`
1713
 
1714
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1715
# Use eval to expand $SHELL
1716
if eval "$MISSING --run true"; then
1717
  am_missing_run="$MISSING --run "
1718
else
1719
  am_missing_run=
1720
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1721
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1722
fi
1723
 
1724
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1725
  # We used to keeping the `.' as first argument, in order to
1726
  # allow $(mkdir_p) to be used without argument.  As in
1727
  #   $(mkdir_p) $(somedir)
1728
  # where $(somedir) is conditionally defined.  However this is wrong
1729
  # for two reasons:
1730
  #  1. if the package is installed by a user who cannot write `.'
1731
  #     make install will fail,
1732
  #  2. the above comment should most certainly read
1733
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1734
  #     so it does not work when $(somedir) is undefined and
1735
  #     $(DESTDIR) is not.
1736
  #  To support the latter case, we have to write
1737
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1738
  #  so the `.' trick is pointless.
1739
  mkdir_p='mkdir -p --'
1740
else
1741
  # On NextStep and OpenStep, the `mkdir' command does not
1742
  # recognize any option.  It will interpret all options as
1743
  # directories to create, and then abort because `.' already
1744
  # exists.
1745
  for d in ./-p ./--version;
1746
  do
1747
    test -d $d && rmdir $d
1748
  done
1749
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1750
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1751
    mkdir_p='$(mkinstalldirs)'
1752
  else
1753
    mkdir_p='$(install_sh) -d'
1754
  fi
1755
fi
1756
 
1757
for ac_prog in gawk mawk nawk awk
1758
do
1759
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1760
set dummy $ac_prog; ac_word=$2
1761
echo "$as_me:$LINENO: checking for $ac_word" >&5
1762
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1763
if test "${ac_cv_prog_AWK+set}" = set; then
1764
  echo $ECHO_N "(cached) $ECHO_C" >&6
1765
else
1766
  if test -n "$AWK"; then
1767
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1768
else
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
    ac_cv_prog_AWK="$ac_prog"
1777
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1778
    break 2
1779
  fi
1780
done
1781
done
1782
 
1783
fi
1784
fi
1785
AWK=$ac_cv_prog_AWK
1786
if test -n "$AWK"; then
1787
  echo "$as_me:$LINENO: result: $AWK" >&5
1788
echo "${ECHO_T}$AWK" >&6
1789
else
1790
  echo "$as_me:$LINENO: result: no" >&5
1791
echo "${ECHO_T}no" >&6
1792
fi
1793
 
1794
  test -n "$AWK" && break
1795
done
1796
 
1797
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1798
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1799
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1800
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1801
  echo $ECHO_N "(cached) $ECHO_C" >&6
1802
else
1803
  cat >conftest.make <<\_ACEOF
1804
all:
1805
        @echo 'ac_maketemp="$(MAKE)"'
1806
_ACEOF
1807
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1808
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1809
if test -n "$ac_maketemp"; then
1810
  eval ac_cv_prog_make_${ac_make}_set=yes
1811
else
1812
  eval ac_cv_prog_make_${ac_make}_set=no
1813
fi
1814
rm -f conftest.make
1815
fi
1816
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1817
  echo "$as_me:$LINENO: result: yes" >&5
1818
echo "${ECHO_T}yes" >&6
1819
  SET_MAKE=
1820
else
1821
  echo "$as_me:$LINENO: result: no" >&5
1822
echo "${ECHO_T}no" >&6
1823
  SET_MAKE="MAKE=${MAKE-make}"
1824
fi
1825
 
1826
rm -rf .tst 2>/dev/null
1827
mkdir .tst 2>/dev/null
1828
if test -d .tst; then
1829
  am__leading_dot=.
1830
else
1831
  am__leading_dot=_
1832
fi
1833
rmdir .tst 2>/dev/null
1834
 
1835
DEPDIR="${am__leading_dot}deps"
1836
 
1837
          ac_config_commands="$ac_config_commands depfiles"
1838
 
1839
 
1840
am_make=${MAKE-make}
1841
cat > confinc << 'END'
1842
am__doit:
1843
        @echo done
1844
.PHONY: am__doit
1845
END
1846
# If we don't find an include directive, just comment out the code.
1847
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1848
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1849
am__include="#"
1850
am__quote=
1851
_am_result=none
1852
# First try GNU make style include.
1853
echo "include confinc" > confmf
1854
# We grep out `Entering directory' and `Leaving directory'
1855
# messages which can occur if `w' ends up in MAKEFLAGS.
1856
# In particular we don't look at `^make:' because GNU make might
1857
# be invoked under some other name (usually "gmake"), in which
1858
# case it prints its new name instead of `make'.
1859
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1860
   am__include=include
1861
   am__quote=
1862
   _am_result=GNU
1863
fi
1864
# Now try BSD make style include.
1865
if test "$am__include" = "#"; then
1866
   echo '.include "confinc"' > confmf
1867
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1868
      am__include=.include
1869
      am__quote="\""
1870
      _am_result=BSD
1871
   fi
1872
fi
1873
 
1874
 
1875
echo "$as_me:$LINENO: result: $_am_result" >&5
1876
echo "${ECHO_T}$_am_result" >&6
1877
rm -f confinc confmf
1878
 
1879
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1880
if test "${enable_dependency_tracking+set}" = set; then
1881
  enableval="$enable_dependency_tracking"
1882
 
1883
fi;
1884
if test "x$enable_dependency_tracking" != xno; then
1885
  am_depcomp="$ac_aux_dir/depcomp"
1886
  AMDEPBACKSLASH='\'
1887
fi
1888
 
1889
 
1890
if test "x$enable_dependency_tracking" != xno; then
1891
  AMDEP_TRUE=
1892
  AMDEP_FALSE='#'
1893
else
1894
  AMDEP_TRUE='#'
1895
  AMDEP_FALSE=
1896
fi
1897
 
1898
 
1899
 
1900
 
1901
# Check whether --enable-multilib or --disable-multilib was given.
1902
if test "${enable_multilib+set}" = set; then
1903
  enableval="$enable_multilib"
1904
  case "${enableval}" in
1905
  yes) multilib=yes ;;
1906
  no)  multilib=no ;;
1907
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1908
echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1909
   { (exit 1); exit 1; }; } ;;
1910
 esac
1911
else
1912
  multilib=yes
1913
fi;
1914
# Check whether --enable-target-optspace or --disable-target-optspace was given.
1915
if test "${enable_target_optspace+set}" = set; then
1916
  enableval="$enable_target_optspace"
1917
  case "${enableval}" in
1918
  yes) target_optspace=yes ;;
1919
  no)  target_optspace=no ;;
1920
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
1921
echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
1922
   { (exit 1); exit 1; }; } ;;
1923
 esac
1924
else
1925
  target_optspace=
1926
fi;
1927
# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
1928
if test "${enable_malloc_debugging+set}" = set; then
1929
  enableval="$enable_malloc_debugging"
1930
  case "${enableval}" in
1931
  yes) malloc_debugging=yes ;;
1932
  no)  malloc_debugging=no ;;
1933
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
1934
echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
1935
   { (exit 1); exit 1; }; } ;;
1936
 esac
1937
else
1938
  malloc_debugging=
1939
fi;
1940
# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
1941
if test "${enable_newlib_multithread+set}" = set; then
1942
  enableval="$enable_newlib_multithread"
1943
  case "${enableval}" in
1944
  yes) newlib_multithread=yes ;;
1945
  no)  newlib_multithread=no ;;
1946
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
1947
echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
1948
   { (exit 1); exit 1; }; } ;;
1949
 esac
1950
else
1951
  newlib_multithread=yes
1952
fi;
1953
# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
1954
if test "${enable_newlib_iconv+set}" = set; then
1955
  enableval="$enable_newlib_iconv"
1956
  if test "${newlib_iconv+set}" != set; then
1957
   case "${enableval}" in
1958
     yes) newlib_iconv=yes ;;
1959
     no)  newlib_iconv=no ;;
1960
     *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
1961
echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
1962
   { (exit 1); exit 1; }; } ;;
1963
   esac
1964
 fi
1965
else
1966
  newlib_iconv=${newlib_iconv}
1967
fi;
1968
# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
1969
if test "${enable_newlib_elix_level+set}" = set; then
1970
  enableval="$enable_newlib_elix_level"
1971
  case "${enableval}" in
1972
  0)   newlib_elix_level=0 ;;
1973
  1)   newlib_elix_level=1 ;;
1974
  2)   newlib_elix_level=2 ;;
1975
  3)   newlib_elix_level=3 ;;
1976
  4)   newlib_elix_level=4 ;;
1977
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
1978
echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
1979
   { (exit 1); exit 1; }; } ;;
1980
 esac
1981
else
1982
  newlib_elix_level=0
1983
fi;
1984
# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
1985
if test "${enable_newlib_io_float+set}" = set; then
1986
  enableval="$enable_newlib_io_float"
1987
  case "${enableval}" in
1988
  yes) newlib_io_float=yes ;;
1989
  no)  newlib_io_float=no ;;
1990
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
1991
echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
1992
   { (exit 1); exit 1; }; } ;;
1993
 esac
1994
else
1995
  newlib_io_float=yes
1996
fi;
1997
# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
1998
if test "${enable_newlib_supplied_syscalls+set}" = set; then
1999
  enableval="$enable_newlib_supplied_syscalls"
2000
  case "${enableval}" in
2001
  yes) newlib_may_supply_syscalls=yes ;;
2002
  no)  newlib_may_supply_syscalls=no ;;
2003
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2004
echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2005
   { (exit 1); exit 1; }; } ;;
2006
 esac
2007
else
2008
  newlib_may_supply_syscalls=yes
2009
fi;
2010
 
2011
 
2012
if test x${newlib_may_supply_syscalls} = xyes; then
2013
  MAY_SUPPLY_SYSCALLS_TRUE=
2014
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2015
else
2016
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2017
  MAY_SUPPLY_SYSCALLS_FALSE=
2018
fi
2019
 
2020
 
2021
 
2022
test -z "${with_target_subdir}" && with_target_subdir=.
2023
 
2024
if test "${srcdir}" = "."; then
2025
  if test "${with_target_subdir}" != "."; then
2026
    newlib_basedir="${srcdir}/${with_multisrctop}../.."
2027
  else
2028
    newlib_basedir="${srcdir}/${with_multisrctop}.."
2029
  fi
2030
else
2031
  newlib_basedir="${srcdir}/.."
2032
fi
2033
 
2034
 
2035
echo "$as_me:$LINENO: checking host system type" >&5
2036
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2037
if test "${ac_cv_host+set}" = set; then
2038
  echo $ECHO_N "(cached) $ECHO_C" >&6
2039
else
2040
  ac_cv_host_alias=$host_alias
2041
test -z "$ac_cv_host_alias" &&
2042
  ac_cv_host_alias=$ac_cv_build_alias
2043
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2044
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2045
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2046
   { (exit 1); exit 1; }; }
2047
 
2048
fi
2049
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2050
echo "${ECHO_T}$ac_cv_host" >&6
2051
host=$ac_cv_host
2052
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2053
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2054
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2055
 
2056
 
2057
 
2058
# test to see if srcdir already configured
2059
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2060
   test -f $srcdir/config.status; then
2061
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2062
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2063
   { (exit 1); exit 1; }; }
2064
fi
2065
 
2066
# test whether we have cygpath
2067
if test -z "$CYGPATH_W"; then
2068
  if (cygpath --version) >/dev/null 2>/dev/null; then
2069
    CYGPATH_W='cygpath -w'
2070
  else
2071
    CYGPATH_W=echo
2072
  fi
2073
fi
2074
 
2075
 
2076
# Define the identity of the package.
2077
 PACKAGE='newlib'
2078
 VERSION='1.17.0'
2079
 
2080
 
2081
# Some tools Automake needs.
2082
 
2083
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2084
 
2085
 
2086
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2087
 
2088
 
2089
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2090
 
2091
 
2092
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2093
 
2094
 
2095
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2096
 
2097
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2098
 
2099
# Installed binaries are usually stripped using `strip' when the user
2100
# run `make install-strip'.  However `strip' might not be the right
2101
# tool to use in cross-compilation environments, therefore Automake
2102
# will honor the `STRIP' environment variable to overrule this program.
2103
if test "$cross_compiling" != no; then
2104
  if test -n "$ac_tool_prefix"; then
2105
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2106
set dummy ${ac_tool_prefix}strip; ac_word=$2
2107
echo "$as_me:$LINENO: checking for $ac_word" >&5
2108
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2109
if test "${ac_cv_prog_STRIP+set}" = set; then
2110
  echo $ECHO_N "(cached) $ECHO_C" >&6
2111
else
2112
  if test -n "$STRIP"; then
2113
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2114
else
2115
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116
for as_dir in $PATH
2117
do
2118
  IFS=$as_save_IFS
2119
  test -z "$as_dir" && as_dir=.
2120
  for ac_exec_ext in '' $ac_executable_extensions; do
2121
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2122
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2123
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124
    break 2
2125
  fi
2126
done
2127
done
2128
 
2129
fi
2130
fi
2131
STRIP=$ac_cv_prog_STRIP
2132
if test -n "$STRIP"; then
2133
  echo "$as_me:$LINENO: result: $STRIP" >&5
2134
echo "${ECHO_T}$STRIP" >&6
2135
else
2136
  echo "$as_me:$LINENO: result: no" >&5
2137
echo "${ECHO_T}no" >&6
2138
fi
2139
 
2140
fi
2141
if test -z "$ac_cv_prog_STRIP"; then
2142
  ac_ct_STRIP=$STRIP
2143
  # Extract the first word of "strip", so it can be a program name with args.
2144
set dummy strip; ac_word=$2
2145
echo "$as_me:$LINENO: checking for $ac_word" >&5
2146
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2147
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2148
  echo $ECHO_N "(cached) $ECHO_C" >&6
2149
else
2150
  if test -n "$ac_ct_STRIP"; then
2151
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2152
else
2153
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154
for as_dir in $PATH
2155
do
2156
  IFS=$as_save_IFS
2157
  test -z "$as_dir" && as_dir=.
2158
  for ac_exec_ext in '' $ac_executable_extensions; do
2159
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2160
    ac_cv_prog_ac_ct_STRIP="strip"
2161
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162
    break 2
2163
  fi
2164
done
2165
done
2166
 
2167
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2168
fi
2169
fi
2170
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2171
if test -n "$ac_ct_STRIP"; then
2172
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2173
echo "${ECHO_T}$ac_ct_STRIP" >&6
2174
else
2175
  echo "$as_me:$LINENO: result: no" >&5
2176
echo "${ECHO_T}no" >&6
2177
fi
2178
 
2179
  STRIP=$ac_ct_STRIP
2180
else
2181
  STRIP="$ac_cv_prog_STRIP"
2182
fi
2183
 
2184
fi
2185
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2186
 
2187
# We need awk for the "check" target.  The system "awk" is bad on
2188
# some platforms.
2189
# Always define AMTAR for backward compatibility.
2190
 
2191
AMTAR=${AMTAR-"${am_missing_run}tar"}
2192
 
2193
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2194
 
2195
 
2196
 
2197
 
2198
 
2199
 
2200
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2201
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2202
# are probably using a cross compiler, which will not be able to fully
2203
# link an executable.  This should really be fixed in autoconf
2204
# itself.
2205
 
2206
 
2207
 
2208
 
2209
 
2210
 
2211
 
2212
# Extract the first word of "gcc", so it can be a program name with args.
2213
set dummy gcc; ac_word=$2
2214
echo "$as_me:$LINENO: checking for $ac_word" >&5
2215
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216
if test "${ac_cv_prog_CC+set}" = set; then
2217
  echo $ECHO_N "(cached) $ECHO_C" >&6
2218
else
2219
  if test -n "$CC"; then
2220
  ac_cv_prog_CC="$CC" # Let the user override the test.
2221
else
2222
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223
for as_dir in $PATH
2224
do
2225
  IFS=$as_save_IFS
2226
  test -z "$as_dir" && as_dir=.
2227
  for ac_exec_ext in '' $ac_executable_extensions; do
2228
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229
    ac_cv_prog_CC="gcc"
2230
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231
    break 2
2232
  fi
2233
done
2234
done
2235
 
2236
fi
2237
fi
2238
CC=$ac_cv_prog_CC
2239
if test -n "$CC"; then
2240
  echo "$as_me:$LINENO: result: $CC" >&5
2241
echo "${ECHO_T}$CC" >&6
2242
else
2243
  echo "$as_me:$LINENO: result: no" >&5
2244
echo "${ECHO_T}no" >&6
2245
fi
2246
 
2247
 
2248
depcc="$CC"   am_compiler_list=
2249
 
2250
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2251
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2252
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2253
  echo $ECHO_N "(cached) $ECHO_C" >&6
2254
else
2255
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2256
  # We make a subdir and do the tests there.  Otherwise we can end up
2257
  # making bogus files that we don't know about and never remove.  For
2258
  # instance it was reported that on HP-UX the gcc test will end up
2259
  # making a dummy file named `D' -- because `-MD' means `put the output
2260
  # in D'.
2261
  mkdir conftest.dir
2262
  # Copy depcomp to subdir because otherwise we won't find it if we're
2263
  # using a relative directory.
2264
  cp "$am_depcomp" conftest.dir
2265
  cd conftest.dir
2266
  # We will build objects and dependencies in a subdirectory because
2267
  # it helps to detect inapplicable dependency modes.  For instance
2268
  # both Tru64's cc and ICC support -MD to output dependencies as a
2269
  # side effect of compilation, but ICC will put the dependencies in
2270
  # the current directory while Tru64 will put them in the object
2271
  # directory.
2272
  mkdir sub
2273
 
2274
  am_cv_CC_dependencies_compiler_type=none
2275
  if test "$am_compiler_list" = ""; then
2276
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2277
  fi
2278
  for depmode in $am_compiler_list; do
2279
    # Setup a source with many dependencies, because some compilers
2280
    # like to wrap large dependency lists on column 80 (with \), and
2281
    # we should not choose a depcomp mode which is confused by this.
2282
    #
2283
    # We need to recreate these files for each test, as the compiler may
2284
    # overwrite some of them when testing with obscure command lines.
2285
    # This happens at least with the AIX C compiler.
2286
    : > sub/conftest.c
2287
    for i in 1 2 3 4 5 6; do
2288
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2289
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2290
      # Solaris 8's {/usr,}/bin/sh.
2291
      touch sub/conftst$i.h
2292
    done
2293
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2294
 
2295
    case $depmode in
2296
    nosideeffect)
2297
      # after this tag, mechanisms are not by side-effect, so they'll
2298
      # only be used when explicitly requested
2299
      if test "x$enable_dependency_tracking" = xyes; then
2300
        continue
2301
      else
2302
        break
2303
      fi
2304
      ;;
2305
    none) break ;;
2306
    esac
2307
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2308
    # mode.  It turns out that the SunPro C++ compiler does not properly
2309
    # handle `-M -o', and we need to detect this.
2310
    if depmode=$depmode \
2311
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2312
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2313
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2314
         >/dev/null 2>conftest.err &&
2315
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2316
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2317
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2318
      # icc doesn't choke on unknown options, it will just issue warnings
2319
      # or remarks (even with -Werror).  So we grep stderr for any message
2320
      # that says an option was ignored or not supported.
2321
      # When given -MP, icc 7.0 and 7.1 complain thusly:
2322
      #   icc: Command line warning: ignoring option '-M'; no argument required
2323
      # The diagnosis changed in icc 8.0:
2324
      #   icc: Command line remark: option '-MP' not supported
2325
      if (grep 'ignoring option' conftest.err ||
2326
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2327
        am_cv_CC_dependencies_compiler_type=$depmode
2328
        break
2329
      fi
2330
    fi
2331
  done
2332
 
2333
  cd ..
2334
  rm -rf conftest.dir
2335
else
2336
  am_cv_CC_dependencies_compiler_type=none
2337
fi
2338
 
2339
fi
2340
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2341
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2342
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2343
 
2344
 
2345
 
2346
if
2347
  test "x$enable_dependency_tracking" != xno \
2348
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2349
  am__fastdepCC_TRUE=
2350
  am__fastdepCC_FALSE='#'
2351
else
2352
  am__fastdepCC_TRUE='#'
2353
  am__fastdepCC_FALSE=
2354
fi
2355
 
2356
 
2357
if test -z "$CC"; then
2358
  # Extract the first word of "cc", so it can be a program name with args.
2359
set dummy cc; ac_word=$2
2360
echo "$as_me:$LINENO: checking for $ac_word" >&5
2361
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362
if test "${ac_cv_prog_CC+set}" = set; then
2363
  echo $ECHO_N "(cached) $ECHO_C" >&6
2364
else
2365
  if test -n "$CC"; then
2366
  ac_cv_prog_CC="$CC" # Let the user override the test.
2367
else
2368
  ac_prog_rejected=no
2369
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370
for as_dir in $PATH
2371
do
2372
  IFS=$as_save_IFS
2373
  test -z "$as_dir" && as_dir=.
2374
  for ac_exec_ext in '' $ac_executable_extensions; do
2375
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2377
       ac_prog_rejected=yes
2378
       continue
2379
     fi
2380
    ac_cv_prog_CC="cc"
2381
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382
    break 2
2383
  fi
2384
done
2385
done
2386
 
2387
if test $ac_prog_rejected = yes; then
2388
  # We found a bogon in the path, so make sure we never use it.
2389
  set dummy $ac_cv_prog_CC
2390
  shift
2391
  if test $# != 0; then
2392
    # We chose a different compiler from the bogus one.
2393
    # However, it has the same basename, so the bogon will be chosen
2394
    # first if we set CC to just the basename; use the full file name.
2395
    shift
2396
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2397
  fi
2398
fi
2399
fi
2400
fi
2401
CC=$ac_cv_prog_CC
2402
if test -n "$CC"; then
2403
  echo "$as_me:$LINENO: result: $CC" >&5
2404
echo "${ECHO_T}$CC" >&6
2405
else
2406
  echo "$as_me:$LINENO: result: no" >&5
2407
echo "${ECHO_T}no" >&6
2408
fi
2409
 
2410
  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2411
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2412
   { (exit 1); exit 1; }; }
2413
fi
2414
 
2415
echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
2416
echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
2417
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2418
  echo $ECHO_N "(cached) $ECHO_C" >&6
2419
else
2420
  cat > conftest.c <
2421
#ifdef __GNUC__
2422
  yes;
2423
#endif
2424
EOF
2425
if { ac_try='${CC-cc} -E conftest.c'
2426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427
  (eval $ac_try) 2>&5
2428
  ac_status=$?
2429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2431
  ac_cv_c_compiler_gnu=yes
2432
else
2433
  ac_cv_c_compiler_gnu=no
2434
fi
2435
fi
2436
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2437
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2438
 
2439
if test $ac_cv_c_compiler_gnu = yes; then
2440
  GCC=yes
2441
  ac_test_CFLAGS="${CFLAGS+set}"
2442
  ac_save_CFLAGS="$CFLAGS"
2443
  CFLAGS=
2444
  ac_test_CFLAGS=${CFLAGS+set}
2445
ac_save_CFLAGS=$CFLAGS
2446
CFLAGS="-g"
2447
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2448
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2449
if test "${ac_cv_prog_cc_g+set}" = set; then
2450
  echo $ECHO_N "(cached) $ECHO_C" >&6
2451
else
2452
  cat >conftest.$ac_ext <<_ACEOF
2453
/* confdefs.h.  */
2454
_ACEOF
2455
cat confdefs.h >>conftest.$ac_ext
2456
cat >>conftest.$ac_ext <<_ACEOF
2457
/* end confdefs.h.  */
2458
 
2459
int
2460
main ()
2461
{
2462
 
2463
  ;
2464
  return 0;
2465
}
2466
_ACEOF
2467
rm -f conftest.$ac_objext
2468
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469
  (eval $ac_compile) 2>conftest.er1
2470
  ac_status=$?
2471
  grep -v '^ *+' conftest.er1 >conftest.err
2472
  rm -f conftest.er1
2473
  cat conftest.err >&5
2474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475
  (exit $ac_status); } &&
2476
         { ac_try='test -z "$ac_c_werror_flag"
2477
                         || test ! -s conftest.err'
2478
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479
  (eval $ac_try) 2>&5
2480
  ac_status=$?
2481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482
  (exit $ac_status); }; } &&
2483
         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2489
  ac_cv_prog_cc_g=yes
2490
else
2491
  echo "$as_me: failed program was:" >&5
2492
sed 's/^/| /' conftest.$ac_ext >&5
2493
 
2494
ac_cv_prog_cc_g=no
2495
fi
2496
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2497
fi
2498
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2499
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2500
if test "$ac_test_CFLAGS" = set; then
2501
  CFLAGS=$ac_save_CFLAGS
2502
elif test $ac_cv_prog_cc_g = yes; then
2503
  if test "$GCC" = yes; then
2504
    CFLAGS="-g -O2"
2505
  else
2506
    CFLAGS="-g"
2507
  fi
2508
else
2509
  if test "$GCC" = yes; then
2510
    CFLAGS="-O2"
2511
  else
2512
    CFLAGS=
2513
  fi
2514
fi
2515
  if test "$ac_test_CFLAGS" = set; then
2516
    CFLAGS="$ac_save_CFLAGS"
2517
  elif test $ac_cv_prog_cc_g = yes; then
2518
    CFLAGS="-g -O2"
2519
  else
2520
    CFLAGS="-O2"
2521
  fi
2522
else
2523
  GCC=
2524
  test "${CFLAGS+set}" = set || CFLAGS="-g"
2525
fi
2526
 
2527
 
2528
if test -n "$ac_tool_prefix"; then
2529
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2530
set dummy ${ac_tool_prefix}as; ac_word=$2
2531
echo "$as_me:$LINENO: checking for $ac_word" >&5
2532
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2533
if test "${ac_cv_prog_AS+set}" = set; then
2534
  echo $ECHO_N "(cached) $ECHO_C" >&6
2535
else
2536
  if test -n "$AS"; then
2537
  ac_cv_prog_AS="$AS" # Let the user override the test.
2538
else
2539
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540
for as_dir in $PATH
2541
do
2542
  IFS=$as_save_IFS
2543
  test -z "$as_dir" && as_dir=.
2544
  for ac_exec_ext in '' $ac_executable_extensions; do
2545
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546
    ac_cv_prog_AS="${ac_tool_prefix}as"
2547
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548
    break 2
2549
  fi
2550
done
2551
done
2552
 
2553
fi
2554
fi
2555
AS=$ac_cv_prog_AS
2556
if test -n "$AS"; then
2557
  echo "$as_me:$LINENO: result: $AS" >&5
2558
echo "${ECHO_T}$AS" >&6
2559
else
2560
  echo "$as_me:$LINENO: result: no" >&5
2561
echo "${ECHO_T}no" >&6
2562
fi
2563
 
2564
fi
2565
if test -z "$ac_cv_prog_AS"; then
2566
  ac_ct_AS=$AS
2567
  # Extract the first word of "as", so it can be a program name with args.
2568
set dummy as; ac_word=$2
2569
echo "$as_me:$LINENO: checking for $ac_word" >&5
2570
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2571
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2572
  echo $ECHO_N "(cached) $ECHO_C" >&6
2573
else
2574
  if test -n "$ac_ct_AS"; then
2575
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2576
else
2577
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578
for as_dir in $PATH
2579
do
2580
  IFS=$as_save_IFS
2581
  test -z "$as_dir" && as_dir=.
2582
  for ac_exec_ext in '' $ac_executable_extensions; do
2583
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584
    ac_cv_prog_ac_ct_AS="as"
2585
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586
    break 2
2587
  fi
2588
done
2589
done
2590
 
2591
fi
2592
fi
2593
ac_ct_AS=$ac_cv_prog_ac_ct_AS
2594
if test -n "$ac_ct_AS"; then
2595
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2596
echo "${ECHO_T}$ac_ct_AS" >&6
2597
else
2598
  echo "$as_me:$LINENO: result: no" >&5
2599
echo "${ECHO_T}no" >&6
2600
fi
2601
 
2602
  AS=$ac_ct_AS
2603
else
2604
  AS="$ac_cv_prog_AS"
2605
fi
2606
 
2607
if test -n "$ac_tool_prefix"; then
2608
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2609
set dummy ${ac_tool_prefix}ar; ac_word=$2
2610
echo "$as_me:$LINENO: checking for $ac_word" >&5
2611
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2612
if test "${ac_cv_prog_AR+set}" = set; then
2613
  echo $ECHO_N "(cached) $ECHO_C" >&6
2614
else
2615
  if test -n "$AR"; then
2616
  ac_cv_prog_AR="$AR" # Let the user override the test.
2617
else
2618
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619
for as_dir in $PATH
2620
do
2621
  IFS=$as_save_IFS
2622
  test -z "$as_dir" && as_dir=.
2623
  for ac_exec_ext in '' $ac_executable_extensions; do
2624
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2625
    ac_cv_prog_AR="${ac_tool_prefix}ar"
2626
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627
    break 2
2628
  fi
2629
done
2630
done
2631
 
2632
fi
2633
fi
2634
AR=$ac_cv_prog_AR
2635
if test -n "$AR"; then
2636
  echo "$as_me:$LINENO: result: $AR" >&5
2637
echo "${ECHO_T}$AR" >&6
2638
else
2639
  echo "$as_me:$LINENO: result: no" >&5
2640
echo "${ECHO_T}no" >&6
2641
fi
2642
 
2643
fi
2644
if test -z "$ac_cv_prog_AR"; then
2645
  ac_ct_AR=$AR
2646
  # Extract the first word of "ar", so it can be a program name with args.
2647
set dummy ar; ac_word=$2
2648
echo "$as_me:$LINENO: checking for $ac_word" >&5
2649
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2650
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2651
  echo $ECHO_N "(cached) $ECHO_C" >&6
2652
else
2653
  if test -n "$ac_ct_AR"; then
2654
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2655
else
2656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657
for as_dir in $PATH
2658
do
2659
  IFS=$as_save_IFS
2660
  test -z "$as_dir" && as_dir=.
2661
  for ac_exec_ext in '' $ac_executable_extensions; do
2662
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663
    ac_cv_prog_ac_ct_AR="ar"
2664
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665
    break 2
2666
  fi
2667
done
2668
done
2669
 
2670
fi
2671
fi
2672
ac_ct_AR=$ac_cv_prog_ac_ct_AR
2673
if test -n "$ac_ct_AR"; then
2674
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2675
echo "${ECHO_T}$ac_ct_AR" >&6
2676
else
2677
  echo "$as_me:$LINENO: result: no" >&5
2678
echo "${ECHO_T}no" >&6
2679
fi
2680
 
2681
  AR=$ac_ct_AR
2682
else
2683
  AR="$ac_cv_prog_AR"
2684
fi
2685
 
2686
if test -n "$ac_tool_prefix"; then
2687
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2688
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2689
echo "$as_me:$LINENO: checking for $ac_word" >&5
2690
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2691
if test "${ac_cv_prog_RANLIB+set}" = set; then
2692
  echo $ECHO_N "(cached) $ECHO_C" >&6
2693
else
2694
  if test -n "$RANLIB"; then
2695
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2696
else
2697
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698
for as_dir in $PATH
2699
do
2700
  IFS=$as_save_IFS
2701
  test -z "$as_dir" && as_dir=.
2702
  for ac_exec_ext in '' $ac_executable_extensions; do
2703
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2705
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706
    break 2
2707
  fi
2708
done
2709
done
2710
 
2711
fi
2712
fi
2713
RANLIB=$ac_cv_prog_RANLIB
2714
if test -n "$RANLIB"; then
2715
  echo "$as_me:$LINENO: result: $RANLIB" >&5
2716
echo "${ECHO_T}$RANLIB" >&6
2717
else
2718
  echo "$as_me:$LINENO: result: no" >&5
2719
echo "${ECHO_T}no" >&6
2720
fi
2721
 
2722
fi
2723
if test -z "$ac_cv_prog_RANLIB"; then
2724
  ac_ct_RANLIB=$RANLIB
2725
  # Extract the first word of "ranlib", so it can be a program name with args.
2726
set dummy ranlib; ac_word=$2
2727
echo "$as_me:$LINENO: checking for $ac_word" >&5
2728
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2729
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2730
  echo $ECHO_N "(cached) $ECHO_C" >&6
2731
else
2732
  if test -n "$ac_ct_RANLIB"; then
2733
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2734
else
2735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736
for as_dir in $PATH
2737
do
2738
  IFS=$as_save_IFS
2739
  test -z "$as_dir" && as_dir=.
2740
  for ac_exec_ext in '' $ac_executable_extensions; do
2741
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742
    ac_cv_prog_ac_ct_RANLIB="ranlib"
2743
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744
    break 2
2745
  fi
2746
done
2747
done
2748
 
2749
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2750
fi
2751
fi
2752
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2753
if test -n "$ac_ct_RANLIB"; then
2754
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2755
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2756
else
2757
  echo "$as_me:$LINENO: result: no" >&5
2758
echo "${ECHO_T}no" >&6
2759
fi
2760
 
2761
  RANLIB=$ac_ct_RANLIB
2762
else
2763
  RANLIB="$ac_cv_prog_RANLIB"
2764
fi
2765
 
2766
if test -n "$ac_tool_prefix"; then
2767
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2768
set dummy ${ac_tool_prefix}readelf; ac_word=$2
2769
echo "$as_me:$LINENO: checking for $ac_word" >&5
2770
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2771
if test "${ac_cv_prog_READELF+set}" = set; then
2772
  echo $ECHO_N "(cached) $ECHO_C" >&6
2773
else
2774
  if test -n "$READELF"; then
2775
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
2776
else
2777
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778
for as_dir in $PATH
2779
do
2780
  IFS=$as_save_IFS
2781
  test -z "$as_dir" && as_dir=.
2782
  for ac_exec_ext in '' $ac_executable_extensions; do
2783
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2785
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786
    break 2
2787
  fi
2788
done
2789
done
2790
 
2791
fi
2792
fi
2793
READELF=$ac_cv_prog_READELF
2794
if test -n "$READELF"; then
2795
  echo "$as_me:$LINENO: result: $READELF" >&5
2796
echo "${ECHO_T}$READELF" >&6
2797
else
2798
  echo "$as_me:$LINENO: result: no" >&5
2799
echo "${ECHO_T}no" >&6
2800
fi
2801
 
2802
fi
2803
if test -z "$ac_cv_prog_READELF"; then
2804
  ac_ct_READELF=$READELF
2805
  # Extract the first word of "readelf", so it can be a program name with args.
2806
set dummy readelf; ac_word=$2
2807
echo "$as_me:$LINENO: checking for $ac_word" >&5
2808
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2809
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
2810
  echo $ECHO_N "(cached) $ECHO_C" >&6
2811
else
2812
  if test -n "$ac_ct_READELF"; then
2813
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2814
else
2815
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816
for as_dir in $PATH
2817
do
2818
  IFS=$as_save_IFS
2819
  test -z "$as_dir" && as_dir=.
2820
  for ac_exec_ext in '' $ac_executable_extensions; do
2821
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822
    ac_cv_prog_ac_ct_READELF="readelf"
2823
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824
    break 2
2825
  fi
2826
done
2827
done
2828
 
2829
  test -z "$ac_cv_prog_ac_ct_READELF" && ac_cv_prog_ac_ct_READELF=":"
2830
fi
2831
fi
2832
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2833
if test -n "$ac_ct_READELF"; then
2834
  echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
2835
echo "${ECHO_T}$ac_ct_READELF" >&6
2836
else
2837
  echo "$as_me:$LINENO: result: no" >&5
2838
echo "${ECHO_T}no" >&6
2839
fi
2840
 
2841
  READELF=$ac_ct_READELF
2842
else
2843
  READELF="$ac_cv_prog_READELF"
2844
fi
2845
 
2846
 
2847
# Find a good install program.  We prefer a C program (faster),
2848
# so one script is as good as another.  But avoid the broken or
2849
# incompatible versions:
2850
# SysV /etc/install, /usr/sbin/install
2851
# SunOS /usr/etc/install
2852
# IRIX /sbin/install
2853
# AIX /bin/install
2854
# AmigaOS /C/install, which installs bootblocks on floppy discs
2855
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2856
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2857
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2858
# OS/2's system install, which has a completely different semantic
2859
# ./install, which can be erroneously created by make from ./install.sh.
2860
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2861
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2862
if test -z "$INSTALL"; then
2863
if test "${ac_cv_path_install+set}" = set; then
2864
  echo $ECHO_N "(cached) $ECHO_C" >&6
2865
else
2866
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867
for as_dir in $PATH
2868
do
2869
  IFS=$as_save_IFS
2870
  test -z "$as_dir" && as_dir=.
2871
  # Account for people who put trailing slashes in PATH elements.
2872
case $as_dir/ in
2873
  ./ | .// | /cC/* | \
2874
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2875
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2876
  /usr/ucb/* ) ;;
2877
  *)
2878
    # OSF1 and SCO ODT 3.0 have their own names for install.
2879
    # Don't use installbsd from OSF since it installs stuff as root
2880
    # by default.
2881
    for ac_prog in ginstall scoinst install; do
2882
      for ac_exec_ext in '' $ac_executable_extensions; do
2883
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2884
          if test $ac_prog = install &&
2885
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2886
            # AIX install.  It has an incompatible calling convention.
2887
            :
2888
          elif test $ac_prog = install &&
2889
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2890
            # program-specific install script used by HP pwplus--don't use.
2891
            :
2892
          else
2893
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2894
            break 3
2895
          fi
2896
        fi
2897
      done
2898
    done
2899
    ;;
2900
esac
2901
done
2902
 
2903
 
2904
fi
2905
  if test "${ac_cv_path_install+set}" = set; then
2906
    INSTALL=$ac_cv_path_install
2907
  else
2908
    # As a last resort, use the slow shell script.  We don't cache a
2909
    # path for INSTALL within a source directory, because that will
2910
    # break other packages using the cache if that directory is
2911
    # removed, or if the path is relative.
2912
    INSTALL=$ac_install_sh
2913
  fi
2914
fi
2915
echo "$as_me:$LINENO: result: $INSTALL" >&5
2916
echo "${ECHO_T}$INSTALL" >&6
2917
 
2918
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2919
# It thinks the first close brace ends the variable substitution.
2920
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2921
 
2922
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2923
 
2924
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2925
 
2926
 
2927
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
2928
ac_given_INSTALL=$INSTALL
2929
 
2930
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2931
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2932
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2933
if test "${enable_maintainer_mode+set}" = set; then
2934
  enableval="$enable_maintainer_mode"
2935
  USE_MAINTAINER_MODE=$enableval
2936
else
2937
  USE_MAINTAINER_MODE=no
2938
fi;
2939
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2940
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2941
 
2942
 
2943
if test $USE_MAINTAINER_MODE = yes; then
2944
  MAINTAINER_MODE_TRUE=
2945
  MAINTAINER_MODE_FALSE='#'
2946
else
2947
  MAINTAINER_MODE_TRUE='#'
2948
  MAINTAINER_MODE_FALSE=
2949
fi
2950
 
2951
  MAINT=$MAINTAINER_MODE_TRUE
2952
 
2953
 
2954
# By default we simply use the C compiler to build assembly code.
2955
 
2956
test "${CCAS+set}" = set || CCAS=$CC
2957
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2958
 
2959
 
2960
 
2961
 
2962
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
2963
# at least currently, we never actually build a program, so we never
2964
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
2965
# fails, because we are probably configuring with a cross compiler
2966
# which can't create executables.  So we include AC_EXEEXT to keep
2967
# automake happy, but we don't execute it, since we don't care about
2968
# the result.
2969
if false; then
2970
 
2971
  dummy_var=1
2972
fi
2973
 
2974
. ${newlib_basedir}/configure.host
2975
 
2976
newlib_cflags="${newlib_cflags} -fno-builtin"
2977
 
2978
NEWLIB_CFLAGS=${newlib_cflags}
2979
 
2980
 
2981
LDFLAGS=${ldflags}
2982
 
2983
 
2984
 
2985
 
2986
if test x${newlib_elix_level} = x0; then
2987
  ELIX_LEVEL_0_TRUE=
2988
  ELIX_LEVEL_0_FALSE='#'
2989
else
2990
  ELIX_LEVEL_0_TRUE='#'
2991
  ELIX_LEVEL_0_FALSE=
2992
fi
2993
 
2994
 
2995
 
2996
if test x${newlib_elix_level} = x1; then
2997
  ELIX_LEVEL_1_TRUE=
2998
  ELIX_LEVEL_1_FALSE='#'
2999
else
3000
  ELIX_LEVEL_1_TRUE='#'
3001
  ELIX_LEVEL_1_FALSE=
3002
fi
3003
 
3004
 
3005
 
3006
if test x${newlib_elix_level} = x2; then
3007
  ELIX_LEVEL_2_TRUE=
3008
  ELIX_LEVEL_2_FALSE='#'
3009
else
3010
  ELIX_LEVEL_2_TRUE='#'
3011
  ELIX_LEVEL_2_FALSE=
3012
fi
3013
 
3014
 
3015
 
3016
if test x${newlib_elix_level} = x3; then
3017
  ELIX_LEVEL_3_TRUE=
3018
  ELIX_LEVEL_3_FALSE='#'
3019
else
3020
  ELIX_LEVEL_3_TRUE='#'
3021
  ELIX_LEVEL_3_FALSE=
3022
fi
3023
 
3024
 
3025
 
3026
if test x${newlib_elix_level} = x4; then
3027
  ELIX_LEVEL_4_TRUE=
3028
  ELIX_LEVEL_4_FALSE='#'
3029
else
3030
  ELIX_LEVEL_4_TRUE='#'
3031
  ELIX_LEVEL_4_FALSE=
3032
fi
3033
 
3034
 
3035
 
3036
 
3037
if test x${use_libtool} = xyes; then
3038
  USE_LIBTOOL_TRUE=
3039
  USE_LIBTOOL_FALSE='#'
3040
else
3041
  USE_LIBTOOL_TRUE='#'
3042
  USE_LIBTOOL_FALSE=
3043
fi
3044
 
3045
 
3046
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3047
# use oext, which is set in configure.host based on the target platform.
3048
OBJEXT=${oext}
3049
 
3050
 
3051
 
3052
 
3053
 
3054
 
3055
 
3056
 
3057
 
3058
 
3059
 
3060
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3061
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3062
if test "${lt_cv_path_SED+set}" = set; then
3063
  echo $ECHO_N "(cached) $ECHO_C" >&6
3064
else
3065
  # Loop through the user's path and test for sed and gsed.
3066
# Then use that list of sed's as ones to test for truncation.
3067
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068
for as_dir in $PATH
3069
do
3070
  IFS=$as_save_IFS
3071
  test -z "$as_dir" && as_dir=.
3072
  for lt_ac_prog in sed gsed; do
3073
    for ac_exec_ext in '' $ac_executable_extensions; do
3074
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3075
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3076
      fi
3077
    done
3078
  done
3079
done
3080
IFS=$as_save_IFS
3081
lt_ac_max=0
3082
lt_ac_count=0
3083
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3084
# along with /bin/sed that truncates output.
3085
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3086
  test ! -f $lt_ac_sed && continue
3087
  cat /dev/null > conftest.in
3088
  lt_ac_count=0
3089
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3090
  # Check for GNU sed and select it if it is found.
3091
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3092
    lt_cv_path_SED=$lt_ac_sed
3093
    break
3094
  fi
3095
  while true; do
3096
    cat conftest.in conftest.in >conftest.tmp
3097
    mv conftest.tmp conftest.in
3098
    cp conftest.in conftest.nl
3099
    echo >>conftest.nl
3100
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3101
    cmp -s conftest.out conftest.nl || break
3102
    # 10000 chars as input seems more than enough
3103
    test $lt_ac_count -gt 10 && break
3104
    lt_ac_count=`expr $lt_ac_count + 1`
3105
    if test $lt_ac_count -gt $lt_ac_max; then
3106
      lt_ac_max=$lt_ac_count
3107
      lt_cv_path_SED=$lt_ac_sed
3108
    fi
3109
  done
3110
done
3111
 
3112
fi
3113
 
3114
SED=$lt_cv_path_SED
3115
 
3116
echo "$as_me:$LINENO: result: $SED" >&5
3117
echo "${ECHO_T}$SED" >&6
3118
 
3119
test -z "$SED" && SED=sed
3120
Xsed="$SED -e 1s/^X//"
3121
 
3122
 
3123
 
3124
 
3125
 
3126
 
3127
 
3128
 
3129
 
3130
 
3131
 
3132
if test "${use_libtool}" = "yes"; then
3133
enable_win32_dll=yes
3134
 
3135
case $host in
3136
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3137
  if test -n "$ac_tool_prefix"; then
3138
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3139
set dummy ${ac_tool_prefix}as; ac_word=$2
3140
echo "$as_me:$LINENO: checking for $ac_word" >&5
3141
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142
if test "${ac_cv_prog_AS+set}" = set; then
3143
  echo $ECHO_N "(cached) $ECHO_C" >&6
3144
else
3145
  if test -n "$AS"; then
3146
  ac_cv_prog_AS="$AS" # Let the user override the test.
3147
else
3148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149
for as_dir in $PATH
3150
do
3151
  IFS=$as_save_IFS
3152
  test -z "$as_dir" && as_dir=.
3153
  for ac_exec_ext in '' $ac_executable_extensions; do
3154
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155
    ac_cv_prog_AS="${ac_tool_prefix}as"
3156
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157
    break 2
3158
  fi
3159
done
3160
done
3161
 
3162
fi
3163
fi
3164
AS=$ac_cv_prog_AS
3165
if test -n "$AS"; then
3166
  echo "$as_me:$LINENO: result: $AS" >&5
3167
echo "${ECHO_T}$AS" >&6
3168
else
3169
  echo "$as_me:$LINENO: result: no" >&5
3170
echo "${ECHO_T}no" >&6
3171
fi
3172
 
3173
fi
3174
if test -z "$ac_cv_prog_AS"; then
3175
  ac_ct_AS=$AS
3176
  # Extract the first word of "as", so it can be a program name with args.
3177
set dummy as; ac_word=$2
3178
echo "$as_me:$LINENO: checking for $ac_word" >&5
3179
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3180
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3181
  echo $ECHO_N "(cached) $ECHO_C" >&6
3182
else
3183
  if test -n "$ac_ct_AS"; then
3184
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3185
else
3186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187
for as_dir in $PATH
3188
do
3189
  IFS=$as_save_IFS
3190
  test -z "$as_dir" && as_dir=.
3191
  for ac_exec_ext in '' $ac_executable_extensions; do
3192
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193
    ac_cv_prog_ac_ct_AS="as"
3194
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3195
    break 2
3196
  fi
3197
done
3198
done
3199
 
3200
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3201
fi
3202
fi
3203
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3204
if test -n "$ac_ct_AS"; then
3205
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3206
echo "${ECHO_T}$ac_ct_AS" >&6
3207
else
3208
  echo "$as_me:$LINENO: result: no" >&5
3209
echo "${ECHO_T}no" >&6
3210
fi
3211
 
3212
  AS=$ac_ct_AS
3213
else
3214
  AS="$ac_cv_prog_AS"
3215
fi
3216
 
3217
  if test -n "$ac_tool_prefix"; then
3218
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3219
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3220
echo "$as_me:$LINENO: checking for $ac_word" >&5
3221
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3223
  echo $ECHO_N "(cached) $ECHO_C" >&6
3224
else
3225
  if test -n "$DLLTOOL"; then
3226
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3227
else
3228
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229
for as_dir in $PATH
3230
do
3231
  IFS=$as_save_IFS
3232
  test -z "$as_dir" && as_dir=.
3233
  for ac_exec_ext in '' $ac_executable_extensions; do
3234
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3236
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237
    break 2
3238
  fi
3239
done
3240
done
3241
 
3242
fi
3243
fi
3244
DLLTOOL=$ac_cv_prog_DLLTOOL
3245
if test -n "$DLLTOOL"; then
3246
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3247
echo "${ECHO_T}$DLLTOOL" >&6
3248
else
3249
  echo "$as_me:$LINENO: result: no" >&5
3250
echo "${ECHO_T}no" >&6
3251
fi
3252
 
3253
fi
3254
if test -z "$ac_cv_prog_DLLTOOL"; then
3255
  ac_ct_DLLTOOL=$DLLTOOL
3256
  # Extract the first word of "dlltool", so it can be a program name with args.
3257
set dummy dlltool; ac_word=$2
3258
echo "$as_me:$LINENO: checking for $ac_word" >&5
3259
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3261
  echo $ECHO_N "(cached) $ECHO_C" >&6
3262
else
3263
  if test -n "$ac_ct_DLLTOOL"; then
3264
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3265
else
3266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267
for as_dir in $PATH
3268
do
3269
  IFS=$as_save_IFS
3270
  test -z "$as_dir" && as_dir=.
3271
  for ac_exec_ext in '' $ac_executable_extensions; do
3272
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3274
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275
    break 2
3276
  fi
3277
done
3278
done
3279
 
3280
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3281
fi
3282
fi
3283
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3284
if test -n "$ac_ct_DLLTOOL"; then
3285
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3286
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3287
else
3288
  echo "$as_me:$LINENO: result: no" >&5
3289
echo "${ECHO_T}no" >&6
3290
fi
3291
 
3292
  DLLTOOL=$ac_ct_DLLTOOL
3293
else
3294
  DLLTOOL="$ac_cv_prog_DLLTOOL"
3295
fi
3296
 
3297
  if test -n "$ac_tool_prefix"; then
3298
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3299
set dummy ${ac_tool_prefix}objdump; ac_word=$2
3300
echo "$as_me:$LINENO: checking for $ac_word" >&5
3301
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3303
  echo $ECHO_N "(cached) $ECHO_C" >&6
3304
else
3305
  if test -n "$OBJDUMP"; then
3306
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3307
else
3308
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309
for as_dir in $PATH
3310
do
3311
  IFS=$as_save_IFS
3312
  test -z "$as_dir" && as_dir=.
3313
  for ac_exec_ext in '' $ac_executable_extensions; do
3314
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3316
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317
    break 2
3318
  fi
3319
done
3320
done
3321
 
3322
fi
3323
fi
3324
OBJDUMP=$ac_cv_prog_OBJDUMP
3325
if test -n "$OBJDUMP"; then
3326
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3327
echo "${ECHO_T}$OBJDUMP" >&6
3328
else
3329
  echo "$as_me:$LINENO: result: no" >&5
3330
echo "${ECHO_T}no" >&6
3331
fi
3332
 
3333
fi
3334
if test -z "$ac_cv_prog_OBJDUMP"; then
3335
  ac_ct_OBJDUMP=$OBJDUMP
3336
  # Extract the first word of "objdump", so it can be a program name with args.
3337
set dummy objdump; ac_word=$2
3338
echo "$as_me:$LINENO: checking for $ac_word" >&5
3339
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3340
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3341
  echo $ECHO_N "(cached) $ECHO_C" >&6
3342
else
3343
  if test -n "$ac_ct_OBJDUMP"; then
3344
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3345
else
3346
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347
for as_dir in $PATH
3348
do
3349
  IFS=$as_save_IFS
3350
  test -z "$as_dir" && as_dir=.
3351
  for ac_exec_ext in '' $ac_executable_extensions; do
3352
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
3354
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355
    break 2
3356
  fi
3357
done
3358
done
3359
 
3360
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3361
fi
3362
fi
3363
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3364
if test -n "$ac_ct_OBJDUMP"; then
3365
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3366
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3367
else
3368
  echo "$as_me:$LINENO: result: no" >&5
3369
echo "${ECHO_T}no" >&6
3370
fi
3371
 
3372
  OBJDUMP=$ac_ct_OBJDUMP
3373
else
3374
  OBJDUMP="$ac_cv_prog_OBJDUMP"
3375
fi
3376
 
3377
  ;;
3378
esac
3379
 
3380
test -z "$AS" && AS=as
3381
 
3382
 
3383
 
3384
 
3385
 
3386
test -z "$DLLTOOL" && DLLTOOL=dlltool
3387
 
3388
 
3389
 
3390
 
3391
 
3392
test -z "$OBJDUMP" && OBJDUMP=objdump
3393
 
3394
 
3395
 
3396
 
3397
 
3398
 
3399
 
3400
case `pwd` in
3401
  *\ * | *\     *)
3402
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3403
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3404
esac
3405
 
3406
 
3407
 
3408
macro_version='2.2.6'
3409
macro_revision='1.3012'
3410
 
3411
 
3412
 
3413
 
3414
 
3415
 
3416
 
3417
 
3418
 
3419
 
3420
 
3421
 
3422
 
3423
ltmain="$ac_aux_dir/ltmain.sh"
3424
 
3425
ac_ext=c
3426
ac_cpp='$CPP $CPPFLAGS'
3427
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430
if test -n "$ac_tool_prefix"; then
3431
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3432
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3433
echo "$as_me:$LINENO: checking for $ac_word" >&5
3434
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3435
if test "${ac_cv_prog_CC+set}" = set; then
3436
  echo $ECHO_N "(cached) $ECHO_C" >&6
3437
else
3438
  if test -n "$CC"; then
3439
  ac_cv_prog_CC="$CC" # Let the user override the test.
3440
else
3441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442
for as_dir in $PATH
3443
do
3444
  IFS=$as_save_IFS
3445
  test -z "$as_dir" && as_dir=.
3446
  for ac_exec_ext in '' $ac_executable_extensions; do
3447
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3449
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450
    break 2
3451
  fi
3452
done
3453
done
3454
 
3455
fi
3456
fi
3457
CC=$ac_cv_prog_CC
3458
if test -n "$CC"; then
3459
  echo "$as_me:$LINENO: result: $CC" >&5
3460
echo "${ECHO_T}$CC" >&6
3461
else
3462
  echo "$as_me:$LINENO: result: no" >&5
3463
echo "${ECHO_T}no" >&6
3464
fi
3465
 
3466
fi
3467
if test -z "$ac_cv_prog_CC"; then
3468
  ac_ct_CC=$CC
3469
  # Extract the first word of "gcc", so it can be a program name with args.
3470
set dummy gcc; ac_word=$2
3471
echo "$as_me:$LINENO: checking for $ac_word" >&5
3472
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3474
  echo $ECHO_N "(cached) $ECHO_C" >&6
3475
else
3476
  if test -n "$ac_ct_CC"; then
3477
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3478
else
3479
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480
for as_dir in $PATH
3481
do
3482
  IFS=$as_save_IFS
3483
  test -z "$as_dir" && as_dir=.
3484
  for ac_exec_ext in '' $ac_executable_extensions; do
3485
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3486
    ac_cv_prog_ac_ct_CC="gcc"
3487
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3488
    break 2
3489
  fi
3490
done
3491
done
3492
 
3493
fi
3494
fi
3495
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3496
if test -n "$ac_ct_CC"; then
3497
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3498
echo "${ECHO_T}$ac_ct_CC" >&6
3499
else
3500
  echo "$as_me:$LINENO: result: no" >&5
3501
echo "${ECHO_T}no" >&6
3502
fi
3503
 
3504
  CC=$ac_ct_CC
3505
else
3506
  CC="$ac_cv_prog_CC"
3507
fi
3508
 
3509
if test -z "$CC"; then
3510
  if test -n "$ac_tool_prefix"; then
3511
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3512
set dummy ${ac_tool_prefix}cc; ac_word=$2
3513
echo "$as_me:$LINENO: checking for $ac_word" >&5
3514
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3515
if test "${ac_cv_prog_CC+set}" = set; then
3516
  echo $ECHO_N "(cached) $ECHO_C" >&6
3517
else
3518
  if test -n "$CC"; then
3519
  ac_cv_prog_CC="$CC" # Let the user override the test.
3520
else
3521
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522
for as_dir in $PATH
3523
do
3524
  IFS=$as_save_IFS
3525
  test -z "$as_dir" && as_dir=.
3526
  for ac_exec_ext in '' $ac_executable_extensions; do
3527
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3529
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530
    break 2
3531
  fi
3532
done
3533
done
3534
 
3535
fi
3536
fi
3537
CC=$ac_cv_prog_CC
3538
if test -n "$CC"; then
3539
  echo "$as_me:$LINENO: result: $CC" >&5
3540
echo "${ECHO_T}$CC" >&6
3541
else
3542
  echo "$as_me:$LINENO: result: no" >&5
3543
echo "${ECHO_T}no" >&6
3544
fi
3545
 
3546
fi
3547
if test -z "$ac_cv_prog_CC"; then
3548
  ac_ct_CC=$CC
3549
  # Extract the first word of "cc", so it can be a program name with args.
3550
set dummy cc; ac_word=$2
3551
echo "$as_me:$LINENO: checking for $ac_word" >&5
3552
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3553
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3554
  echo $ECHO_N "(cached) $ECHO_C" >&6
3555
else
3556
  if test -n "$ac_ct_CC"; then
3557
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3558
else
3559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560
for as_dir in $PATH
3561
do
3562
  IFS=$as_save_IFS
3563
  test -z "$as_dir" && as_dir=.
3564
  for ac_exec_ext in '' $ac_executable_extensions; do
3565
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3566
    ac_cv_prog_ac_ct_CC="cc"
3567
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3568
    break 2
3569
  fi
3570
done
3571
done
3572
 
3573
fi
3574
fi
3575
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3576
if test -n "$ac_ct_CC"; then
3577
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3578
echo "${ECHO_T}$ac_ct_CC" >&6
3579
else
3580
  echo "$as_me:$LINENO: result: no" >&5
3581
echo "${ECHO_T}no" >&6
3582
fi
3583
 
3584
  CC=$ac_ct_CC
3585
else
3586
  CC="$ac_cv_prog_CC"
3587
fi
3588
 
3589
fi
3590
if test -z "$CC"; then
3591
  # Extract the first word of "cc", so it can be a program name with args.
3592
set dummy cc; ac_word=$2
3593
echo "$as_me:$LINENO: checking for $ac_word" >&5
3594
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3595
if test "${ac_cv_prog_CC+set}" = set; then
3596
  echo $ECHO_N "(cached) $ECHO_C" >&6
3597
else
3598
  if test -n "$CC"; then
3599
  ac_cv_prog_CC="$CC" # Let the user override the test.
3600
else
3601
  ac_prog_rejected=no
3602
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603
for as_dir in $PATH
3604
do
3605
  IFS=$as_save_IFS
3606
  test -z "$as_dir" && as_dir=.
3607
  for ac_exec_ext in '' $ac_executable_extensions; do
3608
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3610
       ac_prog_rejected=yes
3611
       continue
3612
     fi
3613
    ac_cv_prog_CC="cc"
3614
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3615
    break 2
3616
  fi
3617
done
3618
done
3619
 
3620
if test $ac_prog_rejected = yes; then
3621
  # We found a bogon in the path, so make sure we never use it.
3622
  set dummy $ac_cv_prog_CC
3623
  shift
3624
  if test $# != 0; then
3625
    # We chose a different compiler from the bogus one.
3626
    # However, it has the same basename, so the bogon will be chosen
3627
    # first if we set CC to just the basename; use the full file name.
3628
    shift
3629
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3630
  fi
3631
fi
3632
fi
3633
fi
3634
CC=$ac_cv_prog_CC
3635
if test -n "$CC"; then
3636
  echo "$as_me:$LINENO: result: $CC" >&5
3637
echo "${ECHO_T}$CC" >&6
3638
else
3639
  echo "$as_me:$LINENO: result: no" >&5
3640
echo "${ECHO_T}no" >&6
3641
fi
3642
 
3643
fi
3644
if test -z "$CC"; then
3645
  if test -n "$ac_tool_prefix"; then
3646
  for ac_prog in cl
3647
  do
3648
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3649
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3650
echo "$as_me:$LINENO: checking for $ac_word" >&5
3651
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3652
if test "${ac_cv_prog_CC+set}" = set; then
3653
  echo $ECHO_N "(cached) $ECHO_C" >&6
3654
else
3655
  if test -n "$CC"; then
3656
  ac_cv_prog_CC="$CC" # Let the user override the test.
3657
else
3658
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659
for as_dir in $PATH
3660
do
3661
  IFS=$as_save_IFS
3662
  test -z "$as_dir" && as_dir=.
3663
  for ac_exec_ext in '' $ac_executable_extensions; do
3664
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3666
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667
    break 2
3668
  fi
3669
done
3670
done
3671
 
3672
fi
3673
fi
3674
CC=$ac_cv_prog_CC
3675
if test -n "$CC"; then
3676
  echo "$as_me:$LINENO: result: $CC" >&5
3677
echo "${ECHO_T}$CC" >&6
3678
else
3679
  echo "$as_me:$LINENO: result: no" >&5
3680
echo "${ECHO_T}no" >&6
3681
fi
3682
 
3683
    test -n "$CC" && break
3684
  done
3685
fi
3686
if test -z "$CC"; then
3687
  ac_ct_CC=$CC
3688
  for ac_prog in cl
3689
do
3690
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3691
set dummy $ac_prog; ac_word=$2
3692
echo "$as_me:$LINENO: checking for $ac_word" >&5
3693
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3694
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3695
  echo $ECHO_N "(cached) $ECHO_C" >&6
3696
else
3697
  if test -n "$ac_ct_CC"; then
3698
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3699
else
3700
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701
for as_dir in $PATH
3702
do
3703
  IFS=$as_save_IFS
3704
  test -z "$as_dir" && as_dir=.
3705
  for ac_exec_ext in '' $ac_executable_extensions; do
3706
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707
    ac_cv_prog_ac_ct_CC="$ac_prog"
3708
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709
    break 2
3710
  fi
3711
done
3712
done
3713
 
3714
fi
3715
fi
3716
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3717
if test -n "$ac_ct_CC"; then
3718
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3719
echo "${ECHO_T}$ac_ct_CC" >&6
3720
else
3721
  echo "$as_me:$LINENO: result: no" >&5
3722
echo "${ECHO_T}no" >&6
3723
fi
3724
 
3725
  test -n "$ac_ct_CC" && break
3726
done
3727
 
3728
  CC=$ac_ct_CC
3729
fi
3730
 
3731
fi
3732
 
3733
 
3734
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3735
See \`config.log' for more details." >&5
3736
echo "$as_me: error: no acceptable C compiler found in \$PATH
3737
See \`config.log' for more details." >&2;}
3738
   { (exit 1); exit 1; }; }
3739
 
3740
# Provide some information about the compiler.
3741
echo "$as_me:$LINENO:" \
3742
     "checking for C compiler version" >&5
3743
ac_compiler=`set X $ac_compile; echo $2`
3744
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3745
  (eval $ac_compiler --version &5) 2>&5
3746
  ac_status=$?
3747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748
  (exit $ac_status); }
3749
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3750
  (eval $ac_compiler -v &5) 2>&5
3751
  ac_status=$?
3752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753
  (exit $ac_status); }
3754
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3755
  (eval $ac_compiler -V &5) 2>&5
3756
  ac_status=$?
3757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758
  (exit $ac_status); }
3759
 
3760
cat >conftest.$ac_ext <<_ACEOF
3761
/* confdefs.h.  */
3762
_ACEOF
3763
cat confdefs.h >>conftest.$ac_ext
3764
cat >>conftest.$ac_ext <<_ACEOF
3765
/* end confdefs.h.  */
3766
 
3767
int
3768
main ()
3769
{
3770
 
3771
  ;
3772
  return 0;
3773
}
3774
_ACEOF
3775
ac_clean_files_save=$ac_clean_files
3776
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3777
# Try to create an executable without -o first, disregard a.out.
3778
# It will help us diagnose broken compilers, and finding out an intuition
3779
# of exeext.
3780
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3781
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3782
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3783
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3784
  (eval $ac_link_default) 2>&5
3785
  ac_status=$?
3786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787
  (exit $ac_status); }; then
3788
  # Find the output, starting from the most likely.  This scheme is
3789
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3790
# resort.
3791
 
3792
# Be careful to initialize this variable, since it used to be cached.
3793
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3794
ac_cv_exeext=
3795
# b.out is created by i960 compilers.
3796
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3797
do
3798
  test -f "$ac_file" || continue
3799
  case $ac_file in
3800
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3801
        ;;
3802
    conftest.$ac_ext )
3803
        # This is the source file.
3804
        ;;
3805
    [ab].out )
3806
        # We found the default executable, but exeext='' is most
3807
        # certainly right.
3808
        break;;
3809
    *.* )
3810
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3811
        # FIXME: I believe we export ac_cv_exeext for Libtool,
3812
        # but it would be cool to find out if it's true.  Does anybody
3813
        # maintain Libtool? --akim.
3814
        export ac_cv_exeext
3815
        break;;
3816
    * )
3817
        break;;
3818
  esac
3819
done
3820
else
3821
  echo "$as_me: failed program was:" >&5
3822
sed 's/^/| /' conftest.$ac_ext >&5
3823
 
3824
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3825
See \`config.log' for more details." >&5
3826
echo "$as_me: error: C compiler cannot create executables
3827
See \`config.log' for more details." >&2;}
3828
   { (exit 77); exit 77; }; }
3829
fi
3830
 
3831
ac_exeext=$ac_cv_exeext
3832
echo "$as_me:$LINENO: result: $ac_file" >&5
3833
echo "${ECHO_T}$ac_file" >&6
3834
 
3835
# Check the compiler produces executables we can run.  If not, either
3836
# the compiler is broken, or we cross compile.
3837
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3838
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3839
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3840
# If not cross compiling, check that we can run a simple program.
3841
if test "$cross_compiling" != yes; then
3842
  if { ac_try='./$ac_file'
3843
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844
  (eval $ac_try) 2>&5
3845
  ac_status=$?
3846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847
  (exit $ac_status); }; }; then
3848
    cross_compiling=no
3849
  else
3850
    if test "$cross_compiling" = maybe; then
3851
        cross_compiling=yes
3852
    else
3853
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3854
If you meant to cross compile, use \`--host'.
3855
See \`config.log' for more details." >&5
3856
echo "$as_me: error: cannot run C compiled programs.
3857
If you meant to cross compile, use \`--host'.
3858
See \`config.log' for more details." >&2;}
3859
   { (exit 1); exit 1; }; }
3860
    fi
3861
  fi
3862
fi
3863
echo "$as_me:$LINENO: result: yes" >&5
3864
echo "${ECHO_T}yes" >&6
3865
 
3866
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3867
ac_clean_files=$ac_clean_files_save
3868
# Check the compiler produces executables we can run.  If not, either
3869
# the compiler is broken, or we cross compile.
3870
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3871
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3872
echo "$as_me:$LINENO: result: $cross_compiling" >&5
3873
echo "${ECHO_T}$cross_compiling" >&6
3874
 
3875
echo "$as_me:$LINENO: checking for suffix of executables" >&5
3876
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3877
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3878
  (eval $ac_link) 2>&5
3879
  ac_status=$?
3880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881
  (exit $ac_status); }; then
3882
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3883
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3884
# work properly (i.e., refer to `conftest.exe'), while it won't with
3885
# `rm'.
3886
for ac_file in conftest.exe conftest conftest.*; do
3887
  test -f "$ac_file" || continue
3888
  case $ac_file in
3889
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3890
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3891
          export ac_cv_exeext
3892
          break;;
3893
    * ) break;;
3894
  esac
3895
done
3896
else
3897
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3898
See \`config.log' for more details." >&5
3899
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3900
See \`config.log' for more details." >&2;}
3901
   { (exit 1); exit 1; }; }
3902
fi
3903
 
3904
rm -f conftest$ac_cv_exeext
3905
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3906
echo "${ECHO_T}$ac_cv_exeext" >&6
3907
 
3908
rm -f conftest.$ac_ext
3909
EXEEXT=$ac_cv_exeext
3910
ac_exeext=$EXEEXT
3911
echo "$as_me:$LINENO: checking for suffix of object files" >&5
3912
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3913
if test "${ac_cv_objext+set}" = set; then
3914
  echo $ECHO_N "(cached) $ECHO_C" >&6
3915
else
3916
  cat >conftest.$ac_ext <<_ACEOF
3917
/* confdefs.h.  */
3918
_ACEOF
3919
cat confdefs.h >>conftest.$ac_ext
3920
cat >>conftest.$ac_ext <<_ACEOF
3921
/* end confdefs.h.  */
3922
 
3923
int
3924
main ()
3925
{
3926
 
3927
  ;
3928
  return 0;
3929
}
3930
_ACEOF
3931
rm -f conftest.o conftest.obj
3932
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3933
  (eval $ac_compile) 2>&5
3934
  ac_status=$?
3935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936
  (exit $ac_status); }; then
3937
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3938
  case $ac_file in
3939
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3940
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3941
       break;;
3942
  esac
3943
done
3944
else
3945
  echo "$as_me: failed program was:" >&5
3946
sed 's/^/| /' conftest.$ac_ext >&5
3947
 
3948
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3949
See \`config.log' for more details." >&5
3950
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3951
See \`config.log' for more details." >&2;}
3952
   { (exit 1); exit 1; }; }
3953
fi
3954
 
3955
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3956
fi
3957
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3958
echo "${ECHO_T}$ac_cv_objext" >&6
3959
OBJEXT=$ac_cv_objext
3960
ac_objext=$OBJEXT
3961
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3962
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3963
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3964
  echo $ECHO_N "(cached) $ECHO_C" >&6
3965
else
3966
  cat >conftest.$ac_ext <<_ACEOF
3967
/* confdefs.h.  */
3968
_ACEOF
3969
cat confdefs.h >>conftest.$ac_ext
3970
cat >>conftest.$ac_ext <<_ACEOF
3971
/* end confdefs.h.  */
3972
 
3973
int
3974
main ()
3975
{
3976
#ifndef __GNUC__
3977
       choke me
3978
#endif
3979
 
3980
  ;
3981
  return 0;
3982
}
3983
_ACEOF
3984
rm -f conftest.$ac_objext
3985
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986
  (eval $ac_compile) 2>conftest.er1
3987
  ac_status=$?
3988
  grep -v '^ *+' conftest.er1 >conftest.err
3989
  rm -f conftest.er1
3990
  cat conftest.err >&5
3991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992
  (exit $ac_status); } &&
3993
         { ac_try='test -z "$ac_c_werror_flag"
3994
                         || test ! -s conftest.err'
3995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996
  (eval $ac_try) 2>&5
3997
  ac_status=$?
3998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999
  (exit $ac_status); }; } &&
4000
         { ac_try='test -s conftest.$ac_objext'
4001
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002
  (eval $ac_try) 2>&5
4003
  ac_status=$?
4004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005
  (exit $ac_status); }; }; then
4006
  ac_compiler_gnu=yes
4007
else
4008
  echo "$as_me: failed program was:" >&5
4009
sed 's/^/| /' conftest.$ac_ext >&5
4010
 
4011
ac_compiler_gnu=no
4012
fi
4013
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4014
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4015
 
4016
fi
4017
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4018
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4019
GCC=`test $ac_compiler_gnu = yes && echo yes`
4020
ac_test_CFLAGS=${CFLAGS+set}
4021
ac_save_CFLAGS=$CFLAGS
4022
CFLAGS="-g"
4023
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4024
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4025
if test "${ac_cv_prog_cc_g+set}" = set; then
4026
  echo $ECHO_N "(cached) $ECHO_C" >&6
4027
else
4028
  cat >conftest.$ac_ext <<_ACEOF
4029
/* confdefs.h.  */
4030
_ACEOF
4031
cat confdefs.h >>conftest.$ac_ext
4032
cat >>conftest.$ac_ext <<_ACEOF
4033
/* end confdefs.h.  */
4034
 
4035
int
4036
main ()
4037
{
4038
 
4039
  ;
4040
  return 0;
4041
}
4042
_ACEOF
4043
rm -f conftest.$ac_objext
4044
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045
  (eval $ac_compile) 2>conftest.er1
4046
  ac_status=$?
4047
  grep -v '^ *+' conftest.er1 >conftest.err
4048
  rm -f conftest.er1
4049
  cat conftest.err >&5
4050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051
  (exit $ac_status); } &&
4052
         { ac_try='test -z "$ac_c_werror_flag"
4053
                         || test ! -s conftest.err'
4054
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055
  (eval $ac_try) 2>&5
4056
  ac_status=$?
4057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058
  (exit $ac_status); }; } &&
4059
         { ac_try='test -s conftest.$ac_objext'
4060
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061
  (eval $ac_try) 2>&5
4062
  ac_status=$?
4063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064
  (exit $ac_status); }; }; then
4065
  ac_cv_prog_cc_g=yes
4066
else
4067
  echo "$as_me: failed program was:" >&5
4068
sed 's/^/| /' conftest.$ac_ext >&5
4069
 
4070
ac_cv_prog_cc_g=no
4071
fi
4072
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073
fi
4074
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4075
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4076
if test "$ac_test_CFLAGS" = set; then
4077
  CFLAGS=$ac_save_CFLAGS
4078
elif test $ac_cv_prog_cc_g = yes; then
4079
  if test "$GCC" = yes; then
4080
    CFLAGS="-g -O2"
4081
  else
4082
    CFLAGS="-g"
4083
  fi
4084
else
4085
  if test "$GCC" = yes; then
4086
    CFLAGS="-O2"
4087
  else
4088
    CFLAGS=
4089
  fi
4090
fi
4091
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4092
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4093
if test "${ac_cv_prog_cc_stdc+set}" = set; then
4094
  echo $ECHO_N "(cached) $ECHO_C" >&6
4095
else
4096
  ac_cv_prog_cc_stdc=no
4097
ac_save_CC=$CC
4098
cat >conftest.$ac_ext <<_ACEOF
4099
/* confdefs.h.  */
4100
_ACEOF
4101
cat confdefs.h >>conftest.$ac_ext
4102
cat >>conftest.$ac_ext <<_ACEOF
4103
/* end confdefs.h.  */
4104
#include 
4105
#include 
4106
#include 
4107
#include 
4108
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4109
struct buf { int x; };
4110
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4111
static char *e (p, i)
4112
     char **p;
4113
     int i;
4114
{
4115
  return p[i];
4116
}
4117
static char *f (char * (*g) (char **, int), char **p, ...)
4118
{
4119
  char *s;
4120
  va_list v;
4121
  va_start (v,p);
4122
  s = g (p, va_arg (v,int));
4123
  va_end (v);
4124
  return s;
4125
}
4126
 
4127
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4128
   function prototypes and stuff, but not '\xHH' hex character constants.
4129
   These don't provoke an error unfortunately, instead are silently treated
4130
   as 'x'.  The following induces an error, until -std1 is added to get
4131
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4132
   array size at least.  It's necessary to write '\x00'==0 to get something
4133
   that's true only with -std1.  */
4134
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4135
 
4136
int test (int i, double x);
4137
struct s1 {int (*f) (int a);};
4138
struct s2 {int (*f) (double a);};
4139
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4140
int argc;
4141
char **argv;
4142
int
4143
main ()
4144
{
4145
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4146
  ;
4147
  return 0;
4148
}
4149
_ACEOF
4150
# Don't try gcc -ansi; that turns off useful extensions and
4151
# breaks some systems' header files.
4152
# AIX                   -qlanglvl=ansi
4153
# Ultrix and OSF/1      -std1
4154
# HP-UX 10.20 and later -Ae
4155
# HP-UX older versions  -Aa -D_HPUX_SOURCE
4156
# SVR4                  -Xc -D__EXTENSIONS__
4157
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4158
do
4159
  CC="$ac_save_CC $ac_arg"
4160
  rm -f conftest.$ac_objext
4161
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4162
  (eval $ac_compile) 2>conftest.er1
4163
  ac_status=$?
4164
  grep -v '^ *+' conftest.er1 >conftest.err
4165
  rm -f conftest.er1
4166
  cat conftest.err >&5
4167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168
  (exit $ac_status); } &&
4169
         { ac_try='test -z "$ac_c_werror_flag"
4170
                         || test ! -s conftest.err'
4171
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172
  (eval $ac_try) 2>&5
4173
  ac_status=$?
4174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175
  (exit $ac_status); }; } &&
4176
         { ac_try='test -s conftest.$ac_objext'
4177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178
  (eval $ac_try) 2>&5
4179
  ac_status=$?
4180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181
  (exit $ac_status); }; }; then
4182
  ac_cv_prog_cc_stdc=$ac_arg
4183
break
4184
else
4185
  echo "$as_me: failed program was:" >&5
4186
sed 's/^/| /' conftest.$ac_ext >&5
4187
 
4188
fi
4189
rm -f conftest.err conftest.$ac_objext
4190
done
4191
rm -f conftest.$ac_ext conftest.$ac_objext
4192
CC=$ac_save_CC
4193
 
4194
fi
4195
 
4196
case "x$ac_cv_prog_cc_stdc" in
4197
  x|xno)
4198
    echo "$as_me:$LINENO: result: none needed" >&5
4199
echo "${ECHO_T}none needed" >&6 ;;
4200
  *)
4201
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4202
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4203
    CC="$CC $ac_cv_prog_cc_stdc" ;;
4204
esac
4205
 
4206
# Some people use a C++ compiler to compile C.  Since we use `exit',
4207
# in C++ we need to declare it.  In case someone uses the same compiler
4208
# for both compiling C and C++ we need to have the C++ compiler decide
4209
# the declaration of exit, since it's the most demanding environment.
4210
cat >conftest.$ac_ext <<_ACEOF
4211
#ifndef __cplusplus
4212
  choke me
4213
#endif
4214
_ACEOF
4215
rm -f conftest.$ac_objext
4216
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217
  (eval $ac_compile) 2>conftest.er1
4218
  ac_status=$?
4219
  grep -v '^ *+' conftest.er1 >conftest.err
4220
  rm -f conftest.er1
4221
  cat conftest.err >&5
4222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223
  (exit $ac_status); } &&
4224
         { ac_try='test -z "$ac_c_werror_flag"
4225
                         || test ! -s conftest.err'
4226
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227
  (eval $ac_try) 2>&5
4228
  ac_status=$?
4229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230
  (exit $ac_status); }; } &&
4231
         { ac_try='test -s conftest.$ac_objext'
4232
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233
  (eval $ac_try) 2>&5
4234
  ac_status=$?
4235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236
  (exit $ac_status); }; }; then
4237
  for ac_declaration in \
4238
   '' \
4239
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4240
   'extern "C" void std::exit (int); using std::exit;' \
4241
   'extern "C" void exit (int) throw ();' \
4242
   'extern "C" void exit (int);' \
4243
   'void exit (int);'
4244
do
4245
  cat >conftest.$ac_ext <<_ACEOF
4246
/* confdefs.h.  */
4247
_ACEOF
4248
cat confdefs.h >>conftest.$ac_ext
4249
cat >>conftest.$ac_ext <<_ACEOF
4250
/* end confdefs.h.  */
4251
$ac_declaration
4252
#include 
4253
int
4254
main ()
4255
{
4256
exit (42);
4257
  ;
4258
  return 0;
4259
}
4260
_ACEOF
4261
rm -f conftest.$ac_objext
4262
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4263
  (eval $ac_compile) 2>conftest.er1
4264
  ac_status=$?
4265
  grep -v '^ *+' conftest.er1 >conftest.err
4266
  rm -f conftest.er1
4267
  cat conftest.err >&5
4268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269
  (exit $ac_status); } &&
4270
         { ac_try='test -z "$ac_c_werror_flag"
4271
                         || test ! -s conftest.err'
4272
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273
  (eval $ac_try) 2>&5
4274
  ac_status=$?
4275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276
  (exit $ac_status); }; } &&
4277
         { ac_try='test -s conftest.$ac_objext'
4278
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279
  (eval $ac_try) 2>&5
4280
  ac_status=$?
4281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282
  (exit $ac_status); }; }; then
4283
  :
4284
else
4285
  echo "$as_me: failed program was:" >&5
4286
sed 's/^/| /' conftest.$ac_ext >&5
4287
 
4288
continue
4289
fi
4290
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4291
  cat >conftest.$ac_ext <<_ACEOF
4292
/* confdefs.h.  */
4293
_ACEOF
4294
cat confdefs.h >>conftest.$ac_ext
4295
cat >>conftest.$ac_ext <<_ACEOF
4296
/* end confdefs.h.  */
4297
$ac_declaration
4298
int
4299
main ()
4300
{
4301
exit (42);
4302
  ;
4303
  return 0;
4304
}
4305
_ACEOF
4306
rm -f conftest.$ac_objext
4307
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4308
  (eval $ac_compile) 2>conftest.er1
4309
  ac_status=$?
4310
  grep -v '^ *+' conftest.er1 >conftest.err
4311
  rm -f conftest.er1
4312
  cat conftest.err >&5
4313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314
  (exit $ac_status); } &&
4315
         { ac_try='test -z "$ac_c_werror_flag"
4316
                         || test ! -s conftest.err'
4317
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318
  (eval $ac_try) 2>&5
4319
  ac_status=$?
4320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321
  (exit $ac_status); }; } &&
4322
         { ac_try='test -s conftest.$ac_objext'
4323
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324
  (eval $ac_try) 2>&5
4325
  ac_status=$?
4326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327
  (exit $ac_status); }; }; then
4328
  break
4329
else
4330
  echo "$as_me: failed program was:" >&5
4331
sed 's/^/| /' conftest.$ac_ext >&5
4332
 
4333
fi
4334
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4335
done
4336
rm -f conftest*
4337
if test -n "$ac_declaration"; then
4338
  echo '#ifdef __cplusplus' >>confdefs.h
4339
  echo $ac_declaration      >>confdefs.h
4340
  echo '#endif'             >>confdefs.h
4341
fi
4342
 
4343
else
4344
  echo "$as_me: failed program was:" >&5
4345
sed 's/^/| /' conftest.$ac_ext >&5
4346
 
4347
fi
4348
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4349
ac_ext=c
4350
ac_cpp='$CPP $CPPFLAGS'
4351
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4352
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4353
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4354
 
4355
depcc="$CC"   am_compiler_list=
4356
 
4357
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4358
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4359
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4360
  echo $ECHO_N "(cached) $ECHO_C" >&6
4361
else
4362
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4363
  # We make a subdir and do the tests there.  Otherwise we can end up
4364
  # making bogus files that we don't know about and never remove.  For
4365
  # instance it was reported that on HP-UX the gcc test will end up
4366
  # making a dummy file named `D' -- because `-MD' means `put the output
4367
  # in D'.
4368
  mkdir conftest.dir
4369
  # Copy depcomp to subdir because otherwise we won't find it if we're
4370
  # using a relative directory.
4371
  cp "$am_depcomp" conftest.dir
4372
  cd conftest.dir
4373
  # We will build objects and dependencies in a subdirectory because
4374
  # it helps to detect inapplicable dependency modes.  For instance
4375
  # both Tru64's cc and ICC support -MD to output dependencies as a
4376
  # side effect of compilation, but ICC will put the dependencies in
4377
  # the current directory while Tru64 will put them in the object
4378
  # directory.
4379
  mkdir sub
4380
 
4381
  am_cv_CC_dependencies_compiler_type=none
4382
  if test "$am_compiler_list" = ""; then
4383
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4384
  fi
4385
  for depmode in $am_compiler_list; do
4386
    # Setup a source with many dependencies, because some compilers
4387
    # like to wrap large dependency lists on column 80 (with \), and
4388
    # we should not choose a depcomp mode which is confused by this.
4389
    #
4390
    # We need to recreate these files for each test, as the compiler may
4391
    # overwrite some of them when testing with obscure command lines.
4392
    # This happens at least with the AIX C compiler.
4393
    : > sub/conftest.c
4394
    for i in 1 2 3 4 5 6; do
4395
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4396
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4397
      # Solaris 8's {/usr,}/bin/sh.
4398
      touch sub/conftst$i.h
4399
    done
4400
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4401
 
4402
    case $depmode in
4403
    nosideeffect)
4404
      # after this tag, mechanisms are not by side-effect, so they'll
4405
      # only be used when explicitly requested
4406
      if test "x$enable_dependency_tracking" = xyes; then
4407
        continue
4408
      else
4409
        break
4410
      fi
4411
      ;;
4412
    none) break ;;
4413
    esac
4414
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4415
    # mode.  It turns out that the SunPro C++ compiler does not properly
4416
    # handle `-M -o', and we need to detect this.
4417
    if depmode=$depmode \
4418
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4419
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4420
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4421
         >/dev/null 2>conftest.err &&
4422
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4423
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4424
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4425
      # icc doesn't choke on unknown options, it will just issue warnings
4426
      # or remarks (even with -Werror).  So we grep stderr for any message
4427
      # that says an option was ignored or not supported.
4428
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4429
      #   icc: Command line warning: ignoring option '-M'; no argument required
4430
      # The diagnosis changed in icc 8.0:
4431
      #   icc: Command line remark: option '-MP' not supported
4432
      if (grep 'ignoring option' conftest.err ||
4433
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4434
        am_cv_CC_dependencies_compiler_type=$depmode
4435
        break
4436
      fi
4437
    fi
4438
  done
4439
 
4440
  cd ..
4441
  rm -rf conftest.dir
4442
else
4443
  am_cv_CC_dependencies_compiler_type=none
4444
fi
4445
 
4446
fi
4447
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4448
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4449
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4450
 
4451
 
4452
 
4453
if
4454
  test "x$enable_dependency_tracking" != xno \
4455
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4456
  am__fastdepCC_TRUE=
4457
  am__fastdepCC_FALSE='#'
4458
else
4459
  am__fastdepCC_TRUE='#'
4460
  am__fastdepCC_FALSE=
4461
fi
4462
 
4463
 
4464
echo "$as_me:$LINENO: checking for egrep" >&5
4465
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4466
if test "${ac_cv_prog_egrep+set}" = set; then
4467
  echo $ECHO_N "(cached) $ECHO_C" >&6
4468
else
4469
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4470
    then ac_cv_prog_egrep='grep -E'
4471
    else ac_cv_prog_egrep='egrep'
4472
    fi
4473
fi
4474
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4475
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4476
 EGREP=$ac_cv_prog_egrep
4477
 
4478
 
4479
echo "$as_me:$LINENO: checking for fgrep" >&5
4480
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4481
if test "${ac_cv_prog_fgrep+set}" = set; then
4482
  echo $ECHO_N "(cached) $ECHO_C" >&6
4483
else
4484
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4485
    then ac_cv_prog_fgrep='grep -F'
4486
    else ac_cv_prog_fgrep='fgrep'
4487
    fi
4488
fi
4489
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4490
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4491
 FGREP=$ac_cv_prog_fgrep
4492
 
4493
 
4494
test -z "$GREP" && GREP=grep
4495
 
4496
 
4497
 
4498
 
4499
 
4500
 
4501
 
4502
 
4503
 
4504
 
4505
 
4506
 
4507
 
4508
 
4509
 
4510
 
4511
 
4512
 
4513
 
4514
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4515
if test "${with_gnu_ld+set}" = set; then
4516
  withval="$with_gnu_ld"
4517
  test "$withval" = no || with_gnu_ld=yes
4518
else
4519
  with_gnu_ld=no
4520
fi;
4521
ac_prog=ld
4522
if test "$GCC" = yes; then
4523
  # Check if gcc -print-prog-name=ld gives a path.
4524
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4525
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4526
  case $host in
4527
  *-*-mingw*)
4528
    # gcc leaves a trailing carriage return which upsets mingw
4529
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4530
  *)
4531
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4532
  esac
4533
  case $ac_prog in
4534
    # Accept absolute paths.
4535
    [\\/]* | ?:[\\/]*)
4536
      re_direlt='/[^/][^/]*/\.\./'
4537
      # Canonicalize the pathname of ld
4538
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4539
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4540
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4541
      done
4542
      test -z "$LD" && LD="$ac_prog"
4543
      ;;
4544
  "")
4545
    # If it fails, then pretend we aren't using GCC.
4546
    ac_prog=ld
4547
    ;;
4548
  *)
4549
    # If it is relative, then search for the first ld in PATH.
4550
    with_gnu_ld=unknown
4551
    ;;
4552
  esac
4553
elif test "$with_gnu_ld" = yes; then
4554
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4555
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4556
else
4557
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4558
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4559
fi
4560
if test "${lt_cv_path_LD+set}" = set; then
4561
  echo $ECHO_N "(cached) $ECHO_C" >&6
4562
else
4563
  if test -z "$LD"; then
4564
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4565
  for ac_dir in $PATH; do
4566
    IFS="$lt_save_ifs"
4567
    test -z "$ac_dir" && ac_dir=.
4568
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4569
      lt_cv_path_LD="$ac_dir/$ac_prog"
4570
      # Check to see if the program is GNU ld.  I'd rather use --version,
4571
      # but apparently some variants of GNU ld only accept -v.
4572
      # Break only if it was the GNU/non-GNU ld that we prefer.
4573
      case `"$lt_cv_path_LD" -v 2>&1 
4574
      *GNU* | *'with BFD'*)
4575
        test "$with_gnu_ld" != no && break
4576
        ;;
4577
      *)
4578
        test "$with_gnu_ld" != yes && break
4579
        ;;
4580
      esac
4581
    fi
4582
  done
4583
  IFS="$lt_save_ifs"
4584
else
4585
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4586
fi
4587
fi
4588
 
4589
LD="$lt_cv_path_LD"
4590
if test -n "$LD"; then
4591
  echo "$as_me:$LINENO: result: $LD" >&5
4592
echo "${ECHO_T}$LD" >&6
4593
else
4594
  echo "$as_me:$LINENO: result: no" >&5
4595
echo "${ECHO_T}no" >&6
4596
fi
4597
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4598
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4599
   { (exit 1); exit 1; }; }
4600
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4601
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4602
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4603
  echo $ECHO_N "(cached) $ECHO_C" >&6
4604
else
4605
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4606
case `$LD -v 2>&1 
4607
*GNU* | *'with BFD'*)
4608
  lt_cv_prog_gnu_ld=yes
4609
  ;;
4610
*)
4611
  lt_cv_prog_gnu_ld=no
4612
  ;;
4613
esac
4614
fi
4615
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4616
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4617
with_gnu_ld=$lt_cv_prog_gnu_ld
4618
 
4619
 
4620
 
4621
 
4622
 
4623
 
4624
 
4625
 
4626
 
4627
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4628
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4629
if test "${lt_cv_path_NM+set}" = set; then
4630
  echo $ECHO_N "(cached) $ECHO_C" >&6
4631
else
4632
  if test -n "$NM"; then
4633
  # Let the user override the test.
4634
  lt_cv_path_NM="$NM"
4635
else
4636
  lt_nm_to_check="${ac_tool_prefix}nm"
4637
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4638
    lt_nm_to_check="$lt_nm_to_check nm"
4639
  fi
4640
  for lt_tmp_nm in $lt_nm_to_check; do
4641
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4642
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4643
      IFS="$lt_save_ifs"
4644
      test -z "$ac_dir" && ac_dir=.
4645
      tmp_nm="$ac_dir/$lt_tmp_nm"
4646
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4647
        # Check to see if the nm accepts a BSD-compat flag.
4648
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4649
        #   nm: unknown option "B" ignored
4650
        # Tru64's nm complains that /dev/null is an invalid object file
4651
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4652
        */dev/null* | *'Invalid file or object type'*)
4653
          lt_cv_path_NM="$tmp_nm -B"
4654
          break
4655
          ;;
4656
        *)
4657
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4658
          */dev/null*)
4659
            lt_cv_path_NM="$tmp_nm -p"
4660
            break
4661
            ;;
4662
          *)
4663
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4664
            continue # so that we can try to find one that supports BSD flags
4665
            ;;
4666
          esac
4667
          ;;
4668
        esac
4669
      fi
4670
    done
4671
    IFS="$lt_save_ifs"
4672
  done
4673
  : ${lt_cv_path_NM=no}
4674
fi
4675
fi
4676
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4677
echo "${ECHO_T}$lt_cv_path_NM" >&6
4678
if test "$lt_cv_path_NM" != "no"; then
4679
  NM="$lt_cv_path_NM"
4680
else
4681
  # Didn't find any BSD compatible name lister, look for dumpbin.
4682
  if test -n "$ac_tool_prefix"; then
4683
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4684
  do
4685
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4686
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4687
echo "$as_me:$LINENO: checking for $ac_word" >&5
4688
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4689
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4690
  echo $ECHO_N "(cached) $ECHO_C" >&6
4691
else
4692
  if test -n "$DUMPBIN"; then
4693
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4694
else
4695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696
for as_dir in $PATH
4697
do
4698
  IFS=$as_save_IFS
4699
  test -z "$as_dir" && as_dir=.
4700
  for ac_exec_ext in '' $ac_executable_extensions; do
4701
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4702
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4703
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4704
    break 2
4705
  fi
4706
done
4707
done
4708
 
4709
fi
4710
fi
4711
DUMPBIN=$ac_cv_prog_DUMPBIN
4712
if test -n "$DUMPBIN"; then
4713
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4714
echo "${ECHO_T}$DUMPBIN" >&6
4715
else
4716
  echo "$as_me:$LINENO: result: no" >&5
4717
echo "${ECHO_T}no" >&6
4718
fi
4719
 
4720
    test -n "$DUMPBIN" && break
4721
  done
4722
fi
4723
if test -z "$DUMPBIN"; then
4724
  ac_ct_DUMPBIN=$DUMPBIN
4725
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4726
do
4727
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4728
set dummy $ac_prog; ac_word=$2
4729
echo "$as_me:$LINENO: checking for $ac_word" >&5
4730
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4731
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4732
  echo $ECHO_N "(cached) $ECHO_C" >&6
4733
else
4734
  if test -n "$ac_ct_DUMPBIN"; then
4735
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4736
else
4737
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738
for as_dir in $PATH
4739
do
4740
  IFS=$as_save_IFS
4741
  test -z "$as_dir" && as_dir=.
4742
  for ac_exec_ext in '' $ac_executable_extensions; do
4743
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4745
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746
    break 2
4747
  fi
4748
done
4749
done
4750
 
4751
fi
4752
fi
4753
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4754
if test -n "$ac_ct_DUMPBIN"; then
4755
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4756
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4757
else
4758
  echo "$as_me:$LINENO: result: no" >&5
4759
echo "${ECHO_T}no" >&6
4760
fi
4761
 
4762
  test -n "$ac_ct_DUMPBIN" && break
4763
done
4764
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4765
 
4766
  DUMPBIN=$ac_ct_DUMPBIN
4767
fi
4768
 
4769
 
4770
  if test "$DUMPBIN" != ":"; then
4771
    NM="$DUMPBIN"
4772
  fi
4773
fi
4774
test -z "$NM" && NM=nm
4775
 
4776
 
4777
 
4778
 
4779
 
4780
 
4781
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4782
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4783
if test "${lt_cv_nm_interface+set}" = set; then
4784
  echo $ECHO_N "(cached) $ECHO_C" >&6
4785
else
4786
  lt_cv_nm_interface="BSD nm"
4787
  echo "int some_variable = 0;" > conftest.$ac_ext
4788
  (eval echo "\"\$as_me:4788: $ac_compile\"" >&5)
4789
  (eval "$ac_compile" 2>conftest.err)
4790
  cat conftest.err >&5
4791
  (eval echo "\"\$as_me:4791: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4792
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4793
  cat conftest.err >&5
4794
  (eval echo "\"\$as_me:4794: output\"" >&5)
4795
  cat conftest.out >&5
4796
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4797
    lt_cv_nm_interface="MS dumpbin"
4798
  fi
4799
  rm -f conftest*
4800
fi
4801
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4802
echo "${ECHO_T}$lt_cv_nm_interface" >&6
4803
 
4804
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4805
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4806
LN_S=$as_ln_s
4807
if test "$LN_S" = "ln -s"; then
4808
  echo "$as_me:$LINENO: result: yes" >&5
4809
echo "${ECHO_T}yes" >&6
4810
else
4811
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4812
echo "${ECHO_T}no, using $LN_S" >&6
4813
fi
4814
 
4815
# find the maximum length of command line arguments
4816
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4817
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4818
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4819
  echo $ECHO_N "(cached) $ECHO_C" >&6
4820
else
4821
    i=0
4822
  teststring="ABCD"
4823
 
4824
  case $build_os in
4825
  msdosdjgpp*)
4826
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4827
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4828
    # during glob expansion).  Even if it were fixed, the result of this
4829
    # check would be larger than it should be.
4830
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4831
    ;;
4832
 
4833
  gnu*)
4834
    # Under GNU Hurd, this test is not required because there is
4835
    # no limit to the length of command line arguments.
4836
    # Libtool will interpret -1 as no limit whatsoever
4837
    lt_cv_sys_max_cmd_len=-1;
4838
    ;;
4839
 
4840
  cygwin* | mingw* | cegcc*)
4841
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4842
    # about 5 minutes as the teststring grows exponentially.
4843
    # Worse, since 9x/ME are not pre-emptively multitasking,
4844
    # you end up with a "frozen" computer, even though with patience
4845
    # the test eventually succeeds (with a max line length of 256k).
4846
    # Instead, let's just punt: use the minimum linelength reported by
4847
    # all of the supported platforms: 8192 (on NT/2K/XP).
4848
    lt_cv_sys_max_cmd_len=8192;
4849
    ;;
4850
 
4851
  amigaos*)
4852
    # On AmigaOS with pdksh, this test takes hours, literally.
4853
    # So we just punt and use a minimum line length of 8192.
4854
    lt_cv_sys_max_cmd_len=8192;
4855
    ;;
4856
 
4857
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4858
    # This has been around since 386BSD, at least.  Likely further.
4859
    if test -x /sbin/sysctl; then
4860
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4861
    elif test -x /usr/sbin/sysctl; then
4862
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4863
    else
4864
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4865
    fi
4866
    # And add a safety zone
4867
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4868
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4869
    ;;
4870
 
4871
  interix*)
4872
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4873
    lt_cv_sys_max_cmd_len=196608
4874
    ;;
4875
 
4876
  osf*)
4877
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4878
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4879
    # nice to cause kernel panics so lets avoid the loop below.
4880
    # First set a reasonable default.
4881
    lt_cv_sys_max_cmd_len=16384
4882
    #
4883
    if test -x /sbin/sysconfig; then
4884
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4885
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4886
      esac
4887
    fi
4888
    ;;
4889
  sco3.2v5*)
4890
    lt_cv_sys_max_cmd_len=102400
4891
    ;;
4892
  sysv5* | sco5v6* | sysv4.2uw2*)
4893
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4894
    if test -n "$kargmax"; then
4895
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4896
    else
4897
      lt_cv_sys_max_cmd_len=32768
4898
    fi
4899
    ;;
4900
  *)
4901
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4902
    if test -n "$lt_cv_sys_max_cmd_len"; then
4903
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4904
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4905
    else
4906
      # Make teststring a little bigger before we do anything with it.
4907
      # a 1K string should be a reasonable start.
4908
      for i in 1 2 3 4 5 6 7 8 ; do
4909
        teststring=$teststring$teststring
4910
      done
4911
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4912
      # If test is not a shell built-in, we'll probably end up computing a
4913
      # maximum length that is only half of the actual maximum length, but
4914
      # we can't tell.
4915
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4916
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4917
              test $i != 17 # 1/2 MB should be enough
4918
      do
4919
        i=`expr $i + 1`
4920
        teststring=$teststring$teststring
4921
      done
4922
      # Only check the string length outside the loop.
4923
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4924
      teststring=
4925
      # Add a significant safety factor because C++ compilers can tack on
4926
      # massive amounts of additional arguments before passing them to the
4927
      # linker.  It appears as though 1/2 is a usable value.
4928
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4929
    fi
4930
    ;;
4931
  esac
4932
 
4933
fi
4934
 
4935
if test -n $lt_cv_sys_max_cmd_len ; then
4936
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4937
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4938
else
4939
  echo "$as_me:$LINENO: result: none" >&5
4940
echo "${ECHO_T}none" >&6
4941
fi
4942
max_cmd_len=$lt_cv_sys_max_cmd_len
4943
 
4944
 
4945
 
4946
 
4947
 
4948
 
4949
: ${CP="cp -f"}
4950
: ${MV="mv -f"}
4951
: ${RM="rm -f"}
4952
 
4953
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4954
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4955
# Try some XSI features
4956
xsi_shell=no
4957
( _lt_dummy="a/b/c"
4958
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4959
      = c,a/b,, \
4960
    && eval 'test $(( 1 + 1 )) -eq 2 \
4961
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4962
  && xsi_shell=yes
4963
echo "$as_me:$LINENO: result: $xsi_shell" >&5
4964
echo "${ECHO_T}$xsi_shell" >&6
4965
 
4966
 
4967
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4968
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4969
lt_shell_append=no
4970
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4971
    >/dev/null 2>&1 \
4972
  && lt_shell_append=yes
4973
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4974
echo "${ECHO_T}$lt_shell_append" >&6
4975
 
4976
 
4977
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4978
  lt_unset=unset
4979
else
4980
  lt_unset=false
4981
fi
4982
 
4983
 
4984
 
4985
 
4986
 
4987
# test EBCDIC or ASCII
4988
case `echo X|tr X '\101'` in
4989
 A) # ASCII based system
4990
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4991
  lt_SP2NL='tr \040 \012'
4992
  lt_NL2SP='tr \015\012 \040\040'
4993
  ;;
4994
 *) # EBCDIC based system
4995
  lt_SP2NL='tr \100 \n'
4996
  lt_NL2SP='tr \r\n \100\100'
4997
  ;;
4998
esac
4999
 
5000
 
5001
 
5002
 
5003
 
5004
 
5005
 
5006
 
5007
 
5008
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5009
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5010
if test "${lt_cv_ld_reload_flag+set}" = set; then
5011
  echo $ECHO_N "(cached) $ECHO_C" >&6
5012
else
5013
  lt_cv_ld_reload_flag='-r'
5014
fi
5015
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5016
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5017
reload_flag=$lt_cv_ld_reload_flag
5018
case $reload_flag in
5019
"" | " "*) ;;
5020
*) reload_flag=" $reload_flag" ;;
5021
esac
5022
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5023
case $host_os in
5024
  darwin*)
5025
    if test "$GCC" = yes; then
5026
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5027
    else
5028
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5029
    fi
5030
    ;;
5031
esac
5032
 
5033
 
5034
 
5035
 
5036
 
5037
 
5038
 
5039
 
5040
 
5041
if test -n "$ac_tool_prefix"; then
5042
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5043
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5044
echo "$as_me:$LINENO: checking for $ac_word" >&5
5045
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5046
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5047
  echo $ECHO_N "(cached) $ECHO_C" >&6
5048
else
5049
  if test -n "$OBJDUMP"; then
5050
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5051
else
5052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053
for as_dir in $PATH
5054
do
5055
  IFS=$as_save_IFS
5056
  test -z "$as_dir" && as_dir=.
5057
  for ac_exec_ext in '' $ac_executable_extensions; do
5058
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5060
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061
    break 2
5062
  fi
5063
done
5064
done
5065
 
5066
fi
5067
fi
5068
OBJDUMP=$ac_cv_prog_OBJDUMP
5069
if test -n "$OBJDUMP"; then
5070
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5071
echo "${ECHO_T}$OBJDUMP" >&6
5072
else
5073
  echo "$as_me:$LINENO: result: no" >&5
5074
echo "${ECHO_T}no" >&6
5075
fi
5076
 
5077
fi
5078
if test -z "$ac_cv_prog_OBJDUMP"; then
5079
  ac_ct_OBJDUMP=$OBJDUMP
5080
  # Extract the first word of "objdump", so it can be a program name with args.
5081
set dummy objdump; ac_word=$2
5082
echo "$as_me:$LINENO: checking for $ac_word" >&5
5083
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5084
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5085
  echo $ECHO_N "(cached) $ECHO_C" >&6
5086
else
5087
  if test -n "$ac_ct_OBJDUMP"; then
5088
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5089
else
5090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091
for as_dir in $PATH
5092
do
5093
  IFS=$as_save_IFS
5094
  test -z "$as_dir" && as_dir=.
5095
  for ac_exec_ext in '' $ac_executable_extensions; do
5096
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5098
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099
    break 2
5100
  fi
5101
done
5102
done
5103
 
5104
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5105
fi
5106
fi
5107
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5108
if test -n "$ac_ct_OBJDUMP"; then
5109
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5110
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5111
else
5112
  echo "$as_me:$LINENO: result: no" >&5
5113
echo "${ECHO_T}no" >&6
5114
fi
5115
 
5116
  OBJDUMP=$ac_ct_OBJDUMP
5117
else
5118
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5119
fi
5120
 
5121
test -z "$OBJDUMP" && OBJDUMP=objdump
5122
 
5123
 
5124
 
5125
 
5126
 
5127
 
5128
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5129
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5130
if test "${lt_cv_deplibs_check_method+set}" = set; then
5131
  echo $ECHO_N "(cached) $ECHO_C" >&6
5132
else
5133
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5134
lt_cv_file_magic_test_file=
5135
lt_cv_deplibs_check_method='unknown'
5136
# Need to set the preceding variable on all platforms that support
5137
# interlibrary dependencies.
5138
# 'none' -- dependencies not supported.
5139
# `unknown' -- same as none, but documents that we really don't know.
5140
# 'pass_all' -- all dependencies passed with no checks.
5141
# 'test_compile' -- check by making test program.
5142
# 'file_magic [[regex]]' -- check by looking for files in library path
5143
# which responds to the $file_magic_cmd with a given extended regex.
5144
# If you have `file' or equivalent on your system and you're not sure
5145
# whether `pass_all' will *always* work, you probably want this one.
5146
 
5147
case $host_os in
5148
aix[4-9]*)
5149
  lt_cv_deplibs_check_method=pass_all
5150
  ;;
5151
 
5152
beos*)
5153
  lt_cv_deplibs_check_method=pass_all
5154
  ;;
5155
 
5156
bsdi[45]*)
5157
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5158
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5159
  lt_cv_file_magic_test_file=/shlib/libc.so
5160
  ;;
5161
 
5162
cygwin*)
5163
  # func_win32_libid is a shell function defined in ltmain.sh
5164
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5165
  lt_cv_file_magic_cmd='func_win32_libid'
5166
  ;;
5167
 
5168
mingw* | pw32*)
5169
  # Base MSYS/MinGW do not provide the 'file' command needed by
5170
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5171
  # unless we find 'file', for example because we are cross-compiling.
5172
  if ( file / ) >/dev/null 2>&1; then
5173
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5174
    lt_cv_file_magic_cmd='func_win32_libid'
5175
  else
5176
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5177
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5178
  fi
5179
  ;;
5180
 
5181
cegcc)
5182
  # use the weaker test based on 'objdump'. See mingw*.
5183
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5184
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5185
  ;;
5186
 
5187
darwin* | rhapsody*)
5188
  lt_cv_deplibs_check_method=pass_all
5189
  ;;
5190
 
5191
freebsd* | dragonfly*)
5192
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5193
    case $host_cpu in
5194
    i*86 )
5195
      # Not sure whether the presence of OpenBSD here was a mistake.
5196
      # Let's accept both of them until this is cleared up.
5197
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5198
      lt_cv_file_magic_cmd=/usr/bin/file
5199
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5200
      ;;
5201
    esac
5202
  else
5203
    lt_cv_deplibs_check_method=pass_all
5204
  fi
5205
  ;;
5206
 
5207
gnu*)
5208
  lt_cv_deplibs_check_method=pass_all
5209
  ;;
5210
 
5211
hpux10.20* | hpux11*)
5212
  lt_cv_file_magic_cmd=/usr/bin/file
5213
  case $host_cpu in
5214
  ia64*)
5215
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5216
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5217
    ;;
5218
  hppa*64*)
5219
    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]'
5220
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5221
    ;;
5222
  *)
5223
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5224
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5225
    ;;
5226
  esac
5227
  ;;
5228
 
5229
interix[3-9]*)
5230
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5231
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5232
  ;;
5233
 
5234
irix5* | irix6* | nonstopux*)
5235
  case $LD in
5236
  *-32|*"-32 ") libmagic=32-bit;;
5237
  *-n32|*"-n32 ") libmagic=N32;;
5238
  *-64|*"-64 ") libmagic=64-bit;;
5239
  *) libmagic=never-match;;
5240
  esac
5241
  lt_cv_deplibs_check_method=pass_all
5242
  ;;
5243
 
5244
# This must be Linux ELF.
5245
linux* | k*bsd*-gnu)
5246
  lt_cv_deplibs_check_method=pass_all
5247
  ;;
5248
 
5249
netbsd*)
5250
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5251
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5252
  else
5253
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5254
  fi
5255
  ;;
5256
 
5257
newos6*)
5258
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5259
  lt_cv_file_magic_cmd=/usr/bin/file
5260
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5261
  ;;
5262
 
5263
*nto* | *qnx*)
5264
  lt_cv_deplibs_check_method=pass_all
5265
  ;;
5266
 
5267
openbsd*)
5268
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5269
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5270
  else
5271
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5272
  fi
5273
  ;;
5274
 
5275
osf3* | osf4* | osf5*)
5276
  lt_cv_deplibs_check_method=pass_all
5277
  ;;
5278
 
5279
rdos*)
5280
  lt_cv_deplibs_check_method=pass_all
5281
  ;;
5282
 
5283
solaris*)
5284
  lt_cv_deplibs_check_method=pass_all
5285
  ;;
5286
 
5287
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5288
  lt_cv_deplibs_check_method=pass_all
5289
  ;;
5290
 
5291
sysv4 | sysv4.3*)
5292
  case $host_vendor in
5293
  motorola)
5294
    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]'
5295
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5296
    ;;
5297
  ncr)
5298
    lt_cv_deplibs_check_method=pass_all
5299
    ;;
5300
  sequent)
5301
    lt_cv_file_magic_cmd='/bin/file'
5302
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5303
    ;;
5304
  sni)
5305
    lt_cv_file_magic_cmd='/bin/file'
5306
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5307
    lt_cv_file_magic_test_file=/lib/libc.so
5308
    ;;
5309
  siemens)
5310
    lt_cv_deplibs_check_method=pass_all
5311
    ;;
5312
  pc)
5313
    lt_cv_deplibs_check_method=pass_all
5314
    ;;
5315
  esac
5316
  ;;
5317
 
5318
tpf*)
5319
  lt_cv_deplibs_check_method=pass_all
5320
  ;;
5321
esac
5322
 
5323
fi
5324
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5325
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5326
file_magic_cmd=$lt_cv_file_magic_cmd
5327
deplibs_check_method=$lt_cv_deplibs_check_method
5328
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5329
 
5330
 
5331
 
5332
 
5333
 
5334
 
5335
 
5336
 
5337
 
5338
 
5339
 
5340
 
5341
if test -n "$ac_tool_prefix"; then
5342
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5343
set dummy ${ac_tool_prefix}ar; ac_word=$2
5344
echo "$as_me:$LINENO: checking for $ac_word" >&5
5345
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5346
if test "${ac_cv_prog_AR+set}" = set; then
5347
  echo $ECHO_N "(cached) $ECHO_C" >&6
5348
else
5349
  if test -n "$AR"; then
5350
  ac_cv_prog_AR="$AR" # Let the user override the test.
5351
else
5352
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353
for as_dir in $PATH
5354
do
5355
  IFS=$as_save_IFS
5356
  test -z "$as_dir" && as_dir=.
5357
  for ac_exec_ext in '' $ac_executable_extensions; do
5358
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5360
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361
    break 2
5362
  fi
5363
done
5364
done
5365
 
5366
fi
5367
fi
5368
AR=$ac_cv_prog_AR
5369
if test -n "$AR"; then
5370
  echo "$as_me:$LINENO: result: $AR" >&5
5371
echo "${ECHO_T}$AR" >&6
5372
else
5373
  echo "$as_me:$LINENO: result: no" >&5
5374
echo "${ECHO_T}no" >&6
5375
fi
5376
 
5377
fi
5378
if test -z "$ac_cv_prog_AR"; then
5379
  ac_ct_AR=$AR
5380
  # Extract the first word of "ar", so it can be a program name with args.
5381
set dummy ar; ac_word=$2
5382
echo "$as_me:$LINENO: checking for $ac_word" >&5
5383
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5384
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5385
  echo $ECHO_N "(cached) $ECHO_C" >&6
5386
else
5387
  if test -n "$ac_ct_AR"; then
5388
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5389
else
5390
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391
for as_dir in $PATH
5392
do
5393
  IFS=$as_save_IFS
5394
  test -z "$as_dir" && as_dir=.
5395
  for ac_exec_ext in '' $ac_executable_extensions; do
5396
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397
    ac_cv_prog_ac_ct_AR="ar"
5398
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399
    break 2
5400
  fi
5401
done
5402
done
5403
 
5404
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5405
fi
5406
fi
5407
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5408
if test -n "$ac_ct_AR"; then
5409
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5410
echo "${ECHO_T}$ac_ct_AR" >&6
5411
else
5412
  echo "$as_me:$LINENO: result: no" >&5
5413
echo "${ECHO_T}no" >&6
5414
fi
5415
 
5416
  AR=$ac_ct_AR
5417
else
5418
  AR="$ac_cv_prog_AR"
5419
fi
5420
 
5421
test -z "$AR" && AR=ar
5422
test -z "$AR_FLAGS" && AR_FLAGS=cru
5423
 
5424
 
5425
 
5426
 
5427
 
5428
 
5429
 
5430
 
5431
 
5432
 
5433
 
5434
if test -n "$ac_tool_prefix"; then
5435
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5436
set dummy ${ac_tool_prefix}strip; ac_word=$2
5437
echo "$as_me:$LINENO: checking for $ac_word" >&5
5438
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5439
if test "${ac_cv_prog_STRIP+set}" = set; then
5440
  echo $ECHO_N "(cached) $ECHO_C" >&6
5441
else
5442
  if test -n "$STRIP"; then
5443
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5444
else
5445
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446
for as_dir in $PATH
5447
do
5448
  IFS=$as_save_IFS
5449
  test -z "$as_dir" && as_dir=.
5450
  for ac_exec_ext in '' $ac_executable_extensions; do
5451
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5452
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5453
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454
    break 2
5455
  fi
5456
done
5457
done
5458
 
5459
fi
5460
fi
5461
STRIP=$ac_cv_prog_STRIP
5462
if test -n "$STRIP"; then
5463
  echo "$as_me:$LINENO: result: $STRIP" >&5
5464
echo "${ECHO_T}$STRIP" >&6
5465
else
5466
  echo "$as_me:$LINENO: result: no" >&5
5467
echo "${ECHO_T}no" >&6
5468
fi
5469
 
5470
fi
5471
if test -z "$ac_cv_prog_STRIP"; then
5472
  ac_ct_STRIP=$STRIP
5473
  # Extract the first word of "strip", so it can be a program name with args.
5474
set dummy strip; ac_word=$2
5475
echo "$as_me:$LINENO: checking for $ac_word" >&5
5476
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5477
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5478
  echo $ECHO_N "(cached) $ECHO_C" >&6
5479
else
5480
  if test -n "$ac_ct_STRIP"; then
5481
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5482
else
5483
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484
for as_dir in $PATH
5485
do
5486
  IFS=$as_save_IFS
5487
  test -z "$as_dir" && as_dir=.
5488
  for ac_exec_ext in '' $ac_executable_extensions; do
5489
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490
    ac_cv_prog_ac_ct_STRIP="strip"
5491
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492
    break 2
5493
  fi
5494
done
5495
done
5496
 
5497
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5498
fi
5499
fi
5500
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5501
if test -n "$ac_ct_STRIP"; then
5502
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5503
echo "${ECHO_T}$ac_ct_STRIP" >&6
5504
else
5505
  echo "$as_me:$LINENO: result: no" >&5
5506
echo "${ECHO_T}no" >&6
5507
fi
5508
 
5509
  STRIP=$ac_ct_STRIP
5510
else
5511
  STRIP="$ac_cv_prog_STRIP"
5512
fi
5513
 
5514
test -z "$STRIP" && STRIP=:
5515
 
5516
 
5517
 
5518
 
5519
 
5520
 
5521
if test -n "$ac_tool_prefix"; then
5522
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5523
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5524
echo "$as_me:$LINENO: checking for $ac_word" >&5
5525
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5526
if test "${ac_cv_prog_RANLIB+set}" = set; then
5527
  echo $ECHO_N "(cached) $ECHO_C" >&6
5528
else
5529
  if test -n "$RANLIB"; then
5530
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5531
else
5532
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533
for as_dir in $PATH
5534
do
5535
  IFS=$as_save_IFS
5536
  test -z "$as_dir" && as_dir=.
5537
  for ac_exec_ext in '' $ac_executable_extensions; do
5538
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5540
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5541
    break 2
5542
  fi
5543
done
5544
done
5545
 
5546
fi
5547
fi
5548
RANLIB=$ac_cv_prog_RANLIB
5549
if test -n "$RANLIB"; then
5550
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5551
echo "${ECHO_T}$RANLIB" >&6
5552
else
5553
  echo "$as_me:$LINENO: result: no" >&5
5554
echo "${ECHO_T}no" >&6
5555
fi
5556
 
5557
fi
5558
if test -z "$ac_cv_prog_RANLIB"; then
5559
  ac_ct_RANLIB=$RANLIB
5560
  # Extract the first word of "ranlib", so it can be a program name with args.
5561
set dummy ranlib; ac_word=$2
5562
echo "$as_me:$LINENO: checking for $ac_word" >&5
5563
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5564
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5565
  echo $ECHO_N "(cached) $ECHO_C" >&6
5566
else
5567
  if test -n "$ac_ct_RANLIB"; then
5568
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5569
else
5570
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571
for as_dir in $PATH
5572
do
5573
  IFS=$as_save_IFS
5574
  test -z "$as_dir" && as_dir=.
5575
  for ac_exec_ext in '' $ac_executable_extensions; do
5576
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5578
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5579
    break 2
5580
  fi
5581
done
5582
done
5583
 
5584
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5585
fi
5586
fi
5587
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5588
if test -n "$ac_ct_RANLIB"; then
5589
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5590
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5591
else
5592
  echo "$as_me:$LINENO: result: no" >&5
5593
echo "${ECHO_T}no" >&6
5594
fi
5595
 
5596
  RANLIB=$ac_ct_RANLIB
5597
else
5598
  RANLIB="$ac_cv_prog_RANLIB"
5599
fi
5600
 
5601
test -z "$RANLIB" && RANLIB=:
5602
 
5603
 
5604
 
5605
 
5606
 
5607
 
5608
# Determine commands to create old-style static archives.
5609
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5610
old_postinstall_cmds='chmod 644 $oldlib'
5611
old_postuninstall_cmds=
5612
 
5613
if test -n "$RANLIB"; then
5614
  case $host_os in
5615
  openbsd*)
5616
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5617
    ;;
5618
  *)
5619
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5620
    ;;
5621
  esac
5622
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5623
fi
5624
 
5625
 
5626
 
5627
 
5628
 
5629
 
5630
 
5631
 
5632
 
5633
 
5634
 
5635
 
5636
 
5637
 
5638
 
5639
 
5640
 
5641
 
5642
 
5643
 
5644
 
5645
 
5646
 
5647
 
5648
 
5649
 
5650
 
5651
 
5652
 
5653
 
5654
 
5655
 
5656
 
5657
 
5658
# If no C compiler was specified, use CC.
5659
LTCC=${LTCC-"$CC"}
5660
 
5661
# If no C compiler flags were specified, use CFLAGS.
5662
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5663
 
5664
# Allow CC to be a program name with arguments.
5665
compiler=$CC
5666
 
5667
 
5668
# Check for command to grab the raw symbol name followed by C symbol from nm.
5669
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5670
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5671
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5672
  echo $ECHO_N "(cached) $ECHO_C" >&6
5673
else
5674
 
5675
# These are sane defaults that work on at least a few old systems.
5676
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5677
 
5678
# Character class describing NM global symbol codes.
5679
symcode='[BCDEGRST]'
5680
 
5681
# Regexp to match symbols that can be accessed directly from C.
5682
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5683
 
5684
# Define system-specific variables.
5685
case $host_os in
5686
aix*)
5687
  symcode='[BCDT]'
5688
  ;;
5689
cygwin* | mingw* | pw32* | cegcc*)
5690
  symcode='[ABCDGISTW]'
5691
  ;;
5692
hpux*)
5693
  if test "$host_cpu" = ia64; then
5694
    symcode='[ABCDEGRST]'
5695
  fi
5696
  ;;
5697
irix* | nonstopux*)
5698
  symcode='[BCDEGRST]'
5699
  ;;
5700
osf*)
5701
  symcode='[BCDEGQRST]'
5702
  ;;
5703
solaris*)
5704
  symcode='[BDRT]'
5705
  ;;
5706
sco3.2v5*)
5707
  symcode='[DT]'
5708
  ;;
5709
sysv4.2uw2*)
5710
  symcode='[DT]'
5711
  ;;
5712
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5713
  symcode='[ABDT]'
5714
  ;;
5715
sysv4)
5716
  symcode='[DFNSTU]'
5717
  ;;
5718
esac
5719
 
5720
# If we're using GNU nm, then use its standard symbol codes.
5721
case `$NM -V 2>&1` in
5722
*GNU* | *'with BFD'*)
5723
  symcode='[ABCDGIRSTW]' ;;
5724
esac
5725
 
5726
# Transform an extracted symbol line into a proper C declaration.
5727
# Some systems (esp. on ia64) link data and code symbols differently,
5728
# so use this general approach.
5729
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5730
 
5731
# Transform an extracted symbol line into symbol name and symbol address
5732
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5733
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5734
 
5735
# Handle CRLF in mingw tool chain
5736
opt_cr=
5737
case $build_os in
5738
mingw*)
5739
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5740
  ;;
5741
esac
5742
 
5743
# Try without a prefix underscore, then with it.
5744
for ac_symprfx in "" "_"; do
5745
 
5746
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5747
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5748
 
5749
  # Write the raw and C identifiers.
5750
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5751
    # Fake it for dumpbin and say T for any non-static function
5752
    # and D for any global variable.
5753
    # Also find C++ and __fastcall symbols from MSVC++,
5754
    # which start with @ or ?.
5755
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5756
"     {last_section=section; section=\$ 3};"\
5757
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5758
"     \$ 0!~/External *\|/{next};"\
5759
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5760
"     {if(hide[section]) next};"\
5761
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5762
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5763
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5764
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5765
"     ' prfx=^$ac_symprfx"
5766
  else
5767
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5768
  fi
5769
 
5770
  # Check to see that the pipe works correctly.
5771
  pipe_works=no
5772
 
5773
  rm -f conftest*
5774
  cat > conftest.$ac_ext <<_LT_EOF
5775
#ifdef __cplusplus
5776
extern "C" {
5777
#endif
5778
char nm_test_var;
5779
void nm_test_func(void);
5780
void nm_test_func(void){}
5781
#ifdef __cplusplus
5782
}
5783
#endif
5784
int main(){nm_test_var='a';nm_test_func();return(0);}
5785
_LT_EOF
5786
 
5787
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5788
  (eval $ac_compile) 2>&5
5789
  ac_status=$?
5790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791
  (exit $ac_status); }; then
5792
    # Now try to grab the symbols.
5793
    nlist=conftest.nm
5794
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5795
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5796
  ac_status=$?
5797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798
  (exit $ac_status); } && test -s "$nlist"; then
5799
      # Try sorting and uniquifying the output.
5800
      if sort "$nlist" | uniq > "$nlist"T; then
5801
        mv -f "$nlist"T "$nlist"
5802
      else
5803
        rm -f "$nlist"T
5804
      fi
5805
 
5806
      # Make sure that we snagged all the symbols we need.
5807
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5808
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5809
          cat <<_LT_EOF > conftest.$ac_ext
5810
#ifdef __cplusplus
5811
extern "C" {
5812
#endif
5813
 
5814
_LT_EOF
5815
          # Now generate the symbol file.
5816
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5817
 
5818
          cat <<_LT_EOF >> conftest.$ac_ext
5819
 
5820
/* The mapping between symbol names and symbols.  */
5821
const struct {
5822
  const char *name;
5823
  void       *address;
5824
}
5825
lt__PROGRAM__LTX_preloaded_symbols[] =
5826
{
5827
  { "@PROGRAM@", (void *) 0 },
5828
_LT_EOF
5829
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5830
          cat <<\_LT_EOF >> conftest.$ac_ext
5831
  {0, (void *) 0}
5832
};
5833
 
5834
/* This works around a problem in FreeBSD linker */
5835
#ifdef FREEBSD_WORKAROUND
5836
static const void *lt_preloaded_setup() {
5837
  return lt__PROGRAM__LTX_preloaded_symbols;
5838
}
5839
#endif
5840
 
5841
#ifdef __cplusplus
5842
}
5843
#endif
5844
_LT_EOF
5845
          # Now try linking the two files.
5846
          mv conftest.$ac_objext conftstm.$ac_objext
5847
          lt_save_LIBS="$LIBS"
5848
          lt_save_CFLAGS="$CFLAGS"
5849
          LIBS="conftstm.$ac_objext"
5850
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5851
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5852
  (eval $ac_link) 2>&5
5853
  ac_status=$?
5854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5856
            pipe_works=yes
5857
          fi
5858
          LIBS="$lt_save_LIBS"
5859
          CFLAGS="$lt_save_CFLAGS"
5860
        else
5861
          echo "cannot find nm_test_func in $nlist" >&5
5862
        fi
5863
      else
5864
        echo "cannot find nm_test_var in $nlist" >&5
5865
      fi
5866
    else
5867
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5868
    fi
5869
  else
5870
    echo "$progname: failed program was:" >&5
5871
    cat conftest.$ac_ext >&5
5872
  fi
5873
  rm -rf conftest* conftst*
5874
 
5875
  # Do not use the global_symbol_pipe unless it works.
5876
  if test "$pipe_works" = yes; then
5877
    break
5878
  else
5879
    lt_cv_sys_global_symbol_pipe=
5880
  fi
5881
done
5882
 
5883
fi
5884
 
5885
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5886
  lt_cv_sys_global_symbol_to_cdecl=
5887
fi
5888
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5889
  echo "$as_me:$LINENO: result: failed" >&5
5890
echo "${ECHO_T}failed" >&6
5891
else
5892
  echo "$as_me:$LINENO: result: ok" >&5
5893
echo "${ECHO_T}ok" >&6
5894
fi
5895
 
5896
 
5897
 
5898
 
5899
 
5900
 
5901
 
5902
 
5903
 
5904
 
5905
 
5906
 
5907
 
5908
 
5909
 
5910
 
5911
 
5912
 
5913
 
5914
 
5915
 
5916
 
5917
 
5918
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5919
if test "${enable_libtool_lock+set}" = set; then
5920
  enableval="$enable_libtool_lock"
5921
 
5922
fi;
5923
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5924
 
5925
# Some flags need to be propagated to the compiler or linker for good
5926
# libtool support.
5927
case $host in
5928
ia64-*-hpux*)
5929
  # Find out which ABI we are using.
5930
  echo 'int i;' > conftest.$ac_ext
5931
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5932
  (eval $ac_compile) 2>&5
5933
  ac_status=$?
5934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935
  (exit $ac_status); }; then
5936
    case `/usr/bin/file conftest.$ac_objext` in
5937
      *ELF-32*)
5938
        HPUX_IA64_MODE="32"
5939
        ;;
5940
      *ELF-64*)
5941
        HPUX_IA64_MODE="64"
5942
        ;;
5943
    esac
5944
  fi
5945
  rm -rf conftest*
5946
  ;;
5947
*-*-irix6*)
5948
  # Find out which ABI we are using.
5949
  echo '#line 5949 "configure"' > conftest.$ac_ext
5950
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5951
  (eval $ac_compile) 2>&5
5952
  ac_status=$?
5953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954
  (exit $ac_status); }; then
5955
    if test "$lt_cv_prog_gnu_ld" = yes; then
5956
      case `/usr/bin/file conftest.$ac_objext` in
5957
        *32-bit*)
5958
          LD="${LD-ld} -melf32bsmip"
5959
          ;;
5960
        *N32*)
5961
          LD="${LD-ld} -melf32bmipn32"
5962
          ;;
5963
        *64-bit*)
5964
          LD="${LD-ld} -melf64bmip"
5965
        ;;
5966
      esac
5967
    else
5968
      case `/usr/bin/file conftest.$ac_objext` in
5969
        *32-bit*)
5970
          LD="${LD-ld} -32"
5971
          ;;
5972
        *N32*)
5973
          LD="${LD-ld} -n32"
5974
          ;;
5975
        *64-bit*)
5976
          LD="${LD-ld} -64"
5977
          ;;
5978
      esac
5979
    fi
5980
  fi
5981
  rm -rf conftest*
5982
  ;;
5983
 
5984
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5985
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5986
  # Find out which ABI we are using.
5987
  echo 'int i;' > conftest.$ac_ext
5988
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5989
  (eval $ac_compile) 2>&5
5990
  ac_status=$?
5991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992
  (exit $ac_status); }; then
5993
    case `/usr/bin/file conftest.o` in
5994
      *32-bit*)
5995
        case $host in
5996
          x86_64-*kfreebsd*-gnu)
5997
            LD="${LD-ld} -m elf_i386_fbsd"
5998
            ;;
5999
          x86_64-*linux*)
6000
            LD="${LD-ld} -m elf_i386"
6001
            ;;
6002
          ppc64-*linux*|powerpc64-*linux*)
6003
            LD="${LD-ld} -m elf32ppclinux"
6004
            ;;
6005
          s390x-*linux*)
6006
            LD="${LD-ld} -m elf_s390"
6007
            ;;
6008
          sparc64-*linux*)
6009
            LD="${LD-ld} -m elf32_sparc"
6010
            ;;
6011
        esac
6012
        ;;
6013
      *64-bit*)
6014
        case $host in
6015
          x86_64-*kfreebsd*-gnu)
6016
            LD="${LD-ld} -m elf_x86_64_fbsd"
6017
            ;;
6018
          x86_64-*linux*)
6019
            LD="${LD-ld} -m elf_x86_64"
6020
            ;;
6021
          ppc*-*linux*|powerpc*-*linux*)
6022
            LD="${LD-ld} -m elf64ppc"
6023
            ;;
6024
          s390*-*linux*|s390*-*tpf*)
6025
            LD="${LD-ld} -m elf64_s390"
6026
            ;;
6027
          sparc*-*linux*)
6028
            LD="${LD-ld} -m elf64_sparc"
6029
            ;;
6030
        esac
6031
        ;;
6032
    esac
6033
  fi
6034
  rm -rf conftest*
6035
  ;;
6036
 
6037
*-*-sco3.2v5*)
6038
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6039
  SAVE_CFLAGS="$CFLAGS"
6040
  CFLAGS="$CFLAGS -belf"
6041
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6042
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6043
if test "${lt_cv_cc_needs_belf+set}" = set; then
6044
  echo $ECHO_N "(cached) $ECHO_C" >&6
6045
else
6046
  ac_ext=c
6047
ac_cpp='$CPP $CPPFLAGS'
6048
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6051
 
6052
     cat >conftest.$ac_ext <<_ACEOF
6053
/* confdefs.h.  */
6054
_ACEOF
6055
cat confdefs.h >>conftest.$ac_ext
6056
cat >>conftest.$ac_ext <<_ACEOF
6057
/* end confdefs.h.  */
6058
 
6059
int
6060
main ()
6061
{
6062
 
6063
  ;
6064
  return 0;
6065
}
6066
_ACEOF
6067
rm -f conftest.$ac_objext conftest$ac_exeext
6068
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6069
  (eval $ac_link) 2>conftest.er1
6070
  ac_status=$?
6071
  grep -v '^ *+' conftest.er1 >conftest.err
6072
  rm -f conftest.er1
6073
  cat conftest.err >&5
6074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075
  (exit $ac_status); } &&
6076
         { ac_try='test -z "$ac_c_werror_flag"
6077
                         || test ! -s conftest.err'
6078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079
  (eval $ac_try) 2>&5
6080
  ac_status=$?
6081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082
  (exit $ac_status); }; } &&
6083
         { ac_try='test -s conftest$ac_exeext'
6084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085
  (eval $ac_try) 2>&5
6086
  ac_status=$?
6087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088
  (exit $ac_status); }; }; then
6089
  lt_cv_cc_needs_belf=yes
6090
else
6091
  echo "$as_me: failed program was:" >&5
6092
sed 's/^/| /' conftest.$ac_ext >&5
6093
 
6094
lt_cv_cc_needs_belf=no
6095
fi
6096
rm -f conftest.err conftest.$ac_objext \
6097
      conftest$ac_exeext conftest.$ac_ext
6098
     ac_ext=c
6099
ac_cpp='$CPP $CPPFLAGS'
6100
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6101
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6102
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6103
 
6104
fi
6105
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6106
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6107
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6108
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6109
    CFLAGS="$SAVE_CFLAGS"
6110
  fi
6111
  ;;
6112
sparc*-*solaris*)
6113
  # Find out which ABI we are using.
6114
  echo 'int i;' > conftest.$ac_ext
6115
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116
  (eval $ac_compile) 2>&5
6117
  ac_status=$?
6118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119
  (exit $ac_status); }; then
6120
    case `/usr/bin/file conftest.o` in
6121
    *64-bit*)
6122
      case $lt_cv_prog_gnu_ld in
6123
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6124
      *)
6125
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6126
          LD="${LD-ld} -64"
6127
        fi
6128
        ;;
6129
      esac
6130
      ;;
6131
    esac
6132
  fi
6133
  rm -rf conftest*
6134
  ;;
6135
esac
6136
 
6137
need_locks="$enable_libtool_lock"
6138
 
6139
 
6140
  case $host_os in
6141
    rhapsody* | darwin*)
6142
    if test -n "$ac_tool_prefix"; then
6143
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6144
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6145
echo "$as_me:$LINENO: checking for $ac_word" >&5
6146
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6147
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6148
  echo $ECHO_N "(cached) $ECHO_C" >&6
6149
else
6150
  if test -n "$DSYMUTIL"; then
6151
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6152
else
6153
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154
for as_dir in $PATH
6155
do
6156
  IFS=$as_save_IFS
6157
  test -z "$as_dir" && as_dir=.
6158
  for ac_exec_ext in '' $ac_executable_extensions; do
6159
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6160
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6161
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6162
    break 2
6163
  fi
6164
done
6165
done
6166
 
6167
fi
6168
fi
6169
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6170
if test -n "$DSYMUTIL"; then
6171
  echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6172
echo "${ECHO_T}$DSYMUTIL" >&6
6173
else
6174
  echo "$as_me:$LINENO: result: no" >&5
6175
echo "${ECHO_T}no" >&6
6176
fi
6177
 
6178
fi
6179
if test -z "$ac_cv_prog_DSYMUTIL"; then
6180
  ac_ct_DSYMUTIL=$DSYMUTIL
6181
  # Extract the first word of "dsymutil", so it can be a program name with args.
6182
set dummy dsymutil; ac_word=$2
6183
echo "$as_me:$LINENO: checking for $ac_word" >&5
6184
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6185
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6186
  echo $ECHO_N "(cached) $ECHO_C" >&6
6187
else
6188
  if test -n "$ac_ct_DSYMUTIL"; then
6189
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6190
else
6191
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192
for as_dir in $PATH
6193
do
6194
  IFS=$as_save_IFS
6195
  test -z "$as_dir" && as_dir=.
6196
  for ac_exec_ext in '' $ac_executable_extensions; do
6197
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6198
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6199
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6200
    break 2
6201
  fi
6202
done
6203
done
6204
 
6205
  test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6206
fi
6207
fi
6208
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6209
if test -n "$ac_ct_DSYMUTIL"; then
6210
  echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6211
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6212
else
6213
  echo "$as_me:$LINENO: result: no" >&5
6214
echo "${ECHO_T}no" >&6
6215
fi
6216
 
6217
  DSYMUTIL=$ac_ct_DSYMUTIL
6218
else
6219
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6220
fi
6221
 
6222
    if test -n "$ac_tool_prefix"; then
6223
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6224
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6225
echo "$as_me:$LINENO: checking for $ac_word" >&5
6226
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6227
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6228
  echo $ECHO_N "(cached) $ECHO_C" >&6
6229
else
6230
  if test -n "$NMEDIT"; then
6231
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6232
else
6233
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234
for as_dir in $PATH
6235
do
6236
  IFS=$as_save_IFS
6237
  test -z "$as_dir" && as_dir=.
6238
  for ac_exec_ext in '' $ac_executable_extensions; do
6239
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6240
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6241
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6242
    break 2
6243
  fi
6244
done
6245
done
6246
 
6247
fi
6248
fi
6249
NMEDIT=$ac_cv_prog_NMEDIT
6250
if test -n "$NMEDIT"; then
6251
  echo "$as_me:$LINENO: result: $NMEDIT" >&5
6252
echo "${ECHO_T}$NMEDIT" >&6
6253
else
6254
  echo "$as_me:$LINENO: result: no" >&5
6255
echo "${ECHO_T}no" >&6
6256
fi
6257
 
6258
fi
6259
if test -z "$ac_cv_prog_NMEDIT"; then
6260
  ac_ct_NMEDIT=$NMEDIT
6261
  # Extract the first word of "nmedit", so it can be a program name with args.
6262
set dummy nmedit; ac_word=$2
6263
echo "$as_me:$LINENO: checking for $ac_word" >&5
6264
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6265
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6266
  echo $ECHO_N "(cached) $ECHO_C" >&6
6267
else
6268
  if test -n "$ac_ct_NMEDIT"; then
6269
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6270
else
6271
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272
for as_dir in $PATH
6273
do
6274
  IFS=$as_save_IFS
6275
  test -z "$as_dir" && as_dir=.
6276
  for ac_exec_ext in '' $ac_executable_extensions; do
6277
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6278
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6279
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6280
    break 2
6281
  fi
6282
done
6283
done
6284
 
6285
  test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6286
fi
6287
fi
6288
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6289
if test -n "$ac_ct_NMEDIT"; then
6290
  echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6291
echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6292
else
6293
  echo "$as_me:$LINENO: result: no" >&5
6294
echo "${ECHO_T}no" >&6
6295
fi
6296
 
6297
  NMEDIT=$ac_ct_NMEDIT
6298
else
6299
  NMEDIT="$ac_cv_prog_NMEDIT"
6300
fi
6301
 
6302
    if test -n "$ac_tool_prefix"; then
6303
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6304
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6305
echo "$as_me:$LINENO: checking for $ac_word" >&5
6306
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6307
if test "${ac_cv_prog_LIPO+set}" = set; then
6308
  echo $ECHO_N "(cached) $ECHO_C" >&6
6309
else
6310
  if test -n "$LIPO"; then
6311
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6312
else
6313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314
for as_dir in $PATH
6315
do
6316
  IFS=$as_save_IFS
6317
  test -z "$as_dir" && as_dir=.
6318
  for ac_exec_ext in '' $ac_executable_extensions; do
6319
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6320
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6321
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322
    break 2
6323
  fi
6324
done
6325
done
6326
 
6327
fi
6328
fi
6329
LIPO=$ac_cv_prog_LIPO
6330
if test -n "$LIPO"; then
6331
  echo "$as_me:$LINENO: result: $LIPO" >&5
6332
echo "${ECHO_T}$LIPO" >&6
6333
else
6334
  echo "$as_me:$LINENO: result: no" >&5
6335
echo "${ECHO_T}no" >&6
6336
fi
6337
 
6338
fi
6339
if test -z "$ac_cv_prog_LIPO"; then
6340
  ac_ct_LIPO=$LIPO
6341
  # Extract the first word of "lipo", so it can be a program name with args.
6342
set dummy lipo; ac_word=$2
6343
echo "$as_me:$LINENO: checking for $ac_word" >&5
6344
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6345
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6346
  echo $ECHO_N "(cached) $ECHO_C" >&6
6347
else
6348
  if test -n "$ac_ct_LIPO"; then
6349
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6350
else
6351
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352
for as_dir in $PATH
6353
do
6354
  IFS=$as_save_IFS
6355
  test -z "$as_dir" && as_dir=.
6356
  for ac_exec_ext in '' $ac_executable_extensions; do
6357
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6358
    ac_cv_prog_ac_ct_LIPO="lipo"
6359
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360
    break 2
6361
  fi
6362
done
6363
done
6364
 
6365
  test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6366
fi
6367
fi
6368
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6369
if test -n "$ac_ct_LIPO"; then
6370
  echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6371
echo "${ECHO_T}$ac_ct_LIPO" >&6
6372
else
6373
  echo "$as_me:$LINENO: result: no" >&5
6374
echo "${ECHO_T}no" >&6
6375
fi
6376
 
6377
  LIPO=$ac_ct_LIPO
6378
else
6379
  LIPO="$ac_cv_prog_LIPO"
6380
fi
6381
 
6382
    if test -n "$ac_tool_prefix"; then
6383
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6384
set dummy ${ac_tool_prefix}otool; ac_word=$2
6385
echo "$as_me:$LINENO: checking for $ac_word" >&5
6386
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6387
if test "${ac_cv_prog_OTOOL+set}" = set; then
6388
  echo $ECHO_N "(cached) $ECHO_C" >&6
6389
else
6390
  if test -n "$OTOOL"; then
6391
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6392
else
6393
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394
for as_dir in $PATH
6395
do
6396
  IFS=$as_save_IFS
6397
  test -z "$as_dir" && as_dir=.
6398
  for ac_exec_ext in '' $ac_executable_extensions; do
6399
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6400
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6401
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6402
    break 2
6403
  fi
6404
done
6405
done
6406
 
6407
fi
6408
fi
6409
OTOOL=$ac_cv_prog_OTOOL
6410
if test -n "$OTOOL"; then
6411
  echo "$as_me:$LINENO: result: $OTOOL" >&5
6412
echo "${ECHO_T}$OTOOL" >&6
6413
else
6414
  echo "$as_me:$LINENO: result: no" >&5
6415
echo "${ECHO_T}no" >&6
6416
fi
6417
 
6418
fi
6419
if test -z "$ac_cv_prog_OTOOL"; then
6420
  ac_ct_OTOOL=$OTOOL
6421
  # Extract the first word of "otool", so it can be a program name with args.
6422
set dummy otool; ac_word=$2
6423
echo "$as_me:$LINENO: checking for $ac_word" >&5
6424
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6425
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6426
  echo $ECHO_N "(cached) $ECHO_C" >&6
6427
else
6428
  if test -n "$ac_ct_OTOOL"; then
6429
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6430
else
6431
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432
for as_dir in $PATH
6433
do
6434
  IFS=$as_save_IFS
6435
  test -z "$as_dir" && as_dir=.
6436
  for ac_exec_ext in '' $ac_executable_extensions; do
6437
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438
    ac_cv_prog_ac_ct_OTOOL="otool"
6439
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440
    break 2
6441
  fi
6442
done
6443
done
6444
 
6445
  test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6446
fi
6447
fi
6448
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6449
if test -n "$ac_ct_OTOOL"; then
6450
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6451
echo "${ECHO_T}$ac_ct_OTOOL" >&6
6452
else
6453
  echo "$as_me:$LINENO: result: no" >&5
6454
echo "${ECHO_T}no" >&6
6455
fi
6456
 
6457
  OTOOL=$ac_ct_OTOOL
6458
else
6459
  OTOOL="$ac_cv_prog_OTOOL"
6460
fi
6461
 
6462
    if test -n "$ac_tool_prefix"; then
6463
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6464
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6465
echo "$as_me:$LINENO: checking for $ac_word" >&5
6466
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6467
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6468
  echo $ECHO_N "(cached) $ECHO_C" >&6
6469
else
6470
  if test -n "$OTOOL64"; then
6471
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6472
else
6473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474
for as_dir in $PATH
6475
do
6476
  IFS=$as_save_IFS
6477
  test -z "$as_dir" && as_dir=.
6478
  for ac_exec_ext in '' $ac_executable_extensions; do
6479
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6480
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6481
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482
    break 2
6483
  fi
6484
done
6485
done
6486
 
6487
fi
6488
fi
6489
OTOOL64=$ac_cv_prog_OTOOL64
6490
if test -n "$OTOOL64"; then
6491
  echo "$as_me:$LINENO: result: $OTOOL64" >&5
6492
echo "${ECHO_T}$OTOOL64" >&6
6493
else
6494
  echo "$as_me:$LINENO: result: no" >&5
6495
echo "${ECHO_T}no" >&6
6496
fi
6497
 
6498
fi
6499
if test -z "$ac_cv_prog_OTOOL64"; then
6500
  ac_ct_OTOOL64=$OTOOL64
6501
  # Extract the first word of "otool64", so it can be a program name with args.
6502
set dummy otool64; ac_word=$2
6503
echo "$as_me:$LINENO: checking for $ac_word" >&5
6504
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6505
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6506
  echo $ECHO_N "(cached) $ECHO_C" >&6
6507
else
6508
  if test -n "$ac_ct_OTOOL64"; then
6509
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6510
else
6511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512
for as_dir in $PATH
6513
do
6514
  IFS=$as_save_IFS
6515
  test -z "$as_dir" && as_dir=.
6516
  for ac_exec_ext in '' $ac_executable_extensions; do
6517
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6518
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6519
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520
    break 2
6521
  fi
6522
done
6523
done
6524
 
6525
  test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6526
fi
6527
fi
6528
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6529
if test -n "$ac_ct_OTOOL64"; then
6530
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6531
echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6532
else
6533
  echo "$as_me:$LINENO: result: no" >&5
6534
echo "${ECHO_T}no" >&6
6535
fi
6536
 
6537
  OTOOL64=$ac_ct_OTOOL64
6538
else
6539
  OTOOL64="$ac_cv_prog_OTOOL64"
6540
fi
6541
 
6542
 
6543
 
6544
 
6545
 
6546
 
6547
 
6548
 
6549
 
6550
 
6551
 
6552
 
6553
 
6554
 
6555
 
6556
 
6557
 
6558
 
6559
 
6560
 
6561
 
6562
 
6563
 
6564
 
6565
 
6566
 
6567
 
6568
    echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6569
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6570
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6571
  echo $ECHO_N "(cached) $ECHO_C" >&6
6572
else
6573
  lt_cv_apple_cc_single_mod=no
6574
      if test -z "${LT_MULTI_MODULE}"; then
6575
        # By default we will add the -single_module flag. You can override
6576
        # by either setting the environment variable LT_MULTI_MODULE
6577
        # non-empty at configure time, or by adding -multi_module to the
6578
        # link flags.
6579
        rm -rf libconftest.dylib*
6580
        echo "int foo(void){return 1;}" > conftest.c
6581
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6582
-dynamiclib -Wl,-single_module conftest.c" >&5
6583
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6584
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6585
        _lt_result=$?
6586
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6587
          lt_cv_apple_cc_single_mod=yes
6588
        else
6589
          cat conftest.err >&5
6590
        fi
6591
        rm -rf libconftest.dylib*
6592
        rm -f conftest.*
6593
      fi
6594
fi
6595
echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6596
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6597
    echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6598
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6599
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6600
  echo $ECHO_N "(cached) $ECHO_C" >&6
6601
else
6602
  lt_cv_ld_exported_symbols_list=no
6603
      save_LDFLAGS=$LDFLAGS
6604
      echo "_main" > conftest.sym
6605
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6606
      cat >conftest.$ac_ext <<_ACEOF
6607
/* confdefs.h.  */
6608
_ACEOF
6609
cat confdefs.h >>conftest.$ac_ext
6610
cat >>conftest.$ac_ext <<_ACEOF
6611
/* end confdefs.h.  */
6612
 
6613
int
6614
main ()
6615
{
6616
 
6617
  ;
6618
  return 0;
6619
}
6620
_ACEOF
6621
rm -f conftest.$ac_objext conftest$ac_exeext
6622
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6623
  (eval $ac_link) 2>conftest.er1
6624
  ac_status=$?
6625
  grep -v '^ *+' conftest.er1 >conftest.err
6626
  rm -f conftest.er1
6627
  cat conftest.err >&5
6628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629
  (exit $ac_status); } &&
6630
         { ac_try='test -z "$ac_c_werror_flag"
6631
                         || test ! -s conftest.err'
6632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633
  (eval $ac_try) 2>&5
6634
  ac_status=$?
6635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636
  (exit $ac_status); }; } &&
6637
         { ac_try='test -s conftest$ac_exeext'
6638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639
  (eval $ac_try) 2>&5
6640
  ac_status=$?
6641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642
  (exit $ac_status); }; }; then
6643
  lt_cv_ld_exported_symbols_list=yes
6644
else
6645
  echo "$as_me: failed program was:" >&5
6646
sed 's/^/| /' conftest.$ac_ext >&5
6647
 
6648
lt_cv_ld_exported_symbols_list=no
6649
fi
6650
rm -f conftest.err conftest.$ac_objext \
6651
      conftest$ac_exeext conftest.$ac_ext
6652
        LDFLAGS="$save_LDFLAGS"
6653
 
6654
fi
6655
echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6656
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6657
    case $host_os in
6658
    rhapsody* | darwin1.[012])
6659
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6660
    darwin1.*)
6661
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6662
    darwin*) # darwin 5.x on
6663
      # if running on 10.5 or later, the deployment target defaults
6664
      # to the OS version, if on x86, and 10.4, the deployment
6665
      # target defaults to 10.4. Don't you love it?
6666
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6667
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6668
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6669
        10.[012]*)
6670
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6671
        10.*)
6672
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6673
      esac
6674
    ;;
6675
  esac
6676
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6677
      _lt_dar_single_mod='$single_module'
6678
    fi
6679
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6680
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6681
    else
6682
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6683
    fi
6684
    if test "$DSYMUTIL" != ":"; then
6685
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6686
    else
6687
      _lt_dsymutil=
6688
    fi
6689
    ;;
6690
  esac
6691
 
6692
ac_ext=c
6693
ac_cpp='$CPP $CPPFLAGS'
6694
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6695
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6696
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6697
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6698
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6699
# On Suns, sometimes $CPP names a directory.
6700
if test -n "$CPP" && test -d "$CPP"; then
6701
  CPP=
6702
fi
6703
if test -z "$CPP"; then
6704
  if test "${ac_cv_prog_CPP+set}" = set; then
6705
  echo $ECHO_N "(cached) $ECHO_C" >&6
6706
else
6707
      # Double quotes because CPP needs to be expanded
6708
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6709
    do
6710
      ac_preproc_ok=false
6711
for ac_c_preproc_warn_flag in '' yes
6712
do
6713
  # Use a header file that comes with gcc, so configuring glibc
6714
  # with a fresh cross-compiler works.
6715
  # Prefer  to  if __STDC__ is defined, since
6716
  #  exists even on freestanding compilers.
6717
  # On the NeXT, cc -E runs the code through the compiler's parser,
6718
  # not just through cpp. "Syntax error" is here to catch this case.
6719
  cat >conftest.$ac_ext <<_ACEOF
6720
/* confdefs.h.  */
6721
_ACEOF
6722
cat confdefs.h >>conftest.$ac_ext
6723
cat >>conftest.$ac_ext <<_ACEOF
6724
/* end confdefs.h.  */
6725
#ifdef __STDC__
6726
# include 
6727
#else
6728
# include 
6729
#endif
6730
                     Syntax error
6731
_ACEOF
6732
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6733
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6734
  ac_status=$?
6735
  grep -v '^ *+' conftest.er1 >conftest.err
6736
  rm -f conftest.er1
6737
  cat conftest.err >&5
6738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739
  (exit $ac_status); } >/dev/null; then
6740
  if test -s conftest.err; then
6741
    ac_cpp_err=$ac_c_preproc_warn_flag
6742
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6743
  else
6744
    ac_cpp_err=
6745
  fi
6746
else
6747
  ac_cpp_err=yes
6748
fi
6749
if test -z "$ac_cpp_err"; then
6750
  :
6751
else
6752
  echo "$as_me: failed program was:" >&5
6753
sed 's/^/| /' conftest.$ac_ext >&5
6754
 
6755
  # Broken: fails on valid input.
6756
continue
6757
fi
6758
rm -f conftest.err conftest.$ac_ext
6759
 
6760
  # OK, works on sane cases.  Now check whether non-existent headers
6761
  # can be detected and how.
6762
  cat >conftest.$ac_ext <<_ACEOF
6763
/* confdefs.h.  */
6764
_ACEOF
6765
cat confdefs.h >>conftest.$ac_ext
6766
cat >>conftest.$ac_ext <<_ACEOF
6767
/* end confdefs.h.  */
6768
#include 
6769
_ACEOF
6770
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6771
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6772
  ac_status=$?
6773
  grep -v '^ *+' conftest.er1 >conftest.err
6774
  rm -f conftest.er1
6775
  cat conftest.err >&5
6776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777
  (exit $ac_status); } >/dev/null; then
6778
  if test -s conftest.err; then
6779
    ac_cpp_err=$ac_c_preproc_warn_flag
6780
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6781
  else
6782
    ac_cpp_err=
6783
  fi
6784
else
6785
  ac_cpp_err=yes
6786
fi
6787
if test -z "$ac_cpp_err"; then
6788
  # Broken: success on invalid input.
6789
continue
6790
else
6791
  echo "$as_me: failed program was:" >&5
6792
sed 's/^/| /' conftest.$ac_ext >&5
6793
 
6794
  # Passes both tests.
6795
ac_preproc_ok=:
6796
break
6797
fi
6798
rm -f conftest.err conftest.$ac_ext
6799
 
6800
done
6801
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6802
rm -f conftest.err conftest.$ac_ext
6803
if $ac_preproc_ok; then
6804
  break
6805
fi
6806
 
6807
    done
6808
    ac_cv_prog_CPP=$CPP
6809
 
6810
fi
6811
  CPP=$ac_cv_prog_CPP
6812
else
6813
  ac_cv_prog_CPP=$CPP
6814
fi
6815
echo "$as_me:$LINENO: result: $CPP" >&5
6816
echo "${ECHO_T}$CPP" >&6
6817
ac_preproc_ok=false
6818
for ac_c_preproc_warn_flag in '' yes
6819
do
6820
  # Use a header file that comes with gcc, so configuring glibc
6821
  # with a fresh cross-compiler works.
6822
  # Prefer  to  if __STDC__ is defined, since
6823
  #  exists even on freestanding compilers.
6824
  # On the NeXT, cc -E runs the code through the compiler's parser,
6825
  # not just through cpp. "Syntax error" is here to catch this case.
6826
  cat >conftest.$ac_ext <<_ACEOF
6827
/* confdefs.h.  */
6828
_ACEOF
6829
cat confdefs.h >>conftest.$ac_ext
6830
cat >>conftest.$ac_ext <<_ACEOF
6831
/* end confdefs.h.  */
6832
#ifdef __STDC__
6833
# include 
6834
#else
6835
# include 
6836
#endif
6837
                     Syntax error
6838
_ACEOF
6839
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6840
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6841
  ac_status=$?
6842
  grep -v '^ *+' conftest.er1 >conftest.err
6843
  rm -f conftest.er1
6844
  cat conftest.err >&5
6845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846
  (exit $ac_status); } >/dev/null; then
6847
  if test -s conftest.err; then
6848
    ac_cpp_err=$ac_c_preproc_warn_flag
6849
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6850
  else
6851
    ac_cpp_err=
6852
  fi
6853
else
6854
  ac_cpp_err=yes
6855
fi
6856
if test -z "$ac_cpp_err"; then
6857
  :
6858
else
6859
  echo "$as_me: failed program was:" >&5
6860
sed 's/^/| /' conftest.$ac_ext >&5
6861
 
6862
  # Broken: fails on valid input.
6863
continue
6864
fi
6865
rm -f conftest.err conftest.$ac_ext
6866
 
6867
  # OK, works on sane cases.  Now check whether non-existent headers
6868
  # can be detected and how.
6869
  cat >conftest.$ac_ext <<_ACEOF
6870
/* confdefs.h.  */
6871
_ACEOF
6872
cat confdefs.h >>conftest.$ac_ext
6873
cat >>conftest.$ac_ext <<_ACEOF
6874
/* end confdefs.h.  */
6875
#include 
6876
_ACEOF
6877
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6878
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6879
  ac_status=$?
6880
  grep -v '^ *+' conftest.er1 >conftest.err
6881
  rm -f conftest.er1
6882
  cat conftest.err >&5
6883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884
  (exit $ac_status); } >/dev/null; then
6885
  if test -s conftest.err; then
6886
    ac_cpp_err=$ac_c_preproc_warn_flag
6887
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6888
  else
6889
    ac_cpp_err=
6890
  fi
6891
else
6892
  ac_cpp_err=yes
6893
fi
6894
if test -z "$ac_cpp_err"; then
6895
  # Broken: success on invalid input.
6896
continue
6897
else
6898
  echo "$as_me: failed program was:" >&5
6899
sed 's/^/| /' conftest.$ac_ext >&5
6900
 
6901
  # Passes both tests.
6902
ac_preproc_ok=:
6903
break
6904
fi
6905
rm -f conftest.err conftest.$ac_ext
6906
 
6907
done
6908
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6909
rm -f conftest.err conftest.$ac_ext
6910
if $ac_preproc_ok; then
6911
  :
6912
else
6913
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6914
See \`config.log' for more details." >&5
6915
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6916
See \`config.log' for more details." >&2;}
6917
   { (exit 1); exit 1; }; }
6918
fi
6919
 
6920
ac_ext=c
6921
ac_cpp='$CPP $CPPFLAGS'
6922
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6923
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6924
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6925
 
6926
 
6927
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6928
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6929
if test "${ac_cv_header_stdc+set}" = set; then
6930
  echo $ECHO_N "(cached) $ECHO_C" >&6
6931
else
6932
  cat >conftest.$ac_ext <<_ACEOF
6933
/* confdefs.h.  */
6934
_ACEOF
6935
cat confdefs.h >>conftest.$ac_ext
6936
cat >>conftest.$ac_ext <<_ACEOF
6937
/* end confdefs.h.  */
6938
#include 
6939
#include 
6940
#include 
6941
#include 
6942
 
6943
int
6944
main ()
6945
{
6946
 
6947
  ;
6948
  return 0;
6949
}
6950
_ACEOF
6951
rm -f conftest.$ac_objext
6952
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6953
  (eval $ac_compile) 2>conftest.er1
6954
  ac_status=$?
6955
  grep -v '^ *+' conftest.er1 >conftest.err
6956
  rm -f conftest.er1
6957
  cat conftest.err >&5
6958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959
  (exit $ac_status); } &&
6960
         { ac_try='test -z "$ac_c_werror_flag"
6961
                         || test ! -s conftest.err'
6962
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963
  (eval $ac_try) 2>&5
6964
  ac_status=$?
6965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966
  (exit $ac_status); }; } &&
6967
         { ac_try='test -s conftest.$ac_objext'
6968
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6969
  (eval $ac_try) 2>&5
6970
  ac_status=$?
6971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972
  (exit $ac_status); }; }; then
6973
  ac_cv_header_stdc=yes
6974
else
6975
  echo "$as_me: failed program was:" >&5
6976
sed 's/^/| /' conftest.$ac_ext >&5
6977
 
6978
ac_cv_header_stdc=no
6979
fi
6980
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6981
 
6982
if test $ac_cv_header_stdc = yes; then
6983
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6984
  cat >conftest.$ac_ext <<_ACEOF
6985
/* confdefs.h.  */
6986
_ACEOF
6987
cat confdefs.h >>conftest.$ac_ext
6988
cat >>conftest.$ac_ext <<_ACEOF
6989
/* end confdefs.h.  */
6990
#include 
6991
 
6992
_ACEOF
6993
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6994
  $EGREP "memchr" >/dev/null 2>&1; then
6995
  :
6996
else
6997
  ac_cv_header_stdc=no
6998
fi
6999
rm -f conftest*
7000
 
7001
fi
7002
 
7003
if test $ac_cv_header_stdc = yes; then
7004
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7005
  cat >conftest.$ac_ext <<_ACEOF
7006
/* confdefs.h.  */
7007
_ACEOF
7008
cat confdefs.h >>conftest.$ac_ext
7009
cat >>conftest.$ac_ext <<_ACEOF
7010
/* end confdefs.h.  */
7011
#include 
7012
 
7013
_ACEOF
7014
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7015
  $EGREP "free" >/dev/null 2>&1; then
7016
  :
7017
else
7018
  ac_cv_header_stdc=no
7019
fi
7020
rm -f conftest*
7021
 
7022
fi
7023
 
7024
if test $ac_cv_header_stdc = yes; then
7025
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7026
  if test "$cross_compiling" = yes; then
7027
  :
7028
else
7029
  cat >conftest.$ac_ext <<_ACEOF
7030
/* confdefs.h.  */
7031
_ACEOF
7032
cat confdefs.h >>conftest.$ac_ext
7033
cat >>conftest.$ac_ext <<_ACEOF
7034
/* end confdefs.h.  */
7035
#include 
7036
#if ((' ' & 0x0FF) == 0x020)
7037
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7038
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7039
#else
7040
# define ISLOWER(c) \
7041
                   (('a' <= (c) && (c) <= 'i') \
7042
                     || ('j' <= (c) && (c) <= 'r') \
7043
                     || ('s' <= (c) && (c) <= 'z'))
7044
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7045
#endif
7046
 
7047
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7048
int
7049
main ()
7050
{
7051
  int i;
7052
  for (i = 0; i < 256; i++)
7053
    if (XOR (islower (i), ISLOWER (i))
7054
        || toupper (i) != TOUPPER (i))
7055
      exit(2);
7056
  exit (0);
7057
}
7058
_ACEOF
7059
rm -f conftest$ac_exeext
7060
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7061
  (eval $ac_link) 2>&5
7062
  ac_status=$?
7063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7065
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066
  (eval $ac_try) 2>&5
7067
  ac_status=$?
7068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069
  (exit $ac_status); }; }; then
7070
  :
7071
else
7072
  echo "$as_me: program exited with status $ac_status" >&5
7073
echo "$as_me: failed program was:" >&5
7074
sed 's/^/| /' conftest.$ac_ext >&5
7075
 
7076
( exit $ac_status )
7077
ac_cv_header_stdc=no
7078
fi
7079
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7080
fi
7081
fi
7082
fi
7083
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7084
echo "${ECHO_T}$ac_cv_header_stdc" >&6
7085
if test $ac_cv_header_stdc = yes; then
7086
 
7087
cat >>confdefs.h <<\_ACEOF
7088
#define STDC_HEADERS 1
7089
_ACEOF
7090
 
7091
fi
7092
 
7093
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7094
 
7095
 
7096
 
7097
 
7098
 
7099
 
7100
 
7101
 
7102
 
7103
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7104
                  inttypes.h stdint.h unistd.h
7105
do
7106
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7107
echo "$as_me:$LINENO: checking for $ac_header" >&5
7108
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7109
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7110
  echo $ECHO_N "(cached) $ECHO_C" >&6
7111
else
7112
  cat >conftest.$ac_ext <<_ACEOF
7113
/* confdefs.h.  */
7114
_ACEOF
7115
cat confdefs.h >>conftest.$ac_ext
7116
cat >>conftest.$ac_ext <<_ACEOF
7117
/* end confdefs.h.  */
7118
$ac_includes_default
7119
 
7120
#include <$ac_header>
7121
_ACEOF
7122
rm -f conftest.$ac_objext
7123
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7124
  (eval $ac_compile) 2>conftest.er1
7125
  ac_status=$?
7126
  grep -v '^ *+' conftest.er1 >conftest.err
7127
  rm -f conftest.er1
7128
  cat conftest.err >&5
7129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130
  (exit $ac_status); } &&
7131
         { ac_try='test -z "$ac_c_werror_flag"
7132
                         || test ! -s conftest.err'
7133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134
  (eval $ac_try) 2>&5
7135
  ac_status=$?
7136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137
  (exit $ac_status); }; } &&
7138
         { ac_try='test -s conftest.$ac_objext'
7139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140
  (eval $ac_try) 2>&5
7141
  ac_status=$?
7142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143
  (exit $ac_status); }; }; then
7144
  eval "$as_ac_Header=yes"
7145
else
7146
  echo "$as_me: failed program was:" >&5
7147
sed 's/^/| /' conftest.$ac_ext >&5
7148
 
7149
eval "$as_ac_Header=no"
7150
fi
7151
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7152
fi
7153
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7154
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7155
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7156
  cat >>confdefs.h <<_ACEOF
7157
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7158
_ACEOF
7159
 
7160
fi
7161
 
7162
done
7163
 
7164
 
7165
 
7166
for ac_header in dlfcn.h
7167
do
7168
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7169
echo "$as_me:$LINENO: checking for $ac_header" >&5
7170
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7171
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7172
  echo $ECHO_N "(cached) $ECHO_C" >&6
7173
else
7174
  cat >conftest.$ac_ext <<_ACEOF
7175
/* confdefs.h.  */
7176
_ACEOF
7177
cat confdefs.h >>conftest.$ac_ext
7178
cat >>conftest.$ac_ext <<_ACEOF
7179
/* end confdefs.h.  */
7180
$ac_includes_default
7181
 
7182
#include <$ac_header>
7183
_ACEOF
7184
rm -f conftest.$ac_objext
7185
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7186
  (eval $ac_compile) 2>conftest.er1
7187
  ac_status=$?
7188
  grep -v '^ *+' conftest.er1 >conftest.err
7189
  rm -f conftest.er1
7190
  cat conftest.err >&5
7191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192
  (exit $ac_status); } &&
7193
         { ac_try='test -z "$ac_c_werror_flag"
7194
                         || test ! -s conftest.err'
7195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196
  (eval $ac_try) 2>&5
7197
  ac_status=$?
7198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199
  (exit $ac_status); }; } &&
7200
         { ac_try='test -s conftest.$ac_objext'
7201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202
  (eval $ac_try) 2>&5
7203
  ac_status=$?
7204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205
  (exit $ac_status); }; }; then
7206
  eval "$as_ac_Header=yes"
7207
else
7208
  echo "$as_me: failed program was:" >&5
7209
sed 's/^/| /' conftest.$ac_ext >&5
7210
 
7211
eval "$as_ac_Header=no"
7212
fi
7213
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7214
fi
7215
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7216
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7217
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7218
  cat >>confdefs.h <<_ACEOF
7219
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7220
_ACEOF
7221
 
7222
fi
7223
 
7224
done
7225
 
7226
 
7227
 
7228
# Set options
7229
 
7230
 
7231
 
7232
        enable_dlopen=no
7233
 
7234
 
7235
 
7236
            # Check whether --enable-shared or --disable-shared was given.
7237
if test "${enable_shared+set}" = set; then
7238
  enableval="$enable_shared"
7239
  p=${PACKAGE-default}
7240
    case $enableval in
7241
    yes) enable_shared=yes ;;
7242
    no) enable_shared=no ;;
7243
    *)
7244
      enable_shared=no
7245
      # Look at the argument we got.  We use all the common list separators.
7246
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7247
      for pkg in $enableval; do
7248
        IFS="$lt_save_ifs"
7249
        if test "X$pkg" = "X$p"; then
7250
          enable_shared=yes
7251
        fi
7252
      done
7253
      IFS="$lt_save_ifs"
7254
      ;;
7255
    esac
7256
else
7257
  enable_shared=yes
7258
fi;
7259
 
7260
 
7261
 
7262
 
7263
 
7264
 
7265
 
7266
 
7267
  # Check whether --enable-static or --disable-static was given.
7268
if test "${enable_static+set}" = set; then
7269
  enableval="$enable_static"
7270
  p=${PACKAGE-default}
7271
    case $enableval in
7272
    yes) enable_static=yes ;;
7273
    no) enable_static=no ;;
7274
    *)
7275
     enable_static=no
7276
      # Look at the argument we got.  We use all the common list separators.
7277
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7278
      for pkg in $enableval; do
7279
        IFS="$lt_save_ifs"
7280
        if test "X$pkg" = "X$p"; then
7281
          enable_static=yes
7282
        fi
7283
      done
7284
      IFS="$lt_save_ifs"
7285
      ;;
7286
    esac
7287
else
7288
  enable_static=yes
7289
fi;
7290
 
7291
 
7292
 
7293
 
7294
 
7295
 
7296
 
7297
 
7298
 
7299
# Check whether --with-pic or --without-pic was given.
7300
if test "${with_pic+set}" = set; then
7301
  withval="$with_pic"
7302
  pic_mode="$withval"
7303
else
7304
  pic_mode=default
7305
fi;
7306
 
7307
test -z "$pic_mode" && pic_mode=default
7308
 
7309
 
7310
 
7311
 
7312
 
7313
 
7314
 
7315
  # Check whether --enable-fast-install or --disable-fast-install was given.
7316
if test "${enable_fast_install+set}" = set; then
7317
  enableval="$enable_fast_install"
7318
  p=${PACKAGE-default}
7319
    case $enableval in
7320
    yes) enable_fast_install=yes ;;
7321
    no) enable_fast_install=no ;;
7322
    *)
7323
      enable_fast_install=no
7324
      # Look at the argument we got.  We use all the common list separators.
7325
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7326
      for pkg in $enableval; do
7327
        IFS="$lt_save_ifs"
7328
        if test "X$pkg" = "X$p"; then
7329
          enable_fast_install=yes
7330
        fi
7331
      done
7332
      IFS="$lt_save_ifs"
7333
      ;;
7334
    esac
7335
else
7336
  enable_fast_install=yes
7337
fi;
7338
 
7339
 
7340
 
7341
 
7342
 
7343
 
7344
 
7345
 
7346
 
7347
 
7348
# This can be used to rebuild libtool when needed
7349
LIBTOOL_DEPS="$ltmain"
7350
 
7351
# Always use our own libtool.
7352
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7353
 
7354
 
7355
 
7356
 
7357
 
7358
 
7359
 
7360
 
7361
 
7362
 
7363
 
7364
 
7365
 
7366
 
7367
 
7368
 
7369
 
7370
 
7371
 
7372
 
7373
 
7374
 
7375
 
7376
 
7377
 
7378
test -z "$LN_S" && LN_S="ln -s"
7379
 
7380
 
7381
 
7382
 
7383
 
7384
 
7385
 
7386
 
7387
 
7388
 
7389
 
7390
 
7391
 
7392
 
7393
if test -n "${ZSH_VERSION+set}" ; then
7394
   setopt NO_GLOB_SUBST
7395
fi
7396
 
7397
echo "$as_me:$LINENO: checking for objdir" >&5
7398
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7399
if test "${lt_cv_objdir+set}" = set; then
7400
  echo $ECHO_N "(cached) $ECHO_C" >&6
7401
else
7402
  rm -f .libs 2>/dev/null
7403
mkdir .libs 2>/dev/null
7404
if test -d .libs; then
7405
  lt_cv_objdir=.libs
7406
else
7407
  # MS-DOS does not allow filenames that begin with a dot.
7408
  lt_cv_objdir=_libs
7409
fi
7410
rmdir .libs 2>/dev/null
7411
fi
7412
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7413
echo "${ECHO_T}$lt_cv_objdir" >&6
7414
objdir=$lt_cv_objdir
7415
 
7416
 
7417
 
7418
 
7419
 
7420
cat >>confdefs.h <<_ACEOF
7421
#define LT_OBJDIR "$lt_cv_objdir/"
7422
_ACEOF
7423
 
7424
 
7425
 
7426
 
7427
 
7428
 
7429
 
7430
 
7431
 
7432
 
7433
 
7434
 
7435
 
7436
 
7437
 
7438
 
7439
 
7440
case $host_os in
7441
aix3*)
7442
  # AIX sometimes has problems with the GCC collect2 program.  For some
7443
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7444
  # vanish in a puff of smoke.
7445
  if test "X${COLLECT_NAMES+set}" != Xset; then
7446
    COLLECT_NAMES=
7447
    export COLLECT_NAMES
7448
  fi
7449
  ;;
7450
esac
7451
 
7452
# Sed substitution that helps us do robust quoting.  It backslashifies
7453
# metacharacters that are still active within double-quoted strings.
7454
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7455
 
7456
# Same as above, but do not quote variable references.
7457
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7458
 
7459
# Sed substitution to delay expansion of an escaped shell variable in a
7460
# double_quote_subst'ed string.
7461
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7462
 
7463
# Sed substitution to delay expansion of an escaped single quote.
7464
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7465
 
7466
# Sed substitution to avoid accidental globbing in evaled expressions
7467
no_glob_subst='s/\*/\\\*/g'
7468
 
7469
# Global variables:
7470
ofile=libtool
7471
can_build_shared=yes
7472
 
7473
# All known linkers require a `.a' archive for static linking (except MSVC,
7474
# which needs '.lib').
7475
libext=a
7476
 
7477
with_gnu_ld="$lt_cv_prog_gnu_ld"
7478
 
7479
old_CC="$CC"
7480
old_CFLAGS="$CFLAGS"
7481
 
7482
# Set sane defaults for various variables
7483
test -z "$CC" && CC=cc
7484
test -z "$LTCC" && LTCC=$CC
7485
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7486
test -z "$LD" && LD=ld
7487
test -z "$ac_objext" && ac_objext=o
7488
 
7489
for cc_temp in $compiler""; do
7490
  case $cc_temp in
7491
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7492
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7493
    \-*) ;;
7494
    *) break;;
7495
  esac
7496
done
7497
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7498
 
7499
 
7500
# Only perform the check for file, if the check method requires it
7501
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7502
case $deplibs_check_method in
7503
file_magic*)
7504
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7505
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7506
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7507
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7508
  echo $ECHO_N "(cached) $ECHO_C" >&6
7509
else
7510
  case $MAGIC_CMD in
7511
[\\/*] |  ?:[\\/]*)
7512
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7513
  ;;
7514
*)
7515
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7516
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7517
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7518
  for ac_dir in $ac_dummy; do
7519
    IFS="$lt_save_ifs"
7520
    test -z "$ac_dir" && ac_dir=.
7521
    if test -f $ac_dir/${ac_tool_prefix}file; then
7522
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7523
      if test -n "$file_magic_test_file"; then
7524
        case $deplibs_check_method in
7525
        "file_magic "*)
7526
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7527
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7528
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7529
            $EGREP "$file_magic_regex" > /dev/null; then
7530
            :
7531
          else
7532
            cat <<_LT_EOF 1>&2
7533
 
7534
*** Warning: the command libtool uses to detect shared libraries,
7535
*** $file_magic_cmd, produces output that libtool cannot recognize.
7536
*** The result is that libtool may fail to recognize shared libraries
7537
*** as such.  This will affect the creation of libtool libraries that
7538
*** depend on shared libraries, but programs linked with such libtool
7539
*** libraries will work regardless of this problem.  Nevertheless, you
7540
*** may want to report the problem to your system manager and/or to
7541
*** bug-libtool@gnu.org
7542
 
7543
_LT_EOF
7544
          fi ;;
7545
        esac
7546
      fi
7547
      break
7548
    fi
7549
  done
7550
  IFS="$lt_save_ifs"
7551
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7552
  ;;
7553
esac
7554
fi
7555
 
7556
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7557
if test -n "$MAGIC_CMD"; then
7558
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7559
echo "${ECHO_T}$MAGIC_CMD" >&6
7560
else
7561
  echo "$as_me:$LINENO: result: no" >&5
7562
echo "${ECHO_T}no" >&6
7563
fi
7564
 
7565
 
7566
 
7567
 
7568
 
7569
if test -z "$lt_cv_path_MAGIC_CMD"; then
7570
  if test -n "$ac_tool_prefix"; then
7571
    echo "$as_me:$LINENO: checking for file" >&5
7572
echo $ECHO_N "checking for file... $ECHO_C" >&6
7573
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7574
  echo $ECHO_N "(cached) $ECHO_C" >&6
7575
else
7576
  case $MAGIC_CMD in
7577
[\\/*] |  ?:[\\/]*)
7578
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7579
  ;;
7580
*)
7581
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7582
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7583
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7584
  for ac_dir in $ac_dummy; do
7585
    IFS="$lt_save_ifs"
7586
    test -z "$ac_dir" && ac_dir=.
7587
    if test -f $ac_dir/file; then
7588
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7589
      if test -n "$file_magic_test_file"; then
7590
        case $deplibs_check_method in
7591
        "file_magic "*)
7592
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7593
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7594
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7595
            $EGREP "$file_magic_regex" > /dev/null; then
7596
            :
7597
          else
7598
            cat <<_LT_EOF 1>&2
7599
 
7600
*** Warning: the command libtool uses to detect shared libraries,
7601
*** $file_magic_cmd, produces output that libtool cannot recognize.
7602
*** The result is that libtool may fail to recognize shared libraries
7603
*** as such.  This will affect the creation of libtool libraries that
7604
*** depend on shared libraries, but programs linked with such libtool
7605
*** libraries will work regardless of this problem.  Nevertheless, you
7606
*** may want to report the problem to your system manager and/or to
7607
*** bug-libtool@gnu.org
7608
 
7609
_LT_EOF
7610
          fi ;;
7611
        esac
7612
      fi
7613
      break
7614
    fi
7615
  done
7616
  IFS="$lt_save_ifs"
7617
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7618
  ;;
7619
esac
7620
fi
7621
 
7622
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7623
if test -n "$MAGIC_CMD"; then
7624
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7625
echo "${ECHO_T}$MAGIC_CMD" >&6
7626
else
7627
  echo "$as_me:$LINENO: result: no" >&5
7628
echo "${ECHO_T}no" >&6
7629
fi
7630
 
7631
 
7632
  else
7633
    MAGIC_CMD=:
7634
  fi
7635
fi
7636
 
7637
  fi
7638
  ;;
7639
esac
7640
 
7641
# Use C for the default configuration in the libtool script
7642
 
7643
lt_save_CC="$CC"
7644
ac_ext=c
7645
ac_cpp='$CPP $CPPFLAGS'
7646
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7647
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7648
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7649
 
7650
 
7651
# Source file extension for C test sources.
7652
ac_ext=c
7653
 
7654
# Object file extension for compiled C test sources.
7655
objext=o
7656
objext=$objext
7657
 
7658
# Code to be used in simple compile tests
7659
lt_simple_compile_test_code="int some_variable = 0;"
7660
 
7661
# Code to be used in simple link tests
7662
lt_simple_link_test_code='int main(){return(0);}'
7663
 
7664
 
7665
 
7666
 
7667
 
7668
 
7669
 
7670
# If no C compiler was specified, use CC.
7671
LTCC=${LTCC-"$CC"}
7672
 
7673
# If no C compiler flags were specified, use CFLAGS.
7674
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7675
 
7676
# Allow CC to be a program name with arguments.
7677
compiler=$CC
7678
 
7679
# Save the default compiler, since it gets overwritten when the other
7680
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7681
compiler_DEFAULT=$CC
7682
 
7683
# save warnings/boilerplate of simple test code
7684
ac_outfile=conftest.$ac_objext
7685
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7686
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7687
_lt_compiler_boilerplate=`cat conftest.err`
7688
$RM conftest*
7689
 
7690
ac_outfile=conftest.$ac_objext
7691
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7692
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7693
_lt_linker_boilerplate=`cat conftest.err`
7694
$RM -r conftest*
7695
 
7696
 
7697
## CAVEAT EMPTOR:
7698
## There is no encapsulation within the following macros, do not change
7699
## the running order or otherwise move them around unless you know exactly
7700
## what you are doing...
7701
if test -n "$compiler"; then
7702
 
7703
lt_prog_compiler_no_builtin_flag=
7704
 
7705
if test "$GCC" = yes; then
7706
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7707
 
7708
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7709
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7710
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7711
  echo $ECHO_N "(cached) $ECHO_C" >&6
7712
else
7713
  lt_cv_prog_compiler_rtti_exceptions=no
7714
   ac_outfile=conftest.$ac_objext
7715
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7716
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7717
   # Insert the option either (1) after the last *FLAGS variable, or
7718
   # (2) before a word containing "conftest.", or (3) at the end.
7719
   # Note that $ac_compile itself does not contain backslashes and begins
7720
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7721
   # The option is referenced via a variable to avoid confusing sed.
7722
   lt_compile=`echo "$ac_compile" | $SED \
7723
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7724
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7725
   -e 's:$: $lt_compiler_flag:'`
7726
   (eval echo "\"\$as_me:7726: $lt_compile\"" >&5)
7727
   (eval "$lt_compile" 2>conftest.err)
7728
   ac_status=$?
7729
   cat conftest.err >&5
7730
   echo "$as_me:7730: \$? = $ac_status" >&5
7731
   if (exit $ac_status) && test -s "$ac_outfile"; then
7732
     # The compiler can only warn and ignore the option if not recognized
7733
     # So say no if there are warnings other than the usual output.
7734
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7735
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7736
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7737
       lt_cv_prog_compiler_rtti_exceptions=yes
7738
     fi
7739
   fi
7740
   $RM conftest*
7741
 
7742
fi
7743
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7744
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7745
 
7746
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7747
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7748
else
7749
    :
7750
fi
7751
 
7752
fi
7753
 
7754
 
7755
 
7756
 
7757
 
7758
 
7759
  lt_prog_compiler_wl=
7760
lt_prog_compiler_pic=
7761
lt_prog_compiler_static=
7762
 
7763
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7764
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7765
 
7766
  if test "$GCC" = yes; then
7767
    lt_prog_compiler_wl='-Wl,'
7768
    lt_prog_compiler_static='-static'
7769
 
7770
    case $host_os in
7771
      aix*)
7772
      # All AIX code is PIC.
7773
      if test "$host_cpu" = ia64; then
7774
        # AIX 5 now supports IA64 processor
7775
        lt_prog_compiler_static='-Bstatic'
7776
      fi
7777
      ;;
7778
 
7779
    amigaos*)
7780
      case $host_cpu in
7781
      powerpc)
7782
            # see comment about AmigaOS4 .so support
7783
            lt_prog_compiler_pic='-fPIC'
7784
        ;;
7785
      m68k)
7786
            # FIXME: we need at least 68020 code to build shared libraries, but
7787
            # adding the `-m68020' flag to GCC prevents building anything better,
7788
            # like `-m68040'.
7789
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7790
        ;;
7791
      esac
7792
      ;;
7793
 
7794
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7795
      # PIC is the default for these OSes.
7796
      ;;
7797
 
7798
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7799
      # This hack is so that the source file can tell whether it is being
7800
      # built for inclusion in a dll (and should export symbols for example).
7801
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7802
      # (--disable-auto-import) libraries
7803
      lt_prog_compiler_pic='-DDLL_EXPORT'
7804
      ;;
7805
 
7806
    darwin* | rhapsody*)
7807
      # PIC is the default on this platform
7808
      # Common symbols not allowed in MH_DYLIB files
7809
      lt_prog_compiler_pic='-fno-common'
7810
      ;;
7811
 
7812
    hpux*)
7813
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7814
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7815
      # sets the default TLS model and affects inlining.
7816
      case $host_cpu in
7817
      hppa*64*)
7818
        # +Z the default
7819
        ;;
7820
      *)
7821
        lt_prog_compiler_pic='-fPIC'
7822
        ;;
7823
      esac
7824
      ;;
7825
 
7826
    interix[3-9]*)
7827
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7828
      # Instead, we relocate shared libraries at runtime.
7829
      ;;
7830
 
7831
    msdosdjgpp*)
7832
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7833
      # on systems that don't support them.
7834
      lt_prog_compiler_can_build_shared=no
7835
      enable_shared=no
7836
      ;;
7837
 
7838
    *nto* | *qnx*)
7839
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7840
      # it will coredump.
7841
      lt_prog_compiler_pic='-fPIC -shared'
7842
      ;;
7843
 
7844
    sysv4*MP*)
7845
      if test -d /usr/nec; then
7846
        lt_prog_compiler_pic=-Kconform_pic
7847
      fi
7848
      ;;
7849
 
7850
    *)
7851
      lt_prog_compiler_pic='-fPIC'
7852
      ;;
7853
    esac
7854
  else
7855
    # PORTME Check for flag to pass linker flags through the system compiler.
7856
    case $host_os in
7857
    aix*)
7858
      lt_prog_compiler_wl='-Wl,'
7859
      if test "$host_cpu" = ia64; then
7860
        # AIX 5 now supports IA64 processor
7861
        lt_prog_compiler_static='-Bstatic'
7862
      else
7863
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7864
      fi
7865
      ;;
7866
 
7867
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7868
      # This hack is so that the source file can tell whether it is being
7869
      # built for inclusion in a dll (and should export symbols for example).
7870
      lt_prog_compiler_pic='-DDLL_EXPORT'
7871
      ;;
7872
 
7873
    hpux9* | hpux10* | hpux11*)
7874
      lt_prog_compiler_wl='-Wl,'
7875
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7876
      # not for PA HP-UX.
7877
      case $host_cpu in
7878
      hppa*64*|ia64*)
7879
        # +Z the default
7880
        ;;
7881
      *)
7882
        lt_prog_compiler_pic='+Z'
7883
        ;;
7884
      esac
7885
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7886
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7887
      ;;
7888
 
7889
    irix5* | irix6* | nonstopux*)
7890
      lt_prog_compiler_wl='-Wl,'
7891
      # PIC (with -KPIC) is the default.
7892
      lt_prog_compiler_static='-non_shared'
7893
      ;;
7894
 
7895
    linux* | k*bsd*-gnu)
7896
      case $cc_basename in
7897
      # old Intel for x86_64 which still supported -KPIC.
7898
      ecc*)
7899
        lt_prog_compiler_wl='-Wl,'
7900
        lt_prog_compiler_pic='-KPIC'
7901
        lt_prog_compiler_static='-static'
7902
        ;;
7903
      # icc used to be incompatible with GCC.
7904
      # ICC 10 doesn't accept -KPIC any more.
7905
      icc* | ifort*)
7906
        lt_prog_compiler_wl='-Wl,'
7907
        lt_prog_compiler_pic='-fPIC'
7908
        lt_prog_compiler_static='-static'
7909
        ;;
7910
      # Lahey Fortran 8.1.
7911
      lf95*)
7912
        lt_prog_compiler_wl='-Wl,'
7913
        lt_prog_compiler_pic='--shared'
7914
        lt_prog_compiler_static='--static'
7915
        ;;
7916
      pgcc* | pgf77* | pgf90* | pgf95*)
7917
        # Portland Group compilers (*not* the Pentium gcc compiler,
7918
        # which looks to be a dead project)
7919
        lt_prog_compiler_wl='-Wl,'
7920
        lt_prog_compiler_pic='-fpic'
7921
        lt_prog_compiler_static='-Bstatic'
7922
        ;;
7923
      ccc*)
7924
        lt_prog_compiler_wl='-Wl,'
7925
        # All Alpha code is PIC.
7926
        lt_prog_compiler_static='-non_shared'
7927
        ;;
7928
      xl*)
7929
        # IBM XL C 8.0/Fortran 10.1 on PPC
7930
        lt_prog_compiler_wl='-Wl,'
7931
        lt_prog_compiler_pic='-qpic'
7932
        lt_prog_compiler_static='-qstaticlink'
7933
        ;;
7934
      *)
7935
        case `$CC -V 2>&1 | sed 5q` in
7936
        *Sun\ C*)
7937
          # Sun C 5.9
7938
          lt_prog_compiler_pic='-KPIC'
7939
          lt_prog_compiler_static='-Bstatic'
7940
          lt_prog_compiler_wl='-Wl,'
7941
          ;;
7942
        *Sun\ F*)
7943
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7944
          lt_prog_compiler_pic='-KPIC'
7945
          lt_prog_compiler_static='-Bstatic'
7946
          lt_prog_compiler_wl=''
7947
          ;;
7948
        esac
7949
        ;;
7950
      esac
7951
      ;;
7952
 
7953
    newsos6)
7954
      lt_prog_compiler_pic='-KPIC'
7955
      lt_prog_compiler_static='-Bstatic'
7956
      ;;
7957
 
7958
    *nto* | *qnx*)
7959
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7960
      # it will coredump.
7961
      lt_prog_compiler_pic='-fPIC -shared'
7962
      ;;
7963
 
7964
    osf3* | osf4* | osf5*)
7965
      lt_prog_compiler_wl='-Wl,'
7966
      # All OSF/1 code is PIC.
7967
      lt_prog_compiler_static='-non_shared'
7968
      ;;
7969
 
7970
    rdos*)
7971
      lt_prog_compiler_static='-non_shared'
7972
      ;;
7973
 
7974
    solaris*)
7975
      lt_prog_compiler_pic='-KPIC'
7976
      lt_prog_compiler_static='-Bstatic'
7977
      case $cc_basename in
7978
      f77* | f90* | f95*)
7979
        lt_prog_compiler_wl='-Qoption ld ';;
7980
      *)
7981
        lt_prog_compiler_wl='-Wl,';;
7982
      esac
7983
      ;;
7984
 
7985
    sunos4*)
7986
      lt_prog_compiler_wl='-Qoption ld '
7987
      lt_prog_compiler_pic='-PIC'
7988
      lt_prog_compiler_static='-Bstatic'
7989
      ;;
7990
 
7991
    sysv4 | sysv4.2uw2* | sysv4.3*)
7992
      lt_prog_compiler_wl='-Wl,'
7993
      lt_prog_compiler_pic='-KPIC'
7994
      lt_prog_compiler_static='-Bstatic'
7995
      ;;
7996
 
7997
    sysv4*MP*)
7998
      if test -d /usr/nec ;then
7999
        lt_prog_compiler_pic='-Kconform_pic'
8000
        lt_prog_compiler_static='-Bstatic'
8001
      fi
8002
      ;;
8003
 
8004
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8005
      lt_prog_compiler_wl='-Wl,'
8006
      lt_prog_compiler_pic='-KPIC'
8007
      lt_prog_compiler_static='-Bstatic'
8008
      ;;
8009
 
8010
    unicos*)
8011
      lt_prog_compiler_wl='-Wl,'
8012
      lt_prog_compiler_can_build_shared=no
8013
      ;;
8014
 
8015
    uts4*)
8016
      lt_prog_compiler_pic='-pic'
8017
      lt_prog_compiler_static='-Bstatic'
8018
      ;;
8019
 
8020
    *)
8021
      lt_prog_compiler_can_build_shared=no
8022
      ;;
8023
    esac
8024
  fi
8025
 
8026
case $host_os in
8027
  # For platforms which do not support PIC, -DPIC is meaningless:
8028
  *djgpp*)
8029
    lt_prog_compiler_pic=
8030
    ;;
8031
  *)
8032
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8033
    ;;
8034
esac
8035
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8036
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8037
 
8038
 
8039
 
8040
 
8041
 
8042
 
8043
#
8044
# Check to make sure the PIC flag actually works.
8045
#
8046
if test -n "$lt_prog_compiler_pic"; then
8047
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8048
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8049
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8050
  echo $ECHO_N "(cached) $ECHO_C" >&6
8051
else
8052
  lt_cv_prog_compiler_pic_works=no
8053
   ac_outfile=conftest.$ac_objext
8054
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8055
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8056
   # Insert the option either (1) after the last *FLAGS variable, or
8057
   # (2) before a word containing "conftest.", or (3) at the end.
8058
   # Note that $ac_compile itself does not contain backslashes and begins
8059
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8060
   # The option is referenced via a variable to avoid confusing sed.
8061
   lt_compile=`echo "$ac_compile" | $SED \
8062
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8063
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8064
   -e 's:$: $lt_compiler_flag:'`
8065
   (eval echo "\"\$as_me:8065: $lt_compile\"" >&5)
8066
   (eval "$lt_compile" 2>conftest.err)
8067
   ac_status=$?
8068
   cat conftest.err >&5
8069
   echo "$as_me:8069: \$? = $ac_status" >&5
8070
   if (exit $ac_status) && test -s "$ac_outfile"; then
8071
     # The compiler can only warn and ignore the option if not recognized
8072
     # So say no if there are warnings other than the usual output.
8073
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8074
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8075
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8076
       lt_cv_prog_compiler_pic_works=yes
8077
     fi
8078
   fi
8079
   $RM conftest*
8080
 
8081
fi
8082
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8083
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8084
 
8085
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8086
    case $lt_prog_compiler_pic in
8087
     "" | " "*) ;;
8088
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8089
     esac
8090
else
8091
    lt_prog_compiler_pic=
8092
     lt_prog_compiler_can_build_shared=no
8093
fi
8094
 
8095
fi
8096
 
8097
 
8098
 
8099
 
8100
 
8101
 
8102
#
8103
# Check to make sure the static flag actually works.
8104
#
8105
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8106
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8107
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8108
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8109
  echo $ECHO_N "(cached) $ECHO_C" >&6
8110
else
8111
  lt_cv_prog_compiler_static_works=no
8112
   save_LDFLAGS="$LDFLAGS"
8113
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8114
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8115
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8116
     # The linker can only warn and ignore the option if not recognized
8117
     # So say no if there are warnings
8118
     if test -s conftest.err; then
8119
       # Append any errors to the config.log.
8120
       cat conftest.err 1>&5
8121
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8122
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8123
       if diff conftest.exp conftest.er2 >/dev/null; then
8124
         lt_cv_prog_compiler_static_works=yes
8125
       fi
8126
     else
8127
       lt_cv_prog_compiler_static_works=yes
8128
     fi
8129
   fi
8130
   $RM -r conftest*
8131
   LDFLAGS="$save_LDFLAGS"
8132
 
8133
fi
8134
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8135
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8136
 
8137
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8138
    :
8139
else
8140
    lt_prog_compiler_static=
8141
fi
8142
 
8143
 
8144
 
8145
 
8146
 
8147
 
8148
 
8149
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8150
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8151
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8152
  echo $ECHO_N "(cached) $ECHO_C" >&6
8153
else
8154
  lt_cv_prog_compiler_c_o=no
8155
   $RM -r conftest 2>/dev/null
8156
   mkdir conftest
8157
   cd conftest
8158
   mkdir out
8159
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8160
 
8161
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8162
   # Insert the option either (1) after the last *FLAGS variable, or
8163
   # (2) before a word containing "conftest.", or (3) at the end.
8164
   # Note that $ac_compile itself does not contain backslashes and begins
8165
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8166
   lt_compile=`echo "$ac_compile" | $SED \
8167
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8168
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8169
   -e 's:$: $lt_compiler_flag:'`
8170
   (eval echo "\"\$as_me:8170: $lt_compile\"" >&5)
8171
   (eval "$lt_compile" 2>out/conftest.err)
8172
   ac_status=$?
8173
   cat out/conftest.err >&5
8174
   echo "$as_me:8174: \$? = $ac_status" >&5
8175
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8176
   then
8177
     # The compiler can only warn and ignore the option if not recognized
8178
     # So say no if there are warnings
8179
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8180
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8181
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8182
       lt_cv_prog_compiler_c_o=yes
8183
     fi
8184
   fi
8185
   chmod u+w . 2>&5
8186
   $RM conftest*
8187
   # SGI C++ compiler will create directory out/ii_files/ for
8188
   # template instantiation
8189
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8190
   $RM out/* && rmdir out
8191
   cd ..
8192
   $RM -r conftest
8193
   $RM conftest*
8194
 
8195
fi
8196
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8197
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8198
 
8199
 
8200
 
8201
 
8202
 
8203
 
8204
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8205
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8206
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8207
  echo $ECHO_N "(cached) $ECHO_C" >&6
8208
else
8209
  lt_cv_prog_compiler_c_o=no
8210
   $RM -r conftest 2>/dev/null
8211
   mkdir conftest
8212
   cd conftest
8213
   mkdir out
8214
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8215
 
8216
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8217
   # Insert the option either (1) after the last *FLAGS variable, or
8218
   # (2) before a word containing "conftest.", or (3) at the end.
8219
   # Note that $ac_compile itself does not contain backslashes and begins
8220
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8221
   lt_compile=`echo "$ac_compile" | $SED \
8222
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8223
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8224
   -e 's:$: $lt_compiler_flag:'`
8225
   (eval echo "\"\$as_me:8225: $lt_compile\"" >&5)
8226
   (eval "$lt_compile" 2>out/conftest.err)
8227
   ac_status=$?
8228
   cat out/conftest.err >&5
8229
   echo "$as_me:8229: \$? = $ac_status" >&5
8230
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8231
   then
8232
     # The compiler can only warn and ignore the option if not recognized
8233
     # So say no if there are warnings
8234
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8235
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8236
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8237
       lt_cv_prog_compiler_c_o=yes
8238
     fi
8239
   fi
8240
   chmod u+w . 2>&5
8241
   $RM conftest*
8242
   # SGI C++ compiler will create directory out/ii_files/ for
8243
   # template instantiation
8244
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8245
   $RM out/* && rmdir out
8246
   cd ..
8247
   $RM -r conftest
8248
   $RM conftest*
8249
 
8250
fi
8251
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8252
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8253
 
8254
 
8255
 
8256
 
8257
hard_links="nottested"
8258
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8259
  # do not overwrite the value of need_locks provided by the user
8260
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8261
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8262
  hard_links=yes
8263
  $RM conftest*
8264
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8265
  touch conftest.a
8266
  ln conftest.a conftest.b 2>&5 || hard_links=no
8267
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8268
  echo "$as_me:$LINENO: result: $hard_links" >&5
8269
echo "${ECHO_T}$hard_links" >&6
8270
  if test "$hard_links" = no; then
8271
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8272
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8273
    need_locks=warn
8274
  fi
8275
else
8276
  need_locks=no
8277
fi
8278
 
8279
 
8280
 
8281
 
8282
 
8283
 
8284
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8285
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8286
 
8287
  runpath_var=
8288
  allow_undefined_flag=
8289
  always_export_symbols=no
8290
  archive_cmds=
8291
  archive_expsym_cmds=
8292
  compiler_needs_object=no
8293
  enable_shared_with_static_runtimes=no
8294
  export_dynamic_flag_spec=
8295
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8296
  hardcode_automatic=no
8297
  hardcode_direct=no
8298
  hardcode_direct_absolute=no
8299
  hardcode_libdir_flag_spec=
8300
  hardcode_libdir_flag_spec_ld=
8301
  hardcode_libdir_separator=
8302
  hardcode_minus_L=no
8303
  hardcode_shlibpath_var=unsupported
8304
  inherit_rpath=no
8305
  link_all_deplibs=unknown
8306
  module_cmds=
8307
  module_expsym_cmds=
8308
  old_archive_from_new_cmds=
8309
  old_archive_from_expsyms_cmds=
8310
  thread_safe_flag_spec=
8311
  whole_archive_flag_spec=
8312
  # include_expsyms should be a list of space-separated symbols to be *always*
8313
  # included in the symbol list
8314
  include_expsyms=
8315
  # exclude_expsyms can be an extended regexp of symbols to exclude
8316
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8317
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8318
  # as well as any symbol that contains `d'.
8319
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8320
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8321
  # platforms (ab)use it in PIC code, but their linkers get confused if
8322
  # the symbol is explicitly referenced.  Since portable code cannot
8323
  # rely on this symbol name, it's probably fine to never include it in
8324
  # preloaded symbol tables.
8325
  # Exclude shared library initialization/finalization symbols.
8326
  extract_expsyms_cmds=
8327
 
8328
  case $host_os in
8329
  cygwin* | mingw* | pw32* | cegcc*)
8330
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8331
    # When not using gcc, we currently assume that we are using
8332
    # Microsoft Visual C++.
8333
    if test "$GCC" != yes; then
8334
      with_gnu_ld=no
8335
    fi
8336
    ;;
8337
  interix*)
8338
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8339
    with_gnu_ld=yes
8340
    ;;
8341
  openbsd*)
8342
    with_gnu_ld=no
8343
    ;;
8344
  esac
8345
 
8346
  ld_shlibs=yes
8347
  if test "$with_gnu_ld" = yes; then
8348
    # If archive_cmds runs LD, not CC, wlarc should be empty
8349
    wlarc='${wl}'
8350
 
8351
    # Set some defaults for GNU ld with shared library support. These
8352
    # are reset later if shared libraries are not supported. Putting them
8353
    # here allows them to be overridden if necessary.
8354
    runpath_var=LD_RUN_PATH
8355
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8356
    export_dynamic_flag_spec='${wl}--export-dynamic'
8357
    # ancient GNU ld didn't support --whole-archive et. al.
8358
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8359
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8360
    else
8361
      whole_archive_flag_spec=
8362
    fi
8363
    supports_anon_versioning=no
8364
    case `$LD -v 2>&1` in
8365
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8366
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8367
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8368
      *\ 2.11.*) ;; # other 2.11 versions
8369
      *) supports_anon_versioning=yes ;;
8370
    esac
8371
 
8372
    # See if GNU ld supports shared libraries.
8373
    case $host_os in
8374
    aix[3-9]*)
8375
      # On AIX/PPC, the GNU linker is very broken
8376
      if test "$host_cpu" != ia64; then
8377
        ld_shlibs=no
8378
        cat <<_LT_EOF 1>&2
8379
 
8380
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8381
*** to be unable to reliably create shared libraries on AIX.
8382
*** Therefore, libtool is disabling shared libraries support.  If you
8383
*** really care for shared libraries, you may want to modify your PATH
8384
*** so that a non-GNU linker is found, and then restart.
8385
 
8386
_LT_EOF
8387
      fi
8388
      ;;
8389
 
8390
    amigaos*)
8391
      case $host_cpu in
8392
      powerpc)
8393
            # see comment about AmigaOS4 .so support
8394
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8395
            archive_expsym_cmds=''
8396
        ;;
8397
      m68k)
8398
            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)'
8399
            hardcode_libdir_flag_spec='-L$libdir'
8400
            hardcode_minus_L=yes
8401
        ;;
8402
      esac
8403
      ;;
8404
 
8405
    beos*)
8406
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8407
        allow_undefined_flag=unsupported
8408
        # Joseph Beckenbach  says some releases of gcc
8409
        # support --undefined.  This deserves some investigation.  FIXME
8410
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8411
      else
8412
        ld_shlibs=no
8413
      fi
8414
      ;;
8415
 
8416
    cygwin* | mingw* | pw32* | cegcc*)
8417
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8418
      # as there is no search path for DLLs.
8419
      hardcode_libdir_flag_spec='-L$libdir'
8420
      allow_undefined_flag=unsupported
8421
      always_export_symbols=no
8422
      enable_shared_with_static_runtimes=yes
8423
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8424
 
8425
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8426
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8427
        # If the export-symbols file already is a .def file (1st line
8428
        # is EXPORTS), use it as is; otherwise, prepend...
8429
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8430
          cp $export_symbols $output_objdir/$soname.def;
8431
        else
8432
          echo EXPORTS > $output_objdir/$soname.def;
8433
          cat $export_symbols >> $output_objdir/$soname.def;
8434
        fi~
8435
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8436
      else
8437
        ld_shlibs=no
8438
      fi
8439
      ;;
8440
 
8441
    interix[3-9]*)
8442
      hardcode_direct=no
8443
      hardcode_shlibpath_var=no
8444
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8445
      export_dynamic_flag_spec='${wl}-E'
8446
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8447
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8448
      # default) and relocated if they conflict, which is a slow very memory
8449
      # consuming and fragmenting process.  To avoid this, we pick a random,
8450
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8451
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8452
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8453
      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'
8454
      ;;
8455
 
8456
    gnu* | linux* | tpf* | k*bsd*-gnu)
8457
      tmp_diet=no
8458
      if test "$host_os" = linux-dietlibc; then
8459
        case $cc_basename in
8460
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8461
        esac
8462
      fi
8463
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8464
         && test "$tmp_diet" = no
8465
      then
8466
        tmp_addflag=
8467
        tmp_sharedflag='-shared'
8468
        case $cc_basename,$host_cpu in
8469
        pgcc*)                          # Portland Group C compiler
8470
          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'
8471
          tmp_addflag=' $pic_flag'
8472
          ;;
8473
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8474
          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'
8475
          tmp_addflag=' $pic_flag -Mnomain' ;;
8476
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8477
          tmp_addflag=' -i_dynamic' ;;
8478
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8479
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8480
        ifc* | ifort*)                  # Intel Fortran compiler
8481
          tmp_addflag=' -nofor_main' ;;
8482
        lf95*)                          # Lahey Fortran 8.1
8483
          whole_archive_flag_spec=
8484
          tmp_sharedflag='--shared' ;;
8485
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8486
          tmp_sharedflag='-qmkshrobj'
8487
          tmp_addflag= ;;
8488
        esac
8489
        case `$CC -V 2>&1 | sed 5q` in
8490
        *Sun\ C*)                       # Sun C 5.9
8491
          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'
8492
          compiler_needs_object=yes
8493
          tmp_sharedflag='-G' ;;
8494
        *Sun\ F*)                       # Sun Fortran 8.3
8495
          tmp_sharedflag='-G' ;;
8496
        esac
8497
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8498
 
8499
        if test "x$supports_anon_versioning" = xyes; then
8500
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8501
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8502
            echo "local: *; };" >> $output_objdir/$libname.ver~
8503
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8504
        fi
8505
 
8506
        case $cc_basename in
8507
        xlf*)
8508
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8509
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8510
          hardcode_libdir_flag_spec=
8511
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8512
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8513
          if test "x$supports_anon_versioning" = xyes; then
8514
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8515
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8516
              echo "local: *; };" >> $output_objdir/$libname.ver~
8517
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8518
          fi
8519
          ;;
8520
        esac
8521
      else
8522
        ld_shlibs=no
8523
      fi
8524
      ;;
8525
 
8526
    netbsd*)
8527
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8528
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8529
        wlarc=
8530
      else
8531
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8533
      fi
8534
      ;;
8535
 
8536
    solaris*)
8537
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8538
        ld_shlibs=no
8539
        cat <<_LT_EOF 1>&2
8540
 
8541
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8542
*** create shared libraries on Solaris systems.  Therefore, libtool
8543
*** is disabling shared libraries support.  We urge you to upgrade GNU
8544
*** binutils to release 2.9.1 or newer.  Another option is to modify
8545
*** your PATH or compiler configuration so that the native linker is
8546
*** used, and then restart.
8547
 
8548
_LT_EOF
8549
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8550
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8551
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8552
      else
8553
        ld_shlibs=no
8554
      fi
8555
      ;;
8556
 
8557
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8558
      case `$LD -v 2>&1` in
8559
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8560
        ld_shlibs=no
8561
        cat <<_LT_EOF 1>&2
8562
 
8563
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8564
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8565
*** is disabling shared libraries support.  We urge you to upgrade GNU
8566
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8567
*** your PATH or compiler configuration so that the native linker is
8568
*** used, and then restart.
8569
 
8570
_LT_EOF
8571
        ;;
8572
        *)
8573
          # For security reasons, it is highly recommended that you always
8574
          # use absolute paths for naming shared libraries, and exclude the
8575
          # DT_RUNPATH tag from executables and libraries.  But doing so
8576
          # requires that you compile everything twice, which is a pain.
8577
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8578
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8579
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8580
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8581
          else
8582
            ld_shlibs=no
8583
          fi
8584
        ;;
8585
      esac
8586
      ;;
8587
 
8588
    sunos4*)
8589
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8590
      wlarc=
8591
      hardcode_direct=yes
8592
      hardcode_shlibpath_var=no
8593
      ;;
8594
 
8595
    *)
8596
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8597
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8598
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8599
      else
8600
        ld_shlibs=no
8601
      fi
8602
      ;;
8603
    esac
8604
 
8605
    if test "$ld_shlibs" = no; then
8606
      runpath_var=
8607
      hardcode_libdir_flag_spec=
8608
      export_dynamic_flag_spec=
8609
      whole_archive_flag_spec=
8610
    fi
8611
  else
8612
    # PORTME fill in a description of your system's linker (not GNU ld)
8613
    case $host_os in
8614
    aix3*)
8615
      allow_undefined_flag=unsupported
8616
      always_export_symbols=yes
8617
      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'
8618
      # Note: this linker hardcodes the directories in LIBPATH if there
8619
      # are no directories specified by -L.
8620
      hardcode_minus_L=yes
8621
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8622
        # Neither direct hardcoding nor static linking is supported with a
8623
        # broken collect2.
8624
        hardcode_direct=unsupported
8625
      fi
8626
      ;;
8627
 
8628
    aix[4-9]*)
8629
      if test "$host_cpu" = ia64; then
8630
        # On IA64, the linker does run time linking by default, so we don't
8631
        # have to do anything special.
8632
        aix_use_runtimelinking=no
8633
        exp_sym_flag='-Bexport'
8634
        no_entry_flag=""
8635
      else
8636
        # If we're using GNU nm, then we don't want the "-C" option.
8637
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8638
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8639
          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'
8640
        else
8641
          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'
8642
        fi
8643
        aix_use_runtimelinking=no
8644
 
8645
        # Test if we are trying to use run time linking or normal
8646
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8647
        # need to do runtime linking.
8648
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8649
          for ld_flag in $LDFLAGS; do
8650
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8651
            aix_use_runtimelinking=yes
8652
            break
8653
          fi
8654
          done
8655
          ;;
8656
        esac
8657
 
8658
        exp_sym_flag='-bexport'
8659
        no_entry_flag='-bnoentry'
8660
      fi
8661
 
8662
      # When large executables or shared objects are built, AIX ld can
8663
      # have problems creating the table of contents.  If linking a library
8664
      # or program results in "error TOC overflow" add -mminimal-toc to
8665
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8666
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8667
 
8668
      archive_cmds=''
8669
      hardcode_direct=yes
8670
      hardcode_direct_absolute=yes
8671
      hardcode_libdir_separator=':'
8672
      link_all_deplibs=yes
8673
      file_list_spec='${wl}-f,'
8674
 
8675
      if test "$GCC" = yes; then
8676
        case $host_os in aix4.[012]|aix4.[012].*)
8677
        # We only want to do this on AIX 4.2 and lower, the check
8678
        # below for broken collect2 doesn't work under 4.3+
8679
          collect2name=`${CC} -print-prog-name=collect2`
8680
          if test -f "$collect2name" &&
8681
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8682
          then
8683
          # We have reworked collect2
8684
          :
8685
          else
8686
          # We have old collect2
8687
          hardcode_direct=unsupported
8688
          # It fails to find uninstalled libraries when the uninstalled
8689
          # path is not listed in the libpath.  Setting hardcode_minus_L
8690
          # to unsupported forces relinking
8691
          hardcode_minus_L=yes
8692
          hardcode_libdir_flag_spec='-L$libdir'
8693
          hardcode_libdir_separator=
8694
          fi
8695
          ;;
8696
        esac
8697
        shared_flag='-shared'
8698
        if test "$aix_use_runtimelinking" = yes; then
8699
          shared_flag="$shared_flag "'${wl}-G'
8700
        fi
8701
      else
8702
        # not using gcc
8703
        if test "$host_cpu" = ia64; then
8704
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8705
        # chokes on -Wl,-G. The following line is correct:
8706
          shared_flag='-G'
8707
        else
8708
          if test "$aix_use_runtimelinking" = yes; then
8709
            shared_flag='${wl}-G'
8710
          else
8711
            shared_flag='${wl}-bM:SRE'
8712
          fi
8713
        fi
8714
      fi
8715
 
8716
      export_dynamic_flag_spec='${wl}-bexpall'
8717
      # It seems that -bexpall does not export symbols beginning with
8718
      # underscore (_), so it is better to generate a list of symbols to export.
8719
      always_export_symbols=yes
8720
      if test "$aix_use_runtimelinking" = yes; then
8721
        # Warning - without using the other runtime loading flags (-brtl),
8722
        # -berok will link without error, but may produce a broken library.
8723
        allow_undefined_flag='-berok'
8724
        # Determine the default libpath from the value encoded in an
8725
        # empty executable.
8726
        cat >conftest.$ac_ext <<_ACEOF
8727
/* confdefs.h.  */
8728
_ACEOF
8729
cat confdefs.h >>conftest.$ac_ext
8730
cat >>conftest.$ac_ext <<_ACEOF
8731
/* end confdefs.h.  */
8732
 
8733
int
8734
main ()
8735
{
8736
 
8737
  ;
8738
  return 0;
8739
}
8740
_ACEOF
8741
rm -f conftest.$ac_objext conftest$ac_exeext
8742
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8743
  (eval $ac_link) 2>conftest.er1
8744
  ac_status=$?
8745
  grep -v '^ *+' conftest.er1 >conftest.err
8746
  rm -f conftest.er1
8747
  cat conftest.err >&5
8748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749
  (exit $ac_status); } &&
8750
         { ac_try='test -z "$ac_c_werror_flag"
8751
                         || test ! -s conftest.err'
8752
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753
  (eval $ac_try) 2>&5
8754
  ac_status=$?
8755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756
  (exit $ac_status); }; } &&
8757
         { ac_try='test -s conftest$ac_exeext'
8758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759
  (eval $ac_try) 2>&5
8760
  ac_status=$?
8761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762
  (exit $ac_status); }; }; then
8763
 
8764
lt_aix_libpath_sed='
8765
    /Import File Strings/,/^$/ {
8766
        /^0/ {
8767
            s/^0  *\(.*\)$/\1/
8768
            p
8769
        }
8770
    }'
8771
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8772
# Check for a 64-bit object if we didn't find anything.
8773
if test -z "$aix_libpath"; then
8774
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8775
fi
8776
else
8777
  echo "$as_me: failed program was:" >&5
8778
sed 's/^/| /' conftest.$ac_ext >&5
8779
 
8780
fi
8781
rm -f conftest.err conftest.$ac_objext \
8782
      conftest$ac_exeext conftest.$ac_ext
8783
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8784
 
8785
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8786
        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"
8787
      else
8788
        if test "$host_cpu" = ia64; then
8789
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8790
          allow_undefined_flag="-z nodefs"
8791
          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"
8792
        else
8793
         # Determine the default libpath from the value encoded in an
8794
         # empty executable.
8795
         cat >conftest.$ac_ext <<_ACEOF
8796
/* confdefs.h.  */
8797
_ACEOF
8798
cat confdefs.h >>conftest.$ac_ext
8799
cat >>conftest.$ac_ext <<_ACEOF
8800
/* end confdefs.h.  */
8801
 
8802
int
8803
main ()
8804
{
8805
 
8806
  ;
8807
  return 0;
8808
}
8809
_ACEOF
8810
rm -f conftest.$ac_objext conftest$ac_exeext
8811
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8812
  (eval $ac_link) 2>conftest.er1
8813
  ac_status=$?
8814
  grep -v '^ *+' conftest.er1 >conftest.err
8815
  rm -f conftest.er1
8816
  cat conftest.err >&5
8817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818
  (exit $ac_status); } &&
8819
         { ac_try='test -z "$ac_c_werror_flag"
8820
                         || test ! -s conftest.err'
8821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822
  (eval $ac_try) 2>&5
8823
  ac_status=$?
8824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825
  (exit $ac_status); }; } &&
8826
         { ac_try='test -s conftest$ac_exeext'
8827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828
  (eval $ac_try) 2>&5
8829
  ac_status=$?
8830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831
  (exit $ac_status); }; }; then
8832
 
8833
lt_aix_libpath_sed='
8834
    /Import File Strings/,/^$/ {
8835
        /^0/ {
8836
            s/^0  *\(.*\)$/\1/
8837
            p
8838
        }
8839
    }'
8840
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8841
# Check for a 64-bit object if we didn't find anything.
8842
if test -z "$aix_libpath"; then
8843
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8844
fi
8845
else
8846
  echo "$as_me: failed program was:" >&5
8847
sed 's/^/| /' conftest.$ac_ext >&5
8848
 
8849
fi
8850
rm -f conftest.err conftest.$ac_objext \
8851
      conftest$ac_exeext conftest.$ac_ext
8852
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8853
 
8854
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8855
          # Warning - without using the other run time loading flags,
8856
          # -berok will link without error, but may produce a broken library.
8857
          no_undefined_flag=' ${wl}-bernotok'
8858
          allow_undefined_flag=' ${wl}-berok'
8859
          # Exported symbols can be pulled into shared objects from archives
8860
          whole_archive_flag_spec='$convenience'
8861
          archive_cmds_need_lc=yes
8862
          # This is similar to how AIX traditionally builds its shared libraries.
8863
          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'
8864
        fi
8865
      fi
8866
      ;;
8867
 
8868
    amigaos*)
8869
      case $host_cpu in
8870
      powerpc)
8871
            # see comment about AmigaOS4 .so support
8872
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8873
            archive_expsym_cmds=''
8874
        ;;
8875
      m68k)
8876
            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)'
8877
            hardcode_libdir_flag_spec='-L$libdir'
8878
            hardcode_minus_L=yes
8879
        ;;
8880
      esac
8881
      ;;
8882
 
8883
    bsdi[45]*)
8884
      export_dynamic_flag_spec=-rdynamic
8885
      ;;
8886
 
8887
    cygwin* | mingw* | pw32* | cegcc*)
8888
      # When not using gcc, we currently assume that we are using
8889
      # Microsoft Visual C++.
8890
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8891
      # no search path for DLLs.
8892
      hardcode_libdir_flag_spec=' '
8893
      allow_undefined_flag=unsupported
8894
      # Tell ltmain to make .lib files, not .a files.
8895
      libext=lib
8896
      # Tell ltmain to make .dll files, not .so files.
8897
      shrext_cmds=".dll"
8898
      # FIXME: Setting linknames here is a bad hack.
8899
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8900
      # The linker will automatically build a .lib file if we build a DLL.
8901
      old_archive_from_new_cmds='true'
8902
      # FIXME: Should let the user specify the lib program.
8903
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8904
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8905
      enable_shared_with_static_runtimes=yes
8906
      ;;
8907
 
8908
    darwin* | rhapsody*)
8909
 
8910
 
8911
  archive_cmds_need_lc=no
8912
  hardcode_direct=no
8913
  hardcode_automatic=yes
8914
  hardcode_shlibpath_var=unsupported
8915
  whole_archive_flag_spec=''
8916
  link_all_deplibs=yes
8917
  allow_undefined_flag="$_lt_dar_allow_undefined"
8918
  case $cc_basename in
8919
     ifort*) _lt_dar_can_shared=yes ;;
8920
     *) _lt_dar_can_shared=$GCC ;;
8921
  esac
8922
  if test "$_lt_dar_can_shared" = "yes"; then
8923
    output_verbose_link_cmd=echo
8924
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8925
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8926
    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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8927
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8928
 
8929
  else
8930
  ld_shlibs=no
8931
  fi
8932
 
8933
      ;;
8934
 
8935
    dgux*)
8936
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8937
      hardcode_libdir_flag_spec='-L$libdir'
8938
      hardcode_shlibpath_var=no
8939
      ;;
8940
 
8941
    freebsd1*)
8942
      ld_shlibs=no
8943
      ;;
8944
 
8945
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8946
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8947
    # does not break anything, and helps significantly (at the cost of a little
8948
    # extra space).
8949
    freebsd2.2*)
8950
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8951
      hardcode_libdir_flag_spec='-R$libdir'
8952
      hardcode_direct=yes
8953
      hardcode_shlibpath_var=no
8954
      ;;
8955
 
8956
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8957
    freebsd2*)
8958
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8959
      hardcode_direct=yes
8960
      hardcode_minus_L=yes
8961
      hardcode_shlibpath_var=no
8962
      ;;
8963
 
8964
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8965
    freebsd* | dragonfly*)
8966
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8967
      hardcode_libdir_flag_spec='-R$libdir'
8968
      hardcode_direct=yes
8969
      hardcode_shlibpath_var=no
8970
      ;;
8971
 
8972
    hpux9*)
8973
      if test "$GCC" = yes; then
8974
        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'
8975
      else
8976
        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'
8977
      fi
8978
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8979
      hardcode_libdir_separator=:
8980
      hardcode_direct=yes
8981
 
8982
      # hardcode_minus_L: Not really in the search PATH,
8983
      # but as the default location of the library.
8984
      hardcode_minus_L=yes
8985
      export_dynamic_flag_spec='${wl}-E'
8986
      ;;
8987
 
8988
    hpux10*)
8989
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8990
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8991
      else
8992
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8993
      fi
8994
      if test "$with_gnu_ld" = no; then
8995
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8996
        hardcode_libdir_flag_spec_ld='+b $libdir'
8997
        hardcode_libdir_separator=:
8998
        hardcode_direct=yes
8999
        hardcode_direct_absolute=yes
9000
        export_dynamic_flag_spec='${wl}-E'
9001
        # hardcode_minus_L: Not really in the search PATH,
9002
        # but as the default location of the library.
9003
        hardcode_minus_L=yes
9004
      fi
9005
      ;;
9006
 
9007
    hpux11*)
9008
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9009
        case $host_cpu in
9010
        hppa*64*)
9011
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9012
          ;;
9013
        ia64*)
9014
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9015
          ;;
9016
        *)
9017
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9018
          ;;
9019
        esac
9020
      else
9021
        case $host_cpu in
9022
        hppa*64*)
9023
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9024
          ;;
9025
        ia64*)
9026
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9027
          ;;
9028
        *)
9029
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9030
          ;;
9031
        esac
9032
      fi
9033
      if test "$with_gnu_ld" = no; then
9034
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9035
        hardcode_libdir_separator=:
9036
 
9037
        case $host_cpu in
9038
        hppa*64*|ia64*)
9039
          hardcode_direct=no
9040
          hardcode_shlibpath_var=no
9041
          ;;
9042
        *)
9043
          hardcode_direct=yes
9044
          hardcode_direct_absolute=yes
9045
          export_dynamic_flag_spec='${wl}-E'
9046
 
9047
          # hardcode_minus_L: Not really in the search PATH,
9048
          # but as the default location of the library.
9049
          hardcode_minus_L=yes
9050
          ;;
9051
        esac
9052
      fi
9053
      ;;
9054
 
9055
    irix5* | irix6* | nonstopux*)
9056
      if test "$GCC" = yes; then
9057
        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'
9058
        # Try to use the -exported_symbol ld option, if it does not
9059
        # work, assume that -exports_file does not work either and
9060
        # implicitly export all symbols.
9061
        save_LDFLAGS="$LDFLAGS"
9062
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9063
        cat >conftest.$ac_ext <<_ACEOF
9064
int foo(void) {}
9065
_ACEOF
9066
rm -f conftest.$ac_objext conftest$ac_exeext
9067
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9068
  (eval $ac_link) 2>conftest.er1
9069
  ac_status=$?
9070
  grep -v '^ *+' conftest.er1 >conftest.err
9071
  rm -f conftest.er1
9072
  cat conftest.err >&5
9073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074
  (exit $ac_status); } &&
9075
         { ac_try='test -z "$ac_c_werror_flag"
9076
                         || test ! -s conftest.err'
9077
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078
  (eval $ac_try) 2>&5
9079
  ac_status=$?
9080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081
  (exit $ac_status); }; } &&
9082
         { ac_try='test -s conftest$ac_exeext'
9083
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084
  (eval $ac_try) 2>&5
9085
  ac_status=$?
9086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087
  (exit $ac_status); }; }; then
9088
  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'
9089
 
9090
else
9091
  echo "$as_me: failed program was:" >&5
9092
sed 's/^/| /' conftest.$ac_ext >&5
9093
 
9094
fi
9095
rm -f conftest.err conftest.$ac_objext \
9096
      conftest$ac_exeext conftest.$ac_ext
9097
        LDFLAGS="$save_LDFLAGS"
9098
      else
9099
        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'
9100
        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'
9101
      fi
9102
      archive_cmds_need_lc='no'
9103
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9104
      hardcode_libdir_separator=:
9105
      inherit_rpath=yes
9106
      link_all_deplibs=yes
9107
      ;;
9108
 
9109
    netbsd*)
9110
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9111
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9112
      else
9113
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9114
      fi
9115
      hardcode_libdir_flag_spec='-R$libdir'
9116
      hardcode_direct=yes
9117
      hardcode_shlibpath_var=no
9118
      ;;
9119
 
9120
    newsos6)
9121
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9122
      hardcode_direct=yes
9123
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9124
      hardcode_libdir_separator=:
9125
      hardcode_shlibpath_var=no
9126
      ;;
9127
 
9128
    *nto* | *qnx*)
9129
      ;;
9130
 
9131
    openbsd*)
9132
      if test -f /usr/libexec/ld.so; then
9133
        hardcode_direct=yes
9134
        hardcode_shlibpath_var=no
9135
        hardcode_direct_absolute=yes
9136
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9137
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9138
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9139
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9140
          export_dynamic_flag_spec='${wl}-E'
9141
        else
9142
          case $host_os in
9143
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9144
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9145
             hardcode_libdir_flag_spec='-R$libdir'
9146
             ;;
9147
           *)
9148
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9149
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9150
             ;;
9151
          esac
9152
        fi
9153
      else
9154
        ld_shlibs=no
9155
      fi
9156
      ;;
9157
 
9158
    os2*)
9159
      hardcode_libdir_flag_spec='-L$libdir'
9160
      hardcode_minus_L=yes
9161
      allow_undefined_flag=unsupported
9162
      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'
9163
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9164
      ;;
9165
 
9166
    osf3*)
9167
      if test "$GCC" = yes; then
9168
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9169
        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'
9170
      else
9171
        allow_undefined_flag=' -expect_unresolved \*'
9172
        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'
9173
      fi
9174
      archive_cmds_need_lc='no'
9175
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9176
      hardcode_libdir_separator=:
9177
      ;;
9178
 
9179
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9180
      if test "$GCC" = yes; then
9181
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9182
        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'
9183
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9184
      else
9185
        allow_undefined_flag=' -expect_unresolved \*'
9186
        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'
9187
        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~
9188
        $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'
9189
 
9190
        # Both c and cxx compiler support -rpath directly
9191
        hardcode_libdir_flag_spec='-rpath $libdir'
9192
      fi
9193
      archive_cmds_need_lc='no'
9194
      hardcode_libdir_separator=:
9195
      ;;
9196
 
9197
    solaris*)
9198
      no_undefined_flag=' -z defs'
9199
      if test "$GCC" = yes; then
9200
        wlarc='${wl}'
9201
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9202
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9203
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9204
      else
9205
        case `$CC -V 2>&1` in
9206
        *"Compilers 5.0"*)
9207
          wlarc=''
9208
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9209
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9210
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9211
          ;;
9212
        *)
9213
          wlarc='${wl}'
9214
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9215
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9216
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9217
          ;;
9218
        esac
9219
      fi
9220
      hardcode_libdir_flag_spec='-R$libdir'
9221
      hardcode_shlibpath_var=no
9222
      case $host_os in
9223
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9224
      *)
9225
        # The compiler driver will combine and reorder linker options,
9226
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9227
        # but is careful enough not to reorder.
9228
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9229
        if test "$GCC" = yes; then
9230
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9231
        else
9232
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9233
        fi
9234
        ;;
9235
      esac
9236
      link_all_deplibs=yes
9237
      ;;
9238
 
9239
    sunos4*)
9240
      if test "x$host_vendor" = xsequent; then
9241
        # Use $CC to link under sequent, because it throws in some extra .o
9242
        # files that make .init and .fini sections work.
9243
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9244
      else
9245
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9246
      fi
9247
      hardcode_libdir_flag_spec='-L$libdir'
9248
      hardcode_direct=yes
9249
      hardcode_minus_L=yes
9250
      hardcode_shlibpath_var=no
9251
      ;;
9252
 
9253
    sysv4)
9254
      case $host_vendor in
9255
        sni)
9256
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9257
          hardcode_direct=yes # is this really true???
9258
        ;;
9259
        siemens)
9260
          ## LD is ld it makes a PLAMLIB
9261
          ## CC just makes a GrossModule.
9262
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9263
          reload_cmds='$CC -r -o $output$reload_objs'
9264
          hardcode_direct=no
9265
        ;;
9266
        motorola)
9267
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9268
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9269
        ;;
9270
      esac
9271
      runpath_var='LD_RUN_PATH'
9272
      hardcode_shlibpath_var=no
9273
      ;;
9274
 
9275
    sysv4.3*)
9276
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9277
      hardcode_shlibpath_var=no
9278
      export_dynamic_flag_spec='-Bexport'
9279
      ;;
9280
 
9281
    sysv4*MP*)
9282
      if test -d /usr/nec; then
9283
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9284
        hardcode_shlibpath_var=no
9285
        runpath_var=LD_RUN_PATH
9286
        hardcode_runpath_var=yes
9287
        ld_shlibs=yes
9288
      fi
9289
      ;;
9290
 
9291
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9292
      no_undefined_flag='${wl}-z,text'
9293
      archive_cmds_need_lc=no
9294
      hardcode_shlibpath_var=no
9295
      runpath_var='LD_RUN_PATH'
9296
 
9297
      if test "$GCC" = yes; then
9298
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9299
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9300
      else
9301
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9302
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9303
      fi
9304
      ;;
9305
 
9306
    sysv5* | sco3.2v5* | sco5v6*)
9307
      # Note: We can NOT use -z defs as we might desire, because we do not
9308
      # link with -lc, and that would cause any symbols used from libc to
9309
      # always be unresolved, which means just about no library would
9310
      # ever link correctly.  If we're not using GNU ld we use -z text
9311
      # though, which does catch some bad symbols but isn't as heavy-handed
9312
      # as -z defs.
9313
      no_undefined_flag='${wl}-z,text'
9314
      allow_undefined_flag='${wl}-z,nodefs'
9315
      archive_cmds_need_lc=no
9316
      hardcode_shlibpath_var=no
9317
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9318
      hardcode_libdir_separator=':'
9319
      link_all_deplibs=yes
9320
      export_dynamic_flag_spec='${wl}-Bexport'
9321
      runpath_var='LD_RUN_PATH'
9322
 
9323
      if test "$GCC" = yes; then
9324
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9325
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9326
      else
9327
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9328
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9329
      fi
9330
      ;;
9331
 
9332
    uts4*)
9333
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9334
      hardcode_libdir_flag_spec='-L$libdir'
9335
      hardcode_shlibpath_var=no
9336
      ;;
9337
 
9338
    *)
9339
      ld_shlibs=no
9340
      ;;
9341
    esac
9342
 
9343
    if test x$host_vendor = xsni; then
9344
      case $host in
9345
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9346
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9347
        ;;
9348
      esac
9349
    fi
9350
  fi
9351
 
9352
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9353
echo "${ECHO_T}$ld_shlibs" >&6
9354
test "$ld_shlibs" = no && can_build_shared=no
9355
 
9356
with_gnu_ld=$with_gnu_ld
9357
 
9358
 
9359
 
9360
 
9361
 
9362
 
9363
 
9364
 
9365
 
9366
 
9367
 
9368
 
9369
 
9370
 
9371
 
9372
#
9373
# Do we need to explicitly link libc?
9374
#
9375
case "x$archive_cmds_need_lc" in
9376
x|xyes)
9377
  # Assume -lc should be added
9378
  archive_cmds_need_lc=yes
9379
 
9380
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9381
    case $archive_cmds in
9382
    *'~'*)
9383
      # FIXME: we may have to deal with multi-command sequences.
9384
      ;;
9385
    '$CC '*)
9386
      # Test whether the compiler implicitly links with -lc since on some
9387
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9388
      # to ld, don't add -lc before -lgcc.
9389
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9390
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9391
      $RM conftest*
9392
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9393
 
9394
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9395
  (eval $ac_compile) 2>&5
9396
  ac_status=$?
9397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398
  (exit $ac_status); } 2>conftest.err; then
9399
        soname=conftest
9400
        lib=conftest
9401
        libobjs=conftest.$ac_objext
9402
        deplibs=
9403
        wl=$lt_prog_compiler_wl
9404
        pic_flag=$lt_prog_compiler_pic
9405
        compiler_flags=-v
9406
        linker_flags=-v
9407
        verstring=
9408
        output_objdir=.
9409
        libname=conftest
9410
        lt_save_allow_undefined_flag=$allow_undefined_flag
9411
        allow_undefined_flag=
9412
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9413
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9414
  ac_status=$?
9415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416
  (exit $ac_status); }
9417
        then
9418
          archive_cmds_need_lc=no
9419
        else
9420
          archive_cmds_need_lc=yes
9421
        fi
9422
        allow_undefined_flag=$lt_save_allow_undefined_flag
9423
      else
9424
        cat conftest.err 1>&5
9425
      fi
9426
      $RM conftest*
9427
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9428
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9429
      ;;
9430
    esac
9431
  fi
9432
  ;;
9433
esac
9434
 
9435
 
9436
 
9437
 
9438
 
9439
 
9440
 
9441
 
9442
 
9443
 
9444
 
9445
 
9446
 
9447
 
9448
 
9449
 
9450
 
9451
 
9452
 
9453
 
9454
 
9455
 
9456
 
9457
 
9458
 
9459
 
9460
 
9461
 
9462
 
9463
 
9464
 
9465
 
9466
 
9467
 
9468
 
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
 
9557
 
9558
 
9559
 
9560
 
9561
 
9562
 
9563
 
9564
 
9565
 
9566
 
9567
 
9568
 
9569
 
9570
 
9571
 
9572
 
9573
 
9574
 
9575
 
9576
 
9577
 
9578
 
9579
 
9580
 
9581
 
9582
 
9583
 
9584
 
9585
 
9586
 
9587
 
9588
 
9589
 
9590
 
9591
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9592
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9593
 
9594
if test "$GCC" = yes; then
9595
  case $host_os in
9596
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9597
    *) lt_awk_arg="/^libraries:/" ;;
9598
  esac
9599
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9600
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9601
    # if the path contains ";" then we assume it to be the separator
9602
    # otherwise default to the standard path separator (i.e. ":") - it is
9603
    # assumed that no part of a normal pathname contains ";" but that should
9604
    # okay in the real world where ";" in dirpaths is itself problematic.
9605
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9606
  else
9607
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9608
  fi
9609
  # Ok, now we have the path, separated by spaces, we can step through it
9610
  # and add multilib dir if necessary.
9611
  lt_tmp_lt_search_path_spec=
9612
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9613
  for lt_sys_path in $lt_search_path_spec; do
9614
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9615
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9616
    else
9617
      test -d "$lt_sys_path" && \
9618
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9619
    fi
9620
  done
9621
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9622
BEGIN {RS=" "; FS="/|\n";} {
9623
  lt_foo="";
9624
  lt_count=0;
9625
  for (lt_i = NF; lt_i > 0; lt_i--) {
9626
    if ($lt_i != "" && $lt_i != ".") {
9627
      if ($lt_i == "..") {
9628
        lt_count++;
9629
      } else {
9630
        if (lt_count == 0) {
9631
          lt_foo="/" $lt_i lt_foo;
9632
        } else {
9633
          lt_count--;
9634
        }
9635
      }
9636
    }
9637
  }
9638
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9639
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9640
}'`
9641
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9642
else
9643
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9644
fi
9645
library_names_spec=
9646
libname_spec='lib$name'
9647
soname_spec=
9648
shrext_cmds=".so"
9649
postinstall_cmds=
9650
postuninstall_cmds=
9651
finish_cmds=
9652
finish_eval=
9653
shlibpath_var=
9654
shlibpath_overrides_runpath=unknown
9655
version_type=none
9656
dynamic_linker="$host_os ld.so"
9657
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9658
need_lib_prefix=unknown
9659
hardcode_into_libs=no
9660
 
9661
# when you set need_version to no, make sure it does not cause -set_version
9662
# flags to be left without arguments
9663
need_version=unknown
9664
 
9665
case $host_os in
9666
aix3*)
9667
  version_type=linux
9668
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9669
  shlibpath_var=LIBPATH
9670
 
9671
  # AIX 3 has no versioning support, so we append a major version to the name.
9672
  soname_spec='${libname}${release}${shared_ext}$major'
9673
  ;;
9674
 
9675
aix[4-9]*)
9676
  version_type=linux
9677
  need_lib_prefix=no
9678
  need_version=no
9679
  hardcode_into_libs=yes
9680
  if test "$host_cpu" = ia64; then
9681
    # AIX 5 supports IA64
9682
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9683
    shlibpath_var=LD_LIBRARY_PATH
9684
  else
9685
    # With GCC up to 2.95.x, collect2 would create an import file
9686
    # for dependence libraries.  The import file would start with
9687
    # the line `#! .'.  This would cause the generated library to
9688
    # depend on `.', always an invalid library.  This was fixed in
9689
    # development snapshots of GCC prior to 3.0.
9690
    case $host_os in
9691
      aix4 | aix4.[01] | aix4.[01].*)
9692
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9693
           echo ' yes '
9694
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9695
        :
9696
      else
9697
        can_build_shared=no
9698
      fi
9699
      ;;
9700
    esac
9701
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9702
    # soname into executable. Probably we can add versioning support to
9703
    # collect2, so additional links can be useful in future.
9704
    if test "$aix_use_runtimelinking" = yes; then
9705
      # If using run time linking (on AIX 4.2 or later) use lib.so
9706
      # instead of lib.a to let people know that these are not
9707
      # typical AIX shared libraries.
9708
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709
    else
9710
      # We preserve .a as extension for shared libraries through AIX4.2
9711
      # and later when we are not doing run time linking.
9712
      library_names_spec='${libname}${release}.a $libname.a'
9713
      soname_spec='${libname}${release}${shared_ext}$major'
9714
    fi
9715
    shlibpath_var=LIBPATH
9716
  fi
9717
  ;;
9718
 
9719
amigaos*)
9720
  case $host_cpu in
9721
  powerpc)
9722
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9723
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9724
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9725
    ;;
9726
  m68k)
9727
    library_names_spec='$libname.ixlibrary $libname.a'
9728
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9729
    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'
9730
    ;;
9731
  esac
9732
  ;;
9733
 
9734
beos*)
9735
  library_names_spec='${libname}${shared_ext}'
9736
  dynamic_linker="$host_os ld.so"
9737
  shlibpath_var=LIBRARY_PATH
9738
  ;;
9739
 
9740
bsdi[45]*)
9741
  version_type=linux
9742
  need_version=no
9743
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9744
  soname_spec='${libname}${release}${shared_ext}$major'
9745
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9746
  shlibpath_var=LD_LIBRARY_PATH
9747
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9748
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9749
  # the default ld.so.conf also contains /usr/contrib/lib and
9750
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9751
  # libtool to hard-code these into programs
9752
  ;;
9753
 
9754
cygwin* | mingw* | pw32* | cegcc*)
9755
  version_type=windows
9756
  shrext_cmds=".dll"
9757
  need_version=no
9758
  need_lib_prefix=no
9759
 
9760
  case $GCC,$host_os in
9761
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9762
    library_names_spec='$libname.dll.a'
9763
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9764
    postinstall_cmds='base_file=`basename \${file}`~
9765
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9766
      dldir=$destdir/`dirname \$dlpath`~
9767
      test -d \$dldir || mkdir -p \$dldir~
9768
      $install_prog $dir/$dlname \$dldir/$dlname~
9769
      chmod a+x \$dldir/$dlname~
9770
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9771
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9772
      fi'
9773
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9774
      dlpath=$dir/\$dldll~
9775
       $RM \$dlpath'
9776
    shlibpath_overrides_runpath=yes
9777
 
9778
    case $host_os in
9779
    cygwin*)
9780
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9781
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9782
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9783
      ;;
9784
    mingw* | cegcc*)
9785
      # MinGW DLLs use traditional 'lib' prefix
9786
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9787
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9788
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9789
        # It is most probably a Windows format PATH printed by
9790
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9791
        # path with ; separators, and with drive letters. We can handle the
9792
        # drive letters (cygwin fileutils understands them), so leave them,
9793
        # especially as we might pass files found there to a mingw objdump,
9794
        # which wouldn't understand a cygwinified path. Ahh.
9795
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9796
      else
9797
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9798
      fi
9799
      ;;
9800
    pw32*)
9801
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9802
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9803
      ;;
9804
    esac
9805
    ;;
9806
 
9807
  *)
9808
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9809
    ;;
9810
  esac
9811
  dynamic_linker='Win32 ld.exe'
9812
  # FIXME: first we should search . and the directory the executable is in
9813
  shlibpath_var=PATH
9814
  ;;
9815
 
9816
darwin* | rhapsody*)
9817
  dynamic_linker="$host_os dyld"
9818
  version_type=darwin
9819
  need_lib_prefix=no
9820
  need_version=no
9821
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9822
  soname_spec='${libname}${release}${major}$shared_ext'
9823
  shlibpath_overrides_runpath=yes
9824
  shlibpath_var=DYLD_LIBRARY_PATH
9825
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9826
 
9827
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9828
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9829
  ;;
9830
 
9831
dgux*)
9832
  version_type=linux
9833
  need_lib_prefix=no
9834
  need_version=no
9835
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9836
  soname_spec='${libname}${release}${shared_ext}$major'
9837
  shlibpath_var=LD_LIBRARY_PATH
9838
  ;;
9839
 
9840
freebsd1*)
9841
  dynamic_linker=no
9842
  ;;
9843
 
9844
freebsd* | dragonfly*)
9845
  # DragonFly does not have aout.  When/if they implement a new
9846
  # versioning mechanism, adjust this.
9847
  if test -x /usr/bin/objformat; then
9848
    objformat=`/usr/bin/objformat`
9849
  else
9850
    case $host_os in
9851
    freebsd[123]*) objformat=aout ;;
9852
    *) objformat=elf ;;
9853
    esac
9854
  fi
9855
  version_type=freebsd-$objformat
9856
  case $version_type in
9857
    freebsd-elf*)
9858
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9859
      need_version=no
9860
      need_lib_prefix=no
9861
      ;;
9862
    freebsd-*)
9863
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9864
      need_version=yes
9865
      ;;
9866
  esac
9867
  shlibpath_var=LD_LIBRARY_PATH
9868
  case $host_os in
9869
  freebsd2*)
9870
    shlibpath_overrides_runpath=yes
9871
    ;;
9872
  freebsd3.[01]* | freebsdelf3.[01]*)
9873
    shlibpath_overrides_runpath=yes
9874
    hardcode_into_libs=yes
9875
    ;;
9876
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9877
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9878
    shlibpath_overrides_runpath=no
9879
    hardcode_into_libs=yes
9880
    ;;
9881
  *) # from 4.6 on, and DragonFly
9882
    shlibpath_overrides_runpath=yes
9883
    hardcode_into_libs=yes
9884
    ;;
9885
  esac
9886
  ;;
9887
 
9888
gnu*)
9889
  version_type=linux
9890
  need_lib_prefix=no
9891
  need_version=no
9892
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9893
  soname_spec='${libname}${release}${shared_ext}$major'
9894
  shlibpath_var=LD_LIBRARY_PATH
9895
  hardcode_into_libs=yes
9896
  ;;
9897
 
9898
hpux9* | hpux10* | hpux11*)
9899
  # Give a soname corresponding to the major version so that dld.sl refuses to
9900
  # link against other versions.
9901
  version_type=sunos
9902
  need_lib_prefix=no
9903
  need_version=no
9904
  case $host_cpu in
9905
  ia64*)
9906
    shrext_cmds='.so'
9907
    hardcode_into_libs=yes
9908
    dynamic_linker="$host_os dld.so"
9909
    shlibpath_var=LD_LIBRARY_PATH
9910
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9911
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912
    soname_spec='${libname}${release}${shared_ext}$major'
9913
    if test "X$HPUX_IA64_MODE" = X32; then
9914
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9915
    else
9916
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9917
    fi
9918
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9919
    ;;
9920
  hppa*64*)
9921
    shrext_cmds='.sl'
9922
    hardcode_into_libs=yes
9923
    dynamic_linker="$host_os dld.sl"
9924
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9925
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9926
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927
    soname_spec='${libname}${release}${shared_ext}$major'
9928
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9929
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9930
    ;;
9931
  *)
9932
    shrext_cmds='.sl'
9933
    dynamic_linker="$host_os dld.sl"
9934
    shlibpath_var=SHLIB_PATH
9935
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9936
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937
    soname_spec='${libname}${release}${shared_ext}$major'
9938
    ;;
9939
  esac
9940
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9941
  postinstall_cmds='chmod 555 $lib'
9942
  ;;
9943
 
9944
interix[3-9]*)
9945
  version_type=linux
9946
  need_lib_prefix=no
9947
  need_version=no
9948
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9949
  soname_spec='${libname}${release}${shared_ext}$major'
9950
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9951
  shlibpath_var=LD_LIBRARY_PATH
9952
  shlibpath_overrides_runpath=no
9953
  hardcode_into_libs=yes
9954
  ;;
9955
 
9956
irix5* | irix6* | nonstopux*)
9957
  case $host_os in
9958
    nonstopux*) version_type=nonstopux ;;
9959
    *)
9960
        if test "$lt_cv_prog_gnu_ld" = yes; then
9961
                version_type=linux
9962
        else
9963
                version_type=irix
9964
        fi ;;
9965
  esac
9966
  need_lib_prefix=no
9967
  need_version=no
9968
  soname_spec='${libname}${release}${shared_ext}$major'
9969
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9970
  case $host_os in
9971
  irix5* | nonstopux*)
9972
    libsuff= shlibsuff=
9973
    ;;
9974
  *)
9975
    case $LD in # libtool.m4 will add one of these switches to LD
9976
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9977
      libsuff= shlibsuff= libmagic=32-bit;;
9978
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9979
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9980
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9981
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9982
    *) libsuff= shlibsuff= libmagic=never-match;;
9983
    esac
9984
    ;;
9985
  esac
9986
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9987
  shlibpath_overrides_runpath=no
9988
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9989
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9990
  hardcode_into_libs=yes
9991
  ;;
9992
 
9993
# No shared lib support for Linux oldld, aout, or coff.
9994
linux*oldld* | linux*aout* | linux*coff*)
9995
  dynamic_linker=no
9996
  ;;
9997
 
9998
# This must be Linux ELF.
9999
linux* | k*bsd*-gnu)
10000
  version_type=linux
10001
  need_lib_prefix=no
10002
  need_version=no
10003
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10004
  soname_spec='${libname}${release}${shared_ext}$major'
10005
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10006
  shlibpath_var=LD_LIBRARY_PATH
10007
  shlibpath_overrides_runpath=no
10008
  # Some binutils ld are patched to set DT_RUNPATH
10009
  save_LDFLAGS=$LDFLAGS
10010
  save_libdir=$libdir
10011
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10012
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10013
  cat >conftest.$ac_ext <<_ACEOF
10014
/* confdefs.h.  */
10015
_ACEOF
10016
cat confdefs.h >>conftest.$ac_ext
10017
cat >>conftest.$ac_ext <<_ACEOF
10018
/* end confdefs.h.  */
10019
 
10020
int
10021
main ()
10022
{
10023
 
10024
  ;
10025
  return 0;
10026
}
10027
_ACEOF
10028
rm -f conftest.$ac_objext conftest$ac_exeext
10029
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10030
  (eval $ac_link) 2>conftest.er1
10031
  ac_status=$?
10032
  grep -v '^ *+' conftest.er1 >conftest.err
10033
  rm -f conftest.er1
10034
  cat conftest.err >&5
10035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036
  (exit $ac_status); } &&
10037
         { ac_try='test -z "$ac_c_werror_flag"
10038
                         || test ! -s conftest.err'
10039
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040
  (eval $ac_try) 2>&5
10041
  ac_status=$?
10042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043
  (exit $ac_status); }; } &&
10044
         { ac_try='test -s conftest$ac_exeext'
10045
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046
  (eval $ac_try) 2>&5
10047
  ac_status=$?
10048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049
  (exit $ac_status); }; }; then
10050
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10051
  shlibpath_overrides_runpath=yes
10052
fi
10053
 
10054
else
10055
  echo "$as_me: failed program was:" >&5
10056
sed 's/^/| /' conftest.$ac_ext >&5
10057
 
10058
fi
10059
rm -f conftest.err conftest.$ac_objext \
10060
      conftest$ac_exeext conftest.$ac_ext
10061
  LDFLAGS=$save_LDFLAGS
10062
  libdir=$save_libdir
10063
 
10064
  # This implies no fast_install, which is unacceptable.
10065
  # Some rework will be needed to allow for fast_install
10066
  # before this can be enabled.
10067
  hardcode_into_libs=yes
10068
 
10069
  # Append ld.so.conf contents to the search path
10070
  if test -f /etc/ld.so.conf; then
10071
    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/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10072
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10073
  fi
10074
 
10075
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10076
  # powerpc, because MkLinux only supported shared libraries with the
10077
  # GNU dynamic linker.  Since this was broken with cross compilers,
10078
  # most powerpc-linux boxes support dynamic linking these days and
10079
  # people can always --disable-shared, the test was removed, and we
10080
  # assume the GNU/Linux dynamic linker is in use.
10081
  dynamic_linker='GNU/Linux ld.so'
10082
  ;;
10083
 
10084
netbsd*)
10085
  version_type=sunos
10086
  need_lib_prefix=no
10087
  need_version=no
10088
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10089
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10090
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10091
    dynamic_linker='NetBSD (a.out) ld.so'
10092
  else
10093
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10094
    soname_spec='${libname}${release}${shared_ext}$major'
10095
    dynamic_linker='NetBSD ld.elf_so'
10096
  fi
10097
  shlibpath_var=LD_LIBRARY_PATH
10098
  shlibpath_overrides_runpath=yes
10099
  hardcode_into_libs=yes
10100
  ;;
10101
 
10102
newsos6)
10103
  version_type=linux
10104
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105
  shlibpath_var=LD_LIBRARY_PATH
10106
  shlibpath_overrides_runpath=yes
10107
  ;;
10108
 
10109
*nto* | *qnx*)
10110
  version_type=qnx
10111
  need_lib_prefix=no
10112
  need_version=no
10113
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114
  soname_spec='${libname}${release}${shared_ext}$major'
10115
  shlibpath_var=LD_LIBRARY_PATH
10116
  shlibpath_overrides_runpath=no
10117
  hardcode_into_libs=yes
10118
  dynamic_linker='ldqnx.so'
10119
  ;;
10120
 
10121
openbsd*)
10122
  version_type=sunos
10123
  sys_lib_dlsearch_path_spec="/usr/lib"
10124
  need_lib_prefix=no
10125
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10126
  case $host_os in
10127
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10128
    *)                          need_version=no  ;;
10129
  esac
10130
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10131
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10132
  shlibpath_var=LD_LIBRARY_PATH
10133
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10134
    case $host_os in
10135
      openbsd2.[89] | openbsd2.[89].*)
10136
        shlibpath_overrides_runpath=no
10137
        ;;
10138
      *)
10139
        shlibpath_overrides_runpath=yes
10140
        ;;
10141
      esac
10142
  else
10143
    shlibpath_overrides_runpath=yes
10144
  fi
10145
  ;;
10146
 
10147
os2*)
10148
  libname_spec='$name'
10149
  shrext_cmds=".dll"
10150
  need_lib_prefix=no
10151
  library_names_spec='$libname${shared_ext} $libname.a'
10152
  dynamic_linker='OS/2 ld.exe'
10153
  shlibpath_var=LIBPATH
10154
  ;;
10155
 
10156
osf3* | osf4* | osf5*)
10157
  version_type=osf
10158
  need_lib_prefix=no
10159
  need_version=no
10160
  soname_spec='${libname}${release}${shared_ext}$major'
10161
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162
  shlibpath_var=LD_LIBRARY_PATH
10163
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10164
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10165
  ;;
10166
 
10167
rdos*)
10168
  dynamic_linker=no
10169
  ;;
10170
 
10171
solaris*)
10172
  version_type=linux
10173
  need_lib_prefix=no
10174
  need_version=no
10175
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10176
  soname_spec='${libname}${release}${shared_ext}$major'
10177
  shlibpath_var=LD_LIBRARY_PATH
10178
  shlibpath_overrides_runpath=yes
10179
  hardcode_into_libs=yes
10180
  # ldd complains unless libraries are executable
10181
  postinstall_cmds='chmod +x $lib'
10182
  ;;
10183
 
10184
sunos4*)
10185
  version_type=sunos
10186
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10187
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10188
  shlibpath_var=LD_LIBRARY_PATH
10189
  shlibpath_overrides_runpath=yes
10190
  if test "$with_gnu_ld" = yes; then
10191
    need_lib_prefix=no
10192
  fi
10193
  need_version=yes
10194
  ;;
10195
 
10196
sysv4 | sysv4.3*)
10197
  version_type=linux
10198
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199
  soname_spec='${libname}${release}${shared_ext}$major'
10200
  shlibpath_var=LD_LIBRARY_PATH
10201
  case $host_vendor in
10202
    sni)
10203
      shlibpath_overrides_runpath=no
10204
      need_lib_prefix=no
10205
      runpath_var=LD_RUN_PATH
10206
      ;;
10207
    siemens)
10208
      need_lib_prefix=no
10209
      ;;
10210
    motorola)
10211
      need_lib_prefix=no
10212
      need_version=no
10213
      shlibpath_overrides_runpath=no
10214
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10215
      ;;
10216
  esac
10217
  ;;
10218
 
10219
sysv4*MP*)
10220
  if test -d /usr/nec ;then
10221
    version_type=linux
10222
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10223
    soname_spec='$libname${shared_ext}.$major'
10224
    shlibpath_var=LD_LIBRARY_PATH
10225
  fi
10226
  ;;
10227
 
10228
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10229
  version_type=freebsd-elf
10230
  need_lib_prefix=no
10231
  need_version=no
10232
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10233
  soname_spec='${libname}${release}${shared_ext}$major'
10234
  shlibpath_var=LD_LIBRARY_PATH
10235
  shlibpath_overrides_runpath=yes
10236
  hardcode_into_libs=yes
10237
  if test "$with_gnu_ld" = yes; then
10238
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10239
  else
10240
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10241
    case $host_os in
10242
      sco3.2v5*)
10243
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10244
        ;;
10245
    esac
10246
  fi
10247
  sys_lib_dlsearch_path_spec='/usr/lib'
10248
  ;;
10249
 
10250
tpf*)
10251
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10252
  version_type=linux
10253
  need_lib_prefix=no
10254
  need_version=no
10255
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256
  shlibpath_var=LD_LIBRARY_PATH
10257
  shlibpath_overrides_runpath=no
10258
  hardcode_into_libs=yes
10259
  ;;
10260
 
10261
uts4*)
10262
  version_type=linux
10263
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10264
  soname_spec='${libname}${release}${shared_ext}$major'
10265
  shlibpath_var=LD_LIBRARY_PATH
10266
  ;;
10267
 
10268
*)
10269
  dynamic_linker=no
10270
  ;;
10271
esac
10272
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10273
echo "${ECHO_T}$dynamic_linker" >&6
10274
test "$dynamic_linker" = no && can_build_shared=no
10275
 
10276
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10277
if test "$GCC" = yes; then
10278
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10279
fi
10280
 
10281
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10282
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10283
fi
10284
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10285
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10286
fi
10287
 
10288
 
10289
 
10290
 
10291
 
10292
 
10293
 
10294
 
10295
 
10296
 
10297
 
10298
 
10299
 
10300
 
10301
 
10302
 
10303
 
10304
 
10305
 
10306
 
10307
 
10308
 
10309
 
10310
 
10311
 
10312
 
10313
 
10314
 
10315
 
10316
 
10317
 
10318
 
10319
 
10320
 
10321
 
10322
 
10323
 
10324
 
10325
 
10326
 
10327
 
10328
 
10329
 
10330
 
10331
 
10332
 
10333
 
10334
 
10335
 
10336
 
10337
 
10338
 
10339
 
10340
 
10341
 
10342
 
10343
 
10344
 
10345
 
10346
 
10347
 
10348
 
10349
 
10350
 
10351
 
10352
 
10353
 
10354
 
10355
 
10356
 
10357
 
10358
 
10359
 
10360
 
10361
 
10362
 
10363
 
10364
 
10365
 
10366
 
10367
 
10368
 
10369
 
10370
 
10371
 
10372
 
10373
 
10374
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10375
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10376
hardcode_action=
10377
if test -n "$hardcode_libdir_flag_spec" ||
10378
   test -n "$runpath_var" ||
10379
   test "X$hardcode_automatic" = "Xyes" ; then
10380
 
10381
  # We can hardcode non-existent directories.
10382
  if test "$hardcode_direct" != no &&
10383
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10384
     # have to relink, otherwise we might link with an installed library
10385
     # when we should be linking with a yet-to-be-installed one
10386
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10387
     test "$hardcode_minus_L" != no; then
10388
    # Linking always hardcodes the temporary library directory.
10389
    hardcode_action=relink
10390
  else
10391
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10392
    hardcode_action=immediate
10393
  fi
10394
else
10395
  # We cannot hardcode anything, or else we can only hardcode existing
10396
  # directories.
10397
  hardcode_action=unsupported
10398
fi
10399
echo "$as_me:$LINENO: result: $hardcode_action" >&5
10400
echo "${ECHO_T}$hardcode_action" >&6
10401
 
10402
if test "$hardcode_action" = relink ||
10403
   test "$inherit_rpath" = yes; then
10404
  # Fast installation is not supported
10405
  enable_fast_install=no
10406
elif test "$shlibpath_overrides_runpath" = yes ||
10407
     test "$enable_shared" = no; then
10408
  # Fast installation is not necessary
10409
  enable_fast_install=needless
10410
fi
10411
 
10412
 
10413
 
10414
 
10415
 
10416
 
10417
  if test "x$enable_dlopen" != xyes; then
10418
  enable_dlopen=unknown
10419
  enable_dlopen_self=unknown
10420
  enable_dlopen_self_static=unknown
10421
else
10422
  lt_cv_dlopen=no
10423
  lt_cv_dlopen_libs=
10424
 
10425
  case $host_os in
10426
  beos*)
10427
    lt_cv_dlopen="load_add_on"
10428
    lt_cv_dlopen_libs=
10429
    lt_cv_dlopen_self=yes
10430
    ;;
10431
 
10432
  mingw* | pw32* | cegcc*)
10433
    lt_cv_dlopen="LoadLibrary"
10434
    lt_cv_dlopen_libs=
10435
    ;;
10436
 
10437
  cygwin*)
10438
    lt_cv_dlopen="dlopen"
10439
    lt_cv_dlopen_libs=
10440
    ;;
10441
 
10442
  darwin*)
10443
  # if libdl is installed we need to link against it
10444
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10445
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10446
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10447
  echo $ECHO_N "(cached) $ECHO_C" >&6
10448
else
10449
  ac_check_lib_save_LIBS=$LIBS
10450
LIBS="-ldl  $LIBS"
10451
cat >conftest.$ac_ext <<_ACEOF
10452
/* confdefs.h.  */
10453
_ACEOF
10454
cat confdefs.h >>conftest.$ac_ext
10455
cat >>conftest.$ac_ext <<_ACEOF
10456
/* end confdefs.h.  */
10457
 
10458
/* Override any gcc2 internal prototype to avoid an error.  */
10459
#ifdef __cplusplus
10460
extern "C"
10461
#endif
10462
/* We use char because int might match the return type of a gcc2
10463
   builtin and then its argument prototype would still apply.  */
10464
char dlopen ();
10465
int
10466
main ()
10467
{
10468
dlopen ();
10469
  ;
10470
  return 0;
10471
}
10472
_ACEOF
10473
rm -f conftest.$ac_objext conftest$ac_exeext
10474
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475
  (eval $ac_link) 2>conftest.er1
10476
  ac_status=$?
10477
  grep -v '^ *+' conftest.er1 >conftest.err
10478
  rm -f conftest.er1
10479
  cat conftest.err >&5
10480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481
  (exit $ac_status); } &&
10482
         { ac_try='test -z "$ac_c_werror_flag"
10483
                         || test ! -s conftest.err'
10484
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485
  (eval $ac_try) 2>&5
10486
  ac_status=$?
10487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488
  (exit $ac_status); }; } &&
10489
         { ac_try='test -s conftest$ac_exeext'
10490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491
  (eval $ac_try) 2>&5
10492
  ac_status=$?
10493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494
  (exit $ac_status); }; }; then
10495
  ac_cv_lib_dl_dlopen=yes
10496
else
10497
  echo "$as_me: failed program was:" >&5
10498
sed 's/^/| /' conftest.$ac_ext >&5
10499
 
10500
ac_cv_lib_dl_dlopen=no
10501
fi
10502
rm -f conftest.err conftest.$ac_objext \
10503
      conftest$ac_exeext conftest.$ac_ext
10504
LIBS=$ac_check_lib_save_LIBS
10505
fi
10506
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10507
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10508
if test $ac_cv_lib_dl_dlopen = yes; then
10509
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10510
else
10511
 
10512
    lt_cv_dlopen="dyld"
10513
    lt_cv_dlopen_libs=
10514
    lt_cv_dlopen_self=yes
10515
 
10516
fi
10517
 
10518
    ;;
10519
 
10520
  *)
10521
    echo "$as_me:$LINENO: checking for shl_load" >&5
10522
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10523
if test "${ac_cv_func_shl_load+set}" = set; then
10524
  echo $ECHO_N "(cached) $ECHO_C" >&6
10525
else
10526
  cat >conftest.$ac_ext <<_ACEOF
10527
/* confdefs.h.  */
10528
_ACEOF
10529
cat confdefs.h >>conftest.$ac_ext
10530
cat >>conftest.$ac_ext <<_ACEOF
10531
/* end confdefs.h.  */
10532
/* Define shl_load to an innocuous variant, in case  declares shl_load.
10533
   For example, HP-UX 11i  declares gettimeofday.  */
10534
#define shl_load innocuous_shl_load
10535
 
10536
/* System header to define __stub macros and hopefully few prototypes,
10537
    which can conflict with char shl_load (); below.
10538
    Prefer  to  if __STDC__ is defined, since
10539
     exists even on freestanding compilers.  */
10540
 
10541
#ifdef __STDC__
10542
# include 
10543
#else
10544
# include 
10545
#endif
10546
 
10547
#undef shl_load
10548
 
10549
/* Override any gcc2 internal prototype to avoid an error.  */
10550
#ifdef __cplusplus
10551
extern "C"
10552
{
10553
#endif
10554
/* We use char because int might match the return type of a gcc2
10555
   builtin and then its argument prototype would still apply.  */
10556
char shl_load ();
10557
/* The GNU C library defines this for functions which it implements
10558
    to always fail with ENOSYS.  Some functions are actually named
10559
    something starting with __ and the normal name is an alias.  */
10560
#if defined (__stub_shl_load) || defined (__stub___shl_load)
10561
choke me
10562
#else
10563
char (*f) () = shl_load;
10564
#endif
10565
#ifdef __cplusplus
10566
}
10567
#endif
10568
 
10569
int
10570
main ()
10571
{
10572
return f != shl_load;
10573
  ;
10574
  return 0;
10575
}
10576
_ACEOF
10577
rm -f conftest.$ac_objext conftest$ac_exeext
10578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10579
  (eval $ac_link) 2>conftest.er1
10580
  ac_status=$?
10581
  grep -v '^ *+' conftest.er1 >conftest.err
10582
  rm -f conftest.er1
10583
  cat conftest.err >&5
10584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585
  (exit $ac_status); } &&
10586
         { ac_try='test -z "$ac_c_werror_flag"
10587
                         || test ! -s conftest.err'
10588
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589
  (eval $ac_try) 2>&5
10590
  ac_status=$?
10591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592
  (exit $ac_status); }; } &&
10593
         { ac_try='test -s conftest$ac_exeext'
10594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595
  (eval $ac_try) 2>&5
10596
  ac_status=$?
10597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598
  (exit $ac_status); }; }; then
10599
  ac_cv_func_shl_load=yes
10600
else
10601
  echo "$as_me: failed program was:" >&5
10602
sed 's/^/| /' conftest.$ac_ext >&5
10603
 
10604
ac_cv_func_shl_load=no
10605
fi
10606
rm -f conftest.err conftest.$ac_objext \
10607
      conftest$ac_exeext conftest.$ac_ext
10608
fi
10609
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10610
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10611
if test $ac_cv_func_shl_load = yes; then
10612
  lt_cv_dlopen="shl_load"
10613
else
10614
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10615
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10616
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10617
  echo $ECHO_N "(cached) $ECHO_C" >&6
10618
else
10619
  ac_check_lib_save_LIBS=$LIBS
10620
LIBS="-ldld  $LIBS"
10621
cat >conftest.$ac_ext <<_ACEOF
10622
/* confdefs.h.  */
10623
_ACEOF
10624
cat confdefs.h >>conftest.$ac_ext
10625
cat >>conftest.$ac_ext <<_ACEOF
10626
/* end confdefs.h.  */
10627
 
10628
/* Override any gcc2 internal prototype to avoid an error.  */
10629
#ifdef __cplusplus
10630
extern "C"
10631
#endif
10632
/* We use char because int might match the return type of a gcc2
10633
   builtin and then its argument prototype would still apply.  */
10634
char shl_load ();
10635
int
10636
main ()
10637
{
10638
shl_load ();
10639
  ;
10640
  return 0;
10641
}
10642
_ACEOF
10643
rm -f conftest.$ac_objext conftest$ac_exeext
10644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645
  (eval $ac_link) 2>conftest.er1
10646
  ac_status=$?
10647
  grep -v '^ *+' conftest.er1 >conftest.err
10648
  rm -f conftest.er1
10649
  cat conftest.err >&5
10650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651
  (exit $ac_status); } &&
10652
         { ac_try='test -z "$ac_c_werror_flag"
10653
                         || test ! -s conftest.err'
10654
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655
  (eval $ac_try) 2>&5
10656
  ac_status=$?
10657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658
  (exit $ac_status); }; } &&
10659
         { ac_try='test -s conftest$ac_exeext'
10660
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661
  (eval $ac_try) 2>&5
10662
  ac_status=$?
10663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664
  (exit $ac_status); }; }; then
10665
  ac_cv_lib_dld_shl_load=yes
10666
else
10667
  echo "$as_me: failed program was:" >&5
10668
sed 's/^/| /' conftest.$ac_ext >&5
10669
 
10670
ac_cv_lib_dld_shl_load=no
10671
fi
10672
rm -f conftest.err conftest.$ac_objext \
10673
      conftest$ac_exeext conftest.$ac_ext
10674
LIBS=$ac_check_lib_save_LIBS
10675
fi
10676
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10677
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10678
if test $ac_cv_lib_dld_shl_load = yes; then
10679
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10680
else
10681
  echo "$as_me:$LINENO: checking for dlopen" >&5
10682
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10683
if test "${ac_cv_func_dlopen+set}" = set; then
10684
  echo $ECHO_N "(cached) $ECHO_C" >&6
10685
else
10686
  cat >conftest.$ac_ext <<_ACEOF
10687
/* confdefs.h.  */
10688
_ACEOF
10689
cat confdefs.h >>conftest.$ac_ext
10690
cat >>conftest.$ac_ext <<_ACEOF
10691
/* end confdefs.h.  */
10692
/* Define dlopen to an innocuous variant, in case  declares dlopen.
10693
   For example, HP-UX 11i  declares gettimeofday.  */
10694
#define dlopen innocuous_dlopen
10695
 
10696
/* System header to define __stub macros and hopefully few prototypes,
10697
    which can conflict with char dlopen (); below.
10698
    Prefer  to  if __STDC__ is defined, since
10699
     exists even on freestanding compilers.  */
10700
 
10701
#ifdef __STDC__
10702
# include 
10703
#else
10704
# include 
10705
#endif
10706
 
10707
#undef dlopen
10708
 
10709
/* Override any gcc2 internal prototype to avoid an error.  */
10710
#ifdef __cplusplus
10711
extern "C"
10712
{
10713
#endif
10714
/* We use char because int might match the return type of a gcc2
10715
   builtin and then its argument prototype would still apply.  */
10716
char dlopen ();
10717
/* The GNU C library defines this for functions which it implements
10718
    to always fail with ENOSYS.  Some functions are actually named
10719
    something starting with __ and the normal name is an alias.  */
10720
#if defined (__stub_dlopen) || defined (__stub___dlopen)
10721
choke me
10722
#else
10723
char (*f) () = dlopen;
10724
#endif
10725
#ifdef __cplusplus
10726
}
10727
#endif
10728
 
10729
int
10730
main ()
10731
{
10732
return f != dlopen;
10733
  ;
10734
  return 0;
10735
}
10736
_ACEOF
10737
rm -f conftest.$ac_objext conftest$ac_exeext
10738
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10739
  (eval $ac_link) 2>conftest.er1
10740
  ac_status=$?
10741
  grep -v '^ *+' conftest.er1 >conftest.err
10742
  rm -f conftest.er1
10743
  cat conftest.err >&5
10744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745
  (exit $ac_status); } &&
10746
         { ac_try='test -z "$ac_c_werror_flag"
10747
                         || test ! -s conftest.err'
10748
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749
  (eval $ac_try) 2>&5
10750
  ac_status=$?
10751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752
  (exit $ac_status); }; } &&
10753
         { ac_try='test -s conftest$ac_exeext'
10754
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755
  (eval $ac_try) 2>&5
10756
  ac_status=$?
10757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758
  (exit $ac_status); }; }; then
10759
  ac_cv_func_dlopen=yes
10760
else
10761
  echo "$as_me: failed program was:" >&5
10762
sed 's/^/| /' conftest.$ac_ext >&5
10763
 
10764
ac_cv_func_dlopen=no
10765
fi
10766
rm -f conftest.err conftest.$ac_objext \
10767
      conftest$ac_exeext conftest.$ac_ext
10768
fi
10769
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10770
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10771
if test $ac_cv_func_dlopen = yes; then
10772
  lt_cv_dlopen="dlopen"
10773
else
10774
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10775
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10776
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10777
  echo $ECHO_N "(cached) $ECHO_C" >&6
10778
else
10779
  ac_check_lib_save_LIBS=$LIBS
10780
LIBS="-ldl  $LIBS"
10781
cat >conftest.$ac_ext <<_ACEOF
10782
/* confdefs.h.  */
10783
_ACEOF
10784
cat confdefs.h >>conftest.$ac_ext
10785
cat >>conftest.$ac_ext <<_ACEOF
10786
/* end confdefs.h.  */
10787
 
10788
/* Override any gcc2 internal prototype to avoid an error.  */
10789
#ifdef __cplusplus
10790
extern "C"
10791
#endif
10792
/* We use char because int might match the return type of a gcc2
10793
   builtin and then its argument prototype would still apply.  */
10794
char dlopen ();
10795
int
10796
main ()
10797
{
10798
dlopen ();
10799
  ;
10800
  return 0;
10801
}
10802
_ACEOF
10803
rm -f conftest.$ac_objext conftest$ac_exeext
10804
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10805
  (eval $ac_link) 2>conftest.er1
10806
  ac_status=$?
10807
  grep -v '^ *+' conftest.er1 >conftest.err
10808
  rm -f conftest.er1
10809
  cat conftest.err >&5
10810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811
  (exit $ac_status); } &&
10812
         { ac_try='test -z "$ac_c_werror_flag"
10813
                         || test ! -s conftest.err'
10814
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815
  (eval $ac_try) 2>&5
10816
  ac_status=$?
10817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818
  (exit $ac_status); }; } &&
10819
         { ac_try='test -s conftest$ac_exeext'
10820
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821
  (eval $ac_try) 2>&5
10822
  ac_status=$?
10823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824
  (exit $ac_status); }; }; then
10825
  ac_cv_lib_dl_dlopen=yes
10826
else
10827
  echo "$as_me: failed program was:" >&5
10828
sed 's/^/| /' conftest.$ac_ext >&5
10829
 
10830
ac_cv_lib_dl_dlopen=no
10831
fi
10832
rm -f conftest.err conftest.$ac_objext \
10833
      conftest$ac_exeext conftest.$ac_ext
10834
LIBS=$ac_check_lib_save_LIBS
10835
fi
10836
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10837
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10838
if test $ac_cv_lib_dl_dlopen = yes; then
10839
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10840
else
10841
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10842
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10843
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10844
  echo $ECHO_N "(cached) $ECHO_C" >&6
10845
else
10846
  ac_check_lib_save_LIBS=$LIBS
10847
LIBS="-lsvld  $LIBS"
10848
cat >conftest.$ac_ext <<_ACEOF
10849
/* confdefs.h.  */
10850
_ACEOF
10851
cat confdefs.h >>conftest.$ac_ext
10852
cat >>conftest.$ac_ext <<_ACEOF
10853
/* end confdefs.h.  */
10854
 
10855
/* Override any gcc2 internal prototype to avoid an error.  */
10856
#ifdef __cplusplus
10857
extern "C"
10858
#endif
10859
/* We use char because int might match the return type of a gcc2
10860
   builtin and then its argument prototype would still apply.  */
10861
char dlopen ();
10862
int
10863
main ()
10864
{
10865
dlopen ();
10866
  ;
10867
  return 0;
10868
}
10869
_ACEOF
10870
rm -f conftest.$ac_objext conftest$ac_exeext
10871
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10872
  (eval $ac_link) 2>conftest.er1
10873
  ac_status=$?
10874
  grep -v '^ *+' conftest.er1 >conftest.err
10875
  rm -f conftest.er1
10876
  cat conftest.err >&5
10877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878
  (exit $ac_status); } &&
10879
         { ac_try='test -z "$ac_c_werror_flag"
10880
                         || test ! -s conftest.err'
10881
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10882
  (eval $ac_try) 2>&5
10883
  ac_status=$?
10884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885
  (exit $ac_status); }; } &&
10886
         { ac_try='test -s conftest$ac_exeext'
10887
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888
  (eval $ac_try) 2>&5
10889
  ac_status=$?
10890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891
  (exit $ac_status); }; }; then
10892
  ac_cv_lib_svld_dlopen=yes
10893
else
10894
  echo "$as_me: failed program was:" >&5
10895
sed 's/^/| /' conftest.$ac_ext >&5
10896
 
10897
ac_cv_lib_svld_dlopen=no
10898
fi
10899
rm -f conftest.err conftest.$ac_objext \
10900
      conftest$ac_exeext conftest.$ac_ext
10901
LIBS=$ac_check_lib_save_LIBS
10902
fi
10903
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10904
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10905
if test $ac_cv_lib_svld_dlopen = yes; then
10906
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10907
else
10908
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10909
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10910
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10911
  echo $ECHO_N "(cached) $ECHO_C" >&6
10912
else
10913
  ac_check_lib_save_LIBS=$LIBS
10914
LIBS="-ldld  $LIBS"
10915
cat >conftest.$ac_ext <<_ACEOF
10916
/* confdefs.h.  */
10917
_ACEOF
10918
cat confdefs.h >>conftest.$ac_ext
10919
cat >>conftest.$ac_ext <<_ACEOF
10920
/* end confdefs.h.  */
10921
 
10922
/* Override any gcc2 internal prototype to avoid an error.  */
10923
#ifdef __cplusplus
10924
extern "C"
10925
#endif
10926
/* We use char because int might match the return type of a gcc2
10927
   builtin and then its argument prototype would still apply.  */
10928
char dld_link ();
10929
int
10930
main ()
10931
{
10932
dld_link ();
10933
  ;
10934
  return 0;
10935
}
10936
_ACEOF
10937
rm -f conftest.$ac_objext conftest$ac_exeext
10938
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10939
  (eval $ac_link) 2>conftest.er1
10940
  ac_status=$?
10941
  grep -v '^ *+' conftest.er1 >conftest.err
10942
  rm -f conftest.er1
10943
  cat conftest.err >&5
10944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945
  (exit $ac_status); } &&
10946
         { ac_try='test -z "$ac_c_werror_flag"
10947
                         || test ! -s conftest.err'
10948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949
  (eval $ac_try) 2>&5
10950
  ac_status=$?
10951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952
  (exit $ac_status); }; } &&
10953
         { ac_try='test -s conftest$ac_exeext'
10954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955
  (eval $ac_try) 2>&5
10956
  ac_status=$?
10957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958
  (exit $ac_status); }; }; then
10959
  ac_cv_lib_dld_dld_link=yes
10960
else
10961
  echo "$as_me: failed program was:" >&5
10962
sed 's/^/| /' conftest.$ac_ext >&5
10963
 
10964
ac_cv_lib_dld_dld_link=no
10965
fi
10966
rm -f conftest.err conftest.$ac_objext \
10967
      conftest$ac_exeext conftest.$ac_ext
10968
LIBS=$ac_check_lib_save_LIBS
10969
fi
10970
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10971
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10972
if test $ac_cv_lib_dld_dld_link = yes; then
10973
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10974
fi
10975
 
10976
 
10977
fi
10978
 
10979
 
10980
fi
10981
 
10982
 
10983
fi
10984
 
10985
 
10986
fi
10987
 
10988
 
10989
fi
10990
 
10991
    ;;
10992
  esac
10993
 
10994
  if test "x$lt_cv_dlopen" != xno; then
10995
    enable_dlopen=yes
10996
  else
10997
    enable_dlopen=no
10998
  fi
10999
 
11000
  case $lt_cv_dlopen in
11001
  dlopen)
11002
    save_CPPFLAGS="$CPPFLAGS"
11003
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11004
 
11005
    save_LDFLAGS="$LDFLAGS"
11006
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11007
 
11008
    save_LIBS="$LIBS"
11009
    LIBS="$lt_cv_dlopen_libs $LIBS"
11010
 
11011
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11012
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11013
if test "${lt_cv_dlopen_self+set}" = set; then
11014
  echo $ECHO_N "(cached) $ECHO_C" >&6
11015
else
11016
          if test "$cross_compiling" = yes; then :
11017
  lt_cv_dlopen_self=cross
11018
else
11019
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11020
  lt_status=$lt_dlunknown
11021
  cat > conftest.$ac_ext <<_LT_EOF
11022
#line 11022 "configure"
11023
#include "confdefs.h"
11024
 
11025
#if HAVE_DLFCN_H
11026
#include 
11027
#endif
11028
 
11029
#include 
11030
 
11031
#ifdef RTLD_GLOBAL
11032
#  define LT_DLGLOBAL           RTLD_GLOBAL
11033
#else
11034
#  ifdef DL_GLOBAL
11035
#    define LT_DLGLOBAL         DL_GLOBAL
11036
#  else
11037
#    define LT_DLGLOBAL         0
11038
#  endif
11039
#endif
11040
 
11041
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11042
   find out it does not work in some platform. */
11043
#ifndef LT_DLLAZY_OR_NOW
11044
#  ifdef RTLD_LAZY
11045
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11046
#  else
11047
#    ifdef DL_LAZY
11048
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11049
#    else
11050
#      ifdef RTLD_NOW
11051
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11052
#      else
11053
#        ifdef DL_NOW
11054
#          define LT_DLLAZY_OR_NOW      DL_NOW
11055
#        else
11056
#          define LT_DLLAZY_OR_NOW      0
11057
#        endif
11058
#      endif
11059
#    endif
11060
#  endif
11061
#endif
11062
 
11063
void fnord() { int i=42;}
11064
int main ()
11065
{
11066
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11067
  int status = $lt_dlunknown;
11068
 
11069
  if (self)
11070
    {
11071
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11072
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11073
      /* dlclose (self); */
11074
    }
11075
  else
11076
    puts (dlerror ());
11077
 
11078
  return status;
11079
}
11080
_LT_EOF
11081
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11082
  (eval $ac_link) 2>&5
11083
  ac_status=$?
11084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11086
    (./conftest; exit; ) >&5 2>/dev/null
11087
    lt_status=$?
11088
    case x$lt_status in
11089
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11090
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11091
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11092
    esac
11093
  else :
11094
    # compilation failed
11095
    lt_cv_dlopen_self=no
11096
  fi
11097
fi
11098
rm -fr conftest*
11099
 
11100
 
11101
fi
11102
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11103
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11104
 
11105
    if test "x$lt_cv_dlopen_self" = xyes; then
11106
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11107
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11108
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11109
if test "${lt_cv_dlopen_self_static+set}" = set; then
11110
  echo $ECHO_N "(cached) $ECHO_C" >&6
11111
else
11112
          if test "$cross_compiling" = yes; then :
11113
  lt_cv_dlopen_self_static=cross
11114
else
11115
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11116
  lt_status=$lt_dlunknown
11117
  cat > conftest.$ac_ext <<_LT_EOF
11118
#line 11118 "configure"
11119
#include "confdefs.h"
11120
 
11121
#if HAVE_DLFCN_H
11122
#include 
11123
#endif
11124
 
11125
#include 
11126
 
11127
#ifdef RTLD_GLOBAL
11128
#  define LT_DLGLOBAL           RTLD_GLOBAL
11129
#else
11130
#  ifdef DL_GLOBAL
11131
#    define LT_DLGLOBAL         DL_GLOBAL
11132
#  else
11133
#    define LT_DLGLOBAL         0
11134
#  endif
11135
#endif
11136
 
11137
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11138
   find out it does not work in some platform. */
11139
#ifndef LT_DLLAZY_OR_NOW
11140
#  ifdef RTLD_LAZY
11141
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11142
#  else
11143
#    ifdef DL_LAZY
11144
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11145
#    else
11146
#      ifdef RTLD_NOW
11147
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11148
#      else
11149
#        ifdef DL_NOW
11150
#          define LT_DLLAZY_OR_NOW      DL_NOW
11151
#        else
11152
#          define LT_DLLAZY_OR_NOW      0
11153
#        endif
11154
#      endif
11155
#    endif
11156
#  endif
11157
#endif
11158
 
11159
void fnord() { int i=42;}
11160
int main ()
11161
{
11162
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11163
  int status = $lt_dlunknown;
11164
 
11165
  if (self)
11166
    {
11167
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11168
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11169
      /* dlclose (self); */
11170
    }
11171
  else
11172
    puts (dlerror ());
11173
 
11174
  return status;
11175
}
11176
_LT_EOF
11177
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11178
  (eval $ac_link) 2>&5
11179
  ac_status=$?
11180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11182
    (./conftest; exit; ) >&5 2>/dev/null
11183
    lt_status=$?
11184
    case x$lt_status in
11185
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11186
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11187
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11188
    esac
11189
  else :
11190
    # compilation failed
11191
    lt_cv_dlopen_self_static=no
11192
  fi
11193
fi
11194
rm -fr conftest*
11195
 
11196
 
11197
fi
11198
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11199
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11200
    fi
11201
 
11202
    CPPFLAGS="$save_CPPFLAGS"
11203
    LDFLAGS="$save_LDFLAGS"
11204
    LIBS="$save_LIBS"
11205
    ;;
11206
  esac
11207
 
11208
  case $lt_cv_dlopen_self in
11209
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11210
  *) enable_dlopen_self=unknown ;;
11211
  esac
11212
 
11213
  case $lt_cv_dlopen_self_static in
11214
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11215
  *) enable_dlopen_self_static=unknown ;;
11216
  esac
11217
fi
11218
 
11219
 
11220
 
11221
 
11222
 
11223
 
11224
 
11225
 
11226
 
11227
 
11228
 
11229
 
11230
 
11231
 
11232
 
11233
 
11234
 
11235
striplib=
11236
old_striplib=
11237
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11238
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11239
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11240
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11241
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11242
  echo "$as_me:$LINENO: result: yes" >&5
11243
echo "${ECHO_T}yes" >&6
11244
else
11245
# FIXME - insert some real tests, host_os isn't really good enough
11246
  case $host_os in
11247
  darwin*)
11248
    if test -n "$STRIP" ; then
11249
      striplib="$STRIP -x"
11250
      old_striplib="$STRIP -S"
11251
      echo "$as_me:$LINENO: result: yes" >&5
11252
echo "${ECHO_T}yes" >&6
11253
    else
11254
      echo "$as_me:$LINENO: result: no" >&5
11255
echo "${ECHO_T}no" >&6
11256
    fi
11257
    ;;
11258
  *)
11259
    echo "$as_me:$LINENO: result: no" >&5
11260
echo "${ECHO_T}no" >&6
11261
    ;;
11262
  esac
11263
fi
11264
 
11265
 
11266
 
11267
 
11268
 
11269
 
11270
 
11271
 
11272
 
11273
 
11274
 
11275
 
11276
  # Report which library types will actually be built
11277
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11278
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11279
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
11280
echo "${ECHO_T}$can_build_shared" >&6
11281
 
11282
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11283
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11284
  test "$can_build_shared" = "no" && enable_shared=no
11285
 
11286
  # On AIX, shared libraries and static libraries use the same namespace, and
11287
  # are all built from PIC.
11288
  case $host_os in
11289
  aix3*)
11290
    test "$enable_shared" = yes && enable_static=no
11291
    if test -n "$RANLIB"; then
11292
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11293
      postinstall_cmds='$RANLIB $lib'
11294
    fi
11295
    ;;
11296
 
11297
  aix[4-9]*)
11298
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11299
      test "$enable_shared" = yes && enable_static=no
11300
    fi
11301
    ;;
11302
  esac
11303
  echo "$as_me:$LINENO: result: $enable_shared" >&5
11304
echo "${ECHO_T}$enable_shared" >&6
11305
 
11306
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11307
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11308
  # Make sure either enable_shared or enable_static is yes.
11309
  test "$enable_shared" = yes || enable_static=yes
11310
  echo "$as_me:$LINENO: result: $enable_static" >&5
11311
echo "${ECHO_T}$enable_static" >&6
11312
 
11313
 
11314
 
11315
 
11316
fi
11317
ac_ext=c
11318
ac_cpp='$CPP $CPPFLAGS'
11319
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11320
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11321
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11322
 
11323
CC="$lt_save_CC"
11324
 
11325
 
11326
 
11327
 
11328
 
11329
 
11330
 
11331
 
11332
 
11333
 
11334
 
11335
 
11336
 
11337
                  ac_config_commands="$ac_config_commands libtool"
11338
 
11339
 
11340
 
11341
 
11342
# Only expand once:
11343
 
11344
 
11345
fi
11346
 
11347
 
11348
 
11349
subdirs="$subdirs machine sys"
11350
 
11351
 
11352
CRT0=
11353
if test "x${have_crt0}" = "xyes"; then
11354
  CRT0=crt0.o
11355
fi
11356
 
11357
 
11358
 
11359
LIBC_POSIX_LIB=
11360
if test -n "${posix_dir}"; then
11361
  if test "${use_libtool}" = "yes"; then
11362
    LIBC_POSIX_LIB=${posix_dir}/lib${posix_dir}.${aext}
11363
  else
11364
    LIBC_POSIX_LIB=${posix_dir}/lib.${aext}
11365
  fi
11366
fi
11367
 
11368
 
11369
 
11370
if test x${posix_dir} != x; then
11371
  HAVE_POSIX_DIR_TRUE=
11372
  HAVE_POSIX_DIR_FALSE='#'
11373
else
11374
  HAVE_POSIX_DIR_TRUE='#'
11375
  HAVE_POSIX_DIR_FALSE=
11376
fi
11377
 
11378
 
11379
LIBC_SIGNAL_LIB=
11380
LIBC_SIGNAL_DEF=
11381
if test -n "${signal_dir}"; then
11382
  if test "${use_libtool}" = "yes"; then
11383
    LIBC_SIGNAL_LIB=${signal_dir}/lib${signal_dir}.${aext}
11384
  else
11385
    LIBC_SIGNAL_LIB=${signal_dir}/lib.${aext}
11386
  fi
11387
  LIBC_SIGNAL_DEF=${signal_dir}/stmp-def
11388
fi
11389
 
11390
 
11391
 
11392
 
11393
if test x${signal_dir} != x; then
11394
  HAVE_SIGNAL_DIR_TRUE=
11395
  HAVE_SIGNAL_DIR_FALSE='#'
11396
else
11397
  HAVE_SIGNAL_DIR_TRUE='#'
11398
  HAVE_SIGNAL_DIR_FALSE=
11399
fi
11400
 
11401
 
11402
LIBC_STDIO_LIB=
11403
LIBC_STDIO_DEF=
11404
if test -n "${stdio_dir}"; then
11405
  if test "${use_libtool}" = "yes"; then
11406
    LIBC_STDIO_LIB=${stdio_dir}/lib${stdio_dir}.${aext}
11407
  else
11408
    LIBC_STDIO_LIB=${stdio_dir}/lib.${aext}
11409
  fi
11410
  LIBC_STDIO_DEF=${stdio_dir}/stmp-def
11411
fi
11412
 
11413
 
11414
 
11415
 
11416
if test x${stdio_dir} != x; then
11417
  HAVE_STDIO_DIR_TRUE=
11418
  HAVE_STDIO_DIR_FALSE='#'
11419
else
11420
  HAVE_STDIO_DIR_TRUE='#'
11421
  HAVE_STDIO_DIR_FALSE=
11422
fi
11423
 
11424
 
11425
LIBC_STDIO64_LIB=
11426
LIBC_STDIO64_DEF=
11427
if test -n "${stdio64_dir}"; then
11428
  if test "${use_libtool}" = "yes"; then
11429
    LIBC_STDIO64_LIB=${stdio64_dir}/lib${stdio64_dir}.${aext}
11430
  else
11431
    LIBC_STDIO64_LIB=${stdio64_dir}/lib.${aext}
11432
  fi
11433
  LIBC_STDIO64_DEF=${stdio64_dir}/stmp-def
11434
fi
11435
 
11436
 
11437
 
11438
 
11439
if test x${stdio64_dir} != x; then
11440
  HAVE_STDIO64_DIR_TRUE=
11441
  HAVE_STDIO64_DIR_FALSE='#'
11442
else
11443
  HAVE_STDIO64_DIR_TRUE='#'
11444
  HAVE_STDIO64_DIR_FALSE=
11445
fi
11446
 
11447
 
11448
LIBC_SYSCALL_LIB=
11449
if test -n "${syscall_dir}"; then
11450
  if test "${use_libtool}" = "yes"; then
11451
    LIBC_SYSCALL_LIB=${syscall_dir}/lib${syscall_dir}.${aext}
11452
  else
11453
    LIBC_SYSCALL_LIB=${syscall_dir}/lib.${aext}
11454
  fi
11455
fi
11456
 
11457
 
11458
 
11459
if test x${syscall_dir} != x; then
11460
  HAVE_SYSCALL_DIR_TRUE=
11461
  HAVE_SYSCALL_DIR_FALSE='#'
11462
else
11463
  HAVE_SYSCALL_DIR_TRUE='#'
11464
  HAVE_SYSCALL_DIR_FALSE=
11465
fi
11466
 
11467
 
11468
LIBC_UNIX_LIB=
11469
if test -n "${unix_dir}"; then
11470
  if test "${use_libtool}" = "yes"; then
11471
    LIBC_UNIX_LIB=${unix_dir}/lib${unix_dir}.${aext}
11472
  else
11473
    LIBC_UNIX_LIB=${unix_dir}/lib.${aext}
11474
  fi
11475
fi
11476
 
11477
 
11478
 
11479
if test x${unix_dir} != x; then
11480
  HAVE_UNIX_DIR_TRUE=
11481
  HAVE_UNIX_DIR_FALSE='#'
11482
else
11483
  HAVE_UNIX_DIR_TRUE='#'
11484
  HAVE_UNIX_DIR_FALSE=
11485
fi
11486
 
11487
 
11488
LIBC_EXTRA_LIB=
11489
LIBC_EXTRA_DEF=
11490
extra_dir=
11491
 
11492
 
11493
 
11494
 
11495
 
11496
 
11497
LIBC_SYS_LIB=
11498
if test -n "${sys_dir}"; then
11499
  if test "${use_libtool}" = "yes"; then
11500
    LIBC_SYS_LIB=sys/${sys_dir}/lib${sys_dir}.${aext}
11501
  else
11502
    LIBC_SYS_LIB=sys/lib.${aext}
11503
  fi
11504
fi
11505
 
11506
 
11507
 
11508
 
11509
 
11510
if test x${newlib_iconv} != x; then
11511
  ENABLE_NEWLIB_ICONV_TRUE=
11512
  ENABLE_NEWLIB_ICONV_FALSE='#'
11513
else
11514
  ENABLE_NEWLIB_ICONV_TRUE='#'
11515
  ENABLE_NEWLIB_ICONV_FALSE=
11516
fi
11517
 
11518
 
11519
if test -n "${machine_dir}"; then
11520
  if test "${use_libtool}" = "yes"; then
11521
    LIBC_MACHINE_LIB=machine/${machine_dir}/lib${machine_dir}.${aext}
11522
  else
11523
    LIBC_MACHINE_LIB=machine/lib.${aext}
11524
  fi
11525
fi
11526
 
11527
 
11528
 
11529
                                                                                                                                                                                                                            ac_config_files="$ac_config_files Makefile argz/Makefile ctype/Makefile errno/Makefile locale/Makefile misc/Makefile reent/Makefile search/Makefile stdio/Makefile stdio64/Makefile stdlib/Makefile string/Makefile time/Makefile posix/Makefile signal/Makefile syscalls/Makefile unix/Makefile iconv/Makefile iconv/ces/Makefile iconv/ccs/Makefile iconv/ccs/binary/Makefile iconv/lib/Makefile"
11530
 
11531
cat >confcache <<\_ACEOF
11532
# This file is a shell script that caches the results of configure
11533
# tests run on this system so they can be shared between configure
11534
# scripts and configure runs, see configure's option --config-cache.
11535
# It is not useful on other systems.  If it contains results you don't
11536
# want to keep, you may remove or edit it.
11537
#
11538
# config.status only pays attention to the cache file if you give it
11539
# the --recheck option to rerun configure.
11540
#
11541
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11542
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11543
# following values.
11544
 
11545
_ACEOF
11546
 
11547
# The following way of writing the cache mishandles newlines in values,
11548
# but we know of no workaround that is simple, portable, and efficient.
11549
# So, don't put newlines in cache variables' values.
11550
# Ultrix sh set writes to stderr and can't be redirected directly,
11551
# and sets the high bit in the cache file unless we assign to the vars.
11552
{
11553
  (set) 2>&1 |
11554
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11555
    *ac_space=\ *)
11556
      # `set' does not quote correctly, so add quotes (double-quote
11557
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11558
      sed -n \
11559
        "s/'/'\\\\''/g;
11560
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11561
      ;;
11562
    *)
11563
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11564
      sed -n \
11565
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11566
      ;;
11567
    esac;
11568
} |
11569
  sed '
11570
     t clear
11571
     : clear
11572
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11573
     t end
11574
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11575
     : end' >>confcache
11576
if diff $cache_file confcache >/dev/null 2>&1; then :; else
11577
  if test -w $cache_file; then
11578
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11579
    cat confcache >$cache_file
11580
  else
11581
    echo "not updating unwritable cache $cache_file"
11582
  fi
11583
fi
11584
rm -f confcache
11585
 
11586
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11587
# Let make expand exec_prefix.
11588
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11589
 
11590
# VPATH may cause trouble with some makes, so we remove $(srcdir),
11591
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11592
# trailing colons and then remove the whole line if VPATH becomes empty
11593
# (actually we leave an empty line to preserve line numbers).
11594
if test "x$srcdir" = x.; then
11595
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11596
s/:*\$(srcdir):*/:/;
11597
s/:*\${srcdir}:*/:/;
11598
s/:*@srcdir@:*/:/;
11599
s/^\([^=]*=[     ]*\):*/\1/;
11600
s/:*$//;
11601
s/^[^=]*=[       ]*$//;
11602
}'
11603
fi
11604
 
11605
# Transform confdefs.h into DEFS.
11606
# Protect against shell expansion while executing Makefile rules.
11607
# Protect against Makefile macro expansion.
11608
#
11609
# If the first sed substitution is executed (which looks for macros that
11610
# take arguments), then we branch to the quote section.  Otherwise,
11611
# look for a macro that doesn't take arguments.
11612
cat >confdef2opt.sed <<\_ACEOF
11613
t clear
11614
: clear
11615
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
11616
t quote
11617
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
11618
t quote
11619
d
11620
: quote
11621
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
11622
s,\[,\\&,g
11623
s,\],\\&,g
11624
s,\$,$$,g
11625
p
11626
_ACEOF
11627
# We use echo to avoid assuming a particular line-breaking character.
11628
# The extra dot is to prevent the shell from consuming trailing
11629
# line-breaks from the sub-command output.  A line-break within
11630
# single-quotes doesn't work because, if this script is created in a
11631
# platform that uses two characters for line-breaks (e.g., DOS), tr
11632
# would break.
11633
ac_LF_and_DOT=`echo; echo .`
11634
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11635
rm -f confdef2opt.sed
11636
 
11637
 
11638
ac_libobjs=
11639
ac_ltlibobjs=
11640
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11641
  # 1. Remove the extension, and $U if already installed.
11642
  ac_i=`echo "$ac_i" |
11643
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11644
  # 2. Add them.
11645
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11646
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11647
done
11648
LIBOBJS=$ac_libobjs
11649
 
11650
LTLIBOBJS=$ac_ltlibobjs
11651
 
11652
 
11653
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
11654
  { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11655
Usually this means the macro was only invoked conditionally." >&5
11656
echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11657
Usually this means the macro was only invoked conditionally." >&2;}
11658
   { (exit 1); exit 1; }; }
11659
fi
11660
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11661
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11662
Usually this means the macro was only invoked conditionally." >&5
11663
echo "$as_me: error: conditional \"AMDEP\" was never defined.
11664
Usually this means the macro was only invoked conditionally." >&2;}
11665
   { (exit 1); exit 1; }; }
11666
fi
11667
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11668
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11669
Usually this means the macro was only invoked conditionally." >&5
11670
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11671
Usually this means the macro was only invoked conditionally." >&2;}
11672
   { (exit 1); exit 1; }; }
11673
fi
11674
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11675
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11676
Usually this means the macro was only invoked conditionally." >&5
11677
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11678
Usually this means the macro was only invoked conditionally." >&2;}
11679
   { (exit 1); exit 1; }; }
11680
fi
11681
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
11682
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
11683
Usually this means the macro was only invoked conditionally." >&5
11684
echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
11685
Usually this means the macro was only invoked conditionally." >&2;}
11686
   { (exit 1); exit 1; }; }
11687
fi
11688
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
11689
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
11690
Usually this means the macro was only invoked conditionally." >&5
11691
echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
11692
Usually this means the macro was only invoked conditionally." >&2;}
11693
   { (exit 1); exit 1; }; }
11694
fi
11695
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
11696
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
11697
Usually this means the macro was only invoked conditionally." >&5
11698
echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
11699
Usually this means the macro was only invoked conditionally." >&2;}
11700
   { (exit 1); exit 1; }; }
11701
fi
11702
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
11703
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
11704
Usually this means the macro was only invoked conditionally." >&5
11705
echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
11706
Usually this means the macro was only invoked conditionally." >&2;}
11707
   { (exit 1); exit 1; }; }
11708
fi
11709
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
11710
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
11711
Usually this means the macro was only invoked conditionally." >&5
11712
echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
11713
Usually this means the macro was only invoked conditionally." >&2;}
11714
   { (exit 1); exit 1; }; }
11715
fi
11716
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
11717
  { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
11718
Usually this means the macro was only invoked conditionally." >&5
11719
echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
11720
Usually this means the macro was only invoked conditionally." >&2;}
11721
   { (exit 1); exit 1; }; }
11722
fi
11723
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11724
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11725
Usually this means the macro was only invoked conditionally." >&5
11726
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11727
Usually this means the macro was only invoked conditionally." >&2;}
11728
   { (exit 1); exit 1; }; }
11729
fi
11730
if test -z "${HAVE_POSIX_DIR_TRUE}" && test -z "${HAVE_POSIX_DIR_FALSE}"; then
11731
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_POSIX_DIR\" was never defined.
11732
Usually this means the macro was only invoked conditionally." >&5
11733
echo "$as_me: error: conditional \"HAVE_POSIX_DIR\" was never defined.
11734
Usually this means the macro was only invoked conditionally." >&2;}
11735
   { (exit 1); exit 1; }; }
11736
fi
11737
if test -z "${HAVE_SIGNAL_DIR_TRUE}" && test -z "${HAVE_SIGNAL_DIR_FALSE}"; then
11738
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_SIGNAL_DIR\" was never defined.
11739
Usually this means the macro was only invoked conditionally." >&5
11740
echo "$as_me: error: conditional \"HAVE_SIGNAL_DIR\" was never defined.
11741
Usually this means the macro was only invoked conditionally." >&2;}
11742
   { (exit 1); exit 1; }; }
11743
fi
11744
if test -z "${HAVE_STDIO_DIR_TRUE}" && test -z "${HAVE_STDIO_DIR_FALSE}"; then
11745
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_STDIO_DIR\" was never defined.
11746
Usually this means the macro was only invoked conditionally." >&5
11747
echo "$as_me: error: conditional \"HAVE_STDIO_DIR\" was never defined.
11748
Usually this means the macro was only invoked conditionally." >&2;}
11749
   { (exit 1); exit 1; }; }
11750
fi
11751
if test -z "${HAVE_STDIO64_DIR_TRUE}" && test -z "${HAVE_STDIO64_DIR_FALSE}"; then
11752
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_STDIO64_DIR\" was never defined.
11753
Usually this means the macro was only invoked conditionally." >&5
11754
echo "$as_me: error: conditional \"HAVE_STDIO64_DIR\" was never defined.
11755
Usually this means the macro was only invoked conditionally." >&2;}
11756
   { (exit 1); exit 1; }; }
11757
fi
11758
if test -z "${HAVE_SYSCALL_DIR_TRUE}" && test -z "${HAVE_SYSCALL_DIR_FALSE}"; then
11759
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_SYSCALL_DIR\" was never defined.
11760
Usually this means the macro was only invoked conditionally." >&5
11761
echo "$as_me: error: conditional \"HAVE_SYSCALL_DIR\" was never defined.
11762
Usually this means the macro was only invoked conditionally." >&2;}
11763
   { (exit 1); exit 1; }; }
11764
fi
11765
if test -z "${HAVE_UNIX_DIR_TRUE}" && test -z "${HAVE_UNIX_DIR_FALSE}"; then
11766
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_UNIX_DIR\" was never defined.
11767
Usually this means the macro was only invoked conditionally." >&5
11768
echo "$as_me: error: conditional \"HAVE_UNIX_DIR\" was never defined.
11769
Usually this means the macro was only invoked conditionally." >&2;}
11770
   { (exit 1); exit 1; }; }
11771
fi
11772
if test -z "${ENABLE_NEWLIB_ICONV_TRUE}" && test -z "${ENABLE_NEWLIB_ICONV_FALSE}"; then
11773
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_NEWLIB_ICONV\" was never defined.
11774
Usually this means the macro was only invoked conditionally." >&5
11775
echo "$as_me: error: conditional \"ENABLE_NEWLIB_ICONV\" was never defined.
11776
Usually this means the macro was only invoked conditionally." >&2;}
11777
   { (exit 1); exit 1; }; }
11778
fi
11779
 
11780
: ${CONFIG_STATUS=./config.status}
11781
ac_clean_files_save=$ac_clean_files
11782
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11783
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11784
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11785
cat >$CONFIG_STATUS <<_ACEOF
11786
#! $SHELL
11787
# Generated by $as_me.
11788
# Run this file to recreate the current configuration.
11789
# Compiler output produced by configure, useful for debugging
11790
# configure, is in config.log if it exists.
11791
 
11792
debug=false
11793
ac_cs_recheck=false
11794
ac_cs_silent=false
11795
SHELL=\${CONFIG_SHELL-$SHELL}
11796
_ACEOF
11797
 
11798
cat >>$CONFIG_STATUS <<\_ACEOF
11799
## --------------------- ##
11800
## M4sh Initialization.  ##
11801
## --------------------- ##
11802
 
11803
# Be Bourne compatible
11804
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11805
  emulate sh
11806
  NULLCMD=:
11807
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11808
  # is contrary to our usage.  Disable this feature.
11809
  alias -g '${1+"$@"}'='"$@"'
11810
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11811
  set -o posix
11812
fi
11813
DUALCASE=1; export DUALCASE # for MKS sh
11814
 
11815
# Support unset when possible.
11816
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11817
  as_unset=unset
11818
else
11819
  as_unset=false
11820
fi
11821
 
11822
 
11823
# Work around bugs in pre-3.0 UWIN ksh.
11824
$as_unset ENV MAIL MAILPATH
11825
PS1='$ '
11826
PS2='> '
11827
PS4='+ '
11828
 
11829
# NLS nuisances.
11830
for as_var in \
11831
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11832
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11833
  LC_TELEPHONE LC_TIME
11834
do
11835
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11836
    eval $as_var=C; export $as_var
11837
  else
11838
    $as_unset $as_var
11839
  fi
11840
done
11841
 
11842
# Required to use basename.
11843
if expr a : '\(a\)' >/dev/null 2>&1; then
11844
  as_expr=expr
11845
else
11846
  as_expr=false
11847
fi
11848
 
11849
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11850
  as_basename=basename
11851
else
11852
  as_basename=false
11853
fi
11854
 
11855
 
11856
# Name of the executable.
11857
as_me=`$as_basename "$0" ||
11858
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11859
         X"$0" : 'X\(//\)$' \| \
11860
         X"$0" : 'X\(/\)$' \| \
11861
         .     : '\(.\)' 2>/dev/null ||
11862
echo X/"$0" |
11863
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11864
          /^X\/\(\/\/\)$/{ s//\1/; q; }
11865
          /^X\/\(\/\).*/{ s//\1/; q; }
11866
          s/.*/./; q'`
11867
 
11868
 
11869
# PATH needs CR, and LINENO needs CR and PATH.
11870
# Avoid depending upon Character Ranges.
11871
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11872
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11873
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11874
as_cr_digits='0123456789'
11875
as_cr_alnum=$as_cr_Letters$as_cr_digits
11876
 
11877
# The user is always right.
11878
if test "${PATH_SEPARATOR+set}" != set; then
11879
  echo "#! /bin/sh" >conf$$.sh
11880
  echo  "exit 0"   >>conf$$.sh
11881
  chmod +x conf$$.sh
11882
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11883
    PATH_SEPARATOR=';'
11884
  else
11885
    PATH_SEPARATOR=:
11886
  fi
11887
  rm -f conf$$.sh
11888
fi
11889
 
11890
 
11891
  as_lineno_1=$LINENO
11892
  as_lineno_2=$LINENO
11893
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11894
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11895
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11896
  # Find who we are.  Look in the path if we contain no path at all
11897
  # relative or not.
11898
  case $0 in
11899
    *[\\/]* ) as_myself=$0 ;;
11900
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11901
for as_dir in $PATH
11902
do
11903
  IFS=$as_save_IFS
11904
  test -z "$as_dir" && as_dir=.
11905
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11906
done
11907
 
11908
       ;;
11909
  esac
11910
  # We did not find ourselves, most probably we were run as `sh COMMAND'
11911
  # in which case we are not to be found in the path.
11912
  if test "x$as_myself" = x; then
11913
    as_myself=$0
11914
  fi
11915
  if test ! -f "$as_myself"; then
11916
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11917
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11918
   { (exit 1); exit 1; }; }
11919
  fi
11920
  case $CONFIG_SHELL in
11921
  '')
11922
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11923
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11924
do
11925
  IFS=$as_save_IFS
11926
  test -z "$as_dir" && as_dir=.
11927
  for as_base in sh bash ksh sh5; do
11928
         case $as_dir in
11929
         /*)
11930
           if ("$as_dir/$as_base" -c '
11931
  as_lineno_1=$LINENO
11932
  as_lineno_2=$LINENO
11933
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11934
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11935
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11936
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11937
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11938
             CONFIG_SHELL=$as_dir/$as_base
11939
             export CONFIG_SHELL
11940
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11941
           fi;;
11942
         esac
11943
       done
11944
done
11945
;;
11946
  esac
11947
 
11948
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11949
  # uniformly replaced by the line number.  The first 'sed' inserts a
11950
  # line-number line before each line; the second 'sed' does the real
11951
  # work.  The second script uses 'N' to pair each line-number line
11952
  # with the numbered line, and appends trailing '-' during
11953
  # substitution so that $LINENO is not a special case at line end.
11954
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11955
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11956
  sed '=' <$as_myself |
11957
    sed '
11958
      N
11959
      s,$,-,
11960
      : loop
11961
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11962
      t loop
11963
      s,-$,,
11964
      s,^['$as_cr_digits']*\n,,
11965
    ' >$as_me.lineno &&
11966
  chmod +x $as_me.lineno ||
11967
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11968
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11969
   { (exit 1); exit 1; }; }
11970
 
11971
  # Don't try to exec as it changes $[0], causing all sort of problems
11972
  # (the dirname of $[0] is not the place where we might find the
11973
  # original and so on.  Autoconf is especially sensible to this).
11974
  . ./$as_me.lineno
11975
  # Exit status is that of the last command.
11976
  exit
11977
}
11978
 
11979
 
11980
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11981
  *c*,-n*) ECHO_N= ECHO_C='
11982
' ECHO_T='      ' ;;
11983
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11984
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11985
esac
11986
 
11987
if expr a : '\(a\)' >/dev/null 2>&1; then
11988
  as_expr=expr
11989
else
11990
  as_expr=false
11991
fi
11992
 
11993
rm -f conf$$ conf$$.exe conf$$.file
11994
echo >conf$$.file
11995
if ln -s conf$$.file conf$$ 2>/dev/null; then
11996
  # We could just check for DJGPP; but this test a) works b) is more generic
11997
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11998
  if test -f conf$$.exe; then
11999
    # Don't use ln at all; we don't have any links
12000
    as_ln_s='cp -p'
12001
  else
12002
    as_ln_s='ln -s'
12003
  fi
12004
elif ln conf$$.file conf$$ 2>/dev/null; then
12005
  as_ln_s=ln
12006
else
12007
  as_ln_s='cp -p'
12008
fi
12009
rm -f conf$$ conf$$.exe conf$$.file
12010
 
12011
if mkdir -p . 2>/dev/null; then
12012
  as_mkdir_p=:
12013
else
12014
  test -d ./-p && rmdir ./-p
12015
  as_mkdir_p=false
12016
fi
12017
 
12018
as_executable_p="test -f"
12019
 
12020
# Sed expression to map a string onto a valid CPP name.
12021
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12022
 
12023
# Sed expression to map a string onto a valid variable name.
12024
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12025
 
12026
 
12027
# IFS
12028
# We need space, tab and new line, in precisely that order.
12029
as_nl='
12030
'
12031
IFS="   $as_nl"
12032
 
12033
# CDPATH.
12034
$as_unset CDPATH
12035
 
12036
exec 6>&1
12037
 
12038
# Open the log real soon, to keep \$[0] and so on meaningful, and to
12039
# report actual input values of CONFIG_FILES etc. instead of their
12040
# values after options handling.  Logging --version etc. is OK.
12041
exec 5>>config.log
12042
{
12043
  echo
12044
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12045
## Running $as_me. ##
12046
_ASBOX
12047
} >&5
12048
cat >&5 <<_CSEOF
12049
 
12050
This file was extended by newlib $as_me 1.17.0, which was
12051
generated by GNU Autoconf 2.59.  Invocation command line was
12052
 
12053
  CONFIG_FILES    = $CONFIG_FILES
12054
  CONFIG_HEADERS  = $CONFIG_HEADERS
12055
  CONFIG_LINKS    = $CONFIG_LINKS
12056
  CONFIG_COMMANDS = $CONFIG_COMMANDS
12057
  $ $0 $@
12058
 
12059
_CSEOF
12060
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12061
echo >&5
12062
_ACEOF
12063
 
12064
# Files that config.status was made for.
12065
if test -n "$ac_config_files"; then
12066
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12067
fi
12068
 
12069
if test -n "$ac_config_headers"; then
12070
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12071
fi
12072
 
12073
if test -n "$ac_config_links"; then
12074
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12075
fi
12076
 
12077
if test -n "$ac_config_commands"; then
12078
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12079
fi
12080
 
12081
cat >>$CONFIG_STATUS <<\_ACEOF
12082
 
12083
ac_cs_usage="\
12084
\`$as_me' instantiates files from templates according to the
12085
current configuration.
12086
 
12087
Usage: $0 [OPTIONS] [FILE]...
12088
 
12089
  -h, --help       print this help, then exit
12090
  -V, --version    print version number, then exit
12091
  -q, --quiet      do not print progress messages
12092
  -d, --debug      don't remove temporary files
12093
      --recheck    update $as_me by reconfiguring in the same conditions
12094
  --file=FILE[:TEMPLATE]
12095
                   instantiate the configuration file FILE
12096
 
12097
Configuration files:
12098
$config_files
12099
 
12100
Configuration commands:
12101
$config_commands
12102
 
12103
Report bugs to ."
12104
_ACEOF
12105
 
12106
cat >>$CONFIG_STATUS <<_ACEOF
12107
ac_cs_version="\\
12108
newlib config.status 1.17.0
12109
configured by $0, generated by GNU Autoconf 2.59,
12110
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12111
 
12112
Copyright (C) 2003 Free Software Foundation, Inc.
12113
This config.status script is free software; the Free Software Foundation
12114
gives unlimited permission to copy, distribute and modify it."
12115
srcdir=$srcdir
12116
INSTALL="$INSTALL"
12117
_ACEOF
12118
 
12119
cat >>$CONFIG_STATUS <<\_ACEOF
12120
# If no file are specified by the user, then we need to provide default
12121
# value.  By we need to know if files were specified by the user.
12122
ac_need_defaults=:
12123
while test $# != 0
12124
do
12125
  case $1 in
12126
  --*=*)
12127
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12128
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12129
    ac_shift=:
12130
    ;;
12131
  -*)
12132
    ac_option=$1
12133
    ac_optarg=$2
12134
    ac_shift=shift
12135
    ;;
12136
  *) # This is not an option, so the user has probably given explicit
12137
     # arguments.
12138
     ac_option=$1
12139
     ac_need_defaults=false;;
12140
  esac
12141
 
12142
  case $ac_option in
12143
  # Handling of the options.
12144
_ACEOF
12145
cat >>$CONFIG_STATUS <<\_ACEOF
12146
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12147
    ac_cs_recheck=: ;;
12148
  --version | --vers* | -V )
12149
    echo "$ac_cs_version"; exit 0 ;;
12150
  --he | --h)
12151
    # Conflict between --help and --header
12152
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
12153
Try \`$0 --help' for more information." >&5
12154
echo "$as_me: error: ambiguous option: $1
12155
Try \`$0 --help' for more information." >&2;}
12156
   { (exit 1); exit 1; }; };;
12157
  --help | --hel | -h )
12158
    echo "$ac_cs_usage"; exit 0 ;;
12159
  --debug | --d* | -d )
12160
    debug=: ;;
12161
  --file | --fil | --fi | --f )
12162
    $ac_shift
12163
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12164
    ac_need_defaults=false;;
12165
  --header | --heade | --head | --hea )
12166
    $ac_shift
12167
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12168
    ac_need_defaults=false;;
12169
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12170
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12171
    ac_cs_silent=: ;;
12172
 
12173
  # This is an error.
12174
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12175
Try \`$0 --help' for more information." >&5
12176
echo "$as_me: error: unrecognized option: $1
12177
Try \`$0 --help' for more information." >&2;}
12178
   { (exit 1); exit 1; }; } ;;
12179
 
12180
  *) ac_config_targets="$ac_config_targets $1" ;;
12181
 
12182
  esac
12183
  shift
12184
done
12185
 
12186
ac_configure_extra_args=
12187
 
12188
if $ac_cs_silent; then
12189
  exec 6>/dev/null
12190
  ac_configure_extra_args="$ac_configure_extra_args --silent"
12191
fi
12192
 
12193
_ACEOF
12194
cat >>$CONFIG_STATUS <<_ACEOF
12195
if \$ac_cs_recheck; then
12196
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12197
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12198
fi
12199
 
12200
_ACEOF
12201
 
12202
cat >>$CONFIG_STATUS <<_ACEOF
12203
#
12204
# INIT-COMMANDS section.
12205
#
12206
 
12207
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12208
 
12209
 
12210
# The HP-UX ksh and POSIX shell print the target directory to stdout
12211
# if CDPATH is set.
12212
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12213
 
12214
sed_quote_subst='$sed_quote_subst'
12215
double_quote_subst='$double_quote_subst'
12216
delay_variable_subst='$delay_variable_subst'
12217
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12218
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12219
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12220
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12221
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12222
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12223
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12224
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12225
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12226
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12227
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12228
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12229
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12230
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12231
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12232
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12233
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12234
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12235
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12236
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12237
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12238
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12239
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12240
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12241
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12242
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12243
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12244
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12245
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12246
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12247
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12248
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12249
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12250
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12251
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12252
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12253
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12254
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12255
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12256
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12257
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12258
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12259
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12260
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12261
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12262
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12263
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"`'
12264
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12265
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12266
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12267
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12268
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12269
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12270
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12271
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12272
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12273
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12274
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12275
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12276
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12277
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12278
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12279
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12280
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12281
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12282
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12283
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12284
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12285
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12286
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12287
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12288
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12289
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12290
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12291
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12292
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12293
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12294
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12295
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12296
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12297
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12298
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12299
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12300
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12301
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12302
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12303
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12304
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12305
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12306
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12307
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12308
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12309
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12310
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12311
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12312
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12313
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12314
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12315
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12316
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12317
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12318
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12319
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12320
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12321
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12322
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12323
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12324
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12325
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12326
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12327
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12328
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12329
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12330
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12331
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12332
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12333
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12334
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12335
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12336
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12337
 
12338
LTCC='$LTCC'
12339
LTCFLAGS='$LTCFLAGS'
12340
compiler='$compiler_DEFAULT'
12341
 
12342
# Quote evaled strings.
12343
for var in SED \
12344
GREP \
12345
EGREP \
12346
FGREP \
12347
LD \
12348
NM \
12349
LN_S \
12350
lt_SP2NL \
12351
lt_NL2SP \
12352
reload_flag \
12353
deplibs_check_method \
12354
file_magic_cmd \
12355
AR \
12356
AR_FLAGS \
12357
STRIP \
12358
RANLIB \
12359
CC \
12360
CFLAGS \
12361
compiler \
12362
lt_cv_sys_global_symbol_pipe \
12363
lt_cv_sys_global_symbol_to_cdecl \
12364
lt_cv_sys_global_symbol_to_c_name_address \
12365
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12366
SHELL \
12367
ECHO \
12368
lt_prog_compiler_no_builtin_flag \
12369
lt_prog_compiler_wl \
12370
lt_prog_compiler_pic \
12371
lt_prog_compiler_static \
12372
lt_cv_prog_compiler_c_o \
12373
need_locks \
12374
DSYMUTIL \
12375
NMEDIT \
12376
LIPO \
12377
OTOOL \
12378
OTOOL64 \
12379
shrext_cmds \
12380
export_dynamic_flag_spec \
12381
whole_archive_flag_spec \
12382
compiler_needs_object \
12383
with_gnu_ld \
12384
allow_undefined_flag \
12385
no_undefined_flag \
12386
hardcode_libdir_flag_spec \
12387
hardcode_libdir_flag_spec_ld \
12388
hardcode_libdir_separator \
12389
fix_srcfile_path \
12390
exclude_expsyms \
12391
include_expsyms \
12392
file_list_spec \
12393
variables_saved_for_relink \
12394
libname_spec \
12395
library_names_spec \
12396
soname_spec \
12397
finish_eval \
12398
old_striplib \
12399
striplib; do
12400
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12401
    *[\\\\\\\`\\"\\\$]*)
12402
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12403
      ;;
12404
    *)
12405
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12406
      ;;
12407
    esac
12408
done
12409
 
12410
# Double-quote double-evaled strings.
12411
for var in reload_cmds \
12412
old_postinstall_cmds \
12413
old_postuninstall_cmds \
12414
old_archive_cmds \
12415
extract_expsyms_cmds \
12416
old_archive_from_new_cmds \
12417
old_archive_from_expsyms_cmds \
12418
archive_cmds \
12419
archive_expsym_cmds \
12420
module_cmds \
12421
module_expsym_cmds \
12422
export_symbols_cmds \
12423
prelink_cmds \
12424
postinstall_cmds \
12425
postuninstall_cmds \
12426
finish_cmds \
12427
sys_lib_search_path_spec \
12428
sys_lib_dlsearch_path_spec; do
12429
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12430
    *[\\\\\\\`\\"\\\$]*)
12431
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12432
      ;;
12433
    *)
12434
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12435
      ;;
12436
    esac
12437
done
12438
 
12439
# Fix-up fallback echo if it was mangled by the above quoting rules.
12440
case \$lt_ECHO in
12441
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12442
  ;;
12443
esac
12444
 
12445
ac_aux_dir='$ac_aux_dir'
12446
xsi_shell='$xsi_shell'
12447
lt_shell_append='$lt_shell_append'
12448
 
12449
# See if we are running on zsh, and set the options which allow our
12450
# commands through without removal of \ escapes INIT.
12451
if test -n "\${ZSH_VERSION+set}" ; then
12452
   setopt NO_GLOB_SUBST
12453
fi
12454
 
12455
 
12456
    PACKAGE='$PACKAGE'
12457
    VERSION='$VERSION'
12458
    TIMESTAMP='$TIMESTAMP'
12459
    RM='$RM'
12460
    ofile='$ofile'
12461
 
12462
 
12463
 
12464
 
12465
_ACEOF
12466
 
12467
 
12468
 
12469
cat >>$CONFIG_STATUS <<\_ACEOF
12470
for ac_config_target in $ac_config_targets
12471
do
12472
  case "$ac_config_target" in
12473
  # Handling of arguments.
12474
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12475
  "argz/Makefile" ) CONFIG_FILES="$CONFIG_FILES argz/Makefile" ;;
12476
  "ctype/Makefile" ) CONFIG_FILES="$CONFIG_FILES ctype/Makefile" ;;
12477
  "errno/Makefile" ) CONFIG_FILES="$CONFIG_FILES errno/Makefile" ;;
12478
  "locale/Makefile" ) CONFIG_FILES="$CONFIG_FILES locale/Makefile" ;;
12479
  "misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
12480
  "reent/Makefile" ) CONFIG_FILES="$CONFIG_FILES reent/Makefile" ;;
12481
  "search/Makefile" ) CONFIG_FILES="$CONFIG_FILES search/Makefile" ;;
12482
  "stdio/Makefile" ) CONFIG_FILES="$CONFIG_FILES stdio/Makefile" ;;
12483
  "stdio64/Makefile" ) CONFIG_FILES="$CONFIG_FILES stdio64/Makefile" ;;
12484
  "stdlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES stdlib/Makefile" ;;
12485
  "string/Makefile" ) CONFIG_FILES="$CONFIG_FILES string/Makefile" ;;
12486
  "time/Makefile" ) CONFIG_FILES="$CONFIG_FILES time/Makefile" ;;
12487
  "posix/Makefile" ) CONFIG_FILES="$CONFIG_FILES posix/Makefile" ;;
12488
  "signal/Makefile" ) CONFIG_FILES="$CONFIG_FILES signal/Makefile" ;;
12489
  "syscalls/Makefile" ) CONFIG_FILES="$CONFIG_FILES syscalls/Makefile" ;;
12490
  "unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES unix/Makefile" ;;
12491
  "iconv/Makefile" ) CONFIG_FILES="$CONFIG_FILES iconv/Makefile" ;;
12492
  "iconv/ces/Makefile" ) CONFIG_FILES="$CONFIG_FILES iconv/ces/Makefile" ;;
12493
  "iconv/ccs/Makefile" ) CONFIG_FILES="$CONFIG_FILES iconv/ccs/Makefile" ;;
12494
  "iconv/ccs/binary/Makefile" ) CONFIG_FILES="$CONFIG_FILES iconv/ccs/binary/Makefile" ;;
12495
  "iconv/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES iconv/lib/Makefile" ;;
12496
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12497
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12498
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12499
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12500
   { (exit 1); exit 1; }; };;
12501
  esac
12502
done
12503
 
12504
# If the user did not use the arguments to specify the items to instantiate,
12505
# then the envvar interface is used.  Set only those that are not.
12506
# We use the long form for the default assignment because of an extremely
12507
# bizarre bug on SunOS 4.1.3.
12508
if $ac_need_defaults; then
12509
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12510
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12511
fi
12512
 
12513
# Have a temporary directory for convenience.  Make it in the build tree
12514
# simply because there is no reason to put it here, and in addition,
12515
# creating and moving files from /tmp can sometimes cause problems.
12516
# Create a temporary directory, and hook for its removal unless debugging.
12517
$debug ||
12518
{
12519
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12520
  trap '{ (exit 1); exit 1; }' 1 2 13 15
12521
}
12522
 
12523
# Create a (secure) tmp directory for tmp files.
12524
 
12525
{
12526
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12527
  test -n "$tmp" && test -d "$tmp"
12528
}  ||
12529
{
12530
  tmp=./confstat$$-$RANDOM
12531
  (umask 077 && mkdir $tmp)
12532
} ||
12533
{
12534
   echo "$me: cannot create a temporary directory in ." >&2
12535
   { (exit 1); exit 1; }
12536
}
12537
 
12538
_ACEOF
12539
 
12540
cat >>$CONFIG_STATUS <<_ACEOF
12541
 
12542
#
12543
# CONFIG_FILES section.
12544
#
12545
 
12546
# No need to generate the scripts if there are no CONFIG_FILES.
12547
# This happens for instance when ./config.status config.h
12548
if test -n "\$CONFIG_FILES"; then
12549
  # Protect against being on the right side of a sed subst in config.status.
12550
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12551
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12552
s,@SHELL@,$SHELL,;t t
12553
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12554
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12555
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12556
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12557
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12558
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12559
s,@exec_prefix@,$exec_prefix,;t t
12560
s,@prefix@,$prefix,;t t
12561
s,@program_transform_name@,$program_transform_name,;t t
12562
s,@bindir@,$bindir,;t t
12563
s,@sbindir@,$sbindir,;t t
12564
s,@libexecdir@,$libexecdir,;t t
12565
s,@datadir@,$datadir,;t t
12566
s,@sysconfdir@,$sysconfdir,;t t
12567
s,@sharedstatedir@,$sharedstatedir,;t t
12568
s,@localstatedir@,$localstatedir,;t t
12569
s,@libdir@,$libdir,;t t
12570
s,@includedir@,$includedir,;t t
12571
s,@oldincludedir@,$oldincludedir,;t t
12572
s,@infodir@,$infodir,;t t
12573
s,@mandir@,$mandir,;t t
12574
s,@build_alias@,$build_alias,;t t
12575
s,@host_alias@,$host_alias,;t t
12576
s,@target_alias@,$target_alias,;t t
12577
s,@DEFS@,$DEFS,;t t
12578
s,@ECHO_C@,$ECHO_C,;t t
12579
s,@ECHO_N@,$ECHO_N,;t t
12580
s,@ECHO_T@,$ECHO_T,;t t
12581
s,@LIBS@,$LIBS,;t t
12582
s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t
12583
s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t
12584
s,@newlib_basedir@,$newlib_basedir,;t t
12585
s,@build@,$build,;t t
12586
s,@build_cpu@,$build_cpu,;t t
12587
s,@build_vendor@,$build_vendor,;t t
12588
s,@build_os@,$build_os,;t t
12589
s,@host@,$host,;t t
12590
s,@host_cpu@,$host_cpu,;t t
12591
s,@host_vendor@,$host_vendor,;t t
12592
s,@host_os@,$host_os,;t t
12593
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12594
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12595
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12596
s,@CYGPATH_W@,$CYGPATH_W,;t t
12597
s,@PACKAGE@,$PACKAGE,;t t
12598
s,@VERSION@,$VERSION,;t t
12599
s,@ACLOCAL@,$ACLOCAL,;t t
12600
s,@AUTOCONF@,$AUTOCONF,;t t
12601
s,@AUTOMAKE@,$AUTOMAKE,;t t
12602
s,@AUTOHEADER@,$AUTOHEADER,;t t
12603
s,@MAKEINFO@,$MAKEINFO,;t t
12604
s,@install_sh@,$install_sh,;t t
12605
s,@STRIP@,$STRIP,;t t
12606
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12607
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12608
s,@mkdir_p@,$mkdir_p,;t t
12609
s,@AWK@,$AWK,;t t
12610
s,@SET_MAKE@,$SET_MAKE,;t t
12611
s,@am__leading_dot@,$am__leading_dot,;t t
12612
s,@AMTAR@,$AMTAR,;t t
12613
s,@am__tar@,$am__tar,;t t
12614
s,@am__untar@,$am__untar,;t t
12615
s,@CC@,$CC,;t t
12616
s,@DEPDIR@,$DEPDIR,;t t
12617
s,@am__include@,$am__include,;t t
12618
s,@am__quote@,$am__quote,;t t
12619
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12620
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12621
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12622
s,@CCDEPMODE@,$CCDEPMODE,;t t
12623
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12624
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12625
s,@AS@,$AS,;t t
12626
s,@ac_ct_AS@,$ac_ct_AS,;t t
12627
s,@AR@,$AR,;t t
12628
s,@ac_ct_AR@,$ac_ct_AR,;t t
12629
s,@RANLIB@,$RANLIB,;t t
12630
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12631
s,@READELF@,$READELF,;t t
12632
s,@ac_ct_READELF@,$ac_ct_READELF,;t t
12633
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12634
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12635
s,@MAINT@,$MAINT,;t t
12636
s,@CCAS@,$CCAS,;t t
12637
s,@CCASFLAGS@,$CCASFLAGS,;t t
12638
s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t
12639
s,@LDFLAGS@,$LDFLAGS,;t t
12640
s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t
12641
s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t
12642
s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t
12643
s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t
12644
s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t
12645
s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t
12646
s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t
12647
s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t
12648
s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t
12649
s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t
12650
s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t
12651
s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t
12652
s,@OBJEXT@,$OBJEXT,;t t
12653
s,@oext@,$oext,;t t
12654
s,@aext@,$aext,;t t
12655
s,@lpfx@,$lpfx,;t t
12656
s,@libm_machine_dir@,$libm_machine_dir,;t t
12657
s,@machine_dir@,$machine_dir,;t t
12658
s,@sys_dir@,$sys_dir,;t t
12659
s,@SED@,$SED,;t t
12660
s,@DLLTOOL@,$DLLTOOL,;t t
12661
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
12662
s,@OBJDUMP@,$OBJDUMP,;t t
12663
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
12664
s,@LIBTOOL@,$LIBTOOL,;t t
12665
s,@CFLAGS@,$CFLAGS,;t t
12666
s,@CPPFLAGS@,$CPPFLAGS,;t t
12667
s,@ac_ct_CC@,$ac_ct_CC,;t t
12668
s,@EXEEXT@,$EXEEXT,;t t
12669
s,@EGREP@,$EGREP,;t t
12670
s,@FGREP@,$FGREP,;t t
12671
s,@GREP@,$GREP,;t t
12672
s,@LD@,$LD,;t t
12673
s,@DUMPBIN@,$DUMPBIN,;t t
12674
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12675
s,@NM@,$NM,;t t
12676
s,@LN_S@,$LN_S,;t t
12677
s,@lt_ECHO@,$lt_ECHO,;t t
12678
s,@DSYMUTIL@,$DSYMUTIL,;t t
12679
s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12680
s,@NMEDIT@,$NMEDIT,;t t
12681
s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12682
s,@LIPO@,$LIPO,;t t
12683
s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12684
s,@OTOOL@,$OTOOL,;t t
12685
s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12686
s,@OTOOL64@,$OTOOL64,;t t
12687
s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
12688
s,@CPP@,$CPP,;t t
12689
s,@subdirs@,$subdirs,;t t
12690
s,@CRT0@,$CRT0,;t t
12691
s,@LIBC_POSIX_LIB@,$LIBC_POSIX_LIB,;t t
12692
s,@HAVE_POSIX_DIR_TRUE@,$HAVE_POSIX_DIR_TRUE,;t t
12693
s,@HAVE_POSIX_DIR_FALSE@,$HAVE_POSIX_DIR_FALSE,;t t
12694
s,@LIBC_SIGNAL_LIB@,$LIBC_SIGNAL_LIB,;t t
12695
s,@LIBC_SIGNAL_DEF@,$LIBC_SIGNAL_DEF,;t t
12696
s,@HAVE_SIGNAL_DIR_TRUE@,$HAVE_SIGNAL_DIR_TRUE,;t t
12697
s,@HAVE_SIGNAL_DIR_FALSE@,$HAVE_SIGNAL_DIR_FALSE,;t t
12698
s,@LIBC_STDIO_LIB@,$LIBC_STDIO_LIB,;t t
12699
s,@LIBC_STDIO_DEF@,$LIBC_STDIO_DEF,;t t
12700
s,@HAVE_STDIO_DIR_TRUE@,$HAVE_STDIO_DIR_TRUE,;t t
12701
s,@HAVE_STDIO_DIR_FALSE@,$HAVE_STDIO_DIR_FALSE,;t t
12702
s,@LIBC_STDIO64_LIB@,$LIBC_STDIO64_LIB,;t t
12703
s,@LIBC_STDIO64_DEF@,$LIBC_STDIO64_DEF,;t t
12704
s,@HAVE_STDIO64_DIR_TRUE@,$HAVE_STDIO64_DIR_TRUE,;t t
12705
s,@HAVE_STDIO64_DIR_FALSE@,$HAVE_STDIO64_DIR_FALSE,;t t
12706
s,@LIBC_SYSCALL_LIB@,$LIBC_SYSCALL_LIB,;t t
12707
s,@HAVE_SYSCALL_DIR_TRUE@,$HAVE_SYSCALL_DIR_TRUE,;t t
12708
s,@HAVE_SYSCALL_DIR_FALSE@,$HAVE_SYSCALL_DIR_FALSE,;t t
12709
s,@LIBC_UNIX_LIB@,$LIBC_UNIX_LIB,;t t
12710
s,@HAVE_UNIX_DIR_TRUE@,$HAVE_UNIX_DIR_TRUE,;t t
12711
s,@HAVE_UNIX_DIR_FALSE@,$HAVE_UNIX_DIR_FALSE,;t t
12712
s,@LIBC_EXTRA_LIB@,$LIBC_EXTRA_LIB,;t t
12713
s,@LIBC_EXTRA_DEF@,$LIBC_EXTRA_DEF,;t t
12714
s,@extra_dir@,$extra_dir,;t t
12715
s,@LIBC_SYS_LIB@,$LIBC_SYS_LIB,;t t
12716
s,@ENABLE_NEWLIB_ICONV_TRUE@,$ENABLE_NEWLIB_ICONV_TRUE,;t t
12717
s,@ENABLE_NEWLIB_ICONV_FALSE@,$ENABLE_NEWLIB_ICONV_FALSE,;t t
12718
s,@LIBC_MACHINE_LIB@,$LIBC_MACHINE_LIB,;t t
12719
s,@LIBOBJS@,$LIBOBJS,;t t
12720
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12721
CEOF
12722
 
12723
_ACEOF
12724
 
12725
  cat >>$CONFIG_STATUS <<\_ACEOF
12726
  # Split the substitutions into bite-sized pieces for seds with
12727
  # small command number limits, like on Digital OSF/1 and HP-UX.
12728
  ac_max_sed_lines=48
12729
  ac_sed_frag=1 # Number of current file.
12730
  ac_beg=1 # First line for current file.
12731
  ac_end=$ac_max_sed_lines # Line after last line for current file.
12732
  ac_more_lines=:
12733
  ac_sed_cmds=
12734
  while $ac_more_lines; do
12735
    if test $ac_beg -gt 1; then
12736
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12737
    else
12738
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12739
    fi
12740
    if test ! -s $tmp/subs.frag; then
12741
      ac_more_lines=false
12742
    else
12743
      # The purpose of the label and of the branching condition is to
12744
      # speed up the sed processing (if there are no `@' at all, there
12745
      # is no need to browse any of the substitutions).
12746
      # These are the two extra sed commands mentioned above.
12747
      (echo ':t
12748
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12749
      if test -z "$ac_sed_cmds"; then
12750
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12751
      else
12752
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12753
      fi
12754
      ac_sed_frag=`expr $ac_sed_frag + 1`
12755
      ac_beg=$ac_end
12756
      ac_end=`expr $ac_end + $ac_max_sed_lines`
12757
    fi
12758
  done
12759
  if test -z "$ac_sed_cmds"; then
12760
    ac_sed_cmds=cat
12761
  fi
12762
fi # test -n "$CONFIG_FILES"
12763
 
12764
_ACEOF
12765
cat >>$CONFIG_STATUS <<\_ACEOF
12766
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12767
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12768
  case $ac_file in
12769
  - | *:- | *:-:* ) # input from stdin
12770
        cat >$tmp/stdin
12771
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12772
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12773
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12774
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12775
  * )   ac_file_in=$ac_file.in ;;
12776
  esac
12777
 
12778
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12779
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12780
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12781
         X"$ac_file" : 'X\(//\)[^/]' \| \
12782
         X"$ac_file" : 'X\(//\)$' \| \
12783
         X"$ac_file" : 'X\(/\)' \| \
12784
         .     : '\(.\)' 2>/dev/null ||
12785
echo X"$ac_file" |
12786
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12787
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12788
          /^X\(\/\/\)$/{ s//\1/; q; }
12789
          /^X\(\/\).*/{ s//\1/; q; }
12790
          s/.*/./; q'`
12791
  { if $as_mkdir_p; then
12792
    mkdir -p "$ac_dir"
12793
  else
12794
    as_dir="$ac_dir"
12795
    as_dirs=
12796
    while test ! -d "$as_dir"; do
12797
      as_dirs="$as_dir $as_dirs"
12798
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12799
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12800
         X"$as_dir" : 'X\(//\)[^/]' \| \
12801
         X"$as_dir" : 'X\(//\)$' \| \
12802
         X"$as_dir" : 'X\(/\)' \| \
12803
         .     : '\(.\)' 2>/dev/null ||
12804
echo X"$as_dir" |
12805
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12806
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12807
          /^X\(\/\/\)$/{ s//\1/; q; }
12808
          /^X\(\/\).*/{ s//\1/; q; }
12809
          s/.*/./; q'`
12810
    done
12811
    test ! -n "$as_dirs" || mkdir $as_dirs
12812
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12813
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12814
   { (exit 1); exit 1; }; }; }
12815
 
12816
  ac_builddir=.
12817
 
12818
if test "$ac_dir" != .; then
12819
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12820
  # A "../" for each directory in $ac_dir_suffix.
12821
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12822
else
12823
  ac_dir_suffix= ac_top_builddir=
12824
fi
12825
 
12826
case $srcdir in
12827
  .)  # No --srcdir option.  We are building in place.
12828
    ac_srcdir=.
12829
    if test -z "$ac_top_builddir"; then
12830
       ac_top_srcdir=.
12831
    else
12832
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12833
    fi ;;
12834
  [\\/]* | ?:[\\/]* )  # Absolute path.
12835
    ac_srcdir=$srcdir$ac_dir_suffix;
12836
    ac_top_srcdir=$srcdir ;;
12837
  *) # Relative path.
12838
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12839
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12840
esac
12841
 
12842
# Do not use `cd foo && pwd` to compute absolute paths, because
12843
# the directories may not exist.
12844
case `pwd` in
12845
.) ac_abs_builddir="$ac_dir";;
12846
*)
12847
  case "$ac_dir" in
12848
  .) ac_abs_builddir=`pwd`;;
12849
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12850
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12851
  esac;;
12852
esac
12853
case $ac_abs_builddir in
12854
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12855
*)
12856
  case ${ac_top_builddir}. in
12857
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12858
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12859
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12860
  esac;;
12861
esac
12862
case $ac_abs_builddir in
12863
.) ac_abs_srcdir=$ac_srcdir;;
12864
*)
12865
  case $ac_srcdir in
12866
  .) ac_abs_srcdir=$ac_abs_builddir;;
12867
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12868
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12869
  esac;;
12870
esac
12871
case $ac_abs_builddir in
12872
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12873
*)
12874
  case $ac_top_srcdir in
12875
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12876
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12877
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12878
  esac;;
12879
esac
12880
 
12881
 
12882
  case $INSTALL in
12883
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12884
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12885
  esac
12886
 
12887
  if test x"$ac_file" != x-; then
12888
    { echo "$as_me:$LINENO: creating $ac_file" >&5
12889
echo "$as_me: creating $ac_file" >&6;}
12890
    rm -f "$ac_file"
12891
  fi
12892
  # Let's still pretend it is `configure' which instantiates (i.e., don't
12893
  # use $as_me), people would be surprised to read:
12894
  #    /* config.h.  Generated by config.status.  */
12895
  if test x"$ac_file" = x-; then
12896
    configure_input=
12897
  else
12898
    configure_input="$ac_file.  "
12899
  fi
12900
  configure_input=$configure_input"Generated from `echo $ac_file_in |
12901
                                     sed 's,.*/,,'` by configure."
12902
 
12903
  # First look for the input files in the build tree, otherwise in the
12904
  # src tree.
12905
  ac_file_inputs=`IFS=:
12906
    for f in $ac_file_in; do
12907
      case $f in
12908
      -) echo $tmp/stdin ;;
12909
      [\\/$]*)
12910
         # Absolute (can't be DOS-style, as IFS=:)
12911
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12912
echo "$as_me: error: cannot find input file: $f" >&2;}
12913
   { (exit 1); exit 1; }; }
12914
         echo "$f";;
12915
      *) # Relative
12916
         if test -f "$f"; then
12917
           # Build tree
12918
           echo "$f"
12919
         elif test -f "$srcdir/$f"; then
12920
           # Source tree
12921
           echo "$srcdir/$f"
12922
         else
12923
           # /dev/null tree
12924
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12925
echo "$as_me: error: cannot find input file: $f" >&2;}
12926
   { (exit 1); exit 1; }; }
12927
         fi;;
12928
      esac
12929
    done` || { (exit 1); exit 1; }
12930
_ACEOF
12931
cat >>$CONFIG_STATUS <<_ACEOF
12932
  sed "$ac_vpsub
12933
$extrasub
12934
_ACEOF
12935
cat >>$CONFIG_STATUS <<\_ACEOF
12936
:t
12937
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12938
s,@configure_input@,$configure_input,;t t
12939
s,@srcdir@,$ac_srcdir,;t t
12940
s,@abs_srcdir@,$ac_abs_srcdir,;t t
12941
s,@top_srcdir@,$ac_top_srcdir,;t t
12942
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12943
s,@builddir@,$ac_builddir,;t t
12944
s,@abs_builddir@,$ac_abs_builddir,;t t
12945
s,@top_builddir@,$ac_top_builddir,;t t
12946
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12947
s,@INSTALL@,$ac_INSTALL,;t t
12948
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12949
  rm -f $tmp/stdin
12950
  if test x"$ac_file" != x-; then
12951
    mv $tmp/out $ac_file
12952
  else
12953
    cat $tmp/out
12954
    rm -f $tmp/out
12955
  fi
12956
 
12957
done
12958
_ACEOF
12959
cat >>$CONFIG_STATUS <<\_ACEOF
12960
 
12961
#
12962
# CONFIG_COMMANDS section.
12963
#
12964
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12965
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12966
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12967
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12968
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12969
         X"$ac_dest" : 'X\(//\)[^/]' \| \
12970
         X"$ac_dest" : 'X\(//\)$' \| \
12971
         X"$ac_dest" : 'X\(/\)' \| \
12972
         .     : '\(.\)' 2>/dev/null ||
12973
echo X"$ac_dest" |
12974
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12975
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12976
          /^X\(\/\/\)$/{ s//\1/; q; }
12977
          /^X\(\/\).*/{ s//\1/; q; }
12978
          s/.*/./; q'`
12979
  { if $as_mkdir_p; then
12980
    mkdir -p "$ac_dir"
12981
  else
12982
    as_dir="$ac_dir"
12983
    as_dirs=
12984
    while test ! -d "$as_dir"; do
12985
      as_dirs="$as_dir $as_dirs"
12986
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12987
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12988
         X"$as_dir" : 'X\(//\)[^/]' \| \
12989
         X"$as_dir" : 'X\(//\)$' \| \
12990
         X"$as_dir" : 'X\(/\)' \| \
12991
         .     : '\(.\)' 2>/dev/null ||
12992
echo X"$as_dir" |
12993
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12994
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12995
          /^X\(\/\/\)$/{ s//\1/; q; }
12996
          /^X\(\/\).*/{ s//\1/; q; }
12997
          s/.*/./; q'`
12998
    done
12999
    test ! -n "$as_dirs" || mkdir $as_dirs
13000
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13001
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13002
   { (exit 1); exit 1; }; }; }
13003
 
13004
  ac_builddir=.
13005
 
13006
if test "$ac_dir" != .; then
13007
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13008
  # A "../" for each directory in $ac_dir_suffix.
13009
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13010
else
13011
  ac_dir_suffix= ac_top_builddir=
13012
fi
13013
 
13014
case $srcdir in
13015
  .)  # No --srcdir option.  We are building in place.
13016
    ac_srcdir=.
13017
    if test -z "$ac_top_builddir"; then
13018
       ac_top_srcdir=.
13019
    else
13020
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13021
    fi ;;
13022
  [\\/]* | ?:[\\/]* )  # Absolute path.
13023
    ac_srcdir=$srcdir$ac_dir_suffix;
13024
    ac_top_srcdir=$srcdir ;;
13025
  *) # Relative path.
13026
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13027
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13028
esac
13029
 
13030
# Do not use `cd foo && pwd` to compute absolute paths, because
13031
# the directories may not exist.
13032
case `pwd` in
13033
.) ac_abs_builddir="$ac_dir";;
13034
*)
13035
  case "$ac_dir" in
13036
  .) ac_abs_builddir=`pwd`;;
13037
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13038
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13039
  esac;;
13040
esac
13041
case $ac_abs_builddir in
13042
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13043
*)
13044
  case ${ac_top_builddir}. in
13045
  .) ac_abs_top_builddir=$ac_abs_builddir;;
13046
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13047
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13048
  esac;;
13049
esac
13050
case $ac_abs_builddir in
13051
.) ac_abs_srcdir=$ac_srcdir;;
13052
*)
13053
  case $ac_srcdir in
13054
  .) ac_abs_srcdir=$ac_abs_builddir;;
13055
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13056
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13057
  esac;;
13058
esac
13059
case $ac_abs_builddir in
13060
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13061
*)
13062
  case $ac_top_srcdir in
13063
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13064
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13065
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13066
  esac;;
13067
esac
13068
 
13069
 
13070
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13071
echo "$as_me: executing $ac_dest commands" >&6;}
13072
  case $ac_dest in
13073
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13074
  # Strip MF so we end up with the name of the file.
13075
  mf=`echo "$mf" | sed -e 's/:.*$//'`
13076
  # Check whether this is an Automake generated Makefile or not.
13077
  # We used to match only the files named `Makefile.in', but
13078
  # some people rename them; so instead we look at the file content.
13079
  # Grep'ing the first line is not enough: some people post-process
13080
  # each Makefile.in and add a new line on top of each file to say so.
13081
  # So let's grep whole file.
13082
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13083
    dirpart=`(dirname "$mf") 2>/dev/null ||
13084
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13085
         X"$mf" : 'X\(//\)[^/]' \| \
13086
         X"$mf" : 'X\(//\)$' \| \
13087
         X"$mf" : 'X\(/\)' \| \
13088
         .     : '\(.\)' 2>/dev/null ||
13089
echo X"$mf" |
13090
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13091
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13092
          /^X\(\/\/\)$/{ s//\1/; q; }
13093
          /^X\(\/\).*/{ s//\1/; q; }
13094
          s/.*/./; q'`
13095
  else
13096
    continue
13097
  fi
13098
  # Extract the definition of DEPDIR, am__include, and am__quote
13099
  # from the Makefile without running `make'.
13100
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13101
  test -z "$DEPDIR" && continue
13102
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
13103
  test -z "am__include" && continue
13104
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13105
  # When using ansi2knr, U may be empty or an underscore; expand it
13106
  U=`sed -n 's/^U = //p' < "$mf"`
13107
  # Find all dependency output files, they are included files with
13108
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
13109
  # simplest approach to changing $(DEPDIR) to its actual value in the
13110
  # expansion.
13111
  for file in `sed -n "
13112
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13113
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13114
    # Make sure the directory exists.
13115
    test -f "$dirpart/$file" && continue
13116
    fdir=`(dirname "$file") 2>/dev/null ||
13117
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13118
         X"$file" : 'X\(//\)[^/]' \| \
13119
         X"$file" : 'X\(//\)$' \| \
13120
         X"$file" : 'X\(/\)' \| \
13121
         .     : '\(.\)' 2>/dev/null ||
13122
echo X"$file" |
13123
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13124
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13125
          /^X\(\/\/\)$/{ s//\1/; q; }
13126
          /^X\(\/\).*/{ s//\1/; q; }
13127
          s/.*/./; q'`
13128
    { if $as_mkdir_p; then
13129
    mkdir -p $dirpart/$fdir
13130
  else
13131
    as_dir=$dirpart/$fdir
13132
    as_dirs=
13133
    while test ! -d "$as_dir"; do
13134
      as_dirs="$as_dir $as_dirs"
13135
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13136
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13137
         X"$as_dir" : 'X\(//\)[^/]' \| \
13138
         X"$as_dir" : 'X\(//\)$' \| \
13139
         X"$as_dir" : 'X\(/\)' \| \
13140
         .     : '\(.\)' 2>/dev/null ||
13141
echo X"$as_dir" |
13142
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13143
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13144
          /^X\(\/\/\)$/{ s//\1/; q; }
13145
          /^X\(\/\).*/{ s//\1/; q; }
13146
          s/.*/./; q'`
13147
    done
13148
    test ! -n "$as_dirs" || mkdir $as_dirs
13149
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13150
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13151
   { (exit 1); exit 1; }; }; }
13152
 
13153
    # echo "creating $dirpart/$file"
13154
    echo '# dummy' > "$dirpart/$file"
13155
  done
13156
done
13157
 ;;
13158
    libtool )
13159
 
13160
    # See if we are running on zsh, and set the options which allow our
13161
    # commands through without removal of \ escapes.
13162
    if test -n "${ZSH_VERSION+set}" ; then
13163
      setopt NO_GLOB_SUBST
13164
    fi
13165
 
13166
    cfgfile="${ofile}T"
13167
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13168
    $RM "$cfgfile"
13169
 
13170
    cat <<_LT_EOF >> "$cfgfile"
13171
#! $SHELL
13172
 
13173
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13174
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13175
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13176
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13177
#
13178
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13179
#                 2006, 2007, 2008 Free Software Foundation, Inc.
13180
#   Written by Gordon Matzigkeit, 1996
13181
#
13182
#   This file is part of GNU Libtool.
13183
#
13184
# GNU Libtool is free software; you can redistribute it and/or
13185
# modify it under the terms of the GNU General Public License as
13186
# published by the Free Software Foundation; either version 2 of
13187
# the License, or (at your option) any later version.
13188
#
13189
# As a special exception to the GNU General Public License,
13190
# if you distribute this file as part of a program or library that
13191
# is built using GNU Libtool, you may include this file under the
13192
# same distribution terms that you use for the rest of that program.
13193
#
13194
# GNU Libtool is distributed in the hope that it will be useful,
13195
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13196
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13197
# GNU General Public License for more details.
13198
#
13199
# You should have received a copy of the GNU General Public License
13200
# along with GNU Libtool; see the file COPYING.  If not, a copy
13201
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13202
# obtained by writing to the Free Software Foundation, Inc.,
13203
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13204
 
13205
 
13206
# The names of the tagged configurations supported by this script.
13207
available_tags=""
13208
 
13209
# ### BEGIN LIBTOOL CONFIG
13210
 
13211
# A sed program that does not truncate output.
13212
SED=$lt_SED
13213
 
13214
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13215
Xsed="\$SED -e 1s/^X//"
13216
 
13217
# Assembler program.
13218
AS=$AS
13219
 
13220
# DLL creation program.
13221
DLLTOOL=$DLLTOOL
13222
 
13223
# Object dumper program.
13224
OBJDUMP=$OBJDUMP
13225
 
13226
# Which release of libtool.m4 was used?
13227
macro_version=$macro_version
13228
macro_revision=$macro_revision
13229
 
13230
# Whether or not to build shared libraries.
13231
build_libtool_libs=$enable_shared
13232
 
13233
# Whether or not to build static libraries.
13234
build_old_libs=$enable_static
13235
 
13236
# What type of objects to build.
13237
pic_mode=$pic_mode
13238
 
13239
# Whether or not to optimize for fast installation.
13240
fast_install=$enable_fast_install
13241
 
13242
# The host system.
13243
host_alias=$host_alias
13244
host=$host
13245
host_os=$host_os
13246
 
13247
# The build system.
13248
build_alias=$build_alias
13249
build=$build
13250
build_os=$build_os
13251
 
13252
# A grep program that handles long lines.
13253
GREP=$lt_GREP
13254
 
13255
# An ERE matcher.
13256
EGREP=$lt_EGREP
13257
 
13258
# A literal string matcher.
13259
FGREP=$lt_FGREP
13260
 
13261
# A BSD- or MS-compatible name lister.
13262
NM=$lt_NM
13263
 
13264
# Whether we need soft or hard links.
13265
LN_S=$lt_LN_S
13266
 
13267
# What is the maximum length of a command?
13268
max_cmd_len=$max_cmd_len
13269
 
13270
# Object file suffix (normally "o").
13271
objext=$ac_objext
13272
 
13273
# Executable file suffix (normally "").
13274
exeext=$exeext
13275
 
13276
# whether the shell understands "unset".
13277
lt_unset=$lt_unset
13278
 
13279
# turn spaces into newlines.
13280
SP2NL=$lt_lt_SP2NL
13281
 
13282
# turn newlines into spaces.
13283
NL2SP=$lt_lt_NL2SP
13284
 
13285
# How to create reloadable object files.
13286
reload_flag=$lt_reload_flag
13287
reload_cmds=$lt_reload_cmds
13288
 
13289
# Method to check whether dependent libraries are shared objects.
13290
deplibs_check_method=$lt_deplibs_check_method
13291
 
13292
# Command to use when deplibs_check_method == "file_magic".
13293
file_magic_cmd=$lt_file_magic_cmd
13294
 
13295
# The archiver.
13296
AR=$lt_AR
13297
AR_FLAGS=$lt_AR_FLAGS
13298
 
13299
# A symbol stripping program.
13300
STRIP=$lt_STRIP
13301
 
13302
# Commands used to install an old-style archive.
13303
RANLIB=$lt_RANLIB
13304
old_postinstall_cmds=$lt_old_postinstall_cmds
13305
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13306
 
13307
# A C compiler.
13308
LTCC=$lt_CC
13309
 
13310
# LTCC compiler flags.
13311
LTCFLAGS=$lt_CFLAGS
13312
 
13313
# Take the output of nm and produce a listing of raw symbols and C names.
13314
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13315
 
13316
# Transform the output of nm in a proper C declaration.
13317
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13318
 
13319
# Transform the output of nm in a C name address pair.
13320
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13321
 
13322
# Transform the output of nm in a C name address pair when lib prefix is needed.
13323
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13324
 
13325
# The name of the directory that contains temporary libtool files.
13326
objdir=$objdir
13327
 
13328
# Shell to use when invoking shell scripts.
13329
SHELL=$lt_SHELL
13330
 
13331
# An echo program that does not interpret backslashes.
13332
ECHO=$lt_ECHO
13333
 
13334
# Used to examine libraries when file_magic_cmd begins with "file".
13335
MAGIC_CMD=$MAGIC_CMD
13336
 
13337
# Must we lock files when doing compilation?
13338
need_locks=$lt_need_locks
13339
 
13340
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13341
DSYMUTIL=$lt_DSYMUTIL
13342
 
13343
# Tool to change global to local symbols on Mac OS X.
13344
NMEDIT=$lt_NMEDIT
13345
 
13346
# Tool to manipulate fat objects and archives on Mac OS X.
13347
LIPO=$lt_LIPO
13348
 
13349
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13350
OTOOL=$lt_OTOOL
13351
 
13352
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13353
OTOOL64=$lt_OTOOL64
13354
 
13355
# Old archive suffix (normally "a").
13356
libext=$libext
13357
 
13358
# Shared library suffix (normally ".so").
13359
shrext_cmds=$lt_shrext_cmds
13360
 
13361
# The commands to extract the exported symbol list from a shared archive.
13362
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13363
 
13364
# Variables whose values should be saved in libtool wrapper scripts and
13365
# restored at link time.
13366
variables_saved_for_relink=$lt_variables_saved_for_relink
13367
 
13368
# Do we need the "lib" prefix for modules?
13369
need_lib_prefix=$need_lib_prefix
13370
 
13371
# Do we need a version for libraries?
13372
need_version=$need_version
13373
 
13374
# Library versioning type.
13375
version_type=$version_type
13376
 
13377
# Shared library runtime path variable.
13378
runpath_var=$runpath_var
13379
 
13380
# Shared library path variable.
13381
shlibpath_var=$shlibpath_var
13382
 
13383
# Is shlibpath searched before the hard-coded library search path?
13384
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13385
 
13386
# Format of library name prefix.
13387
libname_spec=$lt_libname_spec
13388
 
13389
# List of archive names.  First name is the real one, the rest are links.
13390
# The last name is the one that the linker finds with -lNAME
13391
library_names_spec=$lt_library_names_spec
13392
 
13393
# The coded name of the library, if different from the real name.
13394
soname_spec=$lt_soname_spec
13395
 
13396
# Command to use after installation of a shared archive.
13397
postinstall_cmds=$lt_postinstall_cmds
13398
 
13399
# Command to use after uninstallation of a shared archive.
13400
postuninstall_cmds=$lt_postuninstall_cmds
13401
 
13402
# Commands used to finish a libtool library installation in a directory.
13403
finish_cmds=$lt_finish_cmds
13404
 
13405
# As "finish_cmds", except a single script fragment to be evaled but
13406
# not shown.
13407
finish_eval=$lt_finish_eval
13408
 
13409
# Whether we should hardcode library paths into libraries.
13410
hardcode_into_libs=$hardcode_into_libs
13411
 
13412
# Compile-time system search path for libraries.
13413
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13414
 
13415
# Run-time system search path for libraries.
13416
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13417
 
13418
# Whether dlopen is supported.
13419
dlopen_support=$enable_dlopen
13420
 
13421
# Whether dlopen of programs is supported.
13422
dlopen_self=$enable_dlopen_self
13423
 
13424
# Whether dlopen of statically linked programs is supported.
13425
dlopen_self_static=$enable_dlopen_self_static
13426
 
13427
# Commands to strip libraries.
13428
old_striplib=$lt_old_striplib
13429
striplib=$lt_striplib
13430
 
13431
 
13432
# The linker used to build libraries.
13433
LD=$lt_LD
13434
 
13435
# Commands used to build an old-style archive.
13436
old_archive_cmds=$lt_old_archive_cmds
13437
 
13438
# A language specific compiler.
13439
CC=$lt_compiler
13440
 
13441
# Is the compiler the GNU compiler?
13442
with_gcc=$GCC
13443
 
13444
# Compiler flag to turn off builtin functions.
13445
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13446
 
13447
# How to pass a linker flag through the compiler.
13448
wl=$lt_lt_prog_compiler_wl
13449
 
13450
# Additional compiler flags for building library objects.
13451
pic_flag=$lt_lt_prog_compiler_pic
13452
 
13453
# Compiler flag to prevent dynamic linking.
13454
link_static_flag=$lt_lt_prog_compiler_static
13455
 
13456
# Does compiler simultaneously support -c and -o options?
13457
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13458
 
13459
# Whether or not to add -lc for building shared libraries.
13460
build_libtool_need_lc=$archive_cmds_need_lc
13461
 
13462
# Whether or not to disallow shared libs when runtime libs are static.
13463
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13464
 
13465
# Compiler flag to allow reflexive dlopens.
13466
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13467
 
13468
# Compiler flag to generate shared objects directly from archives.
13469
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13470
 
13471
# Whether the compiler copes with passing no objects directly.
13472
compiler_needs_object=$lt_compiler_needs_object
13473
 
13474
# Create an old-style archive from a shared archive.
13475
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13476
 
13477
# Create a temporary old-style archive to link instead of a shared archive.
13478
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13479
 
13480
# Commands used to build a shared archive.
13481
archive_cmds=$lt_archive_cmds
13482
archive_expsym_cmds=$lt_archive_expsym_cmds
13483
 
13484
# Commands used to build a loadable module if different from building
13485
# a shared archive.
13486
module_cmds=$lt_module_cmds
13487
module_expsym_cmds=$lt_module_expsym_cmds
13488
 
13489
# Whether we are building with GNU ld or not.
13490
with_gnu_ld=$lt_with_gnu_ld
13491
 
13492
# Flag that allows shared libraries with undefined symbols to be built.
13493
allow_undefined_flag=$lt_allow_undefined_flag
13494
 
13495
# Flag that enforces no undefined symbols.
13496
no_undefined_flag=$lt_no_undefined_flag
13497
 
13498
# Flag to hardcode \$libdir into a binary during linking.
13499
# This must work even if \$libdir does not exist
13500
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13501
 
13502
# If ld is used when linking, flag to hardcode \$libdir into a binary
13503
# during linking.  This must work even if \$libdir does not exist.
13504
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13505
 
13506
# Whether we need a single "-rpath" flag with a separated argument.
13507
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13508
 
13509
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13510
# DIR into the resulting binary.
13511
hardcode_direct=$hardcode_direct
13512
 
13513
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13514
# DIR into the resulting binary and the resulting library dependency is
13515
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13516
# library is relocated.
13517
hardcode_direct_absolute=$hardcode_direct_absolute
13518
 
13519
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13520
# into the resulting binary.
13521
hardcode_minus_L=$hardcode_minus_L
13522
 
13523
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13524
# into the resulting binary.
13525
hardcode_shlibpath_var=$hardcode_shlibpath_var
13526
 
13527
# Set to "yes" if building a shared library automatically hardcodes DIR
13528
# into the library and all subsequent libraries and executables linked
13529
# against it.
13530
hardcode_automatic=$hardcode_automatic
13531
 
13532
# Set to yes if linker adds runtime paths of dependent libraries
13533
# to runtime path list.
13534
inherit_rpath=$inherit_rpath
13535
 
13536
# Whether libtool must link a program against all its dependency libraries.
13537
link_all_deplibs=$link_all_deplibs
13538
 
13539
# Fix the shell variable \$srcfile for the compiler.
13540
fix_srcfile_path=$lt_fix_srcfile_path
13541
 
13542
# Set to "yes" if exported symbols are required.
13543
always_export_symbols=$always_export_symbols
13544
 
13545
# The commands to list exported symbols.
13546
export_symbols_cmds=$lt_export_symbols_cmds
13547
 
13548
# Symbols that should not be listed in the preloaded symbols.
13549
exclude_expsyms=$lt_exclude_expsyms
13550
 
13551
# Symbols that must always be exported.
13552
include_expsyms=$lt_include_expsyms
13553
 
13554
# Commands necessary for linking programs (against libraries) with templates.
13555
prelink_cmds=$lt_prelink_cmds
13556
 
13557
# Specify filename containing input files.
13558
file_list_spec=$lt_file_list_spec
13559
 
13560
# How to hardcode a shared library path into an executable.
13561
hardcode_action=$hardcode_action
13562
 
13563
# ### END LIBTOOL CONFIG
13564
 
13565
_LT_EOF
13566
 
13567
  case $host_os in
13568
  aix3*)
13569
    cat <<\_LT_EOF >> "$cfgfile"
13570
# AIX sometimes has problems with the GCC collect2 program.  For some
13571
# reason, if we set the COLLECT_NAMES environment variable, the problems
13572
# vanish in a puff of smoke.
13573
if test "X${COLLECT_NAMES+set}" != Xset; then
13574
  COLLECT_NAMES=
13575
  export COLLECT_NAMES
13576
fi
13577
_LT_EOF
13578
    ;;
13579
  esac
13580
 
13581
 
13582
ltmain="$ac_aux_dir/ltmain.sh"
13583
 
13584
 
13585
  # We use sed instead of cat because bash on DJGPP gets confused if
13586
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13587
  # text mode, it properly converts lines to CR/LF.  This bash problem
13588
  # is reportedly fixed, but why not run on old versions too?
13589
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13590
    || (rm -f "$cfgfile"; exit 1)
13591
 
13592
  case $xsi_shell in
13593
  yes)
13594
    cat << \_LT_EOF >> "$cfgfile"
13595
 
13596
# func_dirname file append nondir_replacement
13597
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13598
# otherwise set result to NONDIR_REPLACEMENT.
13599
func_dirname ()
13600
{
13601
  case ${1} in
13602
    */*) func_dirname_result="${1%/*}${2}" ;;
13603
    *  ) func_dirname_result="${3}" ;;
13604
  esac
13605
}
13606
 
13607
# func_basename file
13608
func_basename ()
13609
{
13610
  func_basename_result="${1##*/}"
13611
}
13612
 
13613
# func_dirname_and_basename file append nondir_replacement
13614
# perform func_basename and func_dirname in a single function
13615
# call:
13616
#   dirname:  Compute the dirname of FILE.  If nonempty,
13617
#             add APPEND to the result, otherwise set result
13618
#             to NONDIR_REPLACEMENT.
13619
#             value returned in "$func_dirname_result"
13620
#   basename: Compute filename of FILE.
13621
#             value retuned in "$func_basename_result"
13622
# Implementation must be kept synchronized with func_dirname
13623
# and func_basename. For efficiency, we do not delegate to
13624
# those functions but instead duplicate the functionality here.
13625
func_dirname_and_basename ()
13626
{
13627
  case ${1} in
13628
    */*) func_dirname_result="${1%/*}${2}" ;;
13629
    *  ) func_dirname_result="${3}" ;;
13630
  esac
13631
  func_basename_result="${1##*/}"
13632
}
13633
 
13634
# func_stripname prefix suffix name
13635
# strip PREFIX and SUFFIX off of NAME.
13636
# PREFIX and SUFFIX must not contain globbing or regex special
13637
# characters, hashes, percent signs, but SUFFIX may contain a leading
13638
# dot (in which case that matches only a dot).
13639
func_stripname ()
13640
{
13641
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13642
  # positional parameters, so assign one to ordinary parameter first.
13643
  func_stripname_result=${3}
13644
  func_stripname_result=${func_stripname_result#"${1}"}
13645
  func_stripname_result=${func_stripname_result%"${2}"}
13646
}
13647
 
13648
# func_opt_split
13649
func_opt_split ()
13650
{
13651
  func_opt_split_opt=${1%%=*}
13652
  func_opt_split_arg=${1#*=}
13653
}
13654
 
13655
# func_lo2o object
13656
func_lo2o ()
13657
{
13658
  case ${1} in
13659
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13660
    *)    func_lo2o_result=${1} ;;
13661
  esac
13662
}
13663
 
13664
# func_xform libobj-or-source
13665
func_xform ()
13666
{
13667
  func_xform_result=${1%.*}.lo
13668
}
13669
 
13670
# func_arith arithmetic-term...
13671
func_arith ()
13672
{
13673
  func_arith_result=$(( $* ))
13674
}
13675
 
13676
# func_len string
13677
# STRING may not start with a hyphen.
13678
func_len ()
13679
{
13680
  func_len_result=${#1}
13681
}
13682
 
13683
_LT_EOF
13684
    ;;
13685
  *) # Bourne compatible functions.
13686
    cat << \_LT_EOF >> "$cfgfile"
13687
 
13688
# func_dirname file append nondir_replacement
13689
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13690
# otherwise set result to NONDIR_REPLACEMENT.
13691
func_dirname ()
13692
{
13693
  # Extract subdirectory from the argument.
13694
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13695
  if test "X$func_dirname_result" = "X${1}"; then
13696
    func_dirname_result="${3}"
13697
  else
13698
    func_dirname_result="$func_dirname_result${2}"
13699
  fi
13700
}
13701
 
13702
# func_basename file
13703
func_basename ()
13704
{
13705
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13706
}
13707
 
13708
 
13709
# func_stripname prefix suffix name
13710
# strip PREFIX and SUFFIX off of NAME.
13711
# PREFIX and SUFFIX must not contain globbing or regex special
13712
# characters, hashes, percent signs, but SUFFIX may contain a leading
13713
# dot (in which case that matches only a dot).
13714
# func_strip_suffix prefix name
13715
func_stripname ()
13716
{
13717
  case ${2} in
13718
    .*) func_stripname_result=`$ECHO "X${3}" \
13719
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13720
    *)  func_stripname_result=`$ECHO "X${3}" \
13721
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13722
  esac
13723
}
13724
 
13725
# sed scripts:
13726
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13727
my_sed_long_arg='1s/^-[^=]*=//'
13728
 
13729
# func_opt_split
13730
func_opt_split ()
13731
{
13732
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13733
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13734
}
13735
 
13736
# func_lo2o object
13737
func_lo2o ()
13738
{
13739
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13740
}
13741
 
13742
# func_xform libobj-or-source
13743
func_xform ()
13744
{
13745
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13746
}
13747
 
13748
# func_arith arithmetic-term...
13749
func_arith ()
13750
{
13751
  func_arith_result=`expr "$@"`
13752
}
13753
 
13754
# func_len string
13755
# STRING may not start with a hyphen.
13756
func_len ()
13757
{
13758
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13759
}
13760
 
13761
_LT_EOF
13762
esac
13763
 
13764
case $lt_shell_append in
13765
  yes)
13766
    cat << \_LT_EOF >> "$cfgfile"
13767
 
13768
# func_append var value
13769
# Append VALUE to the end of shell variable VAR.
13770
func_append ()
13771
{
13772
  eval "$1+=\$2"
13773
}
13774
_LT_EOF
13775
    ;;
13776
  *)
13777
    cat << \_LT_EOF >> "$cfgfile"
13778
 
13779
# func_append var value
13780
# Append VALUE to the end of shell variable VAR.
13781
func_append ()
13782
{
13783
  eval "$1=\$$1\$2"
13784
}
13785
 
13786
_LT_EOF
13787
    ;;
13788
  esac
13789
 
13790
 
13791
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13792
    || (rm -f "$cfgfile"; exit 1)
13793
 
13794
  mv -f "$cfgfile" "$ofile" ||
13795
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13796
  chmod +x "$ofile"
13797
 
13798
 ;;
13799
  esac
13800
done
13801
_ACEOF
13802
 
13803
cat >>$CONFIG_STATUS <<\_ACEOF
13804
 
13805
{ (exit 0); exit 0; }
13806
_ACEOF
13807
chmod +x $CONFIG_STATUS
13808
ac_clean_files=$ac_clean_files_save
13809
 
13810
 
13811
# configure is writing to config.log, and then calls config.status.
13812
# config.status does its own redirection, appending to config.log.
13813
# Unfortunately, on DOS this fails, as config.log is still kept open
13814
# by configure, so config.status won't be able to write to it; its
13815
# output is simply discarded.  So we exec the FD to /dev/null,
13816
# effectively closing config.log, so it can be properly (re)opened and
13817
# appended to by config.status.  When coming back to configure, we
13818
# need to make the FD available again.
13819
if test "$no_create" != yes; then
13820
  ac_cs_success=:
13821
  ac_config_status_args=
13822
  test "$silent" = yes &&
13823
    ac_config_status_args="$ac_config_status_args --quiet"
13824
  exec 5>/dev/null
13825
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13826
  exec 5>>config.log
13827
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13828
  # would make configure fail if this is the last instruction.
13829
  $ac_cs_success || { (exit 1); exit 1; }
13830
fi
13831
 
13832
#
13833
# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
13834
#
13835
if test "$no_recursion" != yes; then
13836
 
13837
  # Remove --cache-file and --srcdir arguments so they do not pile up.
13838
  ac_sub_configure_args=
13839
  ac_prev=
13840
  eval "set x $ac_configure_args"
13841
  shift
13842
  for ac_arg
13843
  do
13844
    if test -n "$ac_prev"; then
13845
      ac_prev=
13846
      continue
13847
    fi
13848
    case $ac_arg in
13849
    -cache-file | --cache-file | --cache-fil | --cache-fi \
13850
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13851
      ac_prev=cache_file ;;
13852
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13853
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13854
    | --c=*)
13855
      ;;
13856
    --config-cache | -C)
13857
      ;;
13858
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13859
      ac_prev=srcdir ;;
13860
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13861
      ;;
13862
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13863
      ac_prev=prefix ;;
13864
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13865
      ;;
13866
    *)
13867
      case $ac_arg in
13868
      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13869
      esac
13870
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
13871
    esac
13872
  done
13873
 
13874
  # Always prepend --prefix to ensure using the same prefix
13875
  # in subdir configurations.
13876
  ac_arg="--prefix=$prefix"
13877
  case $ac_arg in
13878
  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13879
  esac
13880
  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
13881
 
13882
  ac_popdir=`pwd`
13883
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
13884
 
13885
    # Do not complain, so a configure script can configure whichever
13886
    # parts of a large source tree are present.
13887
    test -d "$srcdir/$ac_dir" || continue
13888
 
13889
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
13890
echo "$as_me: configuring in $ac_dir" >&6;}
13891
    { if $as_mkdir_p; then
13892
    mkdir -p "$ac_dir"
13893
  else
13894
    as_dir="$ac_dir"
13895
    as_dirs=
13896
    while test ! -d "$as_dir"; do
13897
      as_dirs="$as_dir $as_dirs"
13898
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13899
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13900
         X"$as_dir" : 'X\(//\)[^/]' \| \
13901
         X"$as_dir" : 'X\(//\)$' \| \
13902
         X"$as_dir" : 'X\(/\)' \| \
13903
         .     : '\(.\)' 2>/dev/null ||
13904
echo X"$as_dir" |
13905
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13906
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13907
          /^X\(\/\/\)$/{ s//\1/; q; }
13908
          /^X\(\/\).*/{ s//\1/; q; }
13909
          s/.*/./; q'`
13910
    done
13911
    test ! -n "$as_dirs" || mkdir $as_dirs
13912
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13913
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13914
   { (exit 1); exit 1; }; }; }
13915
 
13916
    ac_builddir=.
13917
 
13918
if test "$ac_dir" != .; then
13919
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13920
  # A "../" for each directory in $ac_dir_suffix.
13921
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13922
else
13923
  ac_dir_suffix= ac_top_builddir=
13924
fi
13925
 
13926
case $srcdir in
13927
  .)  # No --srcdir option.  We are building in place.
13928
    ac_srcdir=.
13929
    if test -z "$ac_top_builddir"; then
13930
       ac_top_srcdir=.
13931
    else
13932
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13933
    fi ;;
13934
  [\\/]* | ?:[\\/]* )  # Absolute path.
13935
    ac_srcdir=$srcdir$ac_dir_suffix;
13936
    ac_top_srcdir=$srcdir ;;
13937
  *) # Relative path.
13938
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13939
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13940
esac
13941
 
13942
# Do not use `cd foo && pwd` to compute absolute paths, because
13943
# the directories may not exist.
13944
case `pwd` in
13945
.) ac_abs_builddir="$ac_dir";;
13946
*)
13947
  case "$ac_dir" in
13948
  .) ac_abs_builddir=`pwd`;;
13949
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13950
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13951
  esac;;
13952
esac
13953
case $ac_abs_builddir in
13954
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13955
*)
13956
  case ${ac_top_builddir}. in
13957
  .) ac_abs_top_builddir=$ac_abs_builddir;;
13958
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13959
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13960
  esac;;
13961
esac
13962
case $ac_abs_builddir in
13963
.) ac_abs_srcdir=$ac_srcdir;;
13964
*)
13965
  case $ac_srcdir in
13966
  .) ac_abs_srcdir=$ac_abs_builddir;;
13967
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13968
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13969
  esac;;
13970
esac
13971
case $ac_abs_builddir in
13972
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13973
*)
13974
  case $ac_top_srcdir in
13975
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13976
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13977
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13978
  esac;;
13979
esac
13980
 
13981
 
13982
    cd "$ac_dir"
13983
 
13984
    # Check for guested configure; otherwise get Cygnus style configure.
13985
    if test -f "$ac_srcdir/configure.gnu"; then
13986
      ac_sub_configure=$ac_srcdir/configure.gnu
13987
    elif test -f "$ac_srcdir/configure"; then
13988
      ac_sub_configure=$ac_srcdir/configure
13989
    elif test -f "$ac_srcdir/configure.in"; then
13990
      # This should be Cygnus configure.
13991
      ac_sub_configure=$ac_aux_dir/configure
13992
    else
13993
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
13994
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13995
      ac_sub_configure=
13996
    fi
13997
 
13998
    # The recursion is here.
13999
    if test -n "$ac_sub_configure"; then
14000
      # Make the cache file name correct relative to the subdirectory.
14001
      case $cache_file in
14002
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14003
      *) # Relative path.
14004
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
14005
      esac
14006
 
14007
      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14008
echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14009
      # The eval makes quoting arguments work.
14010
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14011
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14012
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
14013
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
14014
   { (exit 1); exit 1; }; }
14015
    fi
14016
 
14017
    cd "$ac_popdir"
14018
  done
14019
fi
14020
 

powered by: WebSVN 2.1.0

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