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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libm/] [configure] - Blame information for rev 307

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="libm.texinfo"
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"
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 NEWLIB_HW_FP_TRUE NEWLIB_HW_FP_FALSE 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 LIBM_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-hw-fp    Turn on hardware floating point math
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
# Check whether --enable-newlib_hw_fp or --disable-newlib_hw_fp was given.
1502
if test "${enable_newlib_hw_fp+set}" = set; then
1503
  enableval="$enable_newlib_hw_fp"
1504
  case "${enableval}" in
1505
   yes) newlib_hw_fp=true ;;
1506
   no)  newlib_hw_fp=false ;;
1507
   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-newlib-hw-fp" >&5
1508
echo "$as_me: error: bad value ${enableval} for --enable-newlib-hw-fp" >&2;}
1509
   { (exit 1); exit 1; }; } ;;
1510
 esac
1511
else
1512
  newlib_hw_fp=false
1513
fi;
1514
 
1515
 
1516
if test x$newlib_hw_fp = xtrue; then
1517
  NEWLIB_HW_FP_TRUE=
1518
  NEWLIB_HW_FP_FALSE='#'
1519
else
1520
  NEWLIB_HW_FP_TRUE='#'
1521
  NEWLIB_HW_FP_FALSE=
1522
fi
1523
 
1524
 
1525
ac_aux_dir=
1526
for ac_dir in ../.. $srcdir/../..; do
1527
  if test -f $ac_dir/install-sh; then
1528
    ac_aux_dir=$ac_dir
1529
    ac_install_sh="$ac_aux_dir/install-sh -c"
1530
    break
1531
  elif test -f $ac_dir/install.sh; then
1532
    ac_aux_dir=$ac_dir
1533
    ac_install_sh="$ac_aux_dir/install.sh -c"
1534
    break
1535
  elif test -f $ac_dir/shtool; then
1536
    ac_aux_dir=$ac_dir
1537
    ac_install_sh="$ac_aux_dir/shtool install -c"
1538
    break
1539
  fi
1540
done
1541
if test -z "$ac_aux_dir"; then
1542
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&5
1543
echo "$as_me: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&2;}
1544
   { (exit 1); exit 1; }; }
1545
fi
1546
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1547
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1548
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1549
 
1550
 
1551
 
1552
# Make sure we can run config.sub.
1553
$ac_config_sub sun4 >/dev/null 2>&1 ||
1554
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1555
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1556
   { (exit 1); exit 1; }; }
1557
 
1558
echo "$as_me:$LINENO: checking build system type" >&5
1559
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1560
if test "${ac_cv_build+set}" = set; then
1561
  echo $ECHO_N "(cached) $ECHO_C" >&6
1562
else
1563
  ac_cv_build_alias=$build_alias
1564
test -z "$ac_cv_build_alias" &&
1565
  ac_cv_build_alias=`$ac_config_guess`
1566
test -z "$ac_cv_build_alias" &&
1567
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1568
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1569
   { (exit 1); exit 1; }; }
1570
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1571
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1572
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1573
   { (exit 1); exit 1; }; }
1574
 
1575
fi
1576
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1577
echo "${ECHO_T}$ac_cv_build" >&6
1578
build=$ac_cv_build
1579
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1582
 
1583
 
1584
am__api_version="1.9"
1585
# Find a good install program.  We prefer a C program (faster),
1586
# so one script is as good as another.  But avoid the broken or
1587
# incompatible versions:
1588
# SysV /etc/install, /usr/sbin/install
1589
# SunOS /usr/etc/install
1590
# IRIX /sbin/install
1591
# AIX /bin/install
1592
# AmigaOS /C/install, which installs bootblocks on floppy discs
1593
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1594
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1595
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1596
# OS/2's system install, which has a completely different semantic
1597
# ./install, which can be erroneously created by make from ./install.sh.
1598
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1599
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1600
if test -z "$INSTALL"; then
1601
if test "${ac_cv_path_install+set}" = set; then
1602
  echo $ECHO_N "(cached) $ECHO_C" >&6
1603
else
1604
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605
for as_dir in $PATH
1606
do
1607
  IFS=$as_save_IFS
1608
  test -z "$as_dir" && as_dir=.
1609
  # Account for people who put trailing slashes in PATH elements.
1610
case $as_dir/ in
1611
  ./ | .// | /cC/* | \
1612
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1613
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1614
  /usr/ucb/* ) ;;
1615
  *)
1616
    # OSF1 and SCO ODT 3.0 have their own names for install.
1617
    # Don't use installbsd from OSF since it installs stuff as root
1618
    # by default.
1619
    for ac_prog in ginstall scoinst install; do
1620
      for ac_exec_ext in '' $ac_executable_extensions; do
1621
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1622
          if test $ac_prog = install &&
1623
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1624
            # AIX install.  It has an incompatible calling convention.
1625
            :
1626
          elif test $ac_prog = install &&
1627
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1628
            # program-specific install script used by HP pwplus--don't use.
1629
            :
1630
          else
1631
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1632
            break 3
1633
          fi
1634
        fi
1635
      done
1636
    done
1637
    ;;
1638
esac
1639
done
1640
 
1641
 
1642
fi
1643
  if test "${ac_cv_path_install+set}" = set; then
1644
    INSTALL=$ac_cv_path_install
1645
  else
1646
    # As a last resort, use the slow shell script.  We don't cache a
1647
    # path for INSTALL within a source directory, because that will
1648
    # break other packages using the cache if that directory is
1649
    # removed, or if the path is relative.
1650
    INSTALL=$ac_install_sh
1651
  fi
1652
fi
1653
echo "$as_me:$LINENO: result: $INSTALL" >&5
1654
echo "${ECHO_T}$INSTALL" >&6
1655
 
1656
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1657
# It thinks the first close brace ends the variable substitution.
1658
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1659
 
1660
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1661
 
1662
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1663
 
1664
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1665
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1666
# Just in case
1667
sleep 1
1668
echo timestamp > conftest.file
1669
# Do `set' in a subshell so we don't clobber the current shell's
1670
# arguments.  Must try -L first in case configure is actually a
1671
# symlink; some systems play weird games with the mod time of symlinks
1672
# (eg FreeBSD returns the mod time of the symlink's containing
1673
# directory).
1674
if (
1675
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1676
   if test "$*" = "X"; then
1677
      # -L didn't work.
1678
      set X `ls -t $srcdir/configure conftest.file`
1679
   fi
1680
   rm -f conftest.file
1681
   if test "$*" != "X $srcdir/configure conftest.file" \
1682
      && test "$*" != "X conftest.file $srcdir/configure"; then
1683
 
1684
      # If neither matched, then we have a broken ls.  This can happen
1685
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1686
      # broken ls alias from the environment.  This has actually
1687
      # happened.  Such a system could not be considered "sane".
1688
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1689
alias in your environment" >&5
1690
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1691
alias in your environment" >&2;}
1692
   { (exit 1); exit 1; }; }
1693
   fi
1694
 
1695
   test "$2" = conftest.file
1696
   )
1697
then
1698
   # Ok.
1699
   :
1700
else
1701
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1702
Check your system clock" >&5
1703
echo "$as_me: error: newly created file is older than distributed files!
1704
Check your system clock" >&2;}
1705
   { (exit 1); exit 1; }; }
1706
fi
1707
echo "$as_me:$LINENO: result: yes" >&5
1708
echo "${ECHO_T}yes" >&6
1709
test "$program_prefix" != NONE &&
1710
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1711
# Use a double $ so make ignores it.
1712
test "$program_suffix" != NONE &&
1713
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1714
# Double any \ or $.  echo might interpret backslashes.
1715
# By default was `s,x,x', remove it if useless.
1716
cat <<\_ACEOF >conftest.sed
1717
s/[\\$]/&&/g;s/;s,x,x,$//
1718
_ACEOF
1719
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1720
rm conftest.sed
1721
 
1722
# expand $ac_aux_dir to an absolute path
1723
am_aux_dir=`cd $ac_aux_dir && pwd`
1724
 
1725
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1726
# Use eval to expand $SHELL
1727
if eval "$MISSING --run true"; then
1728
  am_missing_run="$MISSING --run "
1729
else
1730
  am_missing_run=
1731
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1732
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1733
fi
1734
 
1735
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1736
  # We used to keeping the `.' as first argument, in order to
1737
  # allow $(mkdir_p) to be used without argument.  As in
1738
  #   $(mkdir_p) $(somedir)
1739
  # where $(somedir) is conditionally defined.  However this is wrong
1740
  # for two reasons:
1741
  #  1. if the package is installed by a user who cannot write `.'
1742
  #     make install will fail,
1743
  #  2. the above comment should most certainly read
1744
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1745
  #     so it does not work when $(somedir) is undefined and
1746
  #     $(DESTDIR) is not.
1747
  #  To support the latter case, we have to write
1748
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1749
  #  so the `.' trick is pointless.
1750
  mkdir_p='mkdir -p --'
1751
else
1752
  # On NextStep and OpenStep, the `mkdir' command does not
1753
  # recognize any option.  It will interpret all options as
1754
  # directories to create, and then abort because `.' already
1755
  # exists.
1756
  for d in ./-p ./--version;
1757
  do
1758
    test -d $d && rmdir $d
1759
  done
1760
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1761
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1762
    mkdir_p='$(mkinstalldirs)'
1763
  else
1764
    mkdir_p='$(install_sh) -d'
1765
  fi
1766
fi
1767
 
1768
for ac_prog in gawk mawk nawk awk
1769
do
1770
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1771
set dummy $ac_prog; ac_word=$2
1772
echo "$as_me:$LINENO: checking for $ac_word" >&5
1773
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1774
if test "${ac_cv_prog_AWK+set}" = set; then
1775
  echo $ECHO_N "(cached) $ECHO_C" >&6
1776
else
1777
  if test -n "$AWK"; then
1778
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1779
else
1780
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781
for as_dir in $PATH
1782
do
1783
  IFS=$as_save_IFS
1784
  test -z "$as_dir" && as_dir=.
1785
  for ac_exec_ext in '' $ac_executable_extensions; do
1786
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787
    ac_cv_prog_AWK="$ac_prog"
1788
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789
    break 2
1790
  fi
1791
done
1792
done
1793
 
1794
fi
1795
fi
1796
AWK=$ac_cv_prog_AWK
1797
if test -n "$AWK"; then
1798
  echo "$as_me:$LINENO: result: $AWK" >&5
1799
echo "${ECHO_T}$AWK" >&6
1800
else
1801
  echo "$as_me:$LINENO: result: no" >&5
1802
echo "${ECHO_T}no" >&6
1803
fi
1804
 
1805
  test -n "$AWK" && break
1806
done
1807
 
1808
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1809
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1810
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1811
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1812
  echo $ECHO_N "(cached) $ECHO_C" >&6
1813
else
1814
  cat >conftest.make <<\_ACEOF
1815
all:
1816
        @echo 'ac_maketemp="$(MAKE)"'
1817
_ACEOF
1818
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1819
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1820
if test -n "$ac_maketemp"; then
1821
  eval ac_cv_prog_make_${ac_make}_set=yes
1822
else
1823
  eval ac_cv_prog_make_${ac_make}_set=no
1824
fi
1825
rm -f conftest.make
1826
fi
1827
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1828
  echo "$as_me:$LINENO: result: yes" >&5
1829
echo "${ECHO_T}yes" >&6
1830
  SET_MAKE=
1831
else
1832
  echo "$as_me:$LINENO: result: no" >&5
1833
echo "${ECHO_T}no" >&6
1834
  SET_MAKE="MAKE=${MAKE-make}"
1835
fi
1836
 
1837
rm -rf .tst 2>/dev/null
1838
mkdir .tst 2>/dev/null
1839
if test -d .tst; then
1840
  am__leading_dot=.
1841
else
1842
  am__leading_dot=_
1843
fi
1844
rmdir .tst 2>/dev/null
1845
 
1846
DEPDIR="${am__leading_dot}deps"
1847
 
1848
          ac_config_commands="$ac_config_commands depfiles"
1849
 
1850
 
1851
am_make=${MAKE-make}
1852
cat > confinc << 'END'
1853
am__doit:
1854
        @echo done
1855
.PHONY: am__doit
1856
END
1857
# If we don't find an include directive, just comment out the code.
1858
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1859
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1860
am__include="#"
1861
am__quote=
1862
_am_result=none
1863
# First try GNU make style include.
1864
echo "include confinc" > confmf
1865
# We grep out `Entering directory' and `Leaving directory'
1866
# messages which can occur if `w' ends up in MAKEFLAGS.
1867
# In particular we don't look at `^make:' because GNU make might
1868
# be invoked under some other name (usually "gmake"), in which
1869
# case it prints its new name instead of `make'.
1870
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1871
   am__include=include
1872
   am__quote=
1873
   _am_result=GNU
1874
fi
1875
# Now try BSD make style include.
1876
if test "$am__include" = "#"; then
1877
   echo '.include "confinc"' > confmf
1878
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1879
      am__include=.include
1880
      am__quote="\""
1881
      _am_result=BSD
1882
   fi
1883
fi
1884
 
1885
 
1886
echo "$as_me:$LINENO: result: $_am_result" >&5
1887
echo "${ECHO_T}$_am_result" >&6
1888
rm -f confinc confmf
1889
 
1890
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1891
if test "${enable_dependency_tracking+set}" = set; then
1892
  enableval="$enable_dependency_tracking"
1893
 
1894
fi;
1895
if test "x$enable_dependency_tracking" != xno; then
1896
  am_depcomp="$ac_aux_dir/depcomp"
1897
  AMDEPBACKSLASH='\'
1898
fi
1899
 
1900
 
1901
if test "x$enable_dependency_tracking" != xno; then
1902
  AMDEP_TRUE=
1903
  AMDEP_FALSE='#'
1904
else
1905
  AMDEP_TRUE='#'
1906
  AMDEP_FALSE=
1907
fi
1908
 
1909
 
1910
 
1911
 
1912
# Check whether --enable-multilib or --disable-multilib was given.
1913
if test "${enable_multilib+set}" = set; then
1914
  enableval="$enable_multilib"
1915
  case "${enableval}" in
1916
  yes) multilib=yes ;;
1917
  no)  multilib=no ;;
1918
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1919
echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1920
   { (exit 1); exit 1; }; } ;;
1921
 esac
1922
else
1923
  multilib=yes
1924
fi;
1925
# Check whether --enable-target-optspace or --disable-target-optspace was given.
1926
if test "${enable_target_optspace+set}" = set; then
1927
  enableval="$enable_target_optspace"
1928
  case "${enableval}" in
1929
  yes) target_optspace=yes ;;
1930
  no)  target_optspace=no ;;
1931
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
1932
echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
1933
   { (exit 1); exit 1; }; } ;;
1934
 esac
1935
else
1936
  target_optspace=
1937
fi;
1938
# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
1939
if test "${enable_malloc_debugging+set}" = set; then
1940
  enableval="$enable_malloc_debugging"
1941
  case "${enableval}" in
1942
  yes) malloc_debugging=yes ;;
1943
  no)  malloc_debugging=no ;;
1944
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
1945
echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
1946
   { (exit 1); exit 1; }; } ;;
1947
 esac
1948
else
1949
  malloc_debugging=
1950
fi;
1951
# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
1952
if test "${enable_newlib_multithread+set}" = set; then
1953
  enableval="$enable_newlib_multithread"
1954
  case "${enableval}" in
1955
  yes) newlib_multithread=yes ;;
1956
  no)  newlib_multithread=no ;;
1957
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
1958
echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
1959
   { (exit 1); exit 1; }; } ;;
1960
 esac
1961
else
1962
  newlib_multithread=yes
1963
fi;
1964
# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
1965
if test "${enable_newlib_iconv+set}" = set; then
1966
  enableval="$enable_newlib_iconv"
1967
  if test "${newlib_iconv+set}" != set; then
1968
   case "${enableval}" in
1969
     yes) newlib_iconv=yes ;;
1970
     no)  newlib_iconv=no ;;
1971
     *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
1972
echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
1973
   { (exit 1); exit 1; }; } ;;
1974
   esac
1975
 fi
1976
else
1977
  newlib_iconv=${newlib_iconv}
1978
fi;
1979
# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
1980
if test "${enable_newlib_elix_level+set}" = set; then
1981
  enableval="$enable_newlib_elix_level"
1982
  case "${enableval}" in
1983
  0)   newlib_elix_level=0 ;;
1984
  1)   newlib_elix_level=1 ;;
1985
  2)   newlib_elix_level=2 ;;
1986
  3)   newlib_elix_level=3 ;;
1987
  4)   newlib_elix_level=4 ;;
1988
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
1989
echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
1990
   { (exit 1); exit 1; }; } ;;
1991
 esac
1992
else
1993
  newlib_elix_level=0
1994
fi;
1995
# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
1996
if test "${enable_newlib_io_float+set}" = set; then
1997
  enableval="$enable_newlib_io_float"
1998
  case "${enableval}" in
1999
  yes) newlib_io_float=yes ;;
2000
  no)  newlib_io_float=no ;;
2001
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2002
echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2003
   { (exit 1); exit 1; }; } ;;
2004
 esac
2005
else
2006
  newlib_io_float=yes
2007
fi;
2008
# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
2009
if test "${enable_newlib_supplied_syscalls+set}" = set; then
2010
  enableval="$enable_newlib_supplied_syscalls"
2011
  case "${enableval}" in
2012
  yes) newlib_may_supply_syscalls=yes ;;
2013
  no)  newlib_may_supply_syscalls=no ;;
2014
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2015
echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2016
   { (exit 1); exit 1; }; } ;;
2017
 esac
2018
else
2019
  newlib_may_supply_syscalls=yes
2020
fi;
2021
 
2022
 
2023
if test x${newlib_may_supply_syscalls} = xyes; then
2024
  MAY_SUPPLY_SYSCALLS_TRUE=
2025
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2026
else
2027
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2028
  MAY_SUPPLY_SYSCALLS_FALSE=
2029
fi
2030
 
2031
 
2032
 
2033
test -z "${with_target_subdir}" && with_target_subdir=.
2034
 
2035
if test "${srcdir}" = "."; then
2036
  if test "${with_target_subdir}" != "."; then
2037
    newlib_basedir="${srcdir}/${with_multisrctop}../.."
2038
  else
2039
    newlib_basedir="${srcdir}/${with_multisrctop}.."
2040
  fi
2041
else
2042
  newlib_basedir="${srcdir}/.."
2043
fi
2044
 
2045
 
2046
echo "$as_me:$LINENO: checking host system type" >&5
2047
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2048
if test "${ac_cv_host+set}" = set; then
2049
  echo $ECHO_N "(cached) $ECHO_C" >&6
2050
else
2051
  ac_cv_host_alias=$host_alias
2052
test -z "$ac_cv_host_alias" &&
2053
  ac_cv_host_alias=$ac_cv_build_alias
2054
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2055
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2056
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2057
   { (exit 1); exit 1; }; }
2058
 
2059
fi
2060
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2061
echo "${ECHO_T}$ac_cv_host" >&6
2062
host=$ac_cv_host
2063
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2064
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2065
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2066
 
2067
 
2068
 
2069
# test to see if srcdir already configured
2070
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2071
   test -f $srcdir/config.status; then
2072
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2073
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2074
   { (exit 1); exit 1; }; }
2075
fi
2076
 
2077
# test whether we have cygpath
2078
if test -z "$CYGPATH_W"; then
2079
  if (cygpath --version) >/dev/null 2>/dev/null; then
2080
    CYGPATH_W='cygpath -w'
2081
  else
2082
    CYGPATH_W=echo
2083
  fi
2084
fi
2085
 
2086
 
2087
# Define the identity of the package.
2088
 PACKAGE='newlib'
2089
 VERSION='1.17.0'
2090
 
2091
 
2092
# Some tools Automake needs.
2093
 
2094
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2095
 
2096
 
2097
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2098
 
2099
 
2100
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2101
 
2102
 
2103
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2104
 
2105
 
2106
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2107
 
2108
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2109
 
2110
# Installed binaries are usually stripped using `strip' when the user
2111
# run `make install-strip'.  However `strip' might not be the right
2112
# tool to use in cross-compilation environments, therefore Automake
2113
# will honor the `STRIP' environment variable to overrule this program.
2114
if test "$cross_compiling" != no; then
2115
  if test -n "$ac_tool_prefix"; then
2116
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2117
set dummy ${ac_tool_prefix}strip; ac_word=$2
2118
echo "$as_me:$LINENO: checking for $ac_word" >&5
2119
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120
if test "${ac_cv_prog_STRIP+set}" = set; then
2121
  echo $ECHO_N "(cached) $ECHO_C" >&6
2122
else
2123
  if test -n "$STRIP"; then
2124
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2125
else
2126
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127
for as_dir in $PATH
2128
do
2129
  IFS=$as_save_IFS
2130
  test -z "$as_dir" && as_dir=.
2131
  for ac_exec_ext in '' $ac_executable_extensions; do
2132
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2134
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135
    break 2
2136
  fi
2137
done
2138
done
2139
 
2140
fi
2141
fi
2142
STRIP=$ac_cv_prog_STRIP
2143
if test -n "$STRIP"; then
2144
  echo "$as_me:$LINENO: result: $STRIP" >&5
2145
echo "${ECHO_T}$STRIP" >&6
2146
else
2147
  echo "$as_me:$LINENO: result: no" >&5
2148
echo "${ECHO_T}no" >&6
2149
fi
2150
 
2151
fi
2152
if test -z "$ac_cv_prog_STRIP"; then
2153
  ac_ct_STRIP=$STRIP
2154
  # Extract the first word of "strip", so it can be a program name with args.
2155
set dummy strip; ac_word=$2
2156
echo "$as_me:$LINENO: checking for $ac_word" >&5
2157
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2158
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2159
  echo $ECHO_N "(cached) $ECHO_C" >&6
2160
else
2161
  if test -n "$ac_ct_STRIP"; then
2162
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2163
else
2164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165
for as_dir in $PATH
2166
do
2167
  IFS=$as_save_IFS
2168
  test -z "$as_dir" && as_dir=.
2169
  for ac_exec_ext in '' $ac_executable_extensions; do
2170
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2171
    ac_cv_prog_ac_ct_STRIP="strip"
2172
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173
    break 2
2174
  fi
2175
done
2176
done
2177
 
2178
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2179
fi
2180
fi
2181
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2182
if test -n "$ac_ct_STRIP"; then
2183
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2184
echo "${ECHO_T}$ac_ct_STRIP" >&6
2185
else
2186
  echo "$as_me:$LINENO: result: no" >&5
2187
echo "${ECHO_T}no" >&6
2188
fi
2189
 
2190
  STRIP=$ac_ct_STRIP
2191
else
2192
  STRIP="$ac_cv_prog_STRIP"
2193
fi
2194
 
2195
fi
2196
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2197
 
2198
# We need awk for the "check" target.  The system "awk" is bad on
2199
# some platforms.
2200
# Always define AMTAR for backward compatibility.
2201
 
2202
AMTAR=${AMTAR-"${am_missing_run}tar"}
2203
 
2204
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2205
 
2206
 
2207
 
2208
 
2209
 
2210
 
2211
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2212
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2213
# are probably using a cross compiler, which will not be able to fully
2214
# link an executable.  This should really be fixed in autoconf
2215
# itself.
2216
 
2217
 
2218
 
2219
 
2220
 
2221
 
2222
 
2223
# Extract the first word of "gcc", so it can be a program name with args.
2224
set dummy gcc; ac_word=$2
2225
echo "$as_me:$LINENO: checking for $ac_word" >&5
2226
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2227
if test "${ac_cv_prog_CC+set}" = set; then
2228
  echo $ECHO_N "(cached) $ECHO_C" >&6
2229
else
2230
  if test -n "$CC"; then
2231
  ac_cv_prog_CC="$CC" # Let the user override the test.
2232
else
2233
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234
for as_dir in $PATH
2235
do
2236
  IFS=$as_save_IFS
2237
  test -z "$as_dir" && as_dir=.
2238
  for ac_exec_ext in '' $ac_executable_extensions; do
2239
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2240
    ac_cv_prog_CC="gcc"
2241
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242
    break 2
2243
  fi
2244
done
2245
done
2246
 
2247
fi
2248
fi
2249
CC=$ac_cv_prog_CC
2250
if test -n "$CC"; then
2251
  echo "$as_me:$LINENO: result: $CC" >&5
2252
echo "${ECHO_T}$CC" >&6
2253
else
2254
  echo "$as_me:$LINENO: result: no" >&5
2255
echo "${ECHO_T}no" >&6
2256
fi
2257
 
2258
 
2259
depcc="$CC"   am_compiler_list=
2260
 
2261
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2262
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2263
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2264
  echo $ECHO_N "(cached) $ECHO_C" >&6
2265
else
2266
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2267
  # We make a subdir and do the tests there.  Otherwise we can end up
2268
  # making bogus files that we don't know about and never remove.  For
2269
  # instance it was reported that on HP-UX the gcc test will end up
2270
  # making a dummy file named `D' -- because `-MD' means `put the output
2271
  # in D'.
2272
  mkdir conftest.dir
2273
  # Copy depcomp to subdir because otherwise we won't find it if we're
2274
  # using a relative directory.
2275
  cp "$am_depcomp" conftest.dir
2276
  cd conftest.dir
2277
  # We will build objects and dependencies in a subdirectory because
2278
  # it helps to detect inapplicable dependency modes.  For instance
2279
  # both Tru64's cc and ICC support -MD to output dependencies as a
2280
  # side effect of compilation, but ICC will put the dependencies in
2281
  # the current directory while Tru64 will put them in the object
2282
  # directory.
2283
  mkdir sub
2284
 
2285
  am_cv_CC_dependencies_compiler_type=none
2286
  if test "$am_compiler_list" = ""; then
2287
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2288
  fi
2289
  for depmode in $am_compiler_list; do
2290
    # Setup a source with many dependencies, because some compilers
2291
    # like to wrap large dependency lists on column 80 (with \), and
2292
    # we should not choose a depcomp mode which is confused by this.
2293
    #
2294
    # We need to recreate these files for each test, as the compiler may
2295
    # overwrite some of them when testing with obscure command lines.
2296
    # This happens at least with the AIX C compiler.
2297
    : > sub/conftest.c
2298
    for i in 1 2 3 4 5 6; do
2299
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2300
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2301
      # Solaris 8's {/usr,}/bin/sh.
2302
      touch sub/conftst$i.h
2303
    done
2304
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2305
 
2306
    case $depmode in
2307
    nosideeffect)
2308
      # after this tag, mechanisms are not by side-effect, so they'll
2309
      # only be used when explicitly requested
2310
      if test "x$enable_dependency_tracking" = xyes; then
2311
        continue
2312
      else
2313
        break
2314
      fi
2315
      ;;
2316
    none) break ;;
2317
    esac
2318
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2319
    # mode.  It turns out that the SunPro C++ compiler does not properly
2320
    # handle `-M -o', and we need to detect this.
2321
    if depmode=$depmode \
2322
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2323
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2324
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2325
         >/dev/null 2>conftest.err &&
2326
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2327
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2328
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2329
      # icc doesn't choke on unknown options, it will just issue warnings
2330
      # or remarks (even with -Werror).  So we grep stderr for any message
2331
      # that says an option was ignored or not supported.
2332
      # When given -MP, icc 7.0 and 7.1 complain thusly:
2333
      #   icc: Command line warning: ignoring option '-M'; no argument required
2334
      # The diagnosis changed in icc 8.0:
2335
      #   icc: Command line remark: option '-MP' not supported
2336
      if (grep 'ignoring option' conftest.err ||
2337
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2338
        am_cv_CC_dependencies_compiler_type=$depmode
2339
        break
2340
      fi
2341
    fi
2342
  done
2343
 
2344
  cd ..
2345
  rm -rf conftest.dir
2346
else
2347
  am_cv_CC_dependencies_compiler_type=none
2348
fi
2349
 
2350
fi
2351
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2352
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2353
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2354
 
2355
 
2356
 
2357
if
2358
  test "x$enable_dependency_tracking" != xno \
2359
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2360
  am__fastdepCC_TRUE=
2361
  am__fastdepCC_FALSE='#'
2362
else
2363
  am__fastdepCC_TRUE='#'
2364
  am__fastdepCC_FALSE=
2365
fi
2366
 
2367
 
2368
if test -z "$CC"; then
2369
  # Extract the first word of "cc", so it can be a program name with args.
2370
set dummy cc; ac_word=$2
2371
echo "$as_me:$LINENO: checking for $ac_word" >&5
2372
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2373
if test "${ac_cv_prog_CC+set}" = set; then
2374
  echo $ECHO_N "(cached) $ECHO_C" >&6
2375
else
2376
  if test -n "$CC"; then
2377
  ac_cv_prog_CC="$CC" # Let the user override the test.
2378
else
2379
  ac_prog_rejected=no
2380
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381
for as_dir in $PATH
2382
do
2383
  IFS=$as_save_IFS
2384
  test -z "$as_dir" && as_dir=.
2385
  for ac_exec_ext in '' $ac_executable_extensions; do
2386
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2387
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2388
       ac_prog_rejected=yes
2389
       continue
2390
     fi
2391
    ac_cv_prog_CC="cc"
2392
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2393
    break 2
2394
  fi
2395
done
2396
done
2397
 
2398
if test $ac_prog_rejected = yes; then
2399
  # We found a bogon in the path, so make sure we never use it.
2400
  set dummy $ac_cv_prog_CC
2401
  shift
2402
  if test $# != 0; then
2403
    # We chose a different compiler from the bogus one.
2404
    # However, it has the same basename, so the bogon will be chosen
2405
    # first if we set CC to just the basename; use the full file name.
2406
    shift
2407
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2408
  fi
2409
fi
2410
fi
2411
fi
2412
CC=$ac_cv_prog_CC
2413
if test -n "$CC"; then
2414
  echo "$as_me:$LINENO: result: $CC" >&5
2415
echo "${ECHO_T}$CC" >&6
2416
else
2417
  echo "$as_me:$LINENO: result: no" >&5
2418
echo "${ECHO_T}no" >&6
2419
fi
2420
 
2421
  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2422
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2423
   { (exit 1); exit 1; }; }
2424
fi
2425
 
2426
echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
2427
echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
2428
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2429
  echo $ECHO_N "(cached) $ECHO_C" >&6
2430
else
2431
  cat > conftest.c <
2432
#ifdef __GNUC__
2433
  yes;
2434
#endif
2435
EOF
2436
if { ac_try='${CC-cc} -E conftest.c'
2437
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438
  (eval $ac_try) 2>&5
2439
  ac_status=$?
2440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2442
  ac_cv_c_compiler_gnu=yes
2443
else
2444
  ac_cv_c_compiler_gnu=no
2445
fi
2446
fi
2447
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2448
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2449
 
2450
if test $ac_cv_c_compiler_gnu = yes; then
2451
  GCC=yes
2452
  ac_test_CFLAGS="${CFLAGS+set}"
2453
  ac_save_CFLAGS="$CFLAGS"
2454
  CFLAGS=
2455
  ac_test_CFLAGS=${CFLAGS+set}
2456
ac_save_CFLAGS=$CFLAGS
2457
CFLAGS="-g"
2458
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2459
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2460
if test "${ac_cv_prog_cc_g+set}" = set; then
2461
  echo $ECHO_N "(cached) $ECHO_C" >&6
2462
else
2463
  cat >conftest.$ac_ext <<_ACEOF
2464
/* confdefs.h.  */
2465
_ACEOF
2466
cat confdefs.h >>conftest.$ac_ext
2467
cat >>conftest.$ac_ext <<_ACEOF
2468
/* end confdefs.h.  */
2469
 
2470
int
2471
main ()
2472
{
2473
 
2474
  ;
2475
  return 0;
2476
}
2477
_ACEOF
2478
rm -f conftest.$ac_objext
2479
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2480
  (eval $ac_compile) 2>conftest.er1
2481
  ac_status=$?
2482
  grep -v '^ *+' conftest.er1 >conftest.err
2483
  rm -f conftest.er1
2484
  cat conftest.err >&5
2485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486
  (exit $ac_status); } &&
2487
         { ac_try='test -z "$ac_c_werror_flag"
2488
                         || test ! -s conftest.err'
2489
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490
  (eval $ac_try) 2>&5
2491
  ac_status=$?
2492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493
  (exit $ac_status); }; } &&
2494
         { ac_try='test -s conftest.$ac_objext'
2495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496
  (eval $ac_try) 2>&5
2497
  ac_status=$?
2498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499
  (exit $ac_status); }; }; then
2500
  ac_cv_prog_cc_g=yes
2501
else
2502
  echo "$as_me: failed program was:" >&5
2503
sed 's/^/| /' conftest.$ac_ext >&5
2504
 
2505
ac_cv_prog_cc_g=no
2506
fi
2507
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2508
fi
2509
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2510
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2511
if test "$ac_test_CFLAGS" = set; then
2512
  CFLAGS=$ac_save_CFLAGS
2513
elif test $ac_cv_prog_cc_g = yes; then
2514
  if test "$GCC" = yes; then
2515
    CFLAGS="-g -O2"
2516
  else
2517
    CFLAGS="-g"
2518
  fi
2519
else
2520
  if test "$GCC" = yes; then
2521
    CFLAGS="-O2"
2522
  else
2523
    CFLAGS=
2524
  fi
2525
fi
2526
  if test "$ac_test_CFLAGS" = set; then
2527
    CFLAGS="$ac_save_CFLAGS"
2528
  elif test $ac_cv_prog_cc_g = yes; then
2529
    CFLAGS="-g -O2"
2530
  else
2531
    CFLAGS="-O2"
2532
  fi
2533
else
2534
  GCC=
2535
  test "${CFLAGS+set}" = set || CFLAGS="-g"
2536
fi
2537
 
2538
 
2539
if test -n "$ac_tool_prefix"; then
2540
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2541
set dummy ${ac_tool_prefix}as; ac_word=$2
2542
echo "$as_me:$LINENO: checking for $ac_word" >&5
2543
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2544
if test "${ac_cv_prog_AS+set}" = set; then
2545
  echo $ECHO_N "(cached) $ECHO_C" >&6
2546
else
2547
  if test -n "$AS"; then
2548
  ac_cv_prog_AS="$AS" # Let the user override the test.
2549
else
2550
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551
for as_dir in $PATH
2552
do
2553
  IFS=$as_save_IFS
2554
  test -z "$as_dir" && as_dir=.
2555
  for ac_exec_ext in '' $ac_executable_extensions; do
2556
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2557
    ac_cv_prog_AS="${ac_tool_prefix}as"
2558
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559
    break 2
2560
  fi
2561
done
2562
done
2563
 
2564
fi
2565
fi
2566
AS=$ac_cv_prog_AS
2567
if test -n "$AS"; then
2568
  echo "$as_me:$LINENO: result: $AS" >&5
2569
echo "${ECHO_T}$AS" >&6
2570
else
2571
  echo "$as_me:$LINENO: result: no" >&5
2572
echo "${ECHO_T}no" >&6
2573
fi
2574
 
2575
fi
2576
if test -z "$ac_cv_prog_AS"; then
2577
  ac_ct_AS=$AS
2578
  # Extract the first word of "as", so it can be a program name with args.
2579
set dummy as; ac_word=$2
2580
echo "$as_me:$LINENO: checking for $ac_word" >&5
2581
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2582
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2583
  echo $ECHO_N "(cached) $ECHO_C" >&6
2584
else
2585
  if test -n "$ac_ct_AS"; then
2586
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2587
else
2588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589
for as_dir in $PATH
2590
do
2591
  IFS=$as_save_IFS
2592
  test -z "$as_dir" && as_dir=.
2593
  for ac_exec_ext in '' $ac_executable_extensions; do
2594
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595
    ac_cv_prog_ac_ct_AS="as"
2596
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597
    break 2
2598
  fi
2599
done
2600
done
2601
 
2602
fi
2603
fi
2604
ac_ct_AS=$ac_cv_prog_ac_ct_AS
2605
if test -n "$ac_ct_AS"; then
2606
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2607
echo "${ECHO_T}$ac_ct_AS" >&6
2608
else
2609
  echo "$as_me:$LINENO: result: no" >&5
2610
echo "${ECHO_T}no" >&6
2611
fi
2612
 
2613
  AS=$ac_ct_AS
2614
else
2615
  AS="$ac_cv_prog_AS"
2616
fi
2617
 
2618
if test -n "$ac_tool_prefix"; then
2619
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2620
set dummy ${ac_tool_prefix}ar; ac_word=$2
2621
echo "$as_me:$LINENO: checking for $ac_word" >&5
2622
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623
if test "${ac_cv_prog_AR+set}" = set; then
2624
  echo $ECHO_N "(cached) $ECHO_C" >&6
2625
else
2626
  if test -n "$AR"; then
2627
  ac_cv_prog_AR="$AR" # Let the user override the test.
2628
else
2629
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630
for as_dir in $PATH
2631
do
2632
  IFS=$as_save_IFS
2633
  test -z "$as_dir" && as_dir=.
2634
  for ac_exec_ext in '' $ac_executable_extensions; do
2635
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636
    ac_cv_prog_AR="${ac_tool_prefix}ar"
2637
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638
    break 2
2639
  fi
2640
done
2641
done
2642
 
2643
fi
2644
fi
2645
AR=$ac_cv_prog_AR
2646
if test -n "$AR"; then
2647
  echo "$as_me:$LINENO: result: $AR" >&5
2648
echo "${ECHO_T}$AR" >&6
2649
else
2650
  echo "$as_me:$LINENO: result: no" >&5
2651
echo "${ECHO_T}no" >&6
2652
fi
2653
 
2654
fi
2655
if test -z "$ac_cv_prog_AR"; then
2656
  ac_ct_AR=$AR
2657
  # Extract the first word of "ar", so it can be a program name with args.
2658
set dummy ar; ac_word=$2
2659
echo "$as_me:$LINENO: checking for $ac_word" >&5
2660
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2661
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2662
  echo $ECHO_N "(cached) $ECHO_C" >&6
2663
else
2664
  if test -n "$ac_ct_AR"; then
2665
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2666
else
2667
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668
for as_dir in $PATH
2669
do
2670
  IFS=$as_save_IFS
2671
  test -z "$as_dir" && as_dir=.
2672
  for ac_exec_ext in '' $ac_executable_extensions; do
2673
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674
    ac_cv_prog_ac_ct_AR="ar"
2675
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676
    break 2
2677
  fi
2678
done
2679
done
2680
 
2681
fi
2682
fi
2683
ac_ct_AR=$ac_cv_prog_ac_ct_AR
2684
if test -n "$ac_ct_AR"; then
2685
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2686
echo "${ECHO_T}$ac_ct_AR" >&6
2687
else
2688
  echo "$as_me:$LINENO: result: no" >&5
2689
echo "${ECHO_T}no" >&6
2690
fi
2691
 
2692
  AR=$ac_ct_AR
2693
else
2694
  AR="$ac_cv_prog_AR"
2695
fi
2696
 
2697
if test -n "$ac_tool_prefix"; then
2698
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2699
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2700
echo "$as_me:$LINENO: checking for $ac_word" >&5
2701
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2702
if test "${ac_cv_prog_RANLIB+set}" = set; then
2703
  echo $ECHO_N "(cached) $ECHO_C" >&6
2704
else
2705
  if test -n "$RANLIB"; then
2706
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2707
else
2708
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709
for as_dir in $PATH
2710
do
2711
  IFS=$as_save_IFS
2712
  test -z "$as_dir" && as_dir=.
2713
  for ac_exec_ext in '' $ac_executable_extensions; do
2714
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2716
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717
    break 2
2718
  fi
2719
done
2720
done
2721
 
2722
fi
2723
fi
2724
RANLIB=$ac_cv_prog_RANLIB
2725
if test -n "$RANLIB"; then
2726
  echo "$as_me:$LINENO: result: $RANLIB" >&5
2727
echo "${ECHO_T}$RANLIB" >&6
2728
else
2729
  echo "$as_me:$LINENO: result: no" >&5
2730
echo "${ECHO_T}no" >&6
2731
fi
2732
 
2733
fi
2734
if test -z "$ac_cv_prog_RANLIB"; then
2735
  ac_ct_RANLIB=$RANLIB
2736
  # Extract the first word of "ranlib", so it can be a program name with args.
2737
set dummy ranlib; ac_word=$2
2738
echo "$as_me:$LINENO: checking for $ac_word" >&5
2739
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2740
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2741
  echo $ECHO_N "(cached) $ECHO_C" >&6
2742
else
2743
  if test -n "$ac_ct_RANLIB"; then
2744
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2745
else
2746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747
for as_dir in $PATH
2748
do
2749
  IFS=$as_save_IFS
2750
  test -z "$as_dir" && as_dir=.
2751
  for ac_exec_ext in '' $ac_executable_extensions; do
2752
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753
    ac_cv_prog_ac_ct_RANLIB="ranlib"
2754
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755
    break 2
2756
  fi
2757
done
2758
done
2759
 
2760
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2761
fi
2762
fi
2763
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2764
if test -n "$ac_ct_RANLIB"; then
2765
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2766
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2767
else
2768
  echo "$as_me:$LINENO: result: no" >&5
2769
echo "${ECHO_T}no" >&6
2770
fi
2771
 
2772
  RANLIB=$ac_ct_RANLIB
2773
else
2774
  RANLIB="$ac_cv_prog_RANLIB"
2775
fi
2776
 
2777
if test -n "$ac_tool_prefix"; then
2778
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2779
set dummy ${ac_tool_prefix}readelf; ac_word=$2
2780
echo "$as_me:$LINENO: checking for $ac_word" >&5
2781
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2782
if test "${ac_cv_prog_READELF+set}" = set; then
2783
  echo $ECHO_N "(cached) $ECHO_C" >&6
2784
else
2785
  if test -n "$READELF"; then
2786
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
2787
else
2788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789
for as_dir in $PATH
2790
do
2791
  IFS=$as_save_IFS
2792
  test -z "$as_dir" && as_dir=.
2793
  for ac_exec_ext in '' $ac_executable_extensions; do
2794
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2796
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797
    break 2
2798
  fi
2799
done
2800
done
2801
 
2802
fi
2803
fi
2804
READELF=$ac_cv_prog_READELF
2805
if test -n "$READELF"; then
2806
  echo "$as_me:$LINENO: result: $READELF" >&5
2807
echo "${ECHO_T}$READELF" >&6
2808
else
2809
  echo "$as_me:$LINENO: result: no" >&5
2810
echo "${ECHO_T}no" >&6
2811
fi
2812
 
2813
fi
2814
if test -z "$ac_cv_prog_READELF"; then
2815
  ac_ct_READELF=$READELF
2816
  # Extract the first word of "readelf", so it can be a program name with args.
2817
set dummy readelf; ac_word=$2
2818
echo "$as_me:$LINENO: checking for $ac_word" >&5
2819
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2820
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
2821
  echo $ECHO_N "(cached) $ECHO_C" >&6
2822
else
2823
  if test -n "$ac_ct_READELF"; then
2824
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2825
else
2826
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827
for as_dir in $PATH
2828
do
2829
  IFS=$as_save_IFS
2830
  test -z "$as_dir" && as_dir=.
2831
  for ac_exec_ext in '' $ac_executable_extensions; do
2832
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833
    ac_cv_prog_ac_ct_READELF="readelf"
2834
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835
    break 2
2836
  fi
2837
done
2838
done
2839
 
2840
  test -z "$ac_cv_prog_ac_ct_READELF" && ac_cv_prog_ac_ct_READELF=":"
2841
fi
2842
fi
2843
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2844
if test -n "$ac_ct_READELF"; then
2845
  echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
2846
echo "${ECHO_T}$ac_ct_READELF" >&6
2847
else
2848
  echo "$as_me:$LINENO: result: no" >&5
2849
echo "${ECHO_T}no" >&6
2850
fi
2851
 
2852
  READELF=$ac_ct_READELF
2853
else
2854
  READELF="$ac_cv_prog_READELF"
2855
fi
2856
 
2857
 
2858
# Find a good install program.  We prefer a C program (faster),
2859
# so one script is as good as another.  But avoid the broken or
2860
# incompatible versions:
2861
# SysV /etc/install, /usr/sbin/install
2862
# SunOS /usr/etc/install
2863
# IRIX /sbin/install
2864
# AIX /bin/install
2865
# AmigaOS /C/install, which installs bootblocks on floppy discs
2866
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2867
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2868
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2869
# OS/2's system install, which has a completely different semantic
2870
# ./install, which can be erroneously created by make from ./install.sh.
2871
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2872
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2873
if test -z "$INSTALL"; then
2874
if test "${ac_cv_path_install+set}" = set; then
2875
  echo $ECHO_N "(cached) $ECHO_C" >&6
2876
else
2877
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878
for as_dir in $PATH
2879
do
2880
  IFS=$as_save_IFS
2881
  test -z "$as_dir" && as_dir=.
2882
  # Account for people who put trailing slashes in PATH elements.
2883
case $as_dir/ in
2884
  ./ | .// | /cC/* | \
2885
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2886
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2887
  /usr/ucb/* ) ;;
2888
  *)
2889
    # OSF1 and SCO ODT 3.0 have their own names for install.
2890
    # Don't use installbsd from OSF since it installs stuff as root
2891
    # by default.
2892
    for ac_prog in ginstall scoinst install; do
2893
      for ac_exec_ext in '' $ac_executable_extensions; do
2894
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2895
          if test $ac_prog = install &&
2896
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2897
            # AIX install.  It has an incompatible calling convention.
2898
            :
2899
          elif test $ac_prog = install &&
2900
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2901
            # program-specific install script used by HP pwplus--don't use.
2902
            :
2903
          else
2904
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2905
            break 3
2906
          fi
2907
        fi
2908
      done
2909
    done
2910
    ;;
2911
esac
2912
done
2913
 
2914
 
2915
fi
2916
  if test "${ac_cv_path_install+set}" = set; then
2917
    INSTALL=$ac_cv_path_install
2918
  else
2919
    # As a last resort, use the slow shell script.  We don't cache a
2920
    # path for INSTALL within a source directory, because that will
2921
    # break other packages using the cache if that directory is
2922
    # removed, or if the path is relative.
2923
    INSTALL=$ac_install_sh
2924
  fi
2925
fi
2926
echo "$as_me:$LINENO: result: $INSTALL" >&5
2927
echo "${ECHO_T}$INSTALL" >&6
2928
 
2929
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2930
# It thinks the first close brace ends the variable substitution.
2931
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2932
 
2933
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2934
 
2935
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2936
 
2937
 
2938
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
2939
ac_given_INSTALL=$INSTALL
2940
 
2941
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2942
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2943
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2944
if test "${enable_maintainer_mode+set}" = set; then
2945
  enableval="$enable_maintainer_mode"
2946
  USE_MAINTAINER_MODE=$enableval
2947
else
2948
  USE_MAINTAINER_MODE=no
2949
fi;
2950
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2951
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2952
 
2953
 
2954
if test $USE_MAINTAINER_MODE = yes; then
2955
  MAINTAINER_MODE_TRUE=
2956
  MAINTAINER_MODE_FALSE='#'
2957
else
2958
  MAINTAINER_MODE_TRUE='#'
2959
  MAINTAINER_MODE_FALSE=
2960
fi
2961
 
2962
  MAINT=$MAINTAINER_MODE_TRUE
2963
 
2964
 
2965
# By default we simply use the C compiler to build assembly code.
2966
 
2967
test "${CCAS+set}" = set || CCAS=$CC
2968
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2969
 
2970
 
2971
 
2972
 
2973
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
2974
# at least currently, we never actually build a program, so we never
2975
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
2976
# fails, because we are probably configuring with a cross compiler
2977
# which can't create executables.  So we include AC_EXEEXT to keep
2978
# automake happy, but we don't execute it, since we don't care about
2979
# the result.
2980
if false; then
2981
 
2982
  dummy_var=1
2983
fi
2984
 
2985
. ${newlib_basedir}/configure.host
2986
 
2987
newlib_cflags="${newlib_cflags} -fno-builtin"
2988
 
2989
NEWLIB_CFLAGS=${newlib_cflags}
2990
 
2991
 
2992
LDFLAGS=${ldflags}
2993
 
2994
 
2995
 
2996
 
2997
if test x${newlib_elix_level} = x0; then
2998
  ELIX_LEVEL_0_TRUE=
2999
  ELIX_LEVEL_0_FALSE='#'
3000
else
3001
  ELIX_LEVEL_0_TRUE='#'
3002
  ELIX_LEVEL_0_FALSE=
3003
fi
3004
 
3005
 
3006
 
3007
if test x${newlib_elix_level} = x1; then
3008
  ELIX_LEVEL_1_TRUE=
3009
  ELIX_LEVEL_1_FALSE='#'
3010
else
3011
  ELIX_LEVEL_1_TRUE='#'
3012
  ELIX_LEVEL_1_FALSE=
3013
fi
3014
 
3015
 
3016
 
3017
if test x${newlib_elix_level} = x2; then
3018
  ELIX_LEVEL_2_TRUE=
3019
  ELIX_LEVEL_2_FALSE='#'
3020
else
3021
  ELIX_LEVEL_2_TRUE='#'
3022
  ELIX_LEVEL_2_FALSE=
3023
fi
3024
 
3025
 
3026
 
3027
if test x${newlib_elix_level} = x3; then
3028
  ELIX_LEVEL_3_TRUE=
3029
  ELIX_LEVEL_3_FALSE='#'
3030
else
3031
  ELIX_LEVEL_3_TRUE='#'
3032
  ELIX_LEVEL_3_FALSE=
3033
fi
3034
 
3035
 
3036
 
3037
if test x${newlib_elix_level} = x4; then
3038
  ELIX_LEVEL_4_TRUE=
3039
  ELIX_LEVEL_4_FALSE='#'
3040
else
3041
  ELIX_LEVEL_4_TRUE='#'
3042
  ELIX_LEVEL_4_FALSE=
3043
fi
3044
 
3045
 
3046
 
3047
 
3048
if test x${use_libtool} = xyes; then
3049
  USE_LIBTOOL_TRUE=
3050
  USE_LIBTOOL_FALSE='#'
3051
else
3052
  USE_LIBTOOL_TRUE='#'
3053
  USE_LIBTOOL_FALSE=
3054
fi
3055
 
3056
 
3057
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3058
# use oext, which is set in configure.host based on the target platform.
3059
OBJEXT=${oext}
3060
 
3061
 
3062
 
3063
 
3064
 
3065
 
3066
 
3067
 
3068
 
3069
 
3070
 
3071
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3072
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3073
if test "${lt_cv_path_SED+set}" = set; then
3074
  echo $ECHO_N "(cached) $ECHO_C" >&6
3075
else
3076
  # Loop through the user's path and test for sed and gsed.
3077
# Then use that list of sed's as ones to test for truncation.
3078
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079
for as_dir in $PATH
3080
do
3081
  IFS=$as_save_IFS
3082
  test -z "$as_dir" && as_dir=.
3083
  for lt_ac_prog in sed gsed; do
3084
    for ac_exec_ext in '' $ac_executable_extensions; do
3085
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3086
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3087
      fi
3088
    done
3089
  done
3090
done
3091
IFS=$as_save_IFS
3092
lt_ac_max=0
3093
lt_ac_count=0
3094
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3095
# along with /bin/sed that truncates output.
3096
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3097
  test ! -f $lt_ac_sed && continue
3098
  cat /dev/null > conftest.in
3099
  lt_ac_count=0
3100
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3101
  # Check for GNU sed and select it if it is found.
3102
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3103
    lt_cv_path_SED=$lt_ac_sed
3104
    break
3105
  fi
3106
  while true; do
3107
    cat conftest.in conftest.in >conftest.tmp
3108
    mv conftest.tmp conftest.in
3109
    cp conftest.in conftest.nl
3110
    echo >>conftest.nl
3111
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3112
    cmp -s conftest.out conftest.nl || break
3113
    # 10000 chars as input seems more than enough
3114
    test $lt_ac_count -gt 10 && break
3115
    lt_ac_count=`expr $lt_ac_count + 1`
3116
    if test $lt_ac_count -gt $lt_ac_max; then
3117
      lt_ac_max=$lt_ac_count
3118
      lt_cv_path_SED=$lt_ac_sed
3119
    fi
3120
  done
3121
done
3122
 
3123
fi
3124
 
3125
SED=$lt_cv_path_SED
3126
 
3127
echo "$as_me:$LINENO: result: $SED" >&5
3128
echo "${ECHO_T}$SED" >&6
3129
 
3130
test -z "$SED" && SED=sed
3131
Xsed="$SED -e 1s/^X//"
3132
 
3133
 
3134
 
3135
 
3136
 
3137
 
3138
 
3139
 
3140
 
3141
 
3142
 
3143
if test "${use_libtool}" = "yes"; then
3144
enable_win32_dll=yes
3145
 
3146
case $host in
3147
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3148
  if test -n "$ac_tool_prefix"; then
3149
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3150
set dummy ${ac_tool_prefix}as; ac_word=$2
3151
echo "$as_me:$LINENO: checking for $ac_word" >&5
3152
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153
if test "${ac_cv_prog_AS+set}" = set; then
3154
  echo $ECHO_N "(cached) $ECHO_C" >&6
3155
else
3156
  if test -n "$AS"; then
3157
  ac_cv_prog_AS="$AS" # Let the user override the test.
3158
else
3159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160
for as_dir in $PATH
3161
do
3162
  IFS=$as_save_IFS
3163
  test -z "$as_dir" && as_dir=.
3164
  for ac_exec_ext in '' $ac_executable_extensions; do
3165
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166
    ac_cv_prog_AS="${ac_tool_prefix}as"
3167
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168
    break 2
3169
  fi
3170
done
3171
done
3172
 
3173
fi
3174
fi
3175
AS=$ac_cv_prog_AS
3176
if test -n "$AS"; then
3177
  echo "$as_me:$LINENO: result: $AS" >&5
3178
echo "${ECHO_T}$AS" >&6
3179
else
3180
  echo "$as_me:$LINENO: result: no" >&5
3181
echo "${ECHO_T}no" >&6
3182
fi
3183
 
3184
fi
3185
if test -z "$ac_cv_prog_AS"; then
3186
  ac_ct_AS=$AS
3187
  # Extract the first word of "as", so it can be a program name with args.
3188
set dummy as; ac_word=$2
3189
echo "$as_me:$LINENO: checking for $ac_word" >&5
3190
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3192
  echo $ECHO_N "(cached) $ECHO_C" >&6
3193
else
3194
  if test -n "$ac_ct_AS"; then
3195
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3196
else
3197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198
for as_dir in $PATH
3199
do
3200
  IFS=$as_save_IFS
3201
  test -z "$as_dir" && as_dir=.
3202
  for ac_exec_ext in '' $ac_executable_extensions; do
3203
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204
    ac_cv_prog_ac_ct_AS="as"
3205
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206
    break 2
3207
  fi
3208
done
3209
done
3210
 
3211
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3212
fi
3213
fi
3214
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3215
if test -n "$ac_ct_AS"; then
3216
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3217
echo "${ECHO_T}$ac_ct_AS" >&6
3218
else
3219
  echo "$as_me:$LINENO: result: no" >&5
3220
echo "${ECHO_T}no" >&6
3221
fi
3222
 
3223
  AS=$ac_ct_AS
3224
else
3225
  AS="$ac_cv_prog_AS"
3226
fi
3227
 
3228
  if test -n "$ac_tool_prefix"; then
3229
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3230
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3231
echo "$as_me:$LINENO: checking for $ac_word" >&5
3232
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3233
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3234
  echo $ECHO_N "(cached) $ECHO_C" >&6
3235
else
3236
  if test -n "$DLLTOOL"; then
3237
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3238
else
3239
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240
for as_dir in $PATH
3241
do
3242
  IFS=$as_save_IFS
3243
  test -z "$as_dir" && as_dir=.
3244
  for ac_exec_ext in '' $ac_executable_extensions; do
3245
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3247
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248
    break 2
3249
  fi
3250
done
3251
done
3252
 
3253
fi
3254
fi
3255
DLLTOOL=$ac_cv_prog_DLLTOOL
3256
if test -n "$DLLTOOL"; then
3257
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3258
echo "${ECHO_T}$DLLTOOL" >&6
3259
else
3260
  echo "$as_me:$LINENO: result: no" >&5
3261
echo "${ECHO_T}no" >&6
3262
fi
3263
 
3264
fi
3265
if test -z "$ac_cv_prog_DLLTOOL"; then
3266
  ac_ct_DLLTOOL=$DLLTOOL
3267
  # Extract the first word of "dlltool", so it can be a program name with args.
3268
set dummy dlltool; ac_word=$2
3269
echo "$as_me:$LINENO: checking for $ac_word" >&5
3270
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3271
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3272
  echo $ECHO_N "(cached) $ECHO_C" >&6
3273
else
3274
  if test -n "$ac_ct_DLLTOOL"; then
3275
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3276
else
3277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278
for as_dir in $PATH
3279
do
3280
  IFS=$as_save_IFS
3281
  test -z "$as_dir" && as_dir=.
3282
  for ac_exec_ext in '' $ac_executable_extensions; do
3283
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3285
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3286
    break 2
3287
  fi
3288
done
3289
done
3290
 
3291
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3292
fi
3293
fi
3294
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3295
if test -n "$ac_ct_DLLTOOL"; then
3296
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3297
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3298
else
3299
  echo "$as_me:$LINENO: result: no" >&5
3300
echo "${ECHO_T}no" >&6
3301
fi
3302
 
3303
  DLLTOOL=$ac_ct_DLLTOOL
3304
else
3305
  DLLTOOL="$ac_cv_prog_DLLTOOL"
3306
fi
3307
 
3308
  if test -n "$ac_tool_prefix"; then
3309
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3310
set dummy ${ac_tool_prefix}objdump; ac_word=$2
3311
echo "$as_me:$LINENO: checking for $ac_word" >&5
3312
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3313
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3314
  echo $ECHO_N "(cached) $ECHO_C" >&6
3315
else
3316
  if test -n "$OBJDUMP"; then
3317
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3318
else
3319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320
for as_dir in $PATH
3321
do
3322
  IFS=$as_save_IFS
3323
  test -z "$as_dir" && as_dir=.
3324
  for ac_exec_ext in '' $ac_executable_extensions; do
3325
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3327
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3328
    break 2
3329
  fi
3330
done
3331
done
3332
 
3333
fi
3334
fi
3335
OBJDUMP=$ac_cv_prog_OBJDUMP
3336
if test -n "$OBJDUMP"; then
3337
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3338
echo "${ECHO_T}$OBJDUMP" >&6
3339
else
3340
  echo "$as_me:$LINENO: result: no" >&5
3341
echo "${ECHO_T}no" >&6
3342
fi
3343
 
3344
fi
3345
if test -z "$ac_cv_prog_OBJDUMP"; then
3346
  ac_ct_OBJDUMP=$OBJDUMP
3347
  # Extract the first word of "objdump", so it can be a program name with args.
3348
set dummy objdump; ac_word=$2
3349
echo "$as_me:$LINENO: checking for $ac_word" >&5
3350
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3351
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3352
  echo $ECHO_N "(cached) $ECHO_C" >&6
3353
else
3354
  if test -n "$ac_ct_OBJDUMP"; then
3355
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3356
else
3357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358
for as_dir in $PATH
3359
do
3360
  IFS=$as_save_IFS
3361
  test -z "$as_dir" && as_dir=.
3362
  for ac_exec_ext in '' $ac_executable_extensions; do
3363
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
3365
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3366
    break 2
3367
  fi
3368
done
3369
done
3370
 
3371
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3372
fi
3373
fi
3374
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3375
if test -n "$ac_ct_OBJDUMP"; then
3376
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3377
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3378
else
3379
  echo "$as_me:$LINENO: result: no" >&5
3380
echo "${ECHO_T}no" >&6
3381
fi
3382
 
3383
  OBJDUMP=$ac_ct_OBJDUMP
3384
else
3385
  OBJDUMP="$ac_cv_prog_OBJDUMP"
3386
fi
3387
 
3388
  ;;
3389
esac
3390
 
3391
test -z "$AS" && AS=as
3392
 
3393
 
3394
 
3395
 
3396
 
3397
test -z "$DLLTOOL" && DLLTOOL=dlltool
3398
 
3399
 
3400
 
3401
 
3402
 
3403
test -z "$OBJDUMP" && OBJDUMP=objdump
3404
 
3405
 
3406
 
3407
 
3408
 
3409
 
3410
 
3411
case `pwd` in
3412
  *\ * | *\     *)
3413
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3414
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3415
esac
3416
 
3417
 
3418
 
3419
macro_version='2.2.6'
3420
macro_revision='1.3012'
3421
 
3422
 
3423
 
3424
 
3425
 
3426
 
3427
 
3428
 
3429
 
3430
 
3431
 
3432
 
3433
 
3434
ltmain="$ac_aux_dir/ltmain.sh"
3435
 
3436
ac_ext=c
3437
ac_cpp='$CPP $CPPFLAGS'
3438
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3439
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3440
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441
if test -n "$ac_tool_prefix"; then
3442
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3443
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3444
echo "$as_me:$LINENO: checking for $ac_word" >&5
3445
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446
if test "${ac_cv_prog_CC+set}" = set; then
3447
  echo $ECHO_N "(cached) $ECHO_C" >&6
3448
else
3449
  if test -n "$CC"; then
3450
  ac_cv_prog_CC="$CC" # Let the user override the test.
3451
else
3452
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453
for as_dir in $PATH
3454
do
3455
  IFS=$as_save_IFS
3456
  test -z "$as_dir" && as_dir=.
3457
  for ac_exec_ext in '' $ac_executable_extensions; do
3458
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3460
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461
    break 2
3462
  fi
3463
done
3464
done
3465
 
3466
fi
3467
fi
3468
CC=$ac_cv_prog_CC
3469
if test -n "$CC"; then
3470
  echo "$as_me:$LINENO: result: $CC" >&5
3471
echo "${ECHO_T}$CC" >&6
3472
else
3473
  echo "$as_me:$LINENO: result: no" >&5
3474
echo "${ECHO_T}no" >&6
3475
fi
3476
 
3477
fi
3478
if test -z "$ac_cv_prog_CC"; then
3479
  ac_ct_CC=$CC
3480
  # Extract the first word of "gcc", so it can be a program name with args.
3481
set dummy gcc; ac_word=$2
3482
echo "$as_me:$LINENO: checking for $ac_word" >&5
3483
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3484
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3485
  echo $ECHO_N "(cached) $ECHO_C" >&6
3486
else
3487
  if test -n "$ac_ct_CC"; then
3488
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3489
else
3490
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491
for as_dir in $PATH
3492
do
3493
  IFS=$as_save_IFS
3494
  test -z "$as_dir" && as_dir=.
3495
  for ac_exec_ext in '' $ac_executable_extensions; do
3496
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3497
    ac_cv_prog_ac_ct_CC="gcc"
3498
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3499
    break 2
3500
  fi
3501
done
3502
done
3503
 
3504
fi
3505
fi
3506
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3507
if test -n "$ac_ct_CC"; then
3508
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3509
echo "${ECHO_T}$ac_ct_CC" >&6
3510
else
3511
  echo "$as_me:$LINENO: result: no" >&5
3512
echo "${ECHO_T}no" >&6
3513
fi
3514
 
3515
  CC=$ac_ct_CC
3516
else
3517
  CC="$ac_cv_prog_CC"
3518
fi
3519
 
3520
if test -z "$CC"; then
3521
  if test -n "$ac_tool_prefix"; then
3522
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3523
set dummy ${ac_tool_prefix}cc; ac_word=$2
3524
echo "$as_me:$LINENO: checking for $ac_word" >&5
3525
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3526
if test "${ac_cv_prog_CC+set}" = set; then
3527
  echo $ECHO_N "(cached) $ECHO_C" >&6
3528
else
3529
  if test -n "$CC"; then
3530
  ac_cv_prog_CC="$CC" # Let the user override the test.
3531
else
3532
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533
for as_dir in $PATH
3534
do
3535
  IFS=$as_save_IFS
3536
  test -z "$as_dir" && as_dir=.
3537
  for ac_exec_ext in '' $ac_executable_extensions; do
3538
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3540
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3541
    break 2
3542
  fi
3543
done
3544
done
3545
 
3546
fi
3547
fi
3548
CC=$ac_cv_prog_CC
3549
if test -n "$CC"; then
3550
  echo "$as_me:$LINENO: result: $CC" >&5
3551
echo "${ECHO_T}$CC" >&6
3552
else
3553
  echo "$as_me:$LINENO: result: no" >&5
3554
echo "${ECHO_T}no" >&6
3555
fi
3556
 
3557
fi
3558
if test -z "$ac_cv_prog_CC"; then
3559
  ac_ct_CC=$CC
3560
  # Extract the first word of "cc", so it can be a program name with args.
3561
set dummy cc; ac_word=$2
3562
echo "$as_me:$LINENO: checking for $ac_word" >&5
3563
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3564
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3565
  echo $ECHO_N "(cached) $ECHO_C" >&6
3566
else
3567
  if test -n "$ac_ct_CC"; then
3568
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3569
else
3570
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571
for as_dir in $PATH
3572
do
3573
  IFS=$as_save_IFS
3574
  test -z "$as_dir" && as_dir=.
3575
  for ac_exec_ext in '' $ac_executable_extensions; do
3576
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3577
    ac_cv_prog_ac_ct_CC="cc"
3578
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3579
    break 2
3580
  fi
3581
done
3582
done
3583
 
3584
fi
3585
fi
3586
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3587
if test -n "$ac_ct_CC"; then
3588
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3589
echo "${ECHO_T}$ac_ct_CC" >&6
3590
else
3591
  echo "$as_me:$LINENO: result: no" >&5
3592
echo "${ECHO_T}no" >&6
3593
fi
3594
 
3595
  CC=$ac_ct_CC
3596
else
3597
  CC="$ac_cv_prog_CC"
3598
fi
3599
 
3600
fi
3601
if test -z "$CC"; then
3602
  # Extract the first word of "cc", so it can be a program name with args.
3603
set dummy cc; ac_word=$2
3604
echo "$as_me:$LINENO: checking for $ac_word" >&5
3605
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3606
if test "${ac_cv_prog_CC+set}" = set; then
3607
  echo $ECHO_N "(cached) $ECHO_C" >&6
3608
else
3609
  if test -n "$CC"; then
3610
  ac_cv_prog_CC="$CC" # Let the user override the test.
3611
else
3612
  ac_prog_rejected=no
3613
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614
for as_dir in $PATH
3615
do
3616
  IFS=$as_save_IFS
3617
  test -z "$as_dir" && as_dir=.
3618
  for ac_exec_ext in '' $ac_executable_extensions; do
3619
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3621
       ac_prog_rejected=yes
3622
       continue
3623
     fi
3624
    ac_cv_prog_CC="cc"
3625
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3626
    break 2
3627
  fi
3628
done
3629
done
3630
 
3631
if test $ac_prog_rejected = yes; then
3632
  # We found a bogon in the path, so make sure we never use it.
3633
  set dummy $ac_cv_prog_CC
3634
  shift
3635
  if test $# != 0; then
3636
    # We chose a different compiler from the bogus one.
3637
    # However, it has the same basename, so the bogon will be chosen
3638
    # first if we set CC to just the basename; use the full file name.
3639
    shift
3640
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3641
  fi
3642
fi
3643
fi
3644
fi
3645
CC=$ac_cv_prog_CC
3646
if test -n "$CC"; then
3647
  echo "$as_me:$LINENO: result: $CC" >&5
3648
echo "${ECHO_T}$CC" >&6
3649
else
3650
  echo "$as_me:$LINENO: result: no" >&5
3651
echo "${ECHO_T}no" >&6
3652
fi
3653
 
3654
fi
3655
if test -z "$CC"; then
3656
  if test -n "$ac_tool_prefix"; then
3657
  for ac_prog in cl
3658
  do
3659
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3660
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3661
echo "$as_me:$LINENO: checking for $ac_word" >&5
3662
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3663
if test "${ac_cv_prog_CC+set}" = set; then
3664
  echo $ECHO_N "(cached) $ECHO_C" >&6
3665
else
3666
  if test -n "$CC"; then
3667
  ac_cv_prog_CC="$CC" # Let the user override the test.
3668
else
3669
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670
for as_dir in $PATH
3671
do
3672
  IFS=$as_save_IFS
3673
  test -z "$as_dir" && as_dir=.
3674
  for ac_exec_ext in '' $ac_executable_extensions; do
3675
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3676
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3677
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678
    break 2
3679
  fi
3680
done
3681
done
3682
 
3683
fi
3684
fi
3685
CC=$ac_cv_prog_CC
3686
if test -n "$CC"; then
3687
  echo "$as_me:$LINENO: result: $CC" >&5
3688
echo "${ECHO_T}$CC" >&6
3689
else
3690
  echo "$as_me:$LINENO: result: no" >&5
3691
echo "${ECHO_T}no" >&6
3692
fi
3693
 
3694
    test -n "$CC" && break
3695
  done
3696
fi
3697
if test -z "$CC"; then
3698
  ac_ct_CC=$CC
3699
  for ac_prog in cl
3700
do
3701
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3702
set dummy $ac_prog; ac_word=$2
3703
echo "$as_me:$LINENO: checking for $ac_word" >&5
3704
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3706
  echo $ECHO_N "(cached) $ECHO_C" >&6
3707
else
3708
  if test -n "$ac_ct_CC"; then
3709
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3710
else
3711
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712
for as_dir in $PATH
3713
do
3714
  IFS=$as_save_IFS
3715
  test -z "$as_dir" && as_dir=.
3716
  for ac_exec_ext in '' $ac_executable_extensions; do
3717
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718
    ac_cv_prog_ac_ct_CC="$ac_prog"
3719
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720
    break 2
3721
  fi
3722
done
3723
done
3724
 
3725
fi
3726
fi
3727
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3728
if test -n "$ac_ct_CC"; then
3729
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3730
echo "${ECHO_T}$ac_ct_CC" >&6
3731
else
3732
  echo "$as_me:$LINENO: result: no" >&5
3733
echo "${ECHO_T}no" >&6
3734
fi
3735
 
3736
  test -n "$ac_ct_CC" && break
3737
done
3738
 
3739
  CC=$ac_ct_CC
3740
fi
3741
 
3742
fi
3743
 
3744
 
3745
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3746
See \`config.log' for more details." >&5
3747
echo "$as_me: error: no acceptable C compiler found in \$PATH
3748
See \`config.log' for more details." >&2;}
3749
   { (exit 1); exit 1; }; }
3750
 
3751
# Provide some information about the compiler.
3752
echo "$as_me:$LINENO:" \
3753
     "checking for C compiler version" >&5
3754
ac_compiler=`set X $ac_compile; echo $2`
3755
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3756
  (eval $ac_compiler --version &5) 2>&5
3757
  ac_status=$?
3758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759
  (exit $ac_status); }
3760
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3761
  (eval $ac_compiler -v &5) 2>&5
3762
  ac_status=$?
3763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764
  (exit $ac_status); }
3765
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3766
  (eval $ac_compiler -V &5) 2>&5
3767
  ac_status=$?
3768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769
  (exit $ac_status); }
3770
 
3771
cat >conftest.$ac_ext <<_ACEOF
3772
/* confdefs.h.  */
3773
_ACEOF
3774
cat confdefs.h >>conftest.$ac_ext
3775
cat >>conftest.$ac_ext <<_ACEOF
3776
/* end confdefs.h.  */
3777
 
3778
int
3779
main ()
3780
{
3781
 
3782
  ;
3783
  return 0;
3784
}
3785
_ACEOF
3786
ac_clean_files_save=$ac_clean_files
3787
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3788
# Try to create an executable without -o first, disregard a.out.
3789
# It will help us diagnose broken compilers, and finding out an intuition
3790
# of exeext.
3791
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3792
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3793
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3794
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3795
  (eval $ac_link_default) 2>&5
3796
  ac_status=$?
3797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798
  (exit $ac_status); }; then
3799
  # Find the output, starting from the most likely.  This scheme is
3800
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3801
# resort.
3802
 
3803
# Be careful to initialize this variable, since it used to be cached.
3804
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3805
ac_cv_exeext=
3806
# b.out is created by i960 compilers.
3807
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3808
do
3809
  test -f "$ac_file" || continue
3810
  case $ac_file in
3811
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3812
        ;;
3813
    conftest.$ac_ext )
3814
        # This is the source file.
3815
        ;;
3816
    [ab].out )
3817
        # We found the default executable, but exeext='' is most
3818
        # certainly right.
3819
        break;;
3820
    *.* )
3821
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3822
        # FIXME: I believe we export ac_cv_exeext for Libtool,
3823
        # but it would be cool to find out if it's true.  Does anybody
3824
        # maintain Libtool? --akim.
3825
        export ac_cv_exeext
3826
        break;;
3827
    * )
3828
        break;;
3829
  esac
3830
done
3831
else
3832
  echo "$as_me: failed program was:" >&5
3833
sed 's/^/| /' conftest.$ac_ext >&5
3834
 
3835
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3836
See \`config.log' for more details." >&5
3837
echo "$as_me: error: C compiler cannot create executables
3838
See \`config.log' for more details." >&2;}
3839
   { (exit 77); exit 77; }; }
3840
fi
3841
 
3842
ac_exeext=$ac_cv_exeext
3843
echo "$as_me:$LINENO: result: $ac_file" >&5
3844
echo "${ECHO_T}$ac_file" >&6
3845
 
3846
# Check the compiler produces executables we can run.  If not, either
3847
# the compiler is broken, or we cross compile.
3848
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3849
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3850
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3851
# If not cross compiling, check that we can run a simple program.
3852
if test "$cross_compiling" != yes; then
3853
  if { ac_try='./$ac_file'
3854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855
  (eval $ac_try) 2>&5
3856
  ac_status=$?
3857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858
  (exit $ac_status); }; }; then
3859
    cross_compiling=no
3860
  else
3861
    if test "$cross_compiling" = maybe; then
3862
        cross_compiling=yes
3863
    else
3864
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3865
If you meant to cross compile, use \`--host'.
3866
See \`config.log' for more details." >&5
3867
echo "$as_me: error: cannot run C compiled programs.
3868
If you meant to cross compile, use \`--host'.
3869
See \`config.log' for more details." >&2;}
3870
   { (exit 1); exit 1; }; }
3871
    fi
3872
  fi
3873
fi
3874
echo "$as_me:$LINENO: result: yes" >&5
3875
echo "${ECHO_T}yes" >&6
3876
 
3877
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3878
ac_clean_files=$ac_clean_files_save
3879
# Check the compiler produces executables we can run.  If not, either
3880
# the compiler is broken, or we cross compile.
3881
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3882
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3883
echo "$as_me:$LINENO: result: $cross_compiling" >&5
3884
echo "${ECHO_T}$cross_compiling" >&6
3885
 
3886
echo "$as_me:$LINENO: checking for suffix of executables" >&5
3887
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3888
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3889
  (eval $ac_link) 2>&5
3890
  ac_status=$?
3891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892
  (exit $ac_status); }; then
3893
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3894
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3895
# work properly (i.e., refer to `conftest.exe'), while it won't with
3896
# `rm'.
3897
for ac_file in conftest.exe conftest conftest.*; do
3898
  test -f "$ac_file" || continue
3899
  case $ac_file in
3900
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3901
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3902
          export ac_cv_exeext
3903
          break;;
3904
    * ) break;;
3905
  esac
3906
done
3907
else
3908
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3909
See \`config.log' for more details." >&5
3910
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3911
See \`config.log' for more details." >&2;}
3912
   { (exit 1); exit 1; }; }
3913
fi
3914
 
3915
rm -f conftest$ac_cv_exeext
3916
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3917
echo "${ECHO_T}$ac_cv_exeext" >&6
3918
 
3919
rm -f conftest.$ac_ext
3920
EXEEXT=$ac_cv_exeext
3921
ac_exeext=$EXEEXT
3922
echo "$as_me:$LINENO: checking for suffix of object files" >&5
3923
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3924
if test "${ac_cv_objext+set}" = set; then
3925
  echo $ECHO_N "(cached) $ECHO_C" >&6
3926
else
3927
  cat >conftest.$ac_ext <<_ACEOF
3928
/* confdefs.h.  */
3929
_ACEOF
3930
cat confdefs.h >>conftest.$ac_ext
3931
cat >>conftest.$ac_ext <<_ACEOF
3932
/* end confdefs.h.  */
3933
 
3934
int
3935
main ()
3936
{
3937
 
3938
  ;
3939
  return 0;
3940
}
3941
_ACEOF
3942
rm -f conftest.o conftest.obj
3943
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3944
  (eval $ac_compile) 2>&5
3945
  ac_status=$?
3946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947
  (exit $ac_status); }; then
3948
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3949
  case $ac_file in
3950
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3951
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3952
       break;;
3953
  esac
3954
done
3955
else
3956
  echo "$as_me: failed program was:" >&5
3957
sed 's/^/| /' conftest.$ac_ext >&5
3958
 
3959
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3960
See \`config.log' for more details." >&5
3961
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3962
See \`config.log' for more details." >&2;}
3963
   { (exit 1); exit 1; }; }
3964
fi
3965
 
3966
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3967
fi
3968
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3969
echo "${ECHO_T}$ac_cv_objext" >&6
3970
OBJEXT=$ac_cv_objext
3971
ac_objext=$OBJEXT
3972
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3973
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3974
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3975
  echo $ECHO_N "(cached) $ECHO_C" >&6
3976
else
3977
  cat >conftest.$ac_ext <<_ACEOF
3978
/* confdefs.h.  */
3979
_ACEOF
3980
cat confdefs.h >>conftest.$ac_ext
3981
cat >>conftest.$ac_ext <<_ACEOF
3982
/* end confdefs.h.  */
3983
 
3984
int
3985
main ()
3986
{
3987
#ifndef __GNUC__
3988
       choke me
3989
#endif
3990
 
3991
  ;
3992
  return 0;
3993
}
3994
_ACEOF
3995
rm -f conftest.$ac_objext
3996
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3997
  (eval $ac_compile) 2>conftest.er1
3998
  ac_status=$?
3999
  grep -v '^ *+' conftest.er1 >conftest.err
4000
  rm -f conftest.er1
4001
  cat conftest.err >&5
4002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003
  (exit $ac_status); } &&
4004
         { ac_try='test -z "$ac_c_werror_flag"
4005
                         || test ! -s conftest.err'
4006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007
  (eval $ac_try) 2>&5
4008
  ac_status=$?
4009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010
  (exit $ac_status); }; } &&
4011
         { ac_try='test -s conftest.$ac_objext'
4012
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013
  (eval $ac_try) 2>&5
4014
  ac_status=$?
4015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016
  (exit $ac_status); }; }; then
4017
  ac_compiler_gnu=yes
4018
else
4019
  echo "$as_me: failed program was:" >&5
4020
sed 's/^/| /' conftest.$ac_ext >&5
4021
 
4022
ac_compiler_gnu=no
4023
fi
4024
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4025
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4026
 
4027
fi
4028
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4029
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4030
GCC=`test $ac_compiler_gnu = yes && echo yes`
4031
ac_test_CFLAGS=${CFLAGS+set}
4032
ac_save_CFLAGS=$CFLAGS
4033
CFLAGS="-g"
4034
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4035
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4036
if test "${ac_cv_prog_cc_g+set}" = set; then
4037
  echo $ECHO_N "(cached) $ECHO_C" >&6
4038
else
4039
  cat >conftest.$ac_ext <<_ACEOF
4040
/* confdefs.h.  */
4041
_ACEOF
4042
cat confdefs.h >>conftest.$ac_ext
4043
cat >>conftest.$ac_ext <<_ACEOF
4044
/* end confdefs.h.  */
4045
 
4046
int
4047
main ()
4048
{
4049
 
4050
  ;
4051
  return 0;
4052
}
4053
_ACEOF
4054
rm -f conftest.$ac_objext
4055
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056
  (eval $ac_compile) 2>conftest.er1
4057
  ac_status=$?
4058
  grep -v '^ *+' conftest.er1 >conftest.err
4059
  rm -f conftest.er1
4060
  cat conftest.err >&5
4061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062
  (exit $ac_status); } &&
4063
         { ac_try='test -z "$ac_c_werror_flag"
4064
                         || test ! -s conftest.err'
4065
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066
  (eval $ac_try) 2>&5
4067
  ac_status=$?
4068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069
  (exit $ac_status); }; } &&
4070
         { ac_try='test -s conftest.$ac_objext'
4071
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072
  (eval $ac_try) 2>&5
4073
  ac_status=$?
4074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075
  (exit $ac_status); }; }; then
4076
  ac_cv_prog_cc_g=yes
4077
else
4078
  echo "$as_me: failed program was:" >&5
4079
sed 's/^/| /' conftest.$ac_ext >&5
4080
 
4081
ac_cv_prog_cc_g=no
4082
fi
4083
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4084
fi
4085
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4086
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4087
if test "$ac_test_CFLAGS" = set; then
4088
  CFLAGS=$ac_save_CFLAGS
4089
elif test $ac_cv_prog_cc_g = yes; then
4090
  if test "$GCC" = yes; then
4091
    CFLAGS="-g -O2"
4092
  else
4093
    CFLAGS="-g"
4094
  fi
4095
else
4096
  if test "$GCC" = yes; then
4097
    CFLAGS="-O2"
4098
  else
4099
    CFLAGS=
4100
  fi
4101
fi
4102
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4103
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4104
if test "${ac_cv_prog_cc_stdc+set}" = set; then
4105
  echo $ECHO_N "(cached) $ECHO_C" >&6
4106
else
4107
  ac_cv_prog_cc_stdc=no
4108
ac_save_CC=$CC
4109
cat >conftest.$ac_ext <<_ACEOF
4110
/* confdefs.h.  */
4111
_ACEOF
4112
cat confdefs.h >>conftest.$ac_ext
4113
cat >>conftest.$ac_ext <<_ACEOF
4114
/* end confdefs.h.  */
4115
#include 
4116
#include 
4117
#include 
4118
#include 
4119
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4120
struct buf { int x; };
4121
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4122
static char *e (p, i)
4123
     char **p;
4124
     int i;
4125
{
4126
  return p[i];
4127
}
4128
static char *f (char * (*g) (char **, int), char **p, ...)
4129
{
4130
  char *s;
4131
  va_list v;
4132
  va_start (v,p);
4133
  s = g (p, va_arg (v,int));
4134
  va_end (v);
4135
  return s;
4136
}
4137
 
4138
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4139
   function prototypes and stuff, but not '\xHH' hex character constants.
4140
   These don't provoke an error unfortunately, instead are silently treated
4141
   as 'x'.  The following induces an error, until -std1 is added to get
4142
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4143
   array size at least.  It's necessary to write '\x00'==0 to get something
4144
   that's true only with -std1.  */
4145
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4146
 
4147
int test (int i, double x);
4148
struct s1 {int (*f) (int a);};
4149
struct s2 {int (*f) (double a);};
4150
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4151
int argc;
4152
char **argv;
4153
int
4154
main ()
4155
{
4156
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4157
  ;
4158
  return 0;
4159
}
4160
_ACEOF
4161
# Don't try gcc -ansi; that turns off useful extensions and
4162
# breaks some systems' header files.
4163
# AIX                   -qlanglvl=ansi
4164
# Ultrix and OSF/1      -std1
4165
# HP-UX 10.20 and later -Ae
4166
# HP-UX older versions  -Aa -D_HPUX_SOURCE
4167
# SVR4                  -Xc -D__EXTENSIONS__
4168
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4169
do
4170
  CC="$ac_save_CC $ac_arg"
4171
  rm -f conftest.$ac_objext
4172
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173
  (eval $ac_compile) 2>conftest.er1
4174
  ac_status=$?
4175
  grep -v '^ *+' conftest.er1 >conftest.err
4176
  rm -f conftest.er1
4177
  cat conftest.err >&5
4178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179
  (exit $ac_status); } &&
4180
         { ac_try='test -z "$ac_c_werror_flag"
4181
                         || test ! -s conftest.err'
4182
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183
  (eval $ac_try) 2>&5
4184
  ac_status=$?
4185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186
  (exit $ac_status); }; } &&
4187
         { ac_try='test -s conftest.$ac_objext'
4188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189
  (eval $ac_try) 2>&5
4190
  ac_status=$?
4191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192
  (exit $ac_status); }; }; then
4193
  ac_cv_prog_cc_stdc=$ac_arg
4194
break
4195
else
4196
  echo "$as_me: failed program was:" >&5
4197
sed 's/^/| /' conftest.$ac_ext >&5
4198
 
4199
fi
4200
rm -f conftest.err conftest.$ac_objext
4201
done
4202
rm -f conftest.$ac_ext conftest.$ac_objext
4203
CC=$ac_save_CC
4204
 
4205
fi
4206
 
4207
case "x$ac_cv_prog_cc_stdc" in
4208
  x|xno)
4209
    echo "$as_me:$LINENO: result: none needed" >&5
4210
echo "${ECHO_T}none needed" >&6 ;;
4211
  *)
4212
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4213
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4214
    CC="$CC $ac_cv_prog_cc_stdc" ;;
4215
esac
4216
 
4217
# Some people use a C++ compiler to compile C.  Since we use `exit',
4218
# in C++ we need to declare it.  In case someone uses the same compiler
4219
# for both compiling C and C++ we need to have the C++ compiler decide
4220
# the declaration of exit, since it's the most demanding environment.
4221
cat >conftest.$ac_ext <<_ACEOF
4222
#ifndef __cplusplus
4223
  choke me
4224
#endif
4225
_ACEOF
4226
rm -f conftest.$ac_objext
4227
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4228
  (eval $ac_compile) 2>conftest.er1
4229
  ac_status=$?
4230
  grep -v '^ *+' conftest.er1 >conftest.err
4231
  rm -f conftest.er1
4232
  cat conftest.err >&5
4233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234
  (exit $ac_status); } &&
4235
         { ac_try='test -z "$ac_c_werror_flag"
4236
                         || test ! -s conftest.err'
4237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238
  (eval $ac_try) 2>&5
4239
  ac_status=$?
4240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241
  (exit $ac_status); }; } &&
4242
         { ac_try='test -s conftest.$ac_objext'
4243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244
  (eval $ac_try) 2>&5
4245
  ac_status=$?
4246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247
  (exit $ac_status); }; }; then
4248
  for ac_declaration in \
4249
   '' \
4250
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4251
   'extern "C" void std::exit (int); using std::exit;' \
4252
   'extern "C" void exit (int) throw ();' \
4253
   'extern "C" void exit (int);' \
4254
   'void exit (int);'
4255
do
4256
  cat >conftest.$ac_ext <<_ACEOF
4257
/* confdefs.h.  */
4258
_ACEOF
4259
cat confdefs.h >>conftest.$ac_ext
4260
cat >>conftest.$ac_ext <<_ACEOF
4261
/* end confdefs.h.  */
4262
$ac_declaration
4263
#include 
4264
int
4265
main ()
4266
{
4267
exit (42);
4268
  ;
4269
  return 0;
4270
}
4271
_ACEOF
4272
rm -f conftest.$ac_objext
4273
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4274
  (eval $ac_compile) 2>conftest.er1
4275
  ac_status=$?
4276
  grep -v '^ *+' conftest.er1 >conftest.err
4277
  rm -f conftest.er1
4278
  cat conftest.err >&5
4279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280
  (exit $ac_status); } &&
4281
         { ac_try='test -z "$ac_c_werror_flag"
4282
                         || test ! -s conftest.err'
4283
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284
  (eval $ac_try) 2>&5
4285
  ac_status=$?
4286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287
  (exit $ac_status); }; } &&
4288
         { ac_try='test -s conftest.$ac_objext'
4289
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290
  (eval $ac_try) 2>&5
4291
  ac_status=$?
4292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293
  (exit $ac_status); }; }; then
4294
  :
4295
else
4296
  echo "$as_me: failed program was:" >&5
4297
sed 's/^/| /' conftest.$ac_ext >&5
4298
 
4299
continue
4300
fi
4301
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4302
  cat >conftest.$ac_ext <<_ACEOF
4303
/* confdefs.h.  */
4304
_ACEOF
4305
cat confdefs.h >>conftest.$ac_ext
4306
cat >>conftest.$ac_ext <<_ACEOF
4307
/* end confdefs.h.  */
4308
$ac_declaration
4309
int
4310
main ()
4311
{
4312
exit (42);
4313
  ;
4314
  return 0;
4315
}
4316
_ACEOF
4317
rm -f conftest.$ac_objext
4318
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4319
  (eval $ac_compile) 2>conftest.er1
4320
  ac_status=$?
4321
  grep -v '^ *+' conftest.er1 >conftest.err
4322
  rm -f conftest.er1
4323
  cat conftest.err >&5
4324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325
  (exit $ac_status); } &&
4326
         { ac_try='test -z "$ac_c_werror_flag"
4327
                         || test ! -s conftest.err'
4328
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329
  (eval $ac_try) 2>&5
4330
  ac_status=$?
4331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332
  (exit $ac_status); }; } &&
4333
         { ac_try='test -s conftest.$ac_objext'
4334
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335
  (eval $ac_try) 2>&5
4336
  ac_status=$?
4337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338
  (exit $ac_status); }; }; then
4339
  break
4340
else
4341
  echo "$as_me: failed program was:" >&5
4342
sed 's/^/| /' conftest.$ac_ext >&5
4343
 
4344
fi
4345
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4346
done
4347
rm -f conftest*
4348
if test -n "$ac_declaration"; then
4349
  echo '#ifdef __cplusplus' >>confdefs.h
4350
  echo $ac_declaration      >>confdefs.h
4351
  echo '#endif'             >>confdefs.h
4352
fi
4353
 
4354
else
4355
  echo "$as_me: failed program was:" >&5
4356
sed 's/^/| /' conftest.$ac_ext >&5
4357
 
4358
fi
4359
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4360
ac_ext=c
4361
ac_cpp='$CPP $CPPFLAGS'
4362
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365
 
4366
depcc="$CC"   am_compiler_list=
4367
 
4368
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4369
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4370
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4371
  echo $ECHO_N "(cached) $ECHO_C" >&6
4372
else
4373
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4374
  # We make a subdir and do the tests there.  Otherwise we can end up
4375
  # making bogus files that we don't know about and never remove.  For
4376
  # instance it was reported that on HP-UX the gcc test will end up
4377
  # making a dummy file named `D' -- because `-MD' means `put the output
4378
  # in D'.
4379
  mkdir conftest.dir
4380
  # Copy depcomp to subdir because otherwise we won't find it if we're
4381
  # using a relative directory.
4382
  cp "$am_depcomp" conftest.dir
4383
  cd conftest.dir
4384
  # We will build objects and dependencies in a subdirectory because
4385
  # it helps to detect inapplicable dependency modes.  For instance
4386
  # both Tru64's cc and ICC support -MD to output dependencies as a
4387
  # side effect of compilation, but ICC will put the dependencies in
4388
  # the current directory while Tru64 will put them in the object
4389
  # directory.
4390
  mkdir sub
4391
 
4392
  am_cv_CC_dependencies_compiler_type=none
4393
  if test "$am_compiler_list" = ""; then
4394
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4395
  fi
4396
  for depmode in $am_compiler_list; do
4397
    # Setup a source with many dependencies, because some compilers
4398
    # like to wrap large dependency lists on column 80 (with \), and
4399
    # we should not choose a depcomp mode which is confused by this.
4400
    #
4401
    # We need to recreate these files for each test, as the compiler may
4402
    # overwrite some of them when testing with obscure command lines.
4403
    # This happens at least with the AIX C compiler.
4404
    : > sub/conftest.c
4405
    for i in 1 2 3 4 5 6; do
4406
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4407
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4408
      # Solaris 8's {/usr,}/bin/sh.
4409
      touch sub/conftst$i.h
4410
    done
4411
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4412
 
4413
    case $depmode in
4414
    nosideeffect)
4415
      # after this tag, mechanisms are not by side-effect, so they'll
4416
      # only be used when explicitly requested
4417
      if test "x$enable_dependency_tracking" = xyes; then
4418
        continue
4419
      else
4420
        break
4421
      fi
4422
      ;;
4423
    none) break ;;
4424
    esac
4425
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4426
    # mode.  It turns out that the SunPro C++ compiler does not properly
4427
    # handle `-M -o', and we need to detect this.
4428
    if depmode=$depmode \
4429
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4430
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4431
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4432
         >/dev/null 2>conftest.err &&
4433
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4434
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4435
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4436
      # icc doesn't choke on unknown options, it will just issue warnings
4437
      # or remarks (even with -Werror).  So we grep stderr for any message
4438
      # that says an option was ignored or not supported.
4439
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4440
      #   icc: Command line warning: ignoring option '-M'; no argument required
4441
      # The diagnosis changed in icc 8.0:
4442
      #   icc: Command line remark: option '-MP' not supported
4443
      if (grep 'ignoring option' conftest.err ||
4444
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4445
        am_cv_CC_dependencies_compiler_type=$depmode
4446
        break
4447
      fi
4448
    fi
4449
  done
4450
 
4451
  cd ..
4452
  rm -rf conftest.dir
4453
else
4454
  am_cv_CC_dependencies_compiler_type=none
4455
fi
4456
 
4457
fi
4458
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4459
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4460
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4461
 
4462
 
4463
 
4464
if
4465
  test "x$enable_dependency_tracking" != xno \
4466
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4467
  am__fastdepCC_TRUE=
4468
  am__fastdepCC_FALSE='#'
4469
else
4470
  am__fastdepCC_TRUE='#'
4471
  am__fastdepCC_FALSE=
4472
fi
4473
 
4474
 
4475
echo "$as_me:$LINENO: checking for egrep" >&5
4476
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4477
if test "${ac_cv_prog_egrep+set}" = set; then
4478
  echo $ECHO_N "(cached) $ECHO_C" >&6
4479
else
4480
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4481
    then ac_cv_prog_egrep='grep -E'
4482
    else ac_cv_prog_egrep='egrep'
4483
    fi
4484
fi
4485
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4486
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4487
 EGREP=$ac_cv_prog_egrep
4488
 
4489
 
4490
echo "$as_me:$LINENO: checking for fgrep" >&5
4491
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4492
if test "${ac_cv_prog_fgrep+set}" = set; then
4493
  echo $ECHO_N "(cached) $ECHO_C" >&6
4494
else
4495
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4496
    then ac_cv_prog_fgrep='grep -F'
4497
    else ac_cv_prog_fgrep='fgrep'
4498
    fi
4499
fi
4500
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4501
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4502
 FGREP=$ac_cv_prog_fgrep
4503
 
4504
 
4505
test -z "$GREP" && GREP=grep
4506
 
4507
 
4508
 
4509
 
4510
 
4511
 
4512
 
4513
 
4514
 
4515
 
4516
 
4517
 
4518
 
4519
 
4520
 
4521
 
4522
 
4523
 
4524
 
4525
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4526
if test "${with_gnu_ld+set}" = set; then
4527
  withval="$with_gnu_ld"
4528
  test "$withval" = no || with_gnu_ld=yes
4529
else
4530
  with_gnu_ld=no
4531
fi;
4532
ac_prog=ld
4533
if test "$GCC" = yes; then
4534
  # Check if gcc -print-prog-name=ld gives a path.
4535
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4536
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4537
  case $host in
4538
  *-*-mingw*)
4539
    # gcc leaves a trailing carriage return which upsets mingw
4540
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4541
  *)
4542
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4543
  esac
4544
  case $ac_prog in
4545
    # Accept absolute paths.
4546
    [\\/]* | ?:[\\/]*)
4547
      re_direlt='/[^/][^/]*/\.\./'
4548
      # Canonicalize the pathname of ld
4549
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4550
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4551
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4552
      done
4553
      test -z "$LD" && LD="$ac_prog"
4554
      ;;
4555
  "")
4556
    # If it fails, then pretend we aren't using GCC.
4557
    ac_prog=ld
4558
    ;;
4559
  *)
4560
    # If it is relative, then search for the first ld in PATH.
4561
    with_gnu_ld=unknown
4562
    ;;
4563
  esac
4564
elif test "$with_gnu_ld" = yes; then
4565
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4566
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4567
else
4568
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4569
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4570
fi
4571
if test "${lt_cv_path_LD+set}" = set; then
4572
  echo $ECHO_N "(cached) $ECHO_C" >&6
4573
else
4574
  if test -z "$LD"; then
4575
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4576
  for ac_dir in $PATH; do
4577
    IFS="$lt_save_ifs"
4578
    test -z "$ac_dir" && ac_dir=.
4579
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4580
      lt_cv_path_LD="$ac_dir/$ac_prog"
4581
      # Check to see if the program is GNU ld.  I'd rather use --version,
4582
      # but apparently some variants of GNU ld only accept -v.
4583
      # Break only if it was the GNU/non-GNU ld that we prefer.
4584
      case `"$lt_cv_path_LD" -v 2>&1 
4585
      *GNU* | *'with BFD'*)
4586
        test "$with_gnu_ld" != no && break
4587
        ;;
4588
      *)
4589
        test "$with_gnu_ld" != yes && break
4590
        ;;
4591
      esac
4592
    fi
4593
  done
4594
  IFS="$lt_save_ifs"
4595
else
4596
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4597
fi
4598
fi
4599
 
4600
LD="$lt_cv_path_LD"
4601
if test -n "$LD"; then
4602
  echo "$as_me:$LINENO: result: $LD" >&5
4603
echo "${ECHO_T}$LD" >&6
4604
else
4605
  echo "$as_me:$LINENO: result: no" >&5
4606
echo "${ECHO_T}no" >&6
4607
fi
4608
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4609
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4610
   { (exit 1); exit 1; }; }
4611
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4612
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4613
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4614
  echo $ECHO_N "(cached) $ECHO_C" >&6
4615
else
4616
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4617
case `$LD -v 2>&1 
4618
*GNU* | *'with BFD'*)
4619
  lt_cv_prog_gnu_ld=yes
4620
  ;;
4621
*)
4622
  lt_cv_prog_gnu_ld=no
4623
  ;;
4624
esac
4625
fi
4626
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4627
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4628
with_gnu_ld=$lt_cv_prog_gnu_ld
4629
 
4630
 
4631
 
4632
 
4633
 
4634
 
4635
 
4636
 
4637
 
4638
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4639
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4640
if test "${lt_cv_path_NM+set}" = set; then
4641
  echo $ECHO_N "(cached) $ECHO_C" >&6
4642
else
4643
  if test -n "$NM"; then
4644
  # Let the user override the test.
4645
  lt_cv_path_NM="$NM"
4646
else
4647
  lt_nm_to_check="${ac_tool_prefix}nm"
4648
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4649
    lt_nm_to_check="$lt_nm_to_check nm"
4650
  fi
4651
  for lt_tmp_nm in $lt_nm_to_check; do
4652
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4653
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4654
      IFS="$lt_save_ifs"
4655
      test -z "$ac_dir" && ac_dir=.
4656
      tmp_nm="$ac_dir/$lt_tmp_nm"
4657
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4658
        # Check to see if the nm accepts a BSD-compat flag.
4659
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4660
        #   nm: unknown option "B" ignored
4661
        # Tru64's nm complains that /dev/null is an invalid object file
4662
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4663
        */dev/null* | *'Invalid file or object type'*)
4664
          lt_cv_path_NM="$tmp_nm -B"
4665
          break
4666
          ;;
4667
        *)
4668
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4669
          */dev/null*)
4670
            lt_cv_path_NM="$tmp_nm -p"
4671
            break
4672
            ;;
4673
          *)
4674
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4675
            continue # so that we can try to find one that supports BSD flags
4676
            ;;
4677
          esac
4678
          ;;
4679
        esac
4680
      fi
4681
    done
4682
    IFS="$lt_save_ifs"
4683
  done
4684
  : ${lt_cv_path_NM=no}
4685
fi
4686
fi
4687
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4688
echo "${ECHO_T}$lt_cv_path_NM" >&6
4689
if test "$lt_cv_path_NM" != "no"; then
4690
  NM="$lt_cv_path_NM"
4691
else
4692
  # Didn't find any BSD compatible name lister, look for dumpbin.
4693
  if test -n "$ac_tool_prefix"; then
4694
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4695
  do
4696
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4697
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4698
echo "$as_me:$LINENO: checking for $ac_word" >&5
4699
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4700
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4701
  echo $ECHO_N "(cached) $ECHO_C" >&6
4702
else
4703
  if test -n "$DUMPBIN"; then
4704
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4705
else
4706
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707
for as_dir in $PATH
4708
do
4709
  IFS=$as_save_IFS
4710
  test -z "$as_dir" && as_dir=.
4711
  for ac_exec_ext in '' $ac_executable_extensions; do
4712
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4714
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715
    break 2
4716
  fi
4717
done
4718
done
4719
 
4720
fi
4721
fi
4722
DUMPBIN=$ac_cv_prog_DUMPBIN
4723
if test -n "$DUMPBIN"; then
4724
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4725
echo "${ECHO_T}$DUMPBIN" >&6
4726
else
4727
  echo "$as_me:$LINENO: result: no" >&5
4728
echo "${ECHO_T}no" >&6
4729
fi
4730
 
4731
    test -n "$DUMPBIN" && break
4732
  done
4733
fi
4734
if test -z "$DUMPBIN"; then
4735
  ac_ct_DUMPBIN=$DUMPBIN
4736
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4737
do
4738
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4739
set dummy $ac_prog; ac_word=$2
4740
echo "$as_me:$LINENO: checking for $ac_word" >&5
4741
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4742
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4743
  echo $ECHO_N "(cached) $ECHO_C" >&6
4744
else
4745
  if test -n "$ac_ct_DUMPBIN"; then
4746
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4747
else
4748
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749
for as_dir in $PATH
4750
do
4751
  IFS=$as_save_IFS
4752
  test -z "$as_dir" && as_dir=.
4753
  for ac_exec_ext in '' $ac_executable_extensions; do
4754
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4755
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4756
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757
    break 2
4758
  fi
4759
done
4760
done
4761
 
4762
fi
4763
fi
4764
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4765
if test -n "$ac_ct_DUMPBIN"; then
4766
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4767
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4768
else
4769
  echo "$as_me:$LINENO: result: no" >&5
4770
echo "${ECHO_T}no" >&6
4771
fi
4772
 
4773
  test -n "$ac_ct_DUMPBIN" && break
4774
done
4775
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4776
 
4777
  DUMPBIN=$ac_ct_DUMPBIN
4778
fi
4779
 
4780
 
4781
  if test "$DUMPBIN" != ":"; then
4782
    NM="$DUMPBIN"
4783
  fi
4784
fi
4785
test -z "$NM" && NM=nm
4786
 
4787
 
4788
 
4789
 
4790
 
4791
 
4792
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4793
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4794
if test "${lt_cv_nm_interface+set}" = set; then
4795
  echo $ECHO_N "(cached) $ECHO_C" >&6
4796
else
4797
  lt_cv_nm_interface="BSD nm"
4798
  echo "int some_variable = 0;" > conftest.$ac_ext
4799
  (eval echo "\"\$as_me:4799: $ac_compile\"" >&5)
4800
  (eval "$ac_compile" 2>conftest.err)
4801
  cat conftest.err >&5
4802
  (eval echo "\"\$as_me:4802: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4803
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4804
  cat conftest.err >&5
4805
  (eval echo "\"\$as_me:4805: output\"" >&5)
4806
  cat conftest.out >&5
4807
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4808
    lt_cv_nm_interface="MS dumpbin"
4809
  fi
4810
  rm -f conftest*
4811
fi
4812
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4813
echo "${ECHO_T}$lt_cv_nm_interface" >&6
4814
 
4815
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4816
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4817
LN_S=$as_ln_s
4818
if test "$LN_S" = "ln -s"; then
4819
  echo "$as_me:$LINENO: result: yes" >&5
4820
echo "${ECHO_T}yes" >&6
4821
else
4822
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4823
echo "${ECHO_T}no, using $LN_S" >&6
4824
fi
4825
 
4826
# find the maximum length of command line arguments
4827
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4828
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4829
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4830
  echo $ECHO_N "(cached) $ECHO_C" >&6
4831
else
4832
    i=0
4833
  teststring="ABCD"
4834
 
4835
  case $build_os in
4836
  msdosdjgpp*)
4837
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4838
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4839
    # during glob expansion).  Even if it were fixed, the result of this
4840
    # check would be larger than it should be.
4841
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4842
    ;;
4843
 
4844
  gnu*)
4845
    # Under GNU Hurd, this test is not required because there is
4846
    # no limit to the length of command line arguments.
4847
    # Libtool will interpret -1 as no limit whatsoever
4848
    lt_cv_sys_max_cmd_len=-1;
4849
    ;;
4850
 
4851
  cygwin* | mingw* | cegcc*)
4852
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4853
    # about 5 minutes as the teststring grows exponentially.
4854
    # Worse, since 9x/ME are not pre-emptively multitasking,
4855
    # you end up with a "frozen" computer, even though with patience
4856
    # the test eventually succeeds (with a max line length of 256k).
4857
    # Instead, let's just punt: use the minimum linelength reported by
4858
    # all of the supported platforms: 8192 (on NT/2K/XP).
4859
    lt_cv_sys_max_cmd_len=8192;
4860
    ;;
4861
 
4862
  amigaos*)
4863
    # On AmigaOS with pdksh, this test takes hours, literally.
4864
    # So we just punt and use a minimum line length of 8192.
4865
    lt_cv_sys_max_cmd_len=8192;
4866
    ;;
4867
 
4868
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4869
    # This has been around since 386BSD, at least.  Likely further.
4870
    if test -x /sbin/sysctl; then
4871
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4872
    elif test -x /usr/sbin/sysctl; then
4873
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4874
    else
4875
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4876
    fi
4877
    # And add a safety zone
4878
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4879
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4880
    ;;
4881
 
4882
  interix*)
4883
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4884
    lt_cv_sys_max_cmd_len=196608
4885
    ;;
4886
 
4887
  osf*)
4888
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4889
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4890
    # nice to cause kernel panics so lets avoid the loop below.
4891
    # First set a reasonable default.
4892
    lt_cv_sys_max_cmd_len=16384
4893
    #
4894
    if test -x /sbin/sysconfig; then
4895
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4896
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4897
      esac
4898
    fi
4899
    ;;
4900
  sco3.2v5*)
4901
    lt_cv_sys_max_cmd_len=102400
4902
    ;;
4903
  sysv5* | sco5v6* | sysv4.2uw2*)
4904
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4905
    if test -n "$kargmax"; then
4906
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4907
    else
4908
      lt_cv_sys_max_cmd_len=32768
4909
    fi
4910
    ;;
4911
  *)
4912
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4913
    if test -n "$lt_cv_sys_max_cmd_len"; then
4914
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4915
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4916
    else
4917
      # Make teststring a little bigger before we do anything with it.
4918
      # a 1K string should be a reasonable start.
4919
      for i in 1 2 3 4 5 6 7 8 ; do
4920
        teststring=$teststring$teststring
4921
      done
4922
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4923
      # If test is not a shell built-in, we'll probably end up computing a
4924
      # maximum length that is only half of the actual maximum length, but
4925
      # we can't tell.
4926
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4927
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4928
              test $i != 17 # 1/2 MB should be enough
4929
      do
4930
        i=`expr $i + 1`
4931
        teststring=$teststring$teststring
4932
      done
4933
      # Only check the string length outside the loop.
4934
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4935
      teststring=
4936
      # Add a significant safety factor because C++ compilers can tack on
4937
      # massive amounts of additional arguments before passing them to the
4938
      # linker.  It appears as though 1/2 is a usable value.
4939
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4940
    fi
4941
    ;;
4942
  esac
4943
 
4944
fi
4945
 
4946
if test -n $lt_cv_sys_max_cmd_len ; then
4947
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4948
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4949
else
4950
  echo "$as_me:$LINENO: result: none" >&5
4951
echo "${ECHO_T}none" >&6
4952
fi
4953
max_cmd_len=$lt_cv_sys_max_cmd_len
4954
 
4955
 
4956
 
4957
 
4958
 
4959
 
4960
: ${CP="cp -f"}
4961
: ${MV="mv -f"}
4962
: ${RM="rm -f"}
4963
 
4964
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4965
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4966
# Try some XSI features
4967
xsi_shell=no
4968
( _lt_dummy="a/b/c"
4969
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4970
      = c,a/b,, \
4971
    && eval 'test $(( 1 + 1 )) -eq 2 \
4972
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4973
  && xsi_shell=yes
4974
echo "$as_me:$LINENO: result: $xsi_shell" >&5
4975
echo "${ECHO_T}$xsi_shell" >&6
4976
 
4977
 
4978
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4979
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4980
lt_shell_append=no
4981
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4982
    >/dev/null 2>&1 \
4983
  && lt_shell_append=yes
4984
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4985
echo "${ECHO_T}$lt_shell_append" >&6
4986
 
4987
 
4988
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4989
  lt_unset=unset
4990
else
4991
  lt_unset=false
4992
fi
4993
 
4994
 
4995
 
4996
 
4997
 
4998
# test EBCDIC or ASCII
4999
case `echo X|tr X '\101'` in
5000
 A) # ASCII based system
5001
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5002
  lt_SP2NL='tr \040 \012'
5003
  lt_NL2SP='tr \015\012 \040\040'
5004
  ;;
5005
 *) # EBCDIC based system
5006
  lt_SP2NL='tr \100 \n'
5007
  lt_NL2SP='tr \r\n \100\100'
5008
  ;;
5009
esac
5010
 
5011
 
5012
 
5013
 
5014
 
5015
 
5016
 
5017
 
5018
 
5019
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5020
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5021
if test "${lt_cv_ld_reload_flag+set}" = set; then
5022
  echo $ECHO_N "(cached) $ECHO_C" >&6
5023
else
5024
  lt_cv_ld_reload_flag='-r'
5025
fi
5026
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5027
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5028
reload_flag=$lt_cv_ld_reload_flag
5029
case $reload_flag in
5030
"" | " "*) ;;
5031
*) reload_flag=" $reload_flag" ;;
5032
esac
5033
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5034
case $host_os in
5035
  darwin*)
5036
    if test "$GCC" = yes; then
5037
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5038
    else
5039
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5040
    fi
5041
    ;;
5042
esac
5043
 
5044
 
5045
 
5046
 
5047
 
5048
 
5049
 
5050
 
5051
 
5052
if test -n "$ac_tool_prefix"; then
5053
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5054
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5055
echo "$as_me:$LINENO: checking for $ac_word" >&5
5056
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5057
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5058
  echo $ECHO_N "(cached) $ECHO_C" >&6
5059
else
5060
  if test -n "$OBJDUMP"; then
5061
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5062
else
5063
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064
for as_dir in $PATH
5065
do
5066
  IFS=$as_save_IFS
5067
  test -z "$as_dir" && as_dir=.
5068
  for ac_exec_ext in '' $ac_executable_extensions; do
5069
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5071
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072
    break 2
5073
  fi
5074
done
5075
done
5076
 
5077
fi
5078
fi
5079
OBJDUMP=$ac_cv_prog_OBJDUMP
5080
if test -n "$OBJDUMP"; then
5081
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5082
echo "${ECHO_T}$OBJDUMP" >&6
5083
else
5084
  echo "$as_me:$LINENO: result: no" >&5
5085
echo "${ECHO_T}no" >&6
5086
fi
5087
 
5088
fi
5089
if test -z "$ac_cv_prog_OBJDUMP"; then
5090
  ac_ct_OBJDUMP=$OBJDUMP
5091
  # Extract the first word of "objdump", so it can be a program name with args.
5092
set dummy objdump; ac_word=$2
5093
echo "$as_me:$LINENO: checking for $ac_word" >&5
5094
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5095
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5096
  echo $ECHO_N "(cached) $ECHO_C" >&6
5097
else
5098
  if test -n "$ac_ct_OBJDUMP"; then
5099
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5100
else
5101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102
for as_dir in $PATH
5103
do
5104
  IFS=$as_save_IFS
5105
  test -z "$as_dir" && as_dir=.
5106
  for ac_exec_ext in '' $ac_executable_extensions; do
5107
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5109
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110
    break 2
5111
  fi
5112
done
5113
done
5114
 
5115
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5116
fi
5117
fi
5118
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5119
if test -n "$ac_ct_OBJDUMP"; then
5120
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5121
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5122
else
5123
  echo "$as_me:$LINENO: result: no" >&5
5124
echo "${ECHO_T}no" >&6
5125
fi
5126
 
5127
  OBJDUMP=$ac_ct_OBJDUMP
5128
else
5129
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5130
fi
5131
 
5132
test -z "$OBJDUMP" && OBJDUMP=objdump
5133
 
5134
 
5135
 
5136
 
5137
 
5138
 
5139
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5140
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5141
if test "${lt_cv_deplibs_check_method+set}" = set; then
5142
  echo $ECHO_N "(cached) $ECHO_C" >&6
5143
else
5144
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5145
lt_cv_file_magic_test_file=
5146
lt_cv_deplibs_check_method='unknown'
5147
# Need to set the preceding variable on all platforms that support
5148
# interlibrary dependencies.
5149
# 'none' -- dependencies not supported.
5150
# `unknown' -- same as none, but documents that we really don't know.
5151
# 'pass_all' -- all dependencies passed with no checks.
5152
# 'test_compile' -- check by making test program.
5153
# 'file_magic [[regex]]' -- check by looking for files in library path
5154
# which responds to the $file_magic_cmd with a given extended regex.
5155
# If you have `file' or equivalent on your system and you're not sure
5156
# whether `pass_all' will *always* work, you probably want this one.
5157
 
5158
case $host_os in
5159
aix[4-9]*)
5160
  lt_cv_deplibs_check_method=pass_all
5161
  ;;
5162
 
5163
beos*)
5164
  lt_cv_deplibs_check_method=pass_all
5165
  ;;
5166
 
5167
bsdi[45]*)
5168
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5169
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5170
  lt_cv_file_magic_test_file=/shlib/libc.so
5171
  ;;
5172
 
5173
cygwin*)
5174
  # func_win32_libid is a shell function defined in ltmain.sh
5175
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5176
  lt_cv_file_magic_cmd='func_win32_libid'
5177
  ;;
5178
 
5179
mingw* | pw32*)
5180
  # Base MSYS/MinGW do not provide the 'file' command needed by
5181
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5182
  # unless we find 'file', for example because we are cross-compiling.
5183
  if ( file / ) >/dev/null 2>&1; then
5184
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5185
    lt_cv_file_magic_cmd='func_win32_libid'
5186
  else
5187
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5188
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5189
  fi
5190
  ;;
5191
 
5192
cegcc)
5193
  # use the weaker test based on 'objdump'. See mingw*.
5194
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5195
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5196
  ;;
5197
 
5198
darwin* | rhapsody*)
5199
  lt_cv_deplibs_check_method=pass_all
5200
  ;;
5201
 
5202
freebsd* | dragonfly*)
5203
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5204
    case $host_cpu in
5205
    i*86 )
5206
      # Not sure whether the presence of OpenBSD here was a mistake.
5207
      # Let's accept both of them until this is cleared up.
5208
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5209
      lt_cv_file_magic_cmd=/usr/bin/file
5210
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5211
      ;;
5212
    esac
5213
  else
5214
    lt_cv_deplibs_check_method=pass_all
5215
  fi
5216
  ;;
5217
 
5218
gnu*)
5219
  lt_cv_deplibs_check_method=pass_all
5220
  ;;
5221
 
5222
hpux10.20* | hpux11*)
5223
  lt_cv_file_magic_cmd=/usr/bin/file
5224
  case $host_cpu in
5225
  ia64*)
5226
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5227
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5228
    ;;
5229
  hppa*64*)
5230
    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]'
5231
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5232
    ;;
5233
  *)
5234
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5235
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5236
    ;;
5237
  esac
5238
  ;;
5239
 
5240
interix[3-9]*)
5241
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5242
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5243
  ;;
5244
 
5245
irix5* | irix6* | nonstopux*)
5246
  case $LD in
5247
  *-32|*"-32 ") libmagic=32-bit;;
5248
  *-n32|*"-n32 ") libmagic=N32;;
5249
  *-64|*"-64 ") libmagic=64-bit;;
5250
  *) libmagic=never-match;;
5251
  esac
5252
  lt_cv_deplibs_check_method=pass_all
5253
  ;;
5254
 
5255
# This must be Linux ELF.
5256
linux* | k*bsd*-gnu)
5257
  lt_cv_deplibs_check_method=pass_all
5258
  ;;
5259
 
5260
netbsd*)
5261
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5262
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5263
  else
5264
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5265
  fi
5266
  ;;
5267
 
5268
newos6*)
5269
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5270
  lt_cv_file_magic_cmd=/usr/bin/file
5271
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5272
  ;;
5273
 
5274
*nto* | *qnx*)
5275
  lt_cv_deplibs_check_method=pass_all
5276
  ;;
5277
 
5278
openbsd*)
5279
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5280
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5281
  else
5282
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5283
  fi
5284
  ;;
5285
 
5286
osf3* | osf4* | osf5*)
5287
  lt_cv_deplibs_check_method=pass_all
5288
  ;;
5289
 
5290
rdos*)
5291
  lt_cv_deplibs_check_method=pass_all
5292
  ;;
5293
 
5294
solaris*)
5295
  lt_cv_deplibs_check_method=pass_all
5296
  ;;
5297
 
5298
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5299
  lt_cv_deplibs_check_method=pass_all
5300
  ;;
5301
 
5302
sysv4 | sysv4.3*)
5303
  case $host_vendor in
5304
  motorola)
5305
    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]'
5306
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5307
    ;;
5308
  ncr)
5309
    lt_cv_deplibs_check_method=pass_all
5310
    ;;
5311
  sequent)
5312
    lt_cv_file_magic_cmd='/bin/file'
5313
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5314
    ;;
5315
  sni)
5316
    lt_cv_file_magic_cmd='/bin/file'
5317
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5318
    lt_cv_file_magic_test_file=/lib/libc.so
5319
    ;;
5320
  siemens)
5321
    lt_cv_deplibs_check_method=pass_all
5322
    ;;
5323
  pc)
5324
    lt_cv_deplibs_check_method=pass_all
5325
    ;;
5326
  esac
5327
  ;;
5328
 
5329
tpf*)
5330
  lt_cv_deplibs_check_method=pass_all
5331
  ;;
5332
esac
5333
 
5334
fi
5335
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5336
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5337
file_magic_cmd=$lt_cv_file_magic_cmd
5338
deplibs_check_method=$lt_cv_deplibs_check_method
5339
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5340
 
5341
 
5342
 
5343
 
5344
 
5345
 
5346
 
5347
 
5348
 
5349
 
5350
 
5351
 
5352
if test -n "$ac_tool_prefix"; then
5353
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5354
set dummy ${ac_tool_prefix}ar; ac_word=$2
5355
echo "$as_me:$LINENO: checking for $ac_word" >&5
5356
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5357
if test "${ac_cv_prog_AR+set}" = set; then
5358
  echo $ECHO_N "(cached) $ECHO_C" >&6
5359
else
5360
  if test -n "$AR"; then
5361
  ac_cv_prog_AR="$AR" # Let the user override the test.
5362
else
5363
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364
for as_dir in $PATH
5365
do
5366
  IFS=$as_save_IFS
5367
  test -z "$as_dir" && as_dir=.
5368
  for ac_exec_ext in '' $ac_executable_extensions; do
5369
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5371
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372
    break 2
5373
  fi
5374
done
5375
done
5376
 
5377
fi
5378
fi
5379
AR=$ac_cv_prog_AR
5380
if test -n "$AR"; then
5381
  echo "$as_me:$LINENO: result: $AR" >&5
5382
echo "${ECHO_T}$AR" >&6
5383
else
5384
  echo "$as_me:$LINENO: result: no" >&5
5385
echo "${ECHO_T}no" >&6
5386
fi
5387
 
5388
fi
5389
if test -z "$ac_cv_prog_AR"; then
5390
  ac_ct_AR=$AR
5391
  # Extract the first word of "ar", so it can be a program name with args.
5392
set dummy ar; ac_word=$2
5393
echo "$as_me:$LINENO: checking for $ac_word" >&5
5394
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5395
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5396
  echo $ECHO_N "(cached) $ECHO_C" >&6
5397
else
5398
  if test -n "$ac_ct_AR"; then
5399
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5400
else
5401
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402
for as_dir in $PATH
5403
do
5404
  IFS=$as_save_IFS
5405
  test -z "$as_dir" && as_dir=.
5406
  for ac_exec_ext in '' $ac_executable_extensions; do
5407
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5408
    ac_cv_prog_ac_ct_AR="ar"
5409
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5410
    break 2
5411
  fi
5412
done
5413
done
5414
 
5415
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5416
fi
5417
fi
5418
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5419
if test -n "$ac_ct_AR"; then
5420
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5421
echo "${ECHO_T}$ac_ct_AR" >&6
5422
else
5423
  echo "$as_me:$LINENO: result: no" >&5
5424
echo "${ECHO_T}no" >&6
5425
fi
5426
 
5427
  AR=$ac_ct_AR
5428
else
5429
  AR="$ac_cv_prog_AR"
5430
fi
5431
 
5432
test -z "$AR" && AR=ar
5433
test -z "$AR_FLAGS" && AR_FLAGS=cru
5434
 
5435
 
5436
 
5437
 
5438
 
5439
 
5440
 
5441
 
5442
 
5443
 
5444
 
5445
if test -n "$ac_tool_prefix"; then
5446
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5447
set dummy ${ac_tool_prefix}strip; ac_word=$2
5448
echo "$as_me:$LINENO: checking for $ac_word" >&5
5449
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450
if test "${ac_cv_prog_STRIP+set}" = set; then
5451
  echo $ECHO_N "(cached) $ECHO_C" >&6
5452
else
5453
  if test -n "$STRIP"; then
5454
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5455
else
5456
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457
for as_dir in $PATH
5458
do
5459
  IFS=$as_save_IFS
5460
  test -z "$as_dir" && as_dir=.
5461
  for ac_exec_ext in '' $ac_executable_extensions; do
5462
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5464
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5465
    break 2
5466
  fi
5467
done
5468
done
5469
 
5470
fi
5471
fi
5472
STRIP=$ac_cv_prog_STRIP
5473
if test -n "$STRIP"; then
5474
  echo "$as_me:$LINENO: result: $STRIP" >&5
5475
echo "${ECHO_T}$STRIP" >&6
5476
else
5477
  echo "$as_me:$LINENO: result: no" >&5
5478
echo "${ECHO_T}no" >&6
5479
fi
5480
 
5481
fi
5482
if test -z "$ac_cv_prog_STRIP"; then
5483
  ac_ct_STRIP=$STRIP
5484
  # Extract the first word of "strip", so it can be a program name with args.
5485
set dummy strip; ac_word=$2
5486
echo "$as_me:$LINENO: checking for $ac_word" >&5
5487
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5488
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5489
  echo $ECHO_N "(cached) $ECHO_C" >&6
5490
else
5491
  if test -n "$ac_ct_STRIP"; then
5492
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5493
else
5494
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495
for as_dir in $PATH
5496
do
5497
  IFS=$as_save_IFS
5498
  test -z "$as_dir" && as_dir=.
5499
  for ac_exec_ext in '' $ac_executable_extensions; do
5500
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501
    ac_cv_prog_ac_ct_STRIP="strip"
5502
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503
    break 2
5504
  fi
5505
done
5506
done
5507
 
5508
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5509
fi
5510
fi
5511
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5512
if test -n "$ac_ct_STRIP"; then
5513
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5514
echo "${ECHO_T}$ac_ct_STRIP" >&6
5515
else
5516
  echo "$as_me:$LINENO: result: no" >&5
5517
echo "${ECHO_T}no" >&6
5518
fi
5519
 
5520
  STRIP=$ac_ct_STRIP
5521
else
5522
  STRIP="$ac_cv_prog_STRIP"
5523
fi
5524
 
5525
test -z "$STRIP" && STRIP=:
5526
 
5527
 
5528
 
5529
 
5530
 
5531
 
5532
if test -n "$ac_tool_prefix"; then
5533
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5534
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5535
echo "$as_me:$LINENO: checking for $ac_word" >&5
5536
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5537
if test "${ac_cv_prog_RANLIB+set}" = set; then
5538
  echo $ECHO_N "(cached) $ECHO_C" >&6
5539
else
5540
  if test -n "$RANLIB"; then
5541
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5542
else
5543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544
for as_dir in $PATH
5545
do
5546
  IFS=$as_save_IFS
5547
  test -z "$as_dir" && as_dir=.
5548
  for ac_exec_ext in '' $ac_executable_extensions; do
5549
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5551
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552
    break 2
5553
  fi
5554
done
5555
done
5556
 
5557
fi
5558
fi
5559
RANLIB=$ac_cv_prog_RANLIB
5560
if test -n "$RANLIB"; then
5561
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5562
echo "${ECHO_T}$RANLIB" >&6
5563
else
5564
  echo "$as_me:$LINENO: result: no" >&5
5565
echo "${ECHO_T}no" >&6
5566
fi
5567
 
5568
fi
5569
if test -z "$ac_cv_prog_RANLIB"; then
5570
  ac_ct_RANLIB=$RANLIB
5571
  # Extract the first word of "ranlib", so it can be a program name with args.
5572
set dummy ranlib; ac_word=$2
5573
echo "$as_me:$LINENO: checking for $ac_word" >&5
5574
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5575
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5576
  echo $ECHO_N "(cached) $ECHO_C" >&6
5577
else
5578
  if test -n "$ac_ct_RANLIB"; then
5579
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5580
else
5581
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582
for as_dir in $PATH
5583
do
5584
  IFS=$as_save_IFS
5585
  test -z "$as_dir" && as_dir=.
5586
  for ac_exec_ext in '' $ac_executable_extensions; do
5587
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5589
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5590
    break 2
5591
  fi
5592
done
5593
done
5594
 
5595
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5596
fi
5597
fi
5598
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5599
if test -n "$ac_ct_RANLIB"; then
5600
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5601
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5602
else
5603
  echo "$as_me:$LINENO: result: no" >&5
5604
echo "${ECHO_T}no" >&6
5605
fi
5606
 
5607
  RANLIB=$ac_ct_RANLIB
5608
else
5609
  RANLIB="$ac_cv_prog_RANLIB"
5610
fi
5611
 
5612
test -z "$RANLIB" && RANLIB=:
5613
 
5614
 
5615
 
5616
 
5617
 
5618
 
5619
# Determine commands to create old-style static archives.
5620
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5621
old_postinstall_cmds='chmod 644 $oldlib'
5622
old_postuninstall_cmds=
5623
 
5624
if test -n "$RANLIB"; then
5625
  case $host_os in
5626
  openbsd*)
5627
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5628
    ;;
5629
  *)
5630
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5631
    ;;
5632
  esac
5633
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5634
fi
5635
 
5636
 
5637
 
5638
 
5639
 
5640
 
5641
 
5642
 
5643
 
5644
 
5645
 
5646
 
5647
 
5648
 
5649
 
5650
 
5651
 
5652
 
5653
 
5654
 
5655
 
5656
 
5657
 
5658
 
5659
 
5660
 
5661
 
5662
 
5663
 
5664
 
5665
 
5666
 
5667
 
5668
 
5669
# If no C compiler was specified, use CC.
5670
LTCC=${LTCC-"$CC"}
5671
 
5672
# If no C compiler flags were specified, use CFLAGS.
5673
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5674
 
5675
# Allow CC to be a program name with arguments.
5676
compiler=$CC
5677
 
5678
 
5679
# Check for command to grab the raw symbol name followed by C symbol from nm.
5680
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5681
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5682
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5683
  echo $ECHO_N "(cached) $ECHO_C" >&6
5684
else
5685
 
5686
# These are sane defaults that work on at least a few old systems.
5687
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5688
 
5689
# Character class describing NM global symbol codes.
5690
symcode='[BCDEGRST]'
5691
 
5692
# Regexp to match symbols that can be accessed directly from C.
5693
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5694
 
5695
# Define system-specific variables.
5696
case $host_os in
5697
aix*)
5698
  symcode='[BCDT]'
5699
  ;;
5700
cygwin* | mingw* | pw32* | cegcc*)
5701
  symcode='[ABCDGISTW]'
5702
  ;;
5703
hpux*)
5704
  if test "$host_cpu" = ia64; then
5705
    symcode='[ABCDEGRST]'
5706
  fi
5707
  ;;
5708
irix* | nonstopux*)
5709
  symcode='[BCDEGRST]'
5710
  ;;
5711
osf*)
5712
  symcode='[BCDEGQRST]'
5713
  ;;
5714
solaris*)
5715
  symcode='[BDRT]'
5716
  ;;
5717
sco3.2v5*)
5718
  symcode='[DT]'
5719
  ;;
5720
sysv4.2uw2*)
5721
  symcode='[DT]'
5722
  ;;
5723
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5724
  symcode='[ABDT]'
5725
  ;;
5726
sysv4)
5727
  symcode='[DFNSTU]'
5728
  ;;
5729
esac
5730
 
5731
# If we're using GNU nm, then use its standard symbol codes.
5732
case `$NM -V 2>&1` in
5733
*GNU* | *'with BFD'*)
5734
  symcode='[ABCDGIRSTW]' ;;
5735
esac
5736
 
5737
# Transform an extracted symbol line into a proper C declaration.
5738
# Some systems (esp. on ia64) link data and code symbols differently,
5739
# so use this general approach.
5740
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5741
 
5742
# Transform an extracted symbol line into symbol name and symbol address
5743
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5744
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'"
5745
 
5746
# Handle CRLF in mingw tool chain
5747
opt_cr=
5748
case $build_os in
5749
mingw*)
5750
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5751
  ;;
5752
esac
5753
 
5754
# Try without a prefix underscore, then with it.
5755
for ac_symprfx in "" "_"; do
5756
 
5757
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5758
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5759
 
5760
  # Write the raw and C identifiers.
5761
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5762
    # Fake it for dumpbin and say T for any non-static function
5763
    # and D for any global variable.
5764
    # Also find C++ and __fastcall symbols from MSVC++,
5765
    # which start with @ or ?.
5766
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5767
"     {last_section=section; section=\$ 3};"\
5768
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5769
"     \$ 0!~/External *\|/{next};"\
5770
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5771
"     {if(hide[section]) next};"\
5772
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5773
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5774
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5775
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5776
"     ' prfx=^$ac_symprfx"
5777
  else
5778
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5779
  fi
5780
 
5781
  # Check to see that the pipe works correctly.
5782
  pipe_works=no
5783
 
5784
  rm -f conftest*
5785
  cat > conftest.$ac_ext <<_LT_EOF
5786
#ifdef __cplusplus
5787
extern "C" {
5788
#endif
5789
char nm_test_var;
5790
void nm_test_func(void);
5791
void nm_test_func(void){}
5792
#ifdef __cplusplus
5793
}
5794
#endif
5795
int main(){nm_test_var='a';nm_test_func();return(0);}
5796
_LT_EOF
5797
 
5798
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5799
  (eval $ac_compile) 2>&5
5800
  ac_status=$?
5801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802
  (exit $ac_status); }; then
5803
    # Now try to grab the symbols.
5804
    nlist=conftest.nm
5805
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5806
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5807
  ac_status=$?
5808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809
  (exit $ac_status); } && test -s "$nlist"; then
5810
      # Try sorting and uniquifying the output.
5811
      if sort "$nlist" | uniq > "$nlist"T; then
5812
        mv -f "$nlist"T "$nlist"
5813
      else
5814
        rm -f "$nlist"T
5815
      fi
5816
 
5817
      # Make sure that we snagged all the symbols we need.
5818
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5819
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5820
          cat <<_LT_EOF > conftest.$ac_ext
5821
#ifdef __cplusplus
5822
extern "C" {
5823
#endif
5824
 
5825
_LT_EOF
5826
          # Now generate the symbol file.
5827
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5828
 
5829
          cat <<_LT_EOF >> conftest.$ac_ext
5830
 
5831
/* The mapping between symbol names and symbols.  */
5832
const struct {
5833
  const char *name;
5834
  void       *address;
5835
}
5836
lt__PROGRAM__LTX_preloaded_symbols[] =
5837
{
5838
  { "@PROGRAM@", (void *) 0 },
5839
_LT_EOF
5840
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5841
          cat <<\_LT_EOF >> conftest.$ac_ext
5842
  {0, (void *) 0}
5843
};
5844
 
5845
/* This works around a problem in FreeBSD linker */
5846
#ifdef FREEBSD_WORKAROUND
5847
static const void *lt_preloaded_setup() {
5848
  return lt__PROGRAM__LTX_preloaded_symbols;
5849
}
5850
#endif
5851
 
5852
#ifdef __cplusplus
5853
}
5854
#endif
5855
_LT_EOF
5856
          # Now try linking the two files.
5857
          mv conftest.$ac_objext conftstm.$ac_objext
5858
          lt_save_LIBS="$LIBS"
5859
          lt_save_CFLAGS="$CFLAGS"
5860
          LIBS="conftstm.$ac_objext"
5861
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5862
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5863
  (eval $ac_link) 2>&5
5864
  ac_status=$?
5865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5867
            pipe_works=yes
5868
          fi
5869
          LIBS="$lt_save_LIBS"
5870
          CFLAGS="$lt_save_CFLAGS"
5871
        else
5872
          echo "cannot find nm_test_func in $nlist" >&5
5873
        fi
5874
      else
5875
        echo "cannot find nm_test_var in $nlist" >&5
5876
      fi
5877
    else
5878
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5879
    fi
5880
  else
5881
    echo "$progname: failed program was:" >&5
5882
    cat conftest.$ac_ext >&5
5883
  fi
5884
  rm -rf conftest* conftst*
5885
 
5886
  # Do not use the global_symbol_pipe unless it works.
5887
  if test "$pipe_works" = yes; then
5888
    break
5889
  else
5890
    lt_cv_sys_global_symbol_pipe=
5891
  fi
5892
done
5893
 
5894
fi
5895
 
5896
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5897
  lt_cv_sys_global_symbol_to_cdecl=
5898
fi
5899
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5900
  echo "$as_me:$LINENO: result: failed" >&5
5901
echo "${ECHO_T}failed" >&6
5902
else
5903
  echo "$as_me:$LINENO: result: ok" >&5
5904
echo "${ECHO_T}ok" >&6
5905
fi
5906
 
5907
 
5908
 
5909
 
5910
 
5911
 
5912
 
5913
 
5914
 
5915
 
5916
 
5917
 
5918
 
5919
 
5920
 
5921
 
5922
 
5923
 
5924
 
5925
 
5926
 
5927
 
5928
 
5929
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5930
if test "${enable_libtool_lock+set}" = set; then
5931
  enableval="$enable_libtool_lock"
5932
 
5933
fi;
5934
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5935
 
5936
# Some flags need to be propagated to the compiler or linker for good
5937
# libtool support.
5938
case $host in
5939
ia64-*-hpux*)
5940
  # Find out which ABI we are using.
5941
  echo 'int i;' > conftest.$ac_ext
5942
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943
  (eval $ac_compile) 2>&5
5944
  ac_status=$?
5945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946
  (exit $ac_status); }; then
5947
    case `/usr/bin/file conftest.$ac_objext` in
5948
      *ELF-32*)
5949
        HPUX_IA64_MODE="32"
5950
        ;;
5951
      *ELF-64*)
5952
        HPUX_IA64_MODE="64"
5953
        ;;
5954
    esac
5955
  fi
5956
  rm -rf conftest*
5957
  ;;
5958
*-*-irix6*)
5959
  # Find out which ABI we are using.
5960
  echo '#line 5960 "configure"' > conftest.$ac_ext
5961
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5962
  (eval $ac_compile) 2>&5
5963
  ac_status=$?
5964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965
  (exit $ac_status); }; then
5966
    if test "$lt_cv_prog_gnu_ld" = yes; then
5967
      case `/usr/bin/file conftest.$ac_objext` in
5968
        *32-bit*)
5969
          LD="${LD-ld} -melf32bsmip"
5970
          ;;
5971
        *N32*)
5972
          LD="${LD-ld} -melf32bmipn32"
5973
          ;;
5974
        *64-bit*)
5975
          LD="${LD-ld} -melf64bmip"
5976
        ;;
5977
      esac
5978
    else
5979
      case `/usr/bin/file conftest.$ac_objext` in
5980
        *32-bit*)
5981
          LD="${LD-ld} -32"
5982
          ;;
5983
        *N32*)
5984
          LD="${LD-ld} -n32"
5985
          ;;
5986
        *64-bit*)
5987
          LD="${LD-ld} -64"
5988
          ;;
5989
      esac
5990
    fi
5991
  fi
5992
  rm -rf conftest*
5993
  ;;
5994
 
5995
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5996
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5997
  # Find out which ABI we are using.
5998
  echo 'int i;' > conftest.$ac_ext
5999
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000
  (eval $ac_compile) 2>&5
6001
  ac_status=$?
6002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003
  (exit $ac_status); }; then
6004
    case `/usr/bin/file conftest.o` in
6005
      *32-bit*)
6006
        case $host in
6007
          x86_64-*kfreebsd*-gnu)
6008
            LD="${LD-ld} -m elf_i386_fbsd"
6009
            ;;
6010
          x86_64-*linux*)
6011
            LD="${LD-ld} -m elf_i386"
6012
            ;;
6013
          ppc64-*linux*|powerpc64-*linux*)
6014
            LD="${LD-ld} -m elf32ppclinux"
6015
            ;;
6016
          s390x-*linux*)
6017
            LD="${LD-ld} -m elf_s390"
6018
            ;;
6019
          sparc64-*linux*)
6020
            LD="${LD-ld} -m elf32_sparc"
6021
            ;;
6022
        esac
6023
        ;;
6024
      *64-bit*)
6025
        case $host in
6026
          x86_64-*kfreebsd*-gnu)
6027
            LD="${LD-ld} -m elf_x86_64_fbsd"
6028
            ;;
6029
          x86_64-*linux*)
6030
            LD="${LD-ld} -m elf_x86_64"
6031
            ;;
6032
          ppc*-*linux*|powerpc*-*linux*)
6033
            LD="${LD-ld} -m elf64ppc"
6034
            ;;
6035
          s390*-*linux*|s390*-*tpf*)
6036
            LD="${LD-ld} -m elf64_s390"
6037
            ;;
6038
          sparc*-*linux*)
6039
            LD="${LD-ld} -m elf64_sparc"
6040
            ;;
6041
        esac
6042
        ;;
6043
    esac
6044
  fi
6045
  rm -rf conftest*
6046
  ;;
6047
 
6048
*-*-sco3.2v5*)
6049
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6050
  SAVE_CFLAGS="$CFLAGS"
6051
  CFLAGS="$CFLAGS -belf"
6052
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6053
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6054
if test "${lt_cv_cc_needs_belf+set}" = set; then
6055
  echo $ECHO_N "(cached) $ECHO_C" >&6
6056
else
6057
  ac_ext=c
6058
ac_cpp='$CPP $CPPFLAGS'
6059
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6060
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6061
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6062
 
6063
     cat >conftest.$ac_ext <<_ACEOF
6064
/* confdefs.h.  */
6065
_ACEOF
6066
cat confdefs.h >>conftest.$ac_ext
6067
cat >>conftest.$ac_ext <<_ACEOF
6068
/* end confdefs.h.  */
6069
 
6070
int
6071
main ()
6072
{
6073
 
6074
  ;
6075
  return 0;
6076
}
6077
_ACEOF
6078
rm -f conftest.$ac_objext conftest$ac_exeext
6079
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6080
  (eval $ac_link) 2>conftest.er1
6081
  ac_status=$?
6082
  grep -v '^ *+' conftest.er1 >conftest.err
6083
  rm -f conftest.er1
6084
  cat conftest.err >&5
6085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086
  (exit $ac_status); } &&
6087
         { ac_try='test -z "$ac_c_werror_flag"
6088
                         || test ! -s conftest.err'
6089
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090
  (eval $ac_try) 2>&5
6091
  ac_status=$?
6092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093
  (exit $ac_status); }; } &&
6094
         { ac_try='test -s conftest$ac_exeext'
6095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096
  (eval $ac_try) 2>&5
6097
  ac_status=$?
6098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099
  (exit $ac_status); }; }; then
6100
  lt_cv_cc_needs_belf=yes
6101
else
6102
  echo "$as_me: failed program was:" >&5
6103
sed 's/^/| /' conftest.$ac_ext >&5
6104
 
6105
lt_cv_cc_needs_belf=no
6106
fi
6107
rm -f conftest.err conftest.$ac_objext \
6108
      conftest$ac_exeext conftest.$ac_ext
6109
     ac_ext=c
6110
ac_cpp='$CPP $CPPFLAGS'
6111
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6112
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6113
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6114
 
6115
fi
6116
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6117
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6118
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6119
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6120
    CFLAGS="$SAVE_CFLAGS"
6121
  fi
6122
  ;;
6123
sparc*-*solaris*)
6124
  # Find out which ABI we are using.
6125
  echo 'int i;' > conftest.$ac_ext
6126
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127
  (eval $ac_compile) 2>&5
6128
  ac_status=$?
6129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130
  (exit $ac_status); }; then
6131
    case `/usr/bin/file conftest.o` in
6132
    *64-bit*)
6133
      case $lt_cv_prog_gnu_ld in
6134
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6135
      *)
6136
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6137
          LD="${LD-ld} -64"
6138
        fi
6139
        ;;
6140
      esac
6141
      ;;
6142
    esac
6143
  fi
6144
  rm -rf conftest*
6145
  ;;
6146
esac
6147
 
6148
need_locks="$enable_libtool_lock"
6149
 
6150
 
6151
  case $host_os in
6152
    rhapsody* | darwin*)
6153
    if test -n "$ac_tool_prefix"; then
6154
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6155
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6156
echo "$as_me:$LINENO: checking for $ac_word" >&5
6157
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6158
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6159
  echo $ECHO_N "(cached) $ECHO_C" >&6
6160
else
6161
  if test -n "$DSYMUTIL"; then
6162
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6163
else
6164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165
for as_dir in $PATH
6166
do
6167
  IFS=$as_save_IFS
6168
  test -z "$as_dir" && as_dir=.
6169
  for ac_exec_ext in '' $ac_executable_extensions; do
6170
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6171
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6172
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173
    break 2
6174
  fi
6175
done
6176
done
6177
 
6178
fi
6179
fi
6180
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6181
if test -n "$DSYMUTIL"; then
6182
  echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6183
echo "${ECHO_T}$DSYMUTIL" >&6
6184
else
6185
  echo "$as_me:$LINENO: result: no" >&5
6186
echo "${ECHO_T}no" >&6
6187
fi
6188
 
6189
fi
6190
if test -z "$ac_cv_prog_DSYMUTIL"; then
6191
  ac_ct_DSYMUTIL=$DSYMUTIL
6192
  # Extract the first word of "dsymutil", so it can be a program name with args.
6193
set dummy dsymutil; ac_word=$2
6194
echo "$as_me:$LINENO: checking for $ac_word" >&5
6195
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6196
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6197
  echo $ECHO_N "(cached) $ECHO_C" >&6
6198
else
6199
  if test -n "$ac_ct_DSYMUTIL"; then
6200
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6201
else
6202
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203
for as_dir in $PATH
6204
do
6205
  IFS=$as_save_IFS
6206
  test -z "$as_dir" && as_dir=.
6207
  for ac_exec_ext in '' $ac_executable_extensions; do
6208
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6209
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6210
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211
    break 2
6212
  fi
6213
done
6214
done
6215
 
6216
  test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6217
fi
6218
fi
6219
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6220
if test -n "$ac_ct_DSYMUTIL"; then
6221
  echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6222
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6223
else
6224
  echo "$as_me:$LINENO: result: no" >&5
6225
echo "${ECHO_T}no" >&6
6226
fi
6227
 
6228
  DSYMUTIL=$ac_ct_DSYMUTIL
6229
else
6230
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6231
fi
6232
 
6233
    if test -n "$ac_tool_prefix"; then
6234
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6235
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6236
echo "$as_me:$LINENO: checking for $ac_word" >&5
6237
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6238
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6239
  echo $ECHO_N "(cached) $ECHO_C" >&6
6240
else
6241
  if test -n "$NMEDIT"; then
6242
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6243
else
6244
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245
for as_dir in $PATH
6246
do
6247
  IFS=$as_save_IFS
6248
  test -z "$as_dir" && as_dir=.
6249
  for ac_exec_ext in '' $ac_executable_extensions; do
6250
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6251
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6252
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253
    break 2
6254
  fi
6255
done
6256
done
6257
 
6258
fi
6259
fi
6260
NMEDIT=$ac_cv_prog_NMEDIT
6261
if test -n "$NMEDIT"; then
6262
  echo "$as_me:$LINENO: result: $NMEDIT" >&5
6263
echo "${ECHO_T}$NMEDIT" >&6
6264
else
6265
  echo "$as_me:$LINENO: result: no" >&5
6266
echo "${ECHO_T}no" >&6
6267
fi
6268
 
6269
fi
6270
if test -z "$ac_cv_prog_NMEDIT"; then
6271
  ac_ct_NMEDIT=$NMEDIT
6272
  # Extract the first word of "nmedit", so it can be a program name with args.
6273
set dummy nmedit; ac_word=$2
6274
echo "$as_me:$LINENO: checking for $ac_word" >&5
6275
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6276
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6277
  echo $ECHO_N "(cached) $ECHO_C" >&6
6278
else
6279
  if test -n "$ac_ct_NMEDIT"; then
6280
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6281
else
6282
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283
for as_dir in $PATH
6284
do
6285
  IFS=$as_save_IFS
6286
  test -z "$as_dir" && as_dir=.
6287
  for ac_exec_ext in '' $ac_executable_extensions; do
6288
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6289
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6290
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291
    break 2
6292
  fi
6293
done
6294
done
6295
 
6296
  test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6297
fi
6298
fi
6299
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6300
if test -n "$ac_ct_NMEDIT"; then
6301
  echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6302
echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6303
else
6304
  echo "$as_me:$LINENO: result: no" >&5
6305
echo "${ECHO_T}no" >&6
6306
fi
6307
 
6308
  NMEDIT=$ac_ct_NMEDIT
6309
else
6310
  NMEDIT="$ac_cv_prog_NMEDIT"
6311
fi
6312
 
6313
    if test -n "$ac_tool_prefix"; then
6314
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6315
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6316
echo "$as_me:$LINENO: checking for $ac_word" >&5
6317
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6318
if test "${ac_cv_prog_LIPO+set}" = set; then
6319
  echo $ECHO_N "(cached) $ECHO_C" >&6
6320
else
6321
  if test -n "$LIPO"; then
6322
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6323
else
6324
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325
for as_dir in $PATH
6326
do
6327
  IFS=$as_save_IFS
6328
  test -z "$as_dir" && as_dir=.
6329
  for ac_exec_ext in '' $ac_executable_extensions; do
6330
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6331
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6332
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333
    break 2
6334
  fi
6335
done
6336
done
6337
 
6338
fi
6339
fi
6340
LIPO=$ac_cv_prog_LIPO
6341
if test -n "$LIPO"; then
6342
  echo "$as_me:$LINENO: result: $LIPO" >&5
6343
echo "${ECHO_T}$LIPO" >&6
6344
else
6345
  echo "$as_me:$LINENO: result: no" >&5
6346
echo "${ECHO_T}no" >&6
6347
fi
6348
 
6349
fi
6350
if test -z "$ac_cv_prog_LIPO"; then
6351
  ac_ct_LIPO=$LIPO
6352
  # Extract the first word of "lipo", so it can be a program name with args.
6353
set dummy lipo; ac_word=$2
6354
echo "$as_me:$LINENO: checking for $ac_word" >&5
6355
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6356
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6357
  echo $ECHO_N "(cached) $ECHO_C" >&6
6358
else
6359
  if test -n "$ac_ct_LIPO"; then
6360
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6361
else
6362
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363
for as_dir in $PATH
6364
do
6365
  IFS=$as_save_IFS
6366
  test -z "$as_dir" && as_dir=.
6367
  for ac_exec_ext in '' $ac_executable_extensions; do
6368
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369
    ac_cv_prog_ac_ct_LIPO="lipo"
6370
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6371
    break 2
6372
  fi
6373
done
6374
done
6375
 
6376
  test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6377
fi
6378
fi
6379
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6380
if test -n "$ac_ct_LIPO"; then
6381
  echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6382
echo "${ECHO_T}$ac_ct_LIPO" >&6
6383
else
6384
  echo "$as_me:$LINENO: result: no" >&5
6385
echo "${ECHO_T}no" >&6
6386
fi
6387
 
6388
  LIPO=$ac_ct_LIPO
6389
else
6390
  LIPO="$ac_cv_prog_LIPO"
6391
fi
6392
 
6393
    if test -n "$ac_tool_prefix"; then
6394
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6395
set dummy ${ac_tool_prefix}otool; ac_word=$2
6396
echo "$as_me:$LINENO: checking for $ac_word" >&5
6397
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6398
if test "${ac_cv_prog_OTOOL+set}" = set; then
6399
  echo $ECHO_N "(cached) $ECHO_C" >&6
6400
else
6401
  if test -n "$OTOOL"; then
6402
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6403
else
6404
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405
for as_dir in $PATH
6406
do
6407
  IFS=$as_save_IFS
6408
  test -z "$as_dir" && as_dir=.
6409
  for ac_exec_ext in '' $ac_executable_extensions; do
6410
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6411
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6412
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413
    break 2
6414
  fi
6415
done
6416
done
6417
 
6418
fi
6419
fi
6420
OTOOL=$ac_cv_prog_OTOOL
6421
if test -n "$OTOOL"; then
6422
  echo "$as_me:$LINENO: result: $OTOOL" >&5
6423
echo "${ECHO_T}$OTOOL" >&6
6424
else
6425
  echo "$as_me:$LINENO: result: no" >&5
6426
echo "${ECHO_T}no" >&6
6427
fi
6428
 
6429
fi
6430
if test -z "$ac_cv_prog_OTOOL"; then
6431
  ac_ct_OTOOL=$OTOOL
6432
  # Extract the first word of "otool", so it can be a program name with args.
6433
set dummy otool; ac_word=$2
6434
echo "$as_me:$LINENO: checking for $ac_word" >&5
6435
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6436
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6437
  echo $ECHO_N "(cached) $ECHO_C" >&6
6438
else
6439
  if test -n "$ac_ct_OTOOL"; then
6440
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6441
else
6442
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443
for as_dir in $PATH
6444
do
6445
  IFS=$as_save_IFS
6446
  test -z "$as_dir" && as_dir=.
6447
  for ac_exec_ext in '' $ac_executable_extensions; do
6448
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6449
    ac_cv_prog_ac_ct_OTOOL="otool"
6450
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451
    break 2
6452
  fi
6453
done
6454
done
6455
 
6456
  test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6457
fi
6458
fi
6459
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6460
if test -n "$ac_ct_OTOOL"; then
6461
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6462
echo "${ECHO_T}$ac_ct_OTOOL" >&6
6463
else
6464
  echo "$as_me:$LINENO: result: no" >&5
6465
echo "${ECHO_T}no" >&6
6466
fi
6467
 
6468
  OTOOL=$ac_ct_OTOOL
6469
else
6470
  OTOOL="$ac_cv_prog_OTOOL"
6471
fi
6472
 
6473
    if test -n "$ac_tool_prefix"; then
6474
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6475
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6476
echo "$as_me:$LINENO: checking for $ac_word" >&5
6477
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6478
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6479
  echo $ECHO_N "(cached) $ECHO_C" >&6
6480
else
6481
  if test -n "$OTOOL64"; then
6482
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6483
else
6484
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485
for as_dir in $PATH
6486
do
6487
  IFS=$as_save_IFS
6488
  test -z "$as_dir" && as_dir=.
6489
  for ac_exec_ext in '' $ac_executable_extensions; do
6490
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6491
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6492
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493
    break 2
6494
  fi
6495
done
6496
done
6497
 
6498
fi
6499
fi
6500
OTOOL64=$ac_cv_prog_OTOOL64
6501
if test -n "$OTOOL64"; then
6502
  echo "$as_me:$LINENO: result: $OTOOL64" >&5
6503
echo "${ECHO_T}$OTOOL64" >&6
6504
else
6505
  echo "$as_me:$LINENO: result: no" >&5
6506
echo "${ECHO_T}no" >&6
6507
fi
6508
 
6509
fi
6510
if test -z "$ac_cv_prog_OTOOL64"; then
6511
  ac_ct_OTOOL64=$OTOOL64
6512
  # Extract the first word of "otool64", so it can be a program name with args.
6513
set dummy otool64; ac_word=$2
6514
echo "$as_me:$LINENO: checking for $ac_word" >&5
6515
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6516
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6517
  echo $ECHO_N "(cached) $ECHO_C" >&6
6518
else
6519
  if test -n "$ac_ct_OTOOL64"; then
6520
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6521
else
6522
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523
for as_dir in $PATH
6524
do
6525
  IFS=$as_save_IFS
6526
  test -z "$as_dir" && as_dir=.
6527
  for ac_exec_ext in '' $ac_executable_extensions; do
6528
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6529
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6530
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531
    break 2
6532
  fi
6533
done
6534
done
6535
 
6536
  test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6537
fi
6538
fi
6539
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6540
if test -n "$ac_ct_OTOOL64"; then
6541
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6542
echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6543
else
6544
  echo "$as_me:$LINENO: result: no" >&5
6545
echo "${ECHO_T}no" >&6
6546
fi
6547
 
6548
  OTOOL64=$ac_ct_OTOOL64
6549
else
6550
  OTOOL64="$ac_cv_prog_OTOOL64"
6551
fi
6552
 
6553
 
6554
 
6555
 
6556
 
6557
 
6558
 
6559
 
6560
 
6561
 
6562
 
6563
 
6564
 
6565
 
6566
 
6567
 
6568
 
6569
 
6570
 
6571
 
6572
 
6573
 
6574
 
6575
 
6576
 
6577
 
6578
 
6579
    echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6580
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6581
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6582
  echo $ECHO_N "(cached) $ECHO_C" >&6
6583
else
6584
  lt_cv_apple_cc_single_mod=no
6585
      if test -z "${LT_MULTI_MODULE}"; then
6586
        # By default we will add the -single_module flag. You can override
6587
        # by either setting the environment variable LT_MULTI_MODULE
6588
        # non-empty at configure time, or by adding -multi_module to the
6589
        # link flags.
6590
        rm -rf libconftest.dylib*
6591
        echo "int foo(void){return 1;}" > conftest.c
6592
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6593
-dynamiclib -Wl,-single_module conftest.c" >&5
6594
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6595
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6596
        _lt_result=$?
6597
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6598
          lt_cv_apple_cc_single_mod=yes
6599
        else
6600
          cat conftest.err >&5
6601
        fi
6602
        rm -rf libconftest.dylib*
6603
        rm -f conftest.*
6604
      fi
6605
fi
6606
echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6607
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6608
    echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6609
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6610
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6611
  echo $ECHO_N "(cached) $ECHO_C" >&6
6612
else
6613
  lt_cv_ld_exported_symbols_list=no
6614
      save_LDFLAGS=$LDFLAGS
6615
      echo "_main" > conftest.sym
6616
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6617
      cat >conftest.$ac_ext <<_ACEOF
6618
/* confdefs.h.  */
6619
_ACEOF
6620
cat confdefs.h >>conftest.$ac_ext
6621
cat >>conftest.$ac_ext <<_ACEOF
6622
/* end confdefs.h.  */
6623
 
6624
int
6625
main ()
6626
{
6627
 
6628
  ;
6629
  return 0;
6630
}
6631
_ACEOF
6632
rm -f conftest.$ac_objext conftest$ac_exeext
6633
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6634
  (eval $ac_link) 2>conftest.er1
6635
  ac_status=$?
6636
  grep -v '^ *+' conftest.er1 >conftest.err
6637
  rm -f conftest.er1
6638
  cat conftest.err >&5
6639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640
  (exit $ac_status); } &&
6641
         { ac_try='test -z "$ac_c_werror_flag"
6642
                         || test ! -s conftest.err'
6643
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644
  (eval $ac_try) 2>&5
6645
  ac_status=$?
6646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647
  (exit $ac_status); }; } &&
6648
         { ac_try='test -s conftest$ac_exeext'
6649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650
  (eval $ac_try) 2>&5
6651
  ac_status=$?
6652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653
  (exit $ac_status); }; }; then
6654
  lt_cv_ld_exported_symbols_list=yes
6655
else
6656
  echo "$as_me: failed program was:" >&5
6657
sed 's/^/| /' conftest.$ac_ext >&5
6658
 
6659
lt_cv_ld_exported_symbols_list=no
6660
fi
6661
rm -f conftest.err conftest.$ac_objext \
6662
      conftest$ac_exeext conftest.$ac_ext
6663
        LDFLAGS="$save_LDFLAGS"
6664
 
6665
fi
6666
echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6667
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6668
    case $host_os in
6669
    rhapsody* | darwin1.[012])
6670
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6671
    darwin1.*)
6672
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6673
    darwin*) # darwin 5.x on
6674
      # if running on 10.5 or later, the deployment target defaults
6675
      # to the OS version, if on x86, and 10.4, the deployment
6676
      # target defaults to 10.4. Don't you love it?
6677
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6678
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6679
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6680
        10.[012]*)
6681
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6682
        10.*)
6683
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6684
      esac
6685
    ;;
6686
  esac
6687
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6688
      _lt_dar_single_mod='$single_module'
6689
    fi
6690
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6691
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6692
    else
6693
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6694
    fi
6695
    if test "$DSYMUTIL" != ":"; then
6696
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6697
    else
6698
      _lt_dsymutil=
6699
    fi
6700
    ;;
6701
  esac
6702
 
6703
ac_ext=c
6704
ac_cpp='$CPP $CPPFLAGS'
6705
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6706
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6707
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6708
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6709
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6710
# On Suns, sometimes $CPP names a directory.
6711
if test -n "$CPP" && test -d "$CPP"; then
6712
  CPP=
6713
fi
6714
if test -z "$CPP"; then
6715
  if test "${ac_cv_prog_CPP+set}" = set; then
6716
  echo $ECHO_N "(cached) $ECHO_C" >&6
6717
else
6718
      # Double quotes because CPP needs to be expanded
6719
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6720
    do
6721
      ac_preproc_ok=false
6722
for ac_c_preproc_warn_flag in '' yes
6723
do
6724
  # Use a header file that comes with gcc, so configuring glibc
6725
  # with a fresh cross-compiler works.
6726
  # Prefer  to  if __STDC__ is defined, since
6727
  #  exists even on freestanding compilers.
6728
  # On the NeXT, cc -E runs the code through the compiler's parser,
6729
  # not just through cpp. "Syntax error" is here to catch this case.
6730
  cat >conftest.$ac_ext <<_ACEOF
6731
/* confdefs.h.  */
6732
_ACEOF
6733
cat confdefs.h >>conftest.$ac_ext
6734
cat >>conftest.$ac_ext <<_ACEOF
6735
/* end confdefs.h.  */
6736
#ifdef __STDC__
6737
# include 
6738
#else
6739
# include 
6740
#endif
6741
                     Syntax error
6742
_ACEOF
6743
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6744
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6745
  ac_status=$?
6746
  grep -v '^ *+' conftest.er1 >conftest.err
6747
  rm -f conftest.er1
6748
  cat conftest.err >&5
6749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750
  (exit $ac_status); } >/dev/null; then
6751
  if test -s conftest.err; then
6752
    ac_cpp_err=$ac_c_preproc_warn_flag
6753
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6754
  else
6755
    ac_cpp_err=
6756
  fi
6757
else
6758
  ac_cpp_err=yes
6759
fi
6760
if test -z "$ac_cpp_err"; then
6761
  :
6762
else
6763
  echo "$as_me: failed program was:" >&5
6764
sed 's/^/| /' conftest.$ac_ext >&5
6765
 
6766
  # Broken: fails on valid input.
6767
continue
6768
fi
6769
rm -f conftest.err conftest.$ac_ext
6770
 
6771
  # OK, works on sane cases.  Now check whether non-existent headers
6772
  # can be detected and how.
6773
  cat >conftest.$ac_ext <<_ACEOF
6774
/* confdefs.h.  */
6775
_ACEOF
6776
cat confdefs.h >>conftest.$ac_ext
6777
cat >>conftest.$ac_ext <<_ACEOF
6778
/* end confdefs.h.  */
6779
#include 
6780
_ACEOF
6781
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6782
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6783
  ac_status=$?
6784
  grep -v '^ *+' conftest.er1 >conftest.err
6785
  rm -f conftest.er1
6786
  cat conftest.err >&5
6787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788
  (exit $ac_status); } >/dev/null; then
6789
  if test -s conftest.err; then
6790
    ac_cpp_err=$ac_c_preproc_warn_flag
6791
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6792
  else
6793
    ac_cpp_err=
6794
  fi
6795
else
6796
  ac_cpp_err=yes
6797
fi
6798
if test -z "$ac_cpp_err"; then
6799
  # Broken: success on invalid input.
6800
continue
6801
else
6802
  echo "$as_me: failed program was:" >&5
6803
sed 's/^/| /' conftest.$ac_ext >&5
6804
 
6805
  # Passes both tests.
6806
ac_preproc_ok=:
6807
break
6808
fi
6809
rm -f conftest.err conftest.$ac_ext
6810
 
6811
done
6812
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6813
rm -f conftest.err conftest.$ac_ext
6814
if $ac_preproc_ok; then
6815
  break
6816
fi
6817
 
6818
    done
6819
    ac_cv_prog_CPP=$CPP
6820
 
6821
fi
6822
  CPP=$ac_cv_prog_CPP
6823
else
6824
  ac_cv_prog_CPP=$CPP
6825
fi
6826
echo "$as_me:$LINENO: result: $CPP" >&5
6827
echo "${ECHO_T}$CPP" >&6
6828
ac_preproc_ok=false
6829
for ac_c_preproc_warn_flag in '' yes
6830
do
6831
  # Use a header file that comes with gcc, so configuring glibc
6832
  # with a fresh cross-compiler works.
6833
  # Prefer  to  if __STDC__ is defined, since
6834
  #  exists even on freestanding compilers.
6835
  # On the NeXT, cc -E runs the code through the compiler's parser,
6836
  # not just through cpp. "Syntax error" is here to catch this case.
6837
  cat >conftest.$ac_ext <<_ACEOF
6838
/* confdefs.h.  */
6839
_ACEOF
6840
cat confdefs.h >>conftest.$ac_ext
6841
cat >>conftest.$ac_ext <<_ACEOF
6842
/* end confdefs.h.  */
6843
#ifdef __STDC__
6844
# include 
6845
#else
6846
# include 
6847
#endif
6848
                     Syntax error
6849
_ACEOF
6850
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6851
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6852
  ac_status=$?
6853
  grep -v '^ *+' conftest.er1 >conftest.err
6854
  rm -f conftest.er1
6855
  cat conftest.err >&5
6856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857
  (exit $ac_status); } >/dev/null; then
6858
  if test -s conftest.err; then
6859
    ac_cpp_err=$ac_c_preproc_warn_flag
6860
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6861
  else
6862
    ac_cpp_err=
6863
  fi
6864
else
6865
  ac_cpp_err=yes
6866
fi
6867
if test -z "$ac_cpp_err"; then
6868
  :
6869
else
6870
  echo "$as_me: failed program was:" >&5
6871
sed 's/^/| /' conftest.$ac_ext >&5
6872
 
6873
  # Broken: fails on valid input.
6874
continue
6875
fi
6876
rm -f conftest.err conftest.$ac_ext
6877
 
6878
  # OK, works on sane cases.  Now check whether non-existent headers
6879
  # can be detected and how.
6880
  cat >conftest.$ac_ext <<_ACEOF
6881
/* confdefs.h.  */
6882
_ACEOF
6883
cat confdefs.h >>conftest.$ac_ext
6884
cat >>conftest.$ac_ext <<_ACEOF
6885
/* end confdefs.h.  */
6886
#include 
6887
_ACEOF
6888
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6889
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6890
  ac_status=$?
6891
  grep -v '^ *+' conftest.er1 >conftest.err
6892
  rm -f conftest.er1
6893
  cat conftest.err >&5
6894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895
  (exit $ac_status); } >/dev/null; then
6896
  if test -s conftest.err; then
6897
    ac_cpp_err=$ac_c_preproc_warn_flag
6898
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6899
  else
6900
    ac_cpp_err=
6901
  fi
6902
else
6903
  ac_cpp_err=yes
6904
fi
6905
if test -z "$ac_cpp_err"; then
6906
  # Broken: success on invalid input.
6907
continue
6908
else
6909
  echo "$as_me: failed program was:" >&5
6910
sed 's/^/| /' conftest.$ac_ext >&5
6911
 
6912
  # Passes both tests.
6913
ac_preproc_ok=:
6914
break
6915
fi
6916
rm -f conftest.err conftest.$ac_ext
6917
 
6918
done
6919
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6920
rm -f conftest.err conftest.$ac_ext
6921
if $ac_preproc_ok; then
6922
  :
6923
else
6924
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6925
See \`config.log' for more details." >&5
6926
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6927
See \`config.log' for more details." >&2;}
6928
   { (exit 1); exit 1; }; }
6929
fi
6930
 
6931
ac_ext=c
6932
ac_cpp='$CPP $CPPFLAGS'
6933
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6936
 
6937
 
6938
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6939
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6940
if test "${ac_cv_header_stdc+set}" = set; then
6941
  echo $ECHO_N "(cached) $ECHO_C" >&6
6942
else
6943
  cat >conftest.$ac_ext <<_ACEOF
6944
/* confdefs.h.  */
6945
_ACEOF
6946
cat confdefs.h >>conftest.$ac_ext
6947
cat >>conftest.$ac_ext <<_ACEOF
6948
/* end confdefs.h.  */
6949
#include 
6950
#include 
6951
#include 
6952
#include 
6953
 
6954
int
6955
main ()
6956
{
6957
 
6958
  ;
6959
  return 0;
6960
}
6961
_ACEOF
6962
rm -f conftest.$ac_objext
6963
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6964
  (eval $ac_compile) 2>conftest.er1
6965
  ac_status=$?
6966
  grep -v '^ *+' conftest.er1 >conftest.err
6967
  rm -f conftest.er1
6968
  cat conftest.err >&5
6969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970
  (exit $ac_status); } &&
6971
         { ac_try='test -z "$ac_c_werror_flag"
6972
                         || test ! -s conftest.err'
6973
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974
  (eval $ac_try) 2>&5
6975
  ac_status=$?
6976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977
  (exit $ac_status); }; } &&
6978
         { ac_try='test -s conftest.$ac_objext'
6979
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980
  (eval $ac_try) 2>&5
6981
  ac_status=$?
6982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983
  (exit $ac_status); }; }; then
6984
  ac_cv_header_stdc=yes
6985
else
6986
  echo "$as_me: failed program was:" >&5
6987
sed 's/^/| /' conftest.$ac_ext >&5
6988
 
6989
ac_cv_header_stdc=no
6990
fi
6991
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6992
 
6993
if test $ac_cv_header_stdc = yes; then
6994
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6995
  cat >conftest.$ac_ext <<_ACEOF
6996
/* confdefs.h.  */
6997
_ACEOF
6998
cat confdefs.h >>conftest.$ac_ext
6999
cat >>conftest.$ac_ext <<_ACEOF
7000
/* end confdefs.h.  */
7001
#include 
7002
 
7003
_ACEOF
7004
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7005
  $EGREP "memchr" >/dev/null 2>&1; then
7006
  :
7007
else
7008
  ac_cv_header_stdc=no
7009
fi
7010
rm -f conftest*
7011
 
7012
fi
7013
 
7014
if test $ac_cv_header_stdc = yes; then
7015
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7016
  cat >conftest.$ac_ext <<_ACEOF
7017
/* confdefs.h.  */
7018
_ACEOF
7019
cat confdefs.h >>conftest.$ac_ext
7020
cat >>conftest.$ac_ext <<_ACEOF
7021
/* end confdefs.h.  */
7022
#include 
7023
 
7024
_ACEOF
7025
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7026
  $EGREP "free" >/dev/null 2>&1; then
7027
  :
7028
else
7029
  ac_cv_header_stdc=no
7030
fi
7031
rm -f conftest*
7032
 
7033
fi
7034
 
7035
if test $ac_cv_header_stdc = yes; then
7036
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7037
  if test "$cross_compiling" = yes; then
7038
  :
7039
else
7040
  cat >conftest.$ac_ext <<_ACEOF
7041
/* confdefs.h.  */
7042
_ACEOF
7043
cat confdefs.h >>conftest.$ac_ext
7044
cat >>conftest.$ac_ext <<_ACEOF
7045
/* end confdefs.h.  */
7046
#include 
7047
#if ((' ' & 0x0FF) == 0x020)
7048
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7049
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7050
#else
7051
# define ISLOWER(c) \
7052
                   (('a' <= (c) && (c) <= 'i') \
7053
                     || ('j' <= (c) && (c) <= 'r') \
7054
                     || ('s' <= (c) && (c) <= 'z'))
7055
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7056
#endif
7057
 
7058
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7059
int
7060
main ()
7061
{
7062
  int i;
7063
  for (i = 0; i < 256; i++)
7064
    if (XOR (islower (i), ISLOWER (i))
7065
        || toupper (i) != TOUPPER (i))
7066
      exit(2);
7067
  exit (0);
7068
}
7069
_ACEOF
7070
rm -f conftest$ac_exeext
7071
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7072
  (eval $ac_link) 2>&5
7073
  ac_status=$?
7074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077
  (eval $ac_try) 2>&5
7078
  ac_status=$?
7079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080
  (exit $ac_status); }; }; then
7081
  :
7082
else
7083
  echo "$as_me: program exited with status $ac_status" >&5
7084
echo "$as_me: failed program was:" >&5
7085
sed 's/^/| /' conftest.$ac_ext >&5
7086
 
7087
( exit $ac_status )
7088
ac_cv_header_stdc=no
7089
fi
7090
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7091
fi
7092
fi
7093
fi
7094
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7095
echo "${ECHO_T}$ac_cv_header_stdc" >&6
7096
if test $ac_cv_header_stdc = yes; then
7097
 
7098
cat >>confdefs.h <<\_ACEOF
7099
#define STDC_HEADERS 1
7100
_ACEOF
7101
 
7102
fi
7103
 
7104
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7105
 
7106
 
7107
 
7108
 
7109
 
7110
 
7111
 
7112
 
7113
 
7114
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7115
                  inttypes.h stdint.h unistd.h
7116
do
7117
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7118
echo "$as_me:$LINENO: checking for $ac_header" >&5
7119
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7120
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7121
  echo $ECHO_N "(cached) $ECHO_C" >&6
7122
else
7123
  cat >conftest.$ac_ext <<_ACEOF
7124
/* confdefs.h.  */
7125
_ACEOF
7126
cat confdefs.h >>conftest.$ac_ext
7127
cat >>conftest.$ac_ext <<_ACEOF
7128
/* end confdefs.h.  */
7129
$ac_includes_default
7130
 
7131
#include <$ac_header>
7132
_ACEOF
7133
rm -f conftest.$ac_objext
7134
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7135
  (eval $ac_compile) 2>conftest.er1
7136
  ac_status=$?
7137
  grep -v '^ *+' conftest.er1 >conftest.err
7138
  rm -f conftest.er1
7139
  cat conftest.err >&5
7140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141
  (exit $ac_status); } &&
7142
         { ac_try='test -z "$ac_c_werror_flag"
7143
                         || test ! -s conftest.err'
7144
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145
  (eval $ac_try) 2>&5
7146
  ac_status=$?
7147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148
  (exit $ac_status); }; } &&
7149
         { ac_try='test -s conftest.$ac_objext'
7150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151
  (eval $ac_try) 2>&5
7152
  ac_status=$?
7153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154
  (exit $ac_status); }; }; then
7155
  eval "$as_ac_Header=yes"
7156
else
7157
  echo "$as_me: failed program was:" >&5
7158
sed 's/^/| /' conftest.$ac_ext >&5
7159
 
7160
eval "$as_ac_Header=no"
7161
fi
7162
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7163
fi
7164
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7165
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7166
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7167
  cat >>confdefs.h <<_ACEOF
7168
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7169
_ACEOF
7170
 
7171
fi
7172
 
7173
done
7174
 
7175
 
7176
 
7177
for ac_header in dlfcn.h
7178
do
7179
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7180
echo "$as_me:$LINENO: checking for $ac_header" >&5
7181
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7182
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7183
  echo $ECHO_N "(cached) $ECHO_C" >&6
7184
else
7185
  cat >conftest.$ac_ext <<_ACEOF
7186
/* confdefs.h.  */
7187
_ACEOF
7188
cat confdefs.h >>conftest.$ac_ext
7189
cat >>conftest.$ac_ext <<_ACEOF
7190
/* end confdefs.h.  */
7191
$ac_includes_default
7192
 
7193
#include <$ac_header>
7194
_ACEOF
7195
rm -f conftest.$ac_objext
7196
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7197
  (eval $ac_compile) 2>conftest.er1
7198
  ac_status=$?
7199
  grep -v '^ *+' conftest.er1 >conftest.err
7200
  rm -f conftest.er1
7201
  cat conftest.err >&5
7202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203
  (exit $ac_status); } &&
7204
         { ac_try='test -z "$ac_c_werror_flag"
7205
                         || test ! -s conftest.err'
7206
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207
  (eval $ac_try) 2>&5
7208
  ac_status=$?
7209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210
  (exit $ac_status); }; } &&
7211
         { ac_try='test -s conftest.$ac_objext'
7212
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213
  (eval $ac_try) 2>&5
7214
  ac_status=$?
7215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216
  (exit $ac_status); }; }; then
7217
  eval "$as_ac_Header=yes"
7218
else
7219
  echo "$as_me: failed program was:" >&5
7220
sed 's/^/| /' conftest.$ac_ext >&5
7221
 
7222
eval "$as_ac_Header=no"
7223
fi
7224
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7225
fi
7226
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7227
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7228
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7229
  cat >>confdefs.h <<_ACEOF
7230
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7231
_ACEOF
7232
 
7233
fi
7234
 
7235
done
7236
 
7237
 
7238
 
7239
# Set options
7240
 
7241
 
7242
 
7243
        enable_dlopen=no
7244
 
7245
 
7246
 
7247
            # Check whether --enable-shared or --disable-shared was given.
7248
if test "${enable_shared+set}" = set; then
7249
  enableval="$enable_shared"
7250
  p=${PACKAGE-default}
7251
    case $enableval in
7252
    yes) enable_shared=yes ;;
7253
    no) enable_shared=no ;;
7254
    *)
7255
      enable_shared=no
7256
      # Look at the argument we got.  We use all the common list separators.
7257
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7258
      for pkg in $enableval; do
7259
        IFS="$lt_save_ifs"
7260
        if test "X$pkg" = "X$p"; then
7261
          enable_shared=yes
7262
        fi
7263
      done
7264
      IFS="$lt_save_ifs"
7265
      ;;
7266
    esac
7267
else
7268
  enable_shared=yes
7269
fi;
7270
 
7271
 
7272
 
7273
 
7274
 
7275
 
7276
 
7277
 
7278
  # Check whether --enable-static or --disable-static was given.
7279
if test "${enable_static+set}" = set; then
7280
  enableval="$enable_static"
7281
  p=${PACKAGE-default}
7282
    case $enableval in
7283
    yes) enable_static=yes ;;
7284
    no) enable_static=no ;;
7285
    *)
7286
     enable_static=no
7287
      # Look at the argument we got.  We use all the common list separators.
7288
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7289
      for pkg in $enableval; do
7290
        IFS="$lt_save_ifs"
7291
        if test "X$pkg" = "X$p"; then
7292
          enable_static=yes
7293
        fi
7294
      done
7295
      IFS="$lt_save_ifs"
7296
      ;;
7297
    esac
7298
else
7299
  enable_static=yes
7300
fi;
7301
 
7302
 
7303
 
7304
 
7305
 
7306
 
7307
 
7308
 
7309
 
7310
# Check whether --with-pic or --without-pic was given.
7311
if test "${with_pic+set}" = set; then
7312
  withval="$with_pic"
7313
  pic_mode="$withval"
7314
else
7315
  pic_mode=default
7316
fi;
7317
 
7318
test -z "$pic_mode" && pic_mode=default
7319
 
7320
 
7321
 
7322
 
7323
 
7324
 
7325
 
7326
  # Check whether --enable-fast-install or --disable-fast-install was given.
7327
if test "${enable_fast_install+set}" = set; then
7328
  enableval="$enable_fast_install"
7329
  p=${PACKAGE-default}
7330
    case $enableval in
7331
    yes) enable_fast_install=yes ;;
7332
    no) enable_fast_install=no ;;
7333
    *)
7334
      enable_fast_install=no
7335
      # Look at the argument we got.  We use all the common list separators.
7336
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7337
      for pkg in $enableval; do
7338
        IFS="$lt_save_ifs"
7339
        if test "X$pkg" = "X$p"; then
7340
          enable_fast_install=yes
7341
        fi
7342
      done
7343
      IFS="$lt_save_ifs"
7344
      ;;
7345
    esac
7346
else
7347
  enable_fast_install=yes
7348
fi;
7349
 
7350
 
7351
 
7352
 
7353
 
7354
 
7355
 
7356
 
7357
 
7358
 
7359
# This can be used to rebuild libtool when needed
7360
LIBTOOL_DEPS="$ltmain"
7361
 
7362
# Always use our own libtool.
7363
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7364
 
7365
 
7366
 
7367
 
7368
 
7369
 
7370
 
7371
 
7372
 
7373
 
7374
 
7375
 
7376
 
7377
 
7378
 
7379
 
7380
 
7381
 
7382
 
7383
 
7384
 
7385
 
7386
 
7387
 
7388
 
7389
test -z "$LN_S" && LN_S="ln -s"
7390
 
7391
 
7392
 
7393
 
7394
 
7395
 
7396
 
7397
 
7398
 
7399
 
7400
 
7401
 
7402
 
7403
 
7404
if test -n "${ZSH_VERSION+set}" ; then
7405
   setopt NO_GLOB_SUBST
7406
fi
7407
 
7408
echo "$as_me:$LINENO: checking for objdir" >&5
7409
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7410
if test "${lt_cv_objdir+set}" = set; then
7411
  echo $ECHO_N "(cached) $ECHO_C" >&6
7412
else
7413
  rm -f .libs 2>/dev/null
7414
mkdir .libs 2>/dev/null
7415
if test -d .libs; then
7416
  lt_cv_objdir=.libs
7417
else
7418
  # MS-DOS does not allow filenames that begin with a dot.
7419
  lt_cv_objdir=_libs
7420
fi
7421
rmdir .libs 2>/dev/null
7422
fi
7423
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7424
echo "${ECHO_T}$lt_cv_objdir" >&6
7425
objdir=$lt_cv_objdir
7426
 
7427
 
7428
 
7429
 
7430
 
7431
cat >>confdefs.h <<_ACEOF
7432
#define LT_OBJDIR "$lt_cv_objdir/"
7433
_ACEOF
7434
 
7435
 
7436
 
7437
 
7438
 
7439
 
7440
 
7441
 
7442
 
7443
 
7444
 
7445
 
7446
 
7447
 
7448
 
7449
 
7450
 
7451
case $host_os in
7452
aix3*)
7453
  # AIX sometimes has problems with the GCC collect2 program.  For some
7454
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7455
  # vanish in a puff of smoke.
7456
  if test "X${COLLECT_NAMES+set}" != Xset; then
7457
    COLLECT_NAMES=
7458
    export COLLECT_NAMES
7459
  fi
7460
  ;;
7461
esac
7462
 
7463
# Sed substitution that helps us do robust quoting.  It backslashifies
7464
# metacharacters that are still active within double-quoted strings.
7465
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7466
 
7467
# Same as above, but do not quote variable references.
7468
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7469
 
7470
# Sed substitution to delay expansion of an escaped shell variable in a
7471
# double_quote_subst'ed string.
7472
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7473
 
7474
# Sed substitution to delay expansion of an escaped single quote.
7475
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7476
 
7477
# Sed substitution to avoid accidental globbing in evaled expressions
7478
no_glob_subst='s/\*/\\\*/g'
7479
 
7480
# Global variables:
7481
ofile=libtool
7482
can_build_shared=yes
7483
 
7484
# All known linkers require a `.a' archive for static linking (except MSVC,
7485
# which needs '.lib').
7486
libext=a
7487
 
7488
with_gnu_ld="$lt_cv_prog_gnu_ld"
7489
 
7490
old_CC="$CC"
7491
old_CFLAGS="$CFLAGS"
7492
 
7493
# Set sane defaults for various variables
7494
test -z "$CC" && CC=cc
7495
test -z "$LTCC" && LTCC=$CC
7496
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7497
test -z "$LD" && LD=ld
7498
test -z "$ac_objext" && ac_objext=o
7499
 
7500
for cc_temp in $compiler""; do
7501
  case $cc_temp in
7502
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7503
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7504
    \-*) ;;
7505
    *) break;;
7506
  esac
7507
done
7508
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7509
 
7510
 
7511
# Only perform the check for file, if the check method requires it
7512
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7513
case $deplibs_check_method in
7514
file_magic*)
7515
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7516
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7517
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7518
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7519
  echo $ECHO_N "(cached) $ECHO_C" >&6
7520
else
7521
  case $MAGIC_CMD in
7522
[\\/*] |  ?:[\\/]*)
7523
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7524
  ;;
7525
*)
7526
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7527
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7528
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7529
  for ac_dir in $ac_dummy; do
7530
    IFS="$lt_save_ifs"
7531
    test -z "$ac_dir" && ac_dir=.
7532
    if test -f $ac_dir/${ac_tool_prefix}file; then
7533
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7534
      if test -n "$file_magic_test_file"; then
7535
        case $deplibs_check_method in
7536
        "file_magic "*)
7537
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7538
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7539
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7540
            $EGREP "$file_magic_regex" > /dev/null; then
7541
            :
7542
          else
7543
            cat <<_LT_EOF 1>&2
7544
 
7545
*** Warning: the command libtool uses to detect shared libraries,
7546
*** $file_magic_cmd, produces output that libtool cannot recognize.
7547
*** The result is that libtool may fail to recognize shared libraries
7548
*** as such.  This will affect the creation of libtool libraries that
7549
*** depend on shared libraries, but programs linked with such libtool
7550
*** libraries will work regardless of this problem.  Nevertheless, you
7551
*** may want to report the problem to your system manager and/or to
7552
*** bug-libtool@gnu.org
7553
 
7554
_LT_EOF
7555
          fi ;;
7556
        esac
7557
      fi
7558
      break
7559
    fi
7560
  done
7561
  IFS="$lt_save_ifs"
7562
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7563
  ;;
7564
esac
7565
fi
7566
 
7567
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7568
if test -n "$MAGIC_CMD"; then
7569
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7570
echo "${ECHO_T}$MAGIC_CMD" >&6
7571
else
7572
  echo "$as_me:$LINENO: result: no" >&5
7573
echo "${ECHO_T}no" >&6
7574
fi
7575
 
7576
 
7577
 
7578
 
7579
 
7580
if test -z "$lt_cv_path_MAGIC_CMD"; then
7581
  if test -n "$ac_tool_prefix"; then
7582
    echo "$as_me:$LINENO: checking for file" >&5
7583
echo $ECHO_N "checking for file... $ECHO_C" >&6
7584
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7585
  echo $ECHO_N "(cached) $ECHO_C" >&6
7586
else
7587
  case $MAGIC_CMD in
7588
[\\/*] |  ?:[\\/]*)
7589
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7590
  ;;
7591
*)
7592
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7593
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7594
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7595
  for ac_dir in $ac_dummy; do
7596
    IFS="$lt_save_ifs"
7597
    test -z "$ac_dir" && ac_dir=.
7598
    if test -f $ac_dir/file; then
7599
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7600
      if test -n "$file_magic_test_file"; then
7601
        case $deplibs_check_method in
7602
        "file_magic "*)
7603
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7604
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7605
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7606
            $EGREP "$file_magic_regex" > /dev/null; then
7607
            :
7608
          else
7609
            cat <<_LT_EOF 1>&2
7610
 
7611
*** Warning: the command libtool uses to detect shared libraries,
7612
*** $file_magic_cmd, produces output that libtool cannot recognize.
7613
*** The result is that libtool may fail to recognize shared libraries
7614
*** as such.  This will affect the creation of libtool libraries that
7615
*** depend on shared libraries, but programs linked with such libtool
7616
*** libraries will work regardless of this problem.  Nevertheless, you
7617
*** may want to report the problem to your system manager and/or to
7618
*** bug-libtool@gnu.org
7619
 
7620
_LT_EOF
7621
          fi ;;
7622
        esac
7623
      fi
7624
      break
7625
    fi
7626
  done
7627
  IFS="$lt_save_ifs"
7628
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7629
  ;;
7630
esac
7631
fi
7632
 
7633
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7634
if test -n "$MAGIC_CMD"; then
7635
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7636
echo "${ECHO_T}$MAGIC_CMD" >&6
7637
else
7638
  echo "$as_me:$LINENO: result: no" >&5
7639
echo "${ECHO_T}no" >&6
7640
fi
7641
 
7642
 
7643
  else
7644
    MAGIC_CMD=:
7645
  fi
7646
fi
7647
 
7648
  fi
7649
  ;;
7650
esac
7651
 
7652
# Use C for the default configuration in the libtool script
7653
 
7654
lt_save_CC="$CC"
7655
ac_ext=c
7656
ac_cpp='$CPP $CPPFLAGS'
7657
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7658
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7659
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7660
 
7661
 
7662
# Source file extension for C test sources.
7663
ac_ext=c
7664
 
7665
# Object file extension for compiled C test sources.
7666
objext=o
7667
objext=$objext
7668
 
7669
# Code to be used in simple compile tests
7670
lt_simple_compile_test_code="int some_variable = 0;"
7671
 
7672
# Code to be used in simple link tests
7673
lt_simple_link_test_code='int main(){return(0);}'
7674
 
7675
 
7676
 
7677
 
7678
 
7679
 
7680
 
7681
# If no C compiler was specified, use CC.
7682
LTCC=${LTCC-"$CC"}
7683
 
7684
# If no C compiler flags were specified, use CFLAGS.
7685
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7686
 
7687
# Allow CC to be a program name with arguments.
7688
compiler=$CC
7689
 
7690
# Save the default compiler, since it gets overwritten when the other
7691
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7692
compiler_DEFAULT=$CC
7693
 
7694
# save warnings/boilerplate of simple test code
7695
ac_outfile=conftest.$ac_objext
7696
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7697
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7698
_lt_compiler_boilerplate=`cat conftest.err`
7699
$RM conftest*
7700
 
7701
ac_outfile=conftest.$ac_objext
7702
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7703
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7704
_lt_linker_boilerplate=`cat conftest.err`
7705
$RM -r conftest*
7706
 
7707
 
7708
## CAVEAT EMPTOR:
7709
## There is no encapsulation within the following macros, do not change
7710
## the running order or otherwise move them around unless you know exactly
7711
## what you are doing...
7712
if test -n "$compiler"; then
7713
 
7714
lt_prog_compiler_no_builtin_flag=
7715
 
7716
if test "$GCC" = yes; then
7717
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7718
 
7719
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7720
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7721
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7722
  echo $ECHO_N "(cached) $ECHO_C" >&6
7723
else
7724
  lt_cv_prog_compiler_rtti_exceptions=no
7725
   ac_outfile=conftest.$ac_objext
7726
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7727
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7728
   # Insert the option either (1) after the last *FLAGS variable, or
7729
   # (2) before a word containing "conftest.", or (3) at the end.
7730
   # Note that $ac_compile itself does not contain backslashes and begins
7731
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7732
   # The option is referenced via a variable to avoid confusing sed.
7733
   lt_compile=`echo "$ac_compile" | $SED \
7734
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7735
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7736
   -e 's:$: $lt_compiler_flag:'`
7737
   (eval echo "\"\$as_me:7737: $lt_compile\"" >&5)
7738
   (eval "$lt_compile" 2>conftest.err)
7739
   ac_status=$?
7740
   cat conftest.err >&5
7741
   echo "$as_me:7741: \$? = $ac_status" >&5
7742
   if (exit $ac_status) && test -s "$ac_outfile"; then
7743
     # The compiler can only warn and ignore the option if not recognized
7744
     # So say no if there are warnings other than the usual output.
7745
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7746
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7747
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7748
       lt_cv_prog_compiler_rtti_exceptions=yes
7749
     fi
7750
   fi
7751
   $RM conftest*
7752
 
7753
fi
7754
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7755
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7756
 
7757
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7758
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7759
else
7760
    :
7761
fi
7762
 
7763
fi
7764
 
7765
 
7766
 
7767
 
7768
 
7769
 
7770
  lt_prog_compiler_wl=
7771
lt_prog_compiler_pic=
7772
lt_prog_compiler_static=
7773
 
7774
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7775
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7776
 
7777
  if test "$GCC" = yes; then
7778
    lt_prog_compiler_wl='-Wl,'
7779
    lt_prog_compiler_static='-static'
7780
 
7781
    case $host_os in
7782
      aix*)
7783
      # All AIX code is PIC.
7784
      if test "$host_cpu" = ia64; then
7785
        # AIX 5 now supports IA64 processor
7786
        lt_prog_compiler_static='-Bstatic'
7787
      fi
7788
      ;;
7789
 
7790
    amigaos*)
7791
      case $host_cpu in
7792
      powerpc)
7793
            # see comment about AmigaOS4 .so support
7794
            lt_prog_compiler_pic='-fPIC'
7795
        ;;
7796
      m68k)
7797
            # FIXME: we need at least 68020 code to build shared libraries, but
7798
            # adding the `-m68020' flag to GCC prevents building anything better,
7799
            # like `-m68040'.
7800
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7801
        ;;
7802
      esac
7803
      ;;
7804
 
7805
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7806
      # PIC is the default for these OSes.
7807
      ;;
7808
 
7809
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7810
      # This hack is so that the source file can tell whether it is being
7811
      # built for inclusion in a dll (and should export symbols for example).
7812
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7813
      # (--disable-auto-import) libraries
7814
      lt_prog_compiler_pic='-DDLL_EXPORT'
7815
      ;;
7816
 
7817
    darwin* | rhapsody*)
7818
      # PIC is the default on this platform
7819
      # Common symbols not allowed in MH_DYLIB files
7820
      lt_prog_compiler_pic='-fno-common'
7821
      ;;
7822
 
7823
    hpux*)
7824
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7825
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7826
      # sets the default TLS model and affects inlining.
7827
      case $host_cpu in
7828
      hppa*64*)
7829
        # +Z the default
7830
        ;;
7831
      *)
7832
        lt_prog_compiler_pic='-fPIC'
7833
        ;;
7834
      esac
7835
      ;;
7836
 
7837
    interix[3-9]*)
7838
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7839
      # Instead, we relocate shared libraries at runtime.
7840
      ;;
7841
 
7842
    msdosdjgpp*)
7843
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7844
      # on systems that don't support them.
7845
      lt_prog_compiler_can_build_shared=no
7846
      enable_shared=no
7847
      ;;
7848
 
7849
    *nto* | *qnx*)
7850
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7851
      # it will coredump.
7852
      lt_prog_compiler_pic='-fPIC -shared'
7853
      ;;
7854
 
7855
    sysv4*MP*)
7856
      if test -d /usr/nec; then
7857
        lt_prog_compiler_pic=-Kconform_pic
7858
      fi
7859
      ;;
7860
 
7861
    *)
7862
      lt_prog_compiler_pic='-fPIC'
7863
      ;;
7864
    esac
7865
  else
7866
    # PORTME Check for flag to pass linker flags through the system compiler.
7867
    case $host_os in
7868
    aix*)
7869
      lt_prog_compiler_wl='-Wl,'
7870
      if test "$host_cpu" = ia64; then
7871
        # AIX 5 now supports IA64 processor
7872
        lt_prog_compiler_static='-Bstatic'
7873
      else
7874
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7875
      fi
7876
      ;;
7877
 
7878
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7879
      # This hack is so that the source file can tell whether it is being
7880
      # built for inclusion in a dll (and should export symbols for example).
7881
      lt_prog_compiler_pic='-DDLL_EXPORT'
7882
      ;;
7883
 
7884
    hpux9* | hpux10* | hpux11*)
7885
      lt_prog_compiler_wl='-Wl,'
7886
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7887
      # not for PA HP-UX.
7888
      case $host_cpu in
7889
      hppa*64*|ia64*)
7890
        # +Z the default
7891
        ;;
7892
      *)
7893
        lt_prog_compiler_pic='+Z'
7894
        ;;
7895
      esac
7896
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7897
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7898
      ;;
7899
 
7900
    irix5* | irix6* | nonstopux*)
7901
      lt_prog_compiler_wl='-Wl,'
7902
      # PIC (with -KPIC) is the default.
7903
      lt_prog_compiler_static='-non_shared'
7904
      ;;
7905
 
7906
    linux* | k*bsd*-gnu)
7907
      case $cc_basename in
7908
      # old Intel for x86_64 which still supported -KPIC.
7909
      ecc*)
7910
        lt_prog_compiler_wl='-Wl,'
7911
        lt_prog_compiler_pic='-KPIC'
7912
        lt_prog_compiler_static='-static'
7913
        ;;
7914
      # icc used to be incompatible with GCC.
7915
      # ICC 10 doesn't accept -KPIC any more.
7916
      icc* | ifort*)
7917
        lt_prog_compiler_wl='-Wl,'
7918
        lt_prog_compiler_pic='-fPIC'
7919
        lt_prog_compiler_static='-static'
7920
        ;;
7921
      # Lahey Fortran 8.1.
7922
      lf95*)
7923
        lt_prog_compiler_wl='-Wl,'
7924
        lt_prog_compiler_pic='--shared'
7925
        lt_prog_compiler_static='--static'
7926
        ;;
7927
      pgcc* | pgf77* | pgf90* | pgf95*)
7928
        # Portland Group compilers (*not* the Pentium gcc compiler,
7929
        # which looks to be a dead project)
7930
        lt_prog_compiler_wl='-Wl,'
7931
        lt_prog_compiler_pic='-fpic'
7932
        lt_prog_compiler_static='-Bstatic'
7933
        ;;
7934
      ccc*)
7935
        lt_prog_compiler_wl='-Wl,'
7936
        # All Alpha code is PIC.
7937
        lt_prog_compiler_static='-non_shared'
7938
        ;;
7939
      xl*)
7940
        # IBM XL C 8.0/Fortran 10.1 on PPC
7941
        lt_prog_compiler_wl='-Wl,'
7942
        lt_prog_compiler_pic='-qpic'
7943
        lt_prog_compiler_static='-qstaticlink'
7944
        ;;
7945
      *)
7946
        case `$CC -V 2>&1 | sed 5q` in
7947
        *Sun\ C*)
7948
          # Sun C 5.9
7949
          lt_prog_compiler_pic='-KPIC'
7950
          lt_prog_compiler_static='-Bstatic'
7951
          lt_prog_compiler_wl='-Wl,'
7952
          ;;
7953
        *Sun\ F*)
7954
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7955
          lt_prog_compiler_pic='-KPIC'
7956
          lt_prog_compiler_static='-Bstatic'
7957
          lt_prog_compiler_wl=''
7958
          ;;
7959
        esac
7960
        ;;
7961
      esac
7962
      ;;
7963
 
7964
    newsos6)
7965
      lt_prog_compiler_pic='-KPIC'
7966
      lt_prog_compiler_static='-Bstatic'
7967
      ;;
7968
 
7969
    *nto* | *qnx*)
7970
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7971
      # it will coredump.
7972
      lt_prog_compiler_pic='-fPIC -shared'
7973
      ;;
7974
 
7975
    osf3* | osf4* | osf5*)
7976
      lt_prog_compiler_wl='-Wl,'
7977
      # All OSF/1 code is PIC.
7978
      lt_prog_compiler_static='-non_shared'
7979
      ;;
7980
 
7981
    rdos*)
7982
      lt_prog_compiler_static='-non_shared'
7983
      ;;
7984
 
7985
    solaris*)
7986
      lt_prog_compiler_pic='-KPIC'
7987
      lt_prog_compiler_static='-Bstatic'
7988
      case $cc_basename in
7989
      f77* | f90* | f95*)
7990
        lt_prog_compiler_wl='-Qoption ld ';;
7991
      *)
7992
        lt_prog_compiler_wl='-Wl,';;
7993
      esac
7994
      ;;
7995
 
7996
    sunos4*)
7997
      lt_prog_compiler_wl='-Qoption ld '
7998
      lt_prog_compiler_pic='-PIC'
7999
      lt_prog_compiler_static='-Bstatic'
8000
      ;;
8001
 
8002
    sysv4 | sysv4.2uw2* | sysv4.3*)
8003
      lt_prog_compiler_wl='-Wl,'
8004
      lt_prog_compiler_pic='-KPIC'
8005
      lt_prog_compiler_static='-Bstatic'
8006
      ;;
8007
 
8008
    sysv4*MP*)
8009
      if test -d /usr/nec ;then
8010
        lt_prog_compiler_pic='-Kconform_pic'
8011
        lt_prog_compiler_static='-Bstatic'
8012
      fi
8013
      ;;
8014
 
8015
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8016
      lt_prog_compiler_wl='-Wl,'
8017
      lt_prog_compiler_pic='-KPIC'
8018
      lt_prog_compiler_static='-Bstatic'
8019
      ;;
8020
 
8021
    unicos*)
8022
      lt_prog_compiler_wl='-Wl,'
8023
      lt_prog_compiler_can_build_shared=no
8024
      ;;
8025
 
8026
    uts4*)
8027
      lt_prog_compiler_pic='-pic'
8028
      lt_prog_compiler_static='-Bstatic'
8029
      ;;
8030
 
8031
    *)
8032
      lt_prog_compiler_can_build_shared=no
8033
      ;;
8034
    esac
8035
  fi
8036
 
8037
case $host_os in
8038
  # For platforms which do not support PIC, -DPIC is meaningless:
8039
  *djgpp*)
8040
    lt_prog_compiler_pic=
8041
    ;;
8042
  *)
8043
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8044
    ;;
8045
esac
8046
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8047
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8048
 
8049
 
8050
 
8051
 
8052
 
8053
 
8054
#
8055
# Check to make sure the PIC flag actually works.
8056
#
8057
if test -n "$lt_prog_compiler_pic"; then
8058
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8059
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8060
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8061
  echo $ECHO_N "(cached) $ECHO_C" >&6
8062
else
8063
  lt_cv_prog_compiler_pic_works=no
8064
   ac_outfile=conftest.$ac_objext
8065
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8066
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8067
   # Insert the option either (1) after the last *FLAGS variable, or
8068
   # (2) before a word containing "conftest.", or (3) at the end.
8069
   # Note that $ac_compile itself does not contain backslashes and begins
8070
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8071
   # The option is referenced via a variable to avoid confusing sed.
8072
   lt_compile=`echo "$ac_compile" | $SED \
8073
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8074
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8075
   -e 's:$: $lt_compiler_flag:'`
8076
   (eval echo "\"\$as_me:8076: $lt_compile\"" >&5)
8077
   (eval "$lt_compile" 2>conftest.err)
8078
   ac_status=$?
8079
   cat conftest.err >&5
8080
   echo "$as_me:8080: \$? = $ac_status" >&5
8081
   if (exit $ac_status) && test -s "$ac_outfile"; then
8082
     # The compiler can only warn and ignore the option if not recognized
8083
     # So say no if there are warnings other than the usual output.
8084
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8085
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8086
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8087
       lt_cv_prog_compiler_pic_works=yes
8088
     fi
8089
   fi
8090
   $RM conftest*
8091
 
8092
fi
8093
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8094
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8095
 
8096
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8097
    case $lt_prog_compiler_pic in
8098
     "" | " "*) ;;
8099
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8100
     esac
8101
else
8102
    lt_prog_compiler_pic=
8103
     lt_prog_compiler_can_build_shared=no
8104
fi
8105
 
8106
fi
8107
 
8108
 
8109
 
8110
 
8111
 
8112
 
8113
#
8114
# Check to make sure the static flag actually works.
8115
#
8116
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8117
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8118
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8119
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8120
  echo $ECHO_N "(cached) $ECHO_C" >&6
8121
else
8122
  lt_cv_prog_compiler_static_works=no
8123
   save_LDFLAGS="$LDFLAGS"
8124
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8125
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8126
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8127
     # The linker can only warn and ignore the option if not recognized
8128
     # So say no if there are warnings
8129
     if test -s conftest.err; then
8130
       # Append any errors to the config.log.
8131
       cat conftest.err 1>&5
8132
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8133
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8134
       if diff conftest.exp conftest.er2 >/dev/null; then
8135
         lt_cv_prog_compiler_static_works=yes
8136
       fi
8137
     else
8138
       lt_cv_prog_compiler_static_works=yes
8139
     fi
8140
   fi
8141
   $RM -r conftest*
8142
   LDFLAGS="$save_LDFLAGS"
8143
 
8144
fi
8145
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8146
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8147
 
8148
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8149
    :
8150
else
8151
    lt_prog_compiler_static=
8152
fi
8153
 
8154
 
8155
 
8156
 
8157
 
8158
 
8159
 
8160
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8161
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8162
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8163
  echo $ECHO_N "(cached) $ECHO_C" >&6
8164
else
8165
  lt_cv_prog_compiler_c_o=no
8166
   $RM -r conftest 2>/dev/null
8167
   mkdir conftest
8168
   cd conftest
8169
   mkdir out
8170
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8171
 
8172
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8173
   # Insert the option either (1) after the last *FLAGS variable, or
8174
   # (2) before a word containing "conftest.", or (3) at the end.
8175
   # Note that $ac_compile itself does not contain backslashes and begins
8176
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8177
   lt_compile=`echo "$ac_compile" | $SED \
8178
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8179
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8180
   -e 's:$: $lt_compiler_flag:'`
8181
   (eval echo "\"\$as_me:8181: $lt_compile\"" >&5)
8182
   (eval "$lt_compile" 2>out/conftest.err)
8183
   ac_status=$?
8184
   cat out/conftest.err >&5
8185
   echo "$as_me:8185: \$? = $ac_status" >&5
8186
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8187
   then
8188
     # The compiler can only warn and ignore the option if not recognized
8189
     # So say no if there are warnings
8190
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8191
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8192
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8193
       lt_cv_prog_compiler_c_o=yes
8194
     fi
8195
   fi
8196
   chmod u+w . 2>&5
8197
   $RM conftest*
8198
   # SGI C++ compiler will create directory out/ii_files/ for
8199
   # template instantiation
8200
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8201
   $RM out/* && rmdir out
8202
   cd ..
8203
   $RM -r conftest
8204
   $RM conftest*
8205
 
8206
fi
8207
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8208
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8209
 
8210
 
8211
 
8212
 
8213
 
8214
 
8215
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8216
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8217
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8218
  echo $ECHO_N "(cached) $ECHO_C" >&6
8219
else
8220
  lt_cv_prog_compiler_c_o=no
8221
   $RM -r conftest 2>/dev/null
8222
   mkdir conftest
8223
   cd conftest
8224
   mkdir out
8225
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8226
 
8227
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8228
   # Insert the option either (1) after the last *FLAGS variable, or
8229
   # (2) before a word containing "conftest.", or (3) at the end.
8230
   # Note that $ac_compile itself does not contain backslashes and begins
8231
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8232
   lt_compile=`echo "$ac_compile" | $SED \
8233
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8234
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8235
   -e 's:$: $lt_compiler_flag:'`
8236
   (eval echo "\"\$as_me:8236: $lt_compile\"" >&5)
8237
   (eval "$lt_compile" 2>out/conftest.err)
8238
   ac_status=$?
8239
   cat out/conftest.err >&5
8240
   echo "$as_me:8240: \$? = $ac_status" >&5
8241
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8242
   then
8243
     # The compiler can only warn and ignore the option if not recognized
8244
     # So say no if there are warnings
8245
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8246
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8247
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8248
       lt_cv_prog_compiler_c_o=yes
8249
     fi
8250
   fi
8251
   chmod u+w . 2>&5
8252
   $RM conftest*
8253
   # SGI C++ compiler will create directory out/ii_files/ for
8254
   # template instantiation
8255
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8256
   $RM out/* && rmdir out
8257
   cd ..
8258
   $RM -r conftest
8259
   $RM conftest*
8260
 
8261
fi
8262
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8263
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8264
 
8265
 
8266
 
8267
 
8268
hard_links="nottested"
8269
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8270
  # do not overwrite the value of need_locks provided by the user
8271
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8272
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8273
  hard_links=yes
8274
  $RM conftest*
8275
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8276
  touch conftest.a
8277
  ln conftest.a conftest.b 2>&5 || hard_links=no
8278
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8279
  echo "$as_me:$LINENO: result: $hard_links" >&5
8280
echo "${ECHO_T}$hard_links" >&6
8281
  if test "$hard_links" = no; then
8282
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8283
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8284
    need_locks=warn
8285
  fi
8286
else
8287
  need_locks=no
8288
fi
8289
 
8290
 
8291
 
8292
 
8293
 
8294
 
8295
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8296
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8297
 
8298
  runpath_var=
8299
  allow_undefined_flag=
8300
  always_export_symbols=no
8301
  archive_cmds=
8302
  archive_expsym_cmds=
8303
  compiler_needs_object=no
8304
  enable_shared_with_static_runtimes=no
8305
  export_dynamic_flag_spec=
8306
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8307
  hardcode_automatic=no
8308
  hardcode_direct=no
8309
  hardcode_direct_absolute=no
8310
  hardcode_libdir_flag_spec=
8311
  hardcode_libdir_flag_spec_ld=
8312
  hardcode_libdir_separator=
8313
  hardcode_minus_L=no
8314
  hardcode_shlibpath_var=unsupported
8315
  inherit_rpath=no
8316
  link_all_deplibs=unknown
8317
  module_cmds=
8318
  module_expsym_cmds=
8319
  old_archive_from_new_cmds=
8320
  old_archive_from_expsyms_cmds=
8321
  thread_safe_flag_spec=
8322
  whole_archive_flag_spec=
8323
  # include_expsyms should be a list of space-separated symbols to be *always*
8324
  # included in the symbol list
8325
  include_expsyms=
8326
  # exclude_expsyms can be an extended regexp of symbols to exclude
8327
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8328
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8329
  # as well as any symbol that contains `d'.
8330
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8331
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8332
  # platforms (ab)use it in PIC code, but their linkers get confused if
8333
  # the symbol is explicitly referenced.  Since portable code cannot
8334
  # rely on this symbol name, it's probably fine to never include it in
8335
  # preloaded symbol tables.
8336
  # Exclude shared library initialization/finalization symbols.
8337
  extract_expsyms_cmds=
8338
 
8339
  case $host_os in
8340
  cygwin* | mingw* | pw32* | cegcc*)
8341
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8342
    # When not using gcc, we currently assume that we are using
8343
    # Microsoft Visual C++.
8344
    if test "$GCC" != yes; then
8345
      with_gnu_ld=no
8346
    fi
8347
    ;;
8348
  interix*)
8349
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8350
    with_gnu_ld=yes
8351
    ;;
8352
  openbsd*)
8353
    with_gnu_ld=no
8354
    ;;
8355
  esac
8356
 
8357
  ld_shlibs=yes
8358
  if test "$with_gnu_ld" = yes; then
8359
    # If archive_cmds runs LD, not CC, wlarc should be empty
8360
    wlarc='${wl}'
8361
 
8362
    # Set some defaults for GNU ld with shared library support. These
8363
    # are reset later if shared libraries are not supported. Putting them
8364
    # here allows them to be overridden if necessary.
8365
    runpath_var=LD_RUN_PATH
8366
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8367
    export_dynamic_flag_spec='${wl}--export-dynamic'
8368
    # ancient GNU ld didn't support --whole-archive et. al.
8369
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8370
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8371
    else
8372
      whole_archive_flag_spec=
8373
    fi
8374
    supports_anon_versioning=no
8375
    case `$LD -v 2>&1` in
8376
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8377
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8378
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8379
      *\ 2.11.*) ;; # other 2.11 versions
8380
      *) supports_anon_versioning=yes ;;
8381
    esac
8382
 
8383
    # See if GNU ld supports shared libraries.
8384
    case $host_os in
8385
    aix[3-9]*)
8386
      # On AIX/PPC, the GNU linker is very broken
8387
      if test "$host_cpu" != ia64; then
8388
        ld_shlibs=no
8389
        cat <<_LT_EOF 1>&2
8390
 
8391
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8392
*** to be unable to reliably create shared libraries on AIX.
8393
*** Therefore, libtool is disabling shared libraries support.  If you
8394
*** really care for shared libraries, you may want to modify your PATH
8395
*** so that a non-GNU linker is found, and then restart.
8396
 
8397
_LT_EOF
8398
      fi
8399
      ;;
8400
 
8401
    amigaos*)
8402
      case $host_cpu in
8403
      powerpc)
8404
            # see comment about AmigaOS4 .so support
8405
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8406
            archive_expsym_cmds=''
8407
        ;;
8408
      m68k)
8409
            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)'
8410
            hardcode_libdir_flag_spec='-L$libdir'
8411
            hardcode_minus_L=yes
8412
        ;;
8413
      esac
8414
      ;;
8415
 
8416
    beos*)
8417
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8418
        allow_undefined_flag=unsupported
8419
        # Joseph Beckenbach  says some releases of gcc
8420
        # support --undefined.  This deserves some investigation.  FIXME
8421
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8422
      else
8423
        ld_shlibs=no
8424
      fi
8425
      ;;
8426
 
8427
    cygwin* | mingw* | pw32* | cegcc*)
8428
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8429
      # as there is no search path for DLLs.
8430
      hardcode_libdir_flag_spec='-L$libdir'
8431
      allow_undefined_flag=unsupported
8432
      always_export_symbols=no
8433
      enable_shared_with_static_runtimes=yes
8434
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8435
 
8436
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8437
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8438
        # If the export-symbols file already is a .def file (1st line
8439
        # is EXPORTS), use it as is; otherwise, prepend...
8440
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8441
          cp $export_symbols $output_objdir/$soname.def;
8442
        else
8443
          echo EXPORTS > $output_objdir/$soname.def;
8444
          cat $export_symbols >> $output_objdir/$soname.def;
8445
        fi~
8446
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8447
      else
8448
        ld_shlibs=no
8449
      fi
8450
      ;;
8451
 
8452
    interix[3-9]*)
8453
      hardcode_direct=no
8454
      hardcode_shlibpath_var=no
8455
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8456
      export_dynamic_flag_spec='${wl}-E'
8457
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8458
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8459
      # default) and relocated if they conflict, which is a slow very memory
8460
      # consuming and fragmenting process.  To avoid this, we pick a random,
8461
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8462
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8463
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8464
      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'
8465
      ;;
8466
 
8467
    gnu* | linux* | tpf* | k*bsd*-gnu)
8468
      tmp_diet=no
8469
      if test "$host_os" = linux-dietlibc; then
8470
        case $cc_basename in
8471
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8472
        esac
8473
      fi
8474
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8475
         && test "$tmp_diet" = no
8476
      then
8477
        tmp_addflag=
8478
        tmp_sharedflag='-shared'
8479
        case $cc_basename,$host_cpu in
8480
        pgcc*)                          # Portland Group C compiler
8481
          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'
8482
          tmp_addflag=' $pic_flag'
8483
          ;;
8484
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8485
          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'
8486
          tmp_addflag=' $pic_flag -Mnomain' ;;
8487
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8488
          tmp_addflag=' -i_dynamic' ;;
8489
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8490
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8491
        ifc* | ifort*)                  # Intel Fortran compiler
8492
          tmp_addflag=' -nofor_main' ;;
8493
        lf95*)                          # Lahey Fortran 8.1
8494
          whole_archive_flag_spec=
8495
          tmp_sharedflag='--shared' ;;
8496
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8497
          tmp_sharedflag='-qmkshrobj'
8498
          tmp_addflag= ;;
8499
        esac
8500
        case `$CC -V 2>&1 | sed 5q` in
8501
        *Sun\ C*)                       # Sun C 5.9
8502
          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'
8503
          compiler_needs_object=yes
8504
          tmp_sharedflag='-G' ;;
8505
        *Sun\ F*)                       # Sun Fortran 8.3
8506
          tmp_sharedflag='-G' ;;
8507
        esac
8508
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8509
 
8510
        if test "x$supports_anon_versioning" = xyes; then
8511
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8512
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8513
            echo "local: *; };" >> $output_objdir/$libname.ver~
8514
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8515
        fi
8516
 
8517
        case $cc_basename in
8518
        xlf*)
8519
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8520
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8521
          hardcode_libdir_flag_spec=
8522
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8523
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8524
          if test "x$supports_anon_versioning" = xyes; then
8525
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8526
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8527
              echo "local: *; };" >> $output_objdir/$libname.ver~
8528
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8529
          fi
8530
          ;;
8531
        esac
8532
      else
8533
        ld_shlibs=no
8534
      fi
8535
      ;;
8536
 
8537
    netbsd*)
8538
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8539
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8540
        wlarc=
8541
      else
8542
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8543
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8544
      fi
8545
      ;;
8546
 
8547
    solaris*)
8548
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8549
        ld_shlibs=no
8550
        cat <<_LT_EOF 1>&2
8551
 
8552
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8553
*** create shared libraries on Solaris systems.  Therefore, libtool
8554
*** is disabling shared libraries support.  We urge you to upgrade GNU
8555
*** binutils to release 2.9.1 or newer.  Another option is to modify
8556
*** your PATH or compiler configuration so that the native linker is
8557
*** used, and then restart.
8558
 
8559
_LT_EOF
8560
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8561
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8562
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8563
      else
8564
        ld_shlibs=no
8565
      fi
8566
      ;;
8567
 
8568
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8569
      case `$LD -v 2>&1` in
8570
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8571
        ld_shlibs=no
8572
        cat <<_LT_EOF 1>&2
8573
 
8574
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8575
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8576
*** is disabling shared libraries support.  We urge you to upgrade GNU
8577
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8578
*** your PATH or compiler configuration so that the native linker is
8579
*** used, and then restart.
8580
 
8581
_LT_EOF
8582
        ;;
8583
        *)
8584
          # For security reasons, it is highly recommended that you always
8585
          # use absolute paths for naming shared libraries, and exclude the
8586
          # DT_RUNPATH tag from executables and libraries.  But doing so
8587
          # requires that you compile everything twice, which is a pain.
8588
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8589
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8590
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8591
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8592
          else
8593
            ld_shlibs=no
8594
          fi
8595
        ;;
8596
      esac
8597
      ;;
8598
 
8599
    sunos4*)
8600
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8601
      wlarc=
8602
      hardcode_direct=yes
8603
      hardcode_shlibpath_var=no
8604
      ;;
8605
 
8606
    *)
8607
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8608
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8609
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8610
      else
8611
        ld_shlibs=no
8612
      fi
8613
      ;;
8614
    esac
8615
 
8616
    if test "$ld_shlibs" = no; then
8617
      runpath_var=
8618
      hardcode_libdir_flag_spec=
8619
      export_dynamic_flag_spec=
8620
      whole_archive_flag_spec=
8621
    fi
8622
  else
8623
    # PORTME fill in a description of your system's linker (not GNU ld)
8624
    case $host_os in
8625
    aix3*)
8626
      allow_undefined_flag=unsupported
8627
      always_export_symbols=yes
8628
      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'
8629
      # Note: this linker hardcodes the directories in LIBPATH if there
8630
      # are no directories specified by -L.
8631
      hardcode_minus_L=yes
8632
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8633
        # Neither direct hardcoding nor static linking is supported with a
8634
        # broken collect2.
8635
        hardcode_direct=unsupported
8636
      fi
8637
      ;;
8638
 
8639
    aix[4-9]*)
8640
      if test "$host_cpu" = ia64; then
8641
        # On IA64, the linker does run time linking by default, so we don't
8642
        # have to do anything special.
8643
        aix_use_runtimelinking=no
8644
        exp_sym_flag='-Bexport'
8645
        no_entry_flag=""
8646
      else
8647
        # If we're using GNU nm, then we don't want the "-C" option.
8648
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8649
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8650
          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'
8651
        else
8652
          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'
8653
        fi
8654
        aix_use_runtimelinking=no
8655
 
8656
        # Test if we are trying to use run time linking or normal
8657
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8658
        # need to do runtime linking.
8659
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8660
          for ld_flag in $LDFLAGS; do
8661
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8662
            aix_use_runtimelinking=yes
8663
            break
8664
          fi
8665
          done
8666
          ;;
8667
        esac
8668
 
8669
        exp_sym_flag='-bexport'
8670
        no_entry_flag='-bnoentry'
8671
      fi
8672
 
8673
      # When large executables or shared objects are built, AIX ld can
8674
      # have problems creating the table of contents.  If linking a library
8675
      # or program results in "error TOC overflow" add -mminimal-toc to
8676
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8677
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8678
 
8679
      archive_cmds=''
8680
      hardcode_direct=yes
8681
      hardcode_direct_absolute=yes
8682
      hardcode_libdir_separator=':'
8683
      link_all_deplibs=yes
8684
      file_list_spec='${wl}-f,'
8685
 
8686
      if test "$GCC" = yes; then
8687
        case $host_os in aix4.[012]|aix4.[012].*)
8688
        # We only want to do this on AIX 4.2 and lower, the check
8689
        # below for broken collect2 doesn't work under 4.3+
8690
          collect2name=`${CC} -print-prog-name=collect2`
8691
          if test -f "$collect2name" &&
8692
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8693
          then
8694
          # We have reworked collect2
8695
          :
8696
          else
8697
          # We have old collect2
8698
          hardcode_direct=unsupported
8699
          # It fails to find uninstalled libraries when the uninstalled
8700
          # path is not listed in the libpath.  Setting hardcode_minus_L
8701
          # to unsupported forces relinking
8702
          hardcode_minus_L=yes
8703
          hardcode_libdir_flag_spec='-L$libdir'
8704
          hardcode_libdir_separator=
8705
          fi
8706
          ;;
8707
        esac
8708
        shared_flag='-shared'
8709
        if test "$aix_use_runtimelinking" = yes; then
8710
          shared_flag="$shared_flag "'${wl}-G'
8711
        fi
8712
      else
8713
        # not using gcc
8714
        if test "$host_cpu" = ia64; then
8715
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8716
        # chokes on -Wl,-G. The following line is correct:
8717
          shared_flag='-G'
8718
        else
8719
          if test "$aix_use_runtimelinking" = yes; then
8720
            shared_flag='${wl}-G'
8721
          else
8722
            shared_flag='${wl}-bM:SRE'
8723
          fi
8724
        fi
8725
      fi
8726
 
8727
      export_dynamic_flag_spec='${wl}-bexpall'
8728
      # It seems that -bexpall does not export symbols beginning with
8729
      # underscore (_), so it is better to generate a list of symbols to export.
8730
      always_export_symbols=yes
8731
      if test "$aix_use_runtimelinking" = yes; then
8732
        # Warning - without using the other runtime loading flags (-brtl),
8733
        # -berok will link without error, but may produce a broken library.
8734
        allow_undefined_flag='-berok'
8735
        # Determine the default libpath from the value encoded in an
8736
        # empty executable.
8737
        cat >conftest.$ac_ext <<_ACEOF
8738
/* confdefs.h.  */
8739
_ACEOF
8740
cat confdefs.h >>conftest.$ac_ext
8741
cat >>conftest.$ac_ext <<_ACEOF
8742
/* end confdefs.h.  */
8743
 
8744
int
8745
main ()
8746
{
8747
 
8748
  ;
8749
  return 0;
8750
}
8751
_ACEOF
8752
rm -f conftest.$ac_objext conftest$ac_exeext
8753
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8754
  (eval $ac_link) 2>conftest.er1
8755
  ac_status=$?
8756
  grep -v '^ *+' conftest.er1 >conftest.err
8757
  rm -f conftest.er1
8758
  cat conftest.err >&5
8759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760
  (exit $ac_status); } &&
8761
         { ac_try='test -z "$ac_c_werror_flag"
8762
                         || test ! -s conftest.err'
8763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764
  (eval $ac_try) 2>&5
8765
  ac_status=$?
8766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767
  (exit $ac_status); }; } &&
8768
         { ac_try='test -s conftest$ac_exeext'
8769
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770
  (eval $ac_try) 2>&5
8771
  ac_status=$?
8772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773
  (exit $ac_status); }; }; then
8774
 
8775
lt_aix_libpath_sed='
8776
    /Import File Strings/,/^$/ {
8777
        /^0/ {
8778
            s/^0  *\(.*\)$/\1/
8779
            p
8780
        }
8781
    }'
8782
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8783
# Check for a 64-bit object if we didn't find anything.
8784
if test -z "$aix_libpath"; then
8785
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8786
fi
8787
else
8788
  echo "$as_me: failed program was:" >&5
8789
sed 's/^/| /' conftest.$ac_ext >&5
8790
 
8791
fi
8792
rm -f conftest.err conftest.$ac_objext \
8793
      conftest$ac_exeext conftest.$ac_ext
8794
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8795
 
8796
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8797
        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"
8798
      else
8799
        if test "$host_cpu" = ia64; then
8800
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8801
          allow_undefined_flag="-z nodefs"
8802
          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"
8803
        else
8804
         # Determine the default libpath from the value encoded in an
8805
         # empty executable.
8806
         cat >conftest.$ac_ext <<_ACEOF
8807
/* confdefs.h.  */
8808
_ACEOF
8809
cat confdefs.h >>conftest.$ac_ext
8810
cat >>conftest.$ac_ext <<_ACEOF
8811
/* end confdefs.h.  */
8812
 
8813
int
8814
main ()
8815
{
8816
 
8817
  ;
8818
  return 0;
8819
}
8820
_ACEOF
8821
rm -f conftest.$ac_objext conftest$ac_exeext
8822
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8823
  (eval $ac_link) 2>conftest.er1
8824
  ac_status=$?
8825
  grep -v '^ *+' conftest.er1 >conftest.err
8826
  rm -f conftest.er1
8827
  cat conftest.err >&5
8828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829
  (exit $ac_status); } &&
8830
         { ac_try='test -z "$ac_c_werror_flag"
8831
                         || test ! -s conftest.err'
8832
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833
  (eval $ac_try) 2>&5
8834
  ac_status=$?
8835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836
  (exit $ac_status); }; } &&
8837
         { ac_try='test -s conftest$ac_exeext'
8838
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839
  (eval $ac_try) 2>&5
8840
  ac_status=$?
8841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842
  (exit $ac_status); }; }; then
8843
 
8844
lt_aix_libpath_sed='
8845
    /Import File Strings/,/^$/ {
8846
        /^0/ {
8847
            s/^0  *\(.*\)$/\1/
8848
            p
8849
        }
8850
    }'
8851
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8852
# Check for a 64-bit object if we didn't find anything.
8853
if test -z "$aix_libpath"; then
8854
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8855
fi
8856
else
8857
  echo "$as_me: failed program was:" >&5
8858
sed 's/^/| /' conftest.$ac_ext >&5
8859
 
8860
fi
8861
rm -f conftest.err conftest.$ac_objext \
8862
      conftest$ac_exeext conftest.$ac_ext
8863
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8864
 
8865
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8866
          # Warning - without using the other run time loading flags,
8867
          # -berok will link without error, but may produce a broken library.
8868
          no_undefined_flag=' ${wl}-bernotok'
8869
          allow_undefined_flag=' ${wl}-berok'
8870
          # Exported symbols can be pulled into shared objects from archives
8871
          whole_archive_flag_spec='$convenience'
8872
          archive_cmds_need_lc=yes
8873
          # This is similar to how AIX traditionally builds its shared libraries.
8874
          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'
8875
        fi
8876
      fi
8877
      ;;
8878
 
8879
    amigaos*)
8880
      case $host_cpu in
8881
      powerpc)
8882
            # see comment about AmigaOS4 .so support
8883
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8884
            archive_expsym_cmds=''
8885
        ;;
8886
      m68k)
8887
            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)'
8888
            hardcode_libdir_flag_spec='-L$libdir'
8889
            hardcode_minus_L=yes
8890
        ;;
8891
      esac
8892
      ;;
8893
 
8894
    bsdi[45]*)
8895
      export_dynamic_flag_spec=-rdynamic
8896
      ;;
8897
 
8898
    cygwin* | mingw* | pw32* | cegcc*)
8899
      # When not using gcc, we currently assume that we are using
8900
      # Microsoft Visual C++.
8901
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8902
      # no search path for DLLs.
8903
      hardcode_libdir_flag_spec=' '
8904
      allow_undefined_flag=unsupported
8905
      # Tell ltmain to make .lib files, not .a files.
8906
      libext=lib
8907
      # Tell ltmain to make .dll files, not .so files.
8908
      shrext_cmds=".dll"
8909
      # FIXME: Setting linknames here is a bad hack.
8910
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8911
      # The linker will automatically build a .lib file if we build a DLL.
8912
      old_archive_from_new_cmds='true'
8913
      # FIXME: Should let the user specify the lib program.
8914
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8915
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8916
      enable_shared_with_static_runtimes=yes
8917
      ;;
8918
 
8919
    darwin* | rhapsody*)
8920
 
8921
 
8922
  archive_cmds_need_lc=no
8923
  hardcode_direct=no
8924
  hardcode_automatic=yes
8925
  hardcode_shlibpath_var=unsupported
8926
  whole_archive_flag_spec=''
8927
  link_all_deplibs=yes
8928
  allow_undefined_flag="$_lt_dar_allow_undefined"
8929
  case $cc_basename in
8930
     ifort*) _lt_dar_can_shared=yes ;;
8931
     *) _lt_dar_can_shared=$GCC ;;
8932
  esac
8933
  if test "$_lt_dar_can_shared" = "yes"; then
8934
    output_verbose_link_cmd=echo
8935
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8936
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8937
    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}"
8938
    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}"
8939
 
8940
  else
8941
  ld_shlibs=no
8942
  fi
8943
 
8944
      ;;
8945
 
8946
    dgux*)
8947
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8948
      hardcode_libdir_flag_spec='-L$libdir'
8949
      hardcode_shlibpath_var=no
8950
      ;;
8951
 
8952
    freebsd1*)
8953
      ld_shlibs=no
8954
      ;;
8955
 
8956
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8957
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8958
    # does not break anything, and helps significantly (at the cost of a little
8959
    # extra space).
8960
    freebsd2.2*)
8961
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8962
      hardcode_libdir_flag_spec='-R$libdir'
8963
      hardcode_direct=yes
8964
      hardcode_shlibpath_var=no
8965
      ;;
8966
 
8967
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8968
    freebsd2*)
8969
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8970
      hardcode_direct=yes
8971
      hardcode_minus_L=yes
8972
      hardcode_shlibpath_var=no
8973
      ;;
8974
 
8975
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8976
    freebsd* | dragonfly*)
8977
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8978
      hardcode_libdir_flag_spec='-R$libdir'
8979
      hardcode_direct=yes
8980
      hardcode_shlibpath_var=no
8981
      ;;
8982
 
8983
    hpux9*)
8984
      if test "$GCC" = yes; then
8985
        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'
8986
      else
8987
        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'
8988
      fi
8989
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8990
      hardcode_libdir_separator=:
8991
      hardcode_direct=yes
8992
 
8993
      # hardcode_minus_L: Not really in the search PATH,
8994
      # but as the default location of the library.
8995
      hardcode_minus_L=yes
8996
      export_dynamic_flag_spec='${wl}-E'
8997
      ;;
8998
 
8999
    hpux10*)
9000
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9001
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9002
      else
9003
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9004
      fi
9005
      if test "$with_gnu_ld" = no; then
9006
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9007
        hardcode_libdir_flag_spec_ld='+b $libdir'
9008
        hardcode_libdir_separator=:
9009
        hardcode_direct=yes
9010
        hardcode_direct_absolute=yes
9011
        export_dynamic_flag_spec='${wl}-E'
9012
        # hardcode_minus_L: Not really in the search PATH,
9013
        # but as the default location of the library.
9014
        hardcode_minus_L=yes
9015
      fi
9016
      ;;
9017
 
9018
    hpux11*)
9019
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9020
        case $host_cpu in
9021
        hppa*64*)
9022
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9023
          ;;
9024
        ia64*)
9025
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9026
          ;;
9027
        *)
9028
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9029
          ;;
9030
        esac
9031
      else
9032
        case $host_cpu in
9033
        hppa*64*)
9034
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9035
          ;;
9036
        ia64*)
9037
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9038
          ;;
9039
        *)
9040
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9041
          ;;
9042
        esac
9043
      fi
9044
      if test "$with_gnu_ld" = no; then
9045
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9046
        hardcode_libdir_separator=:
9047
 
9048
        case $host_cpu in
9049
        hppa*64*|ia64*)
9050
          hardcode_direct=no
9051
          hardcode_shlibpath_var=no
9052
          ;;
9053
        *)
9054
          hardcode_direct=yes
9055
          hardcode_direct_absolute=yes
9056
          export_dynamic_flag_spec='${wl}-E'
9057
 
9058
          # hardcode_minus_L: Not really in the search PATH,
9059
          # but as the default location of the library.
9060
          hardcode_minus_L=yes
9061
          ;;
9062
        esac
9063
      fi
9064
      ;;
9065
 
9066
    irix5* | irix6* | nonstopux*)
9067
      if test "$GCC" = yes; then
9068
        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'
9069
        # Try to use the -exported_symbol ld option, if it does not
9070
        # work, assume that -exports_file does not work either and
9071
        # implicitly export all symbols.
9072
        save_LDFLAGS="$LDFLAGS"
9073
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9074
        cat >conftest.$ac_ext <<_ACEOF
9075
int foo(void) {}
9076
_ACEOF
9077
rm -f conftest.$ac_objext conftest$ac_exeext
9078
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9079
  (eval $ac_link) 2>conftest.er1
9080
  ac_status=$?
9081
  grep -v '^ *+' conftest.er1 >conftest.err
9082
  rm -f conftest.er1
9083
  cat conftest.err >&5
9084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085
  (exit $ac_status); } &&
9086
         { ac_try='test -z "$ac_c_werror_flag"
9087
                         || test ! -s conftest.err'
9088
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089
  (eval $ac_try) 2>&5
9090
  ac_status=$?
9091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092
  (exit $ac_status); }; } &&
9093
         { ac_try='test -s conftest$ac_exeext'
9094
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095
  (eval $ac_try) 2>&5
9096
  ac_status=$?
9097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098
  (exit $ac_status); }; }; then
9099
  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'
9100
 
9101
else
9102
  echo "$as_me: failed program was:" >&5
9103
sed 's/^/| /' conftest.$ac_ext >&5
9104
 
9105
fi
9106
rm -f conftest.err conftest.$ac_objext \
9107
      conftest$ac_exeext conftest.$ac_ext
9108
        LDFLAGS="$save_LDFLAGS"
9109
      else
9110
        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'
9111
        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'
9112
      fi
9113
      archive_cmds_need_lc='no'
9114
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9115
      hardcode_libdir_separator=:
9116
      inherit_rpath=yes
9117
      link_all_deplibs=yes
9118
      ;;
9119
 
9120
    netbsd*)
9121
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9122
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9123
      else
9124
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9125
      fi
9126
      hardcode_libdir_flag_spec='-R$libdir'
9127
      hardcode_direct=yes
9128
      hardcode_shlibpath_var=no
9129
      ;;
9130
 
9131
    newsos6)
9132
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9133
      hardcode_direct=yes
9134
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9135
      hardcode_libdir_separator=:
9136
      hardcode_shlibpath_var=no
9137
      ;;
9138
 
9139
    *nto* | *qnx*)
9140
      ;;
9141
 
9142
    openbsd*)
9143
      if test -f /usr/libexec/ld.so; then
9144
        hardcode_direct=yes
9145
        hardcode_shlibpath_var=no
9146
        hardcode_direct_absolute=yes
9147
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9148
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9149
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9150
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9151
          export_dynamic_flag_spec='${wl}-E'
9152
        else
9153
          case $host_os in
9154
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9155
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9156
             hardcode_libdir_flag_spec='-R$libdir'
9157
             ;;
9158
           *)
9159
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9160
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9161
             ;;
9162
          esac
9163
        fi
9164
      else
9165
        ld_shlibs=no
9166
      fi
9167
      ;;
9168
 
9169
    os2*)
9170
      hardcode_libdir_flag_spec='-L$libdir'
9171
      hardcode_minus_L=yes
9172
      allow_undefined_flag=unsupported
9173
      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'
9174
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9175
      ;;
9176
 
9177
    osf3*)
9178
      if test "$GCC" = yes; then
9179
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9180
        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'
9181
      else
9182
        allow_undefined_flag=' -expect_unresolved \*'
9183
        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'
9184
      fi
9185
      archive_cmds_need_lc='no'
9186
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9187
      hardcode_libdir_separator=:
9188
      ;;
9189
 
9190
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9191
      if test "$GCC" = yes; then
9192
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9193
        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'
9194
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9195
      else
9196
        allow_undefined_flag=' -expect_unresolved \*'
9197
        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'
9198
        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~
9199
        $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'
9200
 
9201
        # Both c and cxx compiler support -rpath directly
9202
        hardcode_libdir_flag_spec='-rpath $libdir'
9203
      fi
9204
      archive_cmds_need_lc='no'
9205
      hardcode_libdir_separator=:
9206
      ;;
9207
 
9208
    solaris*)
9209
      no_undefined_flag=' -z defs'
9210
      if test "$GCC" = yes; then
9211
        wlarc='${wl}'
9212
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9213
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9214
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9215
      else
9216
        case `$CC -V 2>&1` in
9217
        *"Compilers 5.0"*)
9218
          wlarc=''
9219
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9220
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9221
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9222
          ;;
9223
        *)
9224
          wlarc='${wl}'
9225
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9226
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9227
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9228
          ;;
9229
        esac
9230
      fi
9231
      hardcode_libdir_flag_spec='-R$libdir'
9232
      hardcode_shlibpath_var=no
9233
      case $host_os in
9234
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9235
      *)
9236
        # The compiler driver will combine and reorder linker options,
9237
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9238
        # but is careful enough not to reorder.
9239
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9240
        if test "$GCC" = yes; then
9241
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9242
        else
9243
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9244
        fi
9245
        ;;
9246
      esac
9247
      link_all_deplibs=yes
9248
      ;;
9249
 
9250
    sunos4*)
9251
      if test "x$host_vendor" = xsequent; then
9252
        # Use $CC to link under sequent, because it throws in some extra .o
9253
        # files that make .init and .fini sections work.
9254
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9255
      else
9256
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9257
      fi
9258
      hardcode_libdir_flag_spec='-L$libdir'
9259
      hardcode_direct=yes
9260
      hardcode_minus_L=yes
9261
      hardcode_shlibpath_var=no
9262
      ;;
9263
 
9264
    sysv4)
9265
      case $host_vendor in
9266
        sni)
9267
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9268
          hardcode_direct=yes # is this really true???
9269
        ;;
9270
        siemens)
9271
          ## LD is ld it makes a PLAMLIB
9272
          ## CC just makes a GrossModule.
9273
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9274
          reload_cmds='$CC -r -o $output$reload_objs'
9275
          hardcode_direct=no
9276
        ;;
9277
        motorola)
9278
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9279
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9280
        ;;
9281
      esac
9282
      runpath_var='LD_RUN_PATH'
9283
      hardcode_shlibpath_var=no
9284
      ;;
9285
 
9286
    sysv4.3*)
9287
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9288
      hardcode_shlibpath_var=no
9289
      export_dynamic_flag_spec='-Bexport'
9290
      ;;
9291
 
9292
    sysv4*MP*)
9293
      if test -d /usr/nec; then
9294
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9295
        hardcode_shlibpath_var=no
9296
        runpath_var=LD_RUN_PATH
9297
        hardcode_runpath_var=yes
9298
        ld_shlibs=yes
9299
      fi
9300
      ;;
9301
 
9302
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9303
      no_undefined_flag='${wl}-z,text'
9304
      archive_cmds_need_lc=no
9305
      hardcode_shlibpath_var=no
9306
      runpath_var='LD_RUN_PATH'
9307
 
9308
      if test "$GCC" = yes; then
9309
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9310
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9311
      else
9312
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9313
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9314
      fi
9315
      ;;
9316
 
9317
    sysv5* | sco3.2v5* | sco5v6*)
9318
      # Note: We can NOT use -z defs as we might desire, because we do not
9319
      # link with -lc, and that would cause any symbols used from libc to
9320
      # always be unresolved, which means just about no library would
9321
      # ever link correctly.  If we're not using GNU ld we use -z text
9322
      # though, which does catch some bad symbols but isn't as heavy-handed
9323
      # as -z defs.
9324
      no_undefined_flag='${wl}-z,text'
9325
      allow_undefined_flag='${wl}-z,nodefs'
9326
      archive_cmds_need_lc=no
9327
      hardcode_shlibpath_var=no
9328
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9329
      hardcode_libdir_separator=':'
9330
      link_all_deplibs=yes
9331
      export_dynamic_flag_spec='${wl}-Bexport'
9332
      runpath_var='LD_RUN_PATH'
9333
 
9334
      if test "$GCC" = yes; then
9335
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9336
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9337
      else
9338
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9339
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9340
      fi
9341
      ;;
9342
 
9343
    uts4*)
9344
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9345
      hardcode_libdir_flag_spec='-L$libdir'
9346
      hardcode_shlibpath_var=no
9347
      ;;
9348
 
9349
    *)
9350
      ld_shlibs=no
9351
      ;;
9352
    esac
9353
 
9354
    if test x$host_vendor = xsni; then
9355
      case $host in
9356
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9357
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9358
        ;;
9359
      esac
9360
    fi
9361
  fi
9362
 
9363
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9364
echo "${ECHO_T}$ld_shlibs" >&6
9365
test "$ld_shlibs" = no && can_build_shared=no
9366
 
9367
with_gnu_ld=$with_gnu_ld
9368
 
9369
 
9370
 
9371
 
9372
 
9373
 
9374
 
9375
 
9376
 
9377
 
9378
 
9379
 
9380
 
9381
 
9382
 
9383
#
9384
# Do we need to explicitly link libc?
9385
#
9386
case "x$archive_cmds_need_lc" in
9387
x|xyes)
9388
  # Assume -lc should be added
9389
  archive_cmds_need_lc=yes
9390
 
9391
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9392
    case $archive_cmds in
9393
    *'~'*)
9394
      # FIXME: we may have to deal with multi-command sequences.
9395
      ;;
9396
    '$CC '*)
9397
      # Test whether the compiler implicitly links with -lc since on some
9398
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9399
      # to ld, don't add -lc before -lgcc.
9400
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9401
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9402
      $RM conftest*
9403
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9404
 
9405
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9406
  (eval $ac_compile) 2>&5
9407
  ac_status=$?
9408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409
  (exit $ac_status); } 2>conftest.err; then
9410
        soname=conftest
9411
        lib=conftest
9412
        libobjs=conftest.$ac_objext
9413
        deplibs=
9414
        wl=$lt_prog_compiler_wl
9415
        pic_flag=$lt_prog_compiler_pic
9416
        compiler_flags=-v
9417
        linker_flags=-v
9418
        verstring=
9419
        output_objdir=.
9420
        libname=conftest
9421
        lt_save_allow_undefined_flag=$allow_undefined_flag
9422
        allow_undefined_flag=
9423
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9424
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9425
  ac_status=$?
9426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427
  (exit $ac_status); }
9428
        then
9429
          archive_cmds_need_lc=no
9430
        else
9431
          archive_cmds_need_lc=yes
9432
        fi
9433
        allow_undefined_flag=$lt_save_allow_undefined_flag
9434
      else
9435
        cat conftest.err 1>&5
9436
      fi
9437
      $RM conftest*
9438
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9439
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9440
      ;;
9441
    esac
9442
  fi
9443
  ;;
9444
esac
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
 
9592
 
9593
 
9594
 
9595
 
9596
 
9597
 
9598
 
9599
 
9600
 
9601
 
9602
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9603
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9604
 
9605
if test "$GCC" = yes; then
9606
  case $host_os in
9607
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9608
    *) lt_awk_arg="/^libraries:/" ;;
9609
  esac
9610
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9611
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9612
    # if the path contains ";" then we assume it to be the separator
9613
    # otherwise default to the standard path separator (i.e. ":") - it is
9614
    # assumed that no part of a normal pathname contains ";" but that should
9615
    # okay in the real world where ";" in dirpaths is itself problematic.
9616
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9617
  else
9618
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9619
  fi
9620
  # Ok, now we have the path, separated by spaces, we can step through it
9621
  # and add multilib dir if necessary.
9622
  lt_tmp_lt_search_path_spec=
9623
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9624
  for lt_sys_path in $lt_search_path_spec; do
9625
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9626
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9627
    else
9628
      test -d "$lt_sys_path" && \
9629
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9630
    fi
9631
  done
9632
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9633
BEGIN {RS=" "; FS="/|\n";} {
9634
  lt_foo="";
9635
  lt_count=0;
9636
  for (lt_i = NF; lt_i > 0; lt_i--) {
9637
    if ($lt_i != "" && $lt_i != ".") {
9638
      if ($lt_i == "..") {
9639
        lt_count++;
9640
      } else {
9641
        if (lt_count == 0) {
9642
          lt_foo="/" $lt_i lt_foo;
9643
        } else {
9644
          lt_count--;
9645
        }
9646
      }
9647
    }
9648
  }
9649
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9650
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9651
}'`
9652
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9653
else
9654
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9655
fi
9656
library_names_spec=
9657
libname_spec='lib$name'
9658
soname_spec=
9659
shrext_cmds=".so"
9660
postinstall_cmds=
9661
postuninstall_cmds=
9662
finish_cmds=
9663
finish_eval=
9664
shlibpath_var=
9665
shlibpath_overrides_runpath=unknown
9666
version_type=none
9667
dynamic_linker="$host_os ld.so"
9668
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9669
need_lib_prefix=unknown
9670
hardcode_into_libs=no
9671
 
9672
# when you set need_version to no, make sure it does not cause -set_version
9673
# flags to be left without arguments
9674
need_version=unknown
9675
 
9676
case $host_os in
9677
aix3*)
9678
  version_type=linux
9679
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9680
  shlibpath_var=LIBPATH
9681
 
9682
  # AIX 3 has no versioning support, so we append a major version to the name.
9683
  soname_spec='${libname}${release}${shared_ext}$major'
9684
  ;;
9685
 
9686
aix[4-9]*)
9687
  version_type=linux
9688
  need_lib_prefix=no
9689
  need_version=no
9690
  hardcode_into_libs=yes
9691
  if test "$host_cpu" = ia64; then
9692
    # AIX 5 supports IA64
9693
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9694
    shlibpath_var=LD_LIBRARY_PATH
9695
  else
9696
    # With GCC up to 2.95.x, collect2 would create an import file
9697
    # for dependence libraries.  The import file would start with
9698
    # the line `#! .'.  This would cause the generated library to
9699
    # depend on `.', always an invalid library.  This was fixed in
9700
    # development snapshots of GCC prior to 3.0.
9701
    case $host_os in
9702
      aix4 | aix4.[01] | aix4.[01].*)
9703
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9704
           echo ' yes '
9705
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9706
        :
9707
      else
9708
        can_build_shared=no
9709
      fi
9710
      ;;
9711
    esac
9712
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9713
    # soname into executable. Probably we can add versioning support to
9714
    # collect2, so additional links can be useful in future.
9715
    if test "$aix_use_runtimelinking" = yes; then
9716
      # If using run time linking (on AIX 4.2 or later) use lib.so
9717
      # instead of lib.a to let people know that these are not
9718
      # typical AIX shared libraries.
9719
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9720
    else
9721
      # We preserve .a as extension for shared libraries through AIX4.2
9722
      # and later when we are not doing run time linking.
9723
      library_names_spec='${libname}${release}.a $libname.a'
9724
      soname_spec='${libname}${release}${shared_ext}$major'
9725
    fi
9726
    shlibpath_var=LIBPATH
9727
  fi
9728
  ;;
9729
 
9730
amigaos*)
9731
  case $host_cpu in
9732
  powerpc)
9733
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9734
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9735
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9736
    ;;
9737
  m68k)
9738
    library_names_spec='$libname.ixlibrary $libname.a'
9739
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9740
    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'
9741
    ;;
9742
  esac
9743
  ;;
9744
 
9745
beos*)
9746
  library_names_spec='${libname}${shared_ext}'
9747
  dynamic_linker="$host_os ld.so"
9748
  shlibpath_var=LIBRARY_PATH
9749
  ;;
9750
 
9751
bsdi[45]*)
9752
  version_type=linux
9753
  need_version=no
9754
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755
  soname_spec='${libname}${release}${shared_ext}$major'
9756
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9757
  shlibpath_var=LD_LIBRARY_PATH
9758
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9759
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9760
  # the default ld.so.conf also contains /usr/contrib/lib and
9761
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9762
  # libtool to hard-code these into programs
9763
  ;;
9764
 
9765
cygwin* | mingw* | pw32* | cegcc*)
9766
  version_type=windows
9767
  shrext_cmds=".dll"
9768
  need_version=no
9769
  need_lib_prefix=no
9770
 
9771
  case $GCC,$host_os in
9772
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9773
    library_names_spec='$libname.dll.a'
9774
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9775
    postinstall_cmds='base_file=`basename \${file}`~
9776
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9777
      dldir=$destdir/`dirname \$dlpath`~
9778
      test -d \$dldir || mkdir -p \$dldir~
9779
      $install_prog $dir/$dlname \$dldir/$dlname~
9780
      chmod a+x \$dldir/$dlname~
9781
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9782
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9783
      fi'
9784
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9785
      dlpath=$dir/\$dldll~
9786
       $RM \$dlpath'
9787
    shlibpath_overrides_runpath=yes
9788
 
9789
    case $host_os in
9790
    cygwin*)
9791
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9792
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9793
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9794
      ;;
9795
    mingw* | cegcc*)
9796
      # MinGW DLLs use traditional 'lib' prefix
9797
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9798
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9799
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9800
        # It is most probably a Windows format PATH printed by
9801
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9802
        # path with ; separators, and with drive letters. We can handle the
9803
        # drive letters (cygwin fileutils understands them), so leave them,
9804
        # especially as we might pass files found there to a mingw objdump,
9805
        # which wouldn't understand a cygwinified path. Ahh.
9806
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9807
      else
9808
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9809
      fi
9810
      ;;
9811
    pw32*)
9812
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9813
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9814
      ;;
9815
    esac
9816
    ;;
9817
 
9818
  *)
9819
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9820
    ;;
9821
  esac
9822
  dynamic_linker='Win32 ld.exe'
9823
  # FIXME: first we should search . and the directory the executable is in
9824
  shlibpath_var=PATH
9825
  ;;
9826
 
9827
darwin* | rhapsody*)
9828
  dynamic_linker="$host_os dyld"
9829
  version_type=darwin
9830
  need_lib_prefix=no
9831
  need_version=no
9832
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9833
  soname_spec='${libname}${release}${major}$shared_ext'
9834
  shlibpath_overrides_runpath=yes
9835
  shlibpath_var=DYLD_LIBRARY_PATH
9836
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9837
 
9838
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9839
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9840
  ;;
9841
 
9842
dgux*)
9843
  version_type=linux
9844
  need_lib_prefix=no
9845
  need_version=no
9846
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9847
  soname_spec='${libname}${release}${shared_ext}$major'
9848
  shlibpath_var=LD_LIBRARY_PATH
9849
  ;;
9850
 
9851
freebsd1*)
9852
  dynamic_linker=no
9853
  ;;
9854
 
9855
freebsd* | dragonfly*)
9856
  # DragonFly does not have aout.  When/if they implement a new
9857
  # versioning mechanism, adjust this.
9858
  if test -x /usr/bin/objformat; then
9859
    objformat=`/usr/bin/objformat`
9860
  else
9861
    case $host_os in
9862
    freebsd[123]*) objformat=aout ;;
9863
    *) objformat=elf ;;
9864
    esac
9865
  fi
9866
  version_type=freebsd-$objformat
9867
  case $version_type in
9868
    freebsd-elf*)
9869
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9870
      need_version=no
9871
      need_lib_prefix=no
9872
      ;;
9873
    freebsd-*)
9874
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9875
      need_version=yes
9876
      ;;
9877
  esac
9878
  shlibpath_var=LD_LIBRARY_PATH
9879
  case $host_os in
9880
  freebsd2*)
9881
    shlibpath_overrides_runpath=yes
9882
    ;;
9883
  freebsd3.[01]* | freebsdelf3.[01]*)
9884
    shlibpath_overrides_runpath=yes
9885
    hardcode_into_libs=yes
9886
    ;;
9887
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9888
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9889
    shlibpath_overrides_runpath=no
9890
    hardcode_into_libs=yes
9891
    ;;
9892
  *) # from 4.6 on, and DragonFly
9893
    shlibpath_overrides_runpath=yes
9894
    hardcode_into_libs=yes
9895
    ;;
9896
  esac
9897
  ;;
9898
 
9899
gnu*)
9900
  version_type=linux
9901
  need_lib_prefix=no
9902
  need_version=no
9903
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9904
  soname_spec='${libname}${release}${shared_ext}$major'
9905
  shlibpath_var=LD_LIBRARY_PATH
9906
  hardcode_into_libs=yes
9907
  ;;
9908
 
9909
hpux9* | hpux10* | hpux11*)
9910
  # Give a soname corresponding to the major version so that dld.sl refuses to
9911
  # link against other versions.
9912
  version_type=sunos
9913
  need_lib_prefix=no
9914
  need_version=no
9915
  case $host_cpu in
9916
  ia64*)
9917
    shrext_cmds='.so'
9918
    hardcode_into_libs=yes
9919
    dynamic_linker="$host_os dld.so"
9920
    shlibpath_var=LD_LIBRARY_PATH
9921
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9922
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9923
    soname_spec='${libname}${release}${shared_ext}$major'
9924
    if test "X$HPUX_IA64_MODE" = X32; then
9925
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9926
    else
9927
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9928
    fi
9929
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9930
    ;;
9931
  hppa*64*)
9932
    shrext_cmds='.sl'
9933
    hardcode_into_libs=yes
9934
    dynamic_linker="$host_os dld.sl"
9935
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9936
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9937
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938
    soname_spec='${libname}${release}${shared_ext}$major'
9939
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9940
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9941
    ;;
9942
  *)
9943
    shrext_cmds='.sl'
9944
    dynamic_linker="$host_os dld.sl"
9945
    shlibpath_var=SHLIB_PATH
9946
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9947
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948
    soname_spec='${libname}${release}${shared_ext}$major'
9949
    ;;
9950
  esac
9951
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9952
  postinstall_cmds='chmod 555 $lib'
9953
  ;;
9954
 
9955
interix[3-9]*)
9956
  version_type=linux
9957
  need_lib_prefix=no
9958
  need_version=no
9959
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9960
  soname_spec='${libname}${release}${shared_ext}$major'
9961
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9962
  shlibpath_var=LD_LIBRARY_PATH
9963
  shlibpath_overrides_runpath=no
9964
  hardcode_into_libs=yes
9965
  ;;
9966
 
9967
irix5* | irix6* | nonstopux*)
9968
  case $host_os in
9969
    nonstopux*) version_type=nonstopux ;;
9970
    *)
9971
        if test "$lt_cv_prog_gnu_ld" = yes; then
9972
                version_type=linux
9973
        else
9974
                version_type=irix
9975
        fi ;;
9976
  esac
9977
  need_lib_prefix=no
9978
  need_version=no
9979
  soname_spec='${libname}${release}${shared_ext}$major'
9980
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9981
  case $host_os in
9982
  irix5* | nonstopux*)
9983
    libsuff= shlibsuff=
9984
    ;;
9985
  *)
9986
    case $LD in # libtool.m4 will add one of these switches to LD
9987
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9988
      libsuff= shlibsuff= libmagic=32-bit;;
9989
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9990
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9991
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9992
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9993
    *) libsuff= shlibsuff= libmagic=never-match;;
9994
    esac
9995
    ;;
9996
  esac
9997
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9998
  shlibpath_overrides_runpath=no
9999
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10000
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10001
  hardcode_into_libs=yes
10002
  ;;
10003
 
10004
# No shared lib support for Linux oldld, aout, or coff.
10005
linux*oldld* | linux*aout* | linux*coff*)
10006
  dynamic_linker=no
10007
  ;;
10008
 
10009
# This must be Linux ELF.
10010
linux* | k*bsd*-gnu)
10011
  version_type=linux
10012
  need_lib_prefix=no
10013
  need_version=no
10014
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10015
  soname_spec='${libname}${release}${shared_ext}$major'
10016
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10017
  shlibpath_var=LD_LIBRARY_PATH
10018
  shlibpath_overrides_runpath=no
10019
  # Some binutils ld are patched to set DT_RUNPATH
10020
  save_LDFLAGS=$LDFLAGS
10021
  save_libdir=$libdir
10022
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10023
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10024
  cat >conftest.$ac_ext <<_ACEOF
10025
/* confdefs.h.  */
10026
_ACEOF
10027
cat confdefs.h >>conftest.$ac_ext
10028
cat >>conftest.$ac_ext <<_ACEOF
10029
/* end confdefs.h.  */
10030
 
10031
int
10032
main ()
10033
{
10034
 
10035
  ;
10036
  return 0;
10037
}
10038
_ACEOF
10039
rm -f conftest.$ac_objext conftest$ac_exeext
10040
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10041
  (eval $ac_link) 2>conftest.er1
10042
  ac_status=$?
10043
  grep -v '^ *+' conftest.er1 >conftest.err
10044
  rm -f conftest.er1
10045
  cat conftest.err >&5
10046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047
  (exit $ac_status); } &&
10048
         { ac_try='test -z "$ac_c_werror_flag"
10049
                         || test ! -s conftest.err'
10050
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051
  (eval $ac_try) 2>&5
10052
  ac_status=$?
10053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054
  (exit $ac_status); }; } &&
10055
         { ac_try='test -s conftest$ac_exeext'
10056
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057
  (eval $ac_try) 2>&5
10058
  ac_status=$?
10059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060
  (exit $ac_status); }; }; then
10061
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10062
  shlibpath_overrides_runpath=yes
10063
fi
10064
 
10065
else
10066
  echo "$as_me: failed program was:" >&5
10067
sed 's/^/| /' conftest.$ac_ext >&5
10068
 
10069
fi
10070
rm -f conftest.err conftest.$ac_objext \
10071
      conftest$ac_exeext conftest.$ac_ext
10072
  LDFLAGS=$save_LDFLAGS
10073
  libdir=$save_libdir
10074
 
10075
  # This implies no fast_install, which is unacceptable.
10076
  # Some rework will be needed to allow for fast_install
10077
  # before this can be enabled.
10078
  hardcode_into_libs=yes
10079
 
10080
  # Append ld.so.conf contents to the search path
10081
  if test -f /etc/ld.so.conf; then
10082
    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' ' '`
10083
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10084
  fi
10085
 
10086
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10087
  # powerpc, because MkLinux only supported shared libraries with the
10088
  # GNU dynamic linker.  Since this was broken with cross compilers,
10089
  # most powerpc-linux boxes support dynamic linking these days and
10090
  # people can always --disable-shared, the test was removed, and we
10091
  # assume the GNU/Linux dynamic linker is in use.
10092
  dynamic_linker='GNU/Linux ld.so'
10093
  ;;
10094
 
10095
netbsd*)
10096
  version_type=sunos
10097
  need_lib_prefix=no
10098
  need_version=no
10099
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10100
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10101
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10102
    dynamic_linker='NetBSD (a.out) ld.so'
10103
  else
10104
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10105
    soname_spec='${libname}${release}${shared_ext}$major'
10106
    dynamic_linker='NetBSD ld.elf_so'
10107
  fi
10108
  shlibpath_var=LD_LIBRARY_PATH
10109
  shlibpath_overrides_runpath=yes
10110
  hardcode_into_libs=yes
10111
  ;;
10112
 
10113
newsos6)
10114
  version_type=linux
10115
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116
  shlibpath_var=LD_LIBRARY_PATH
10117
  shlibpath_overrides_runpath=yes
10118
  ;;
10119
 
10120
*nto* | *qnx*)
10121
  version_type=qnx
10122
  need_lib_prefix=no
10123
  need_version=no
10124
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125
  soname_spec='${libname}${release}${shared_ext}$major'
10126
  shlibpath_var=LD_LIBRARY_PATH
10127
  shlibpath_overrides_runpath=no
10128
  hardcode_into_libs=yes
10129
  dynamic_linker='ldqnx.so'
10130
  ;;
10131
 
10132
openbsd*)
10133
  version_type=sunos
10134
  sys_lib_dlsearch_path_spec="/usr/lib"
10135
  need_lib_prefix=no
10136
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10137
  case $host_os in
10138
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10139
    *)                          need_version=no  ;;
10140
  esac
10141
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10142
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10143
  shlibpath_var=LD_LIBRARY_PATH
10144
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10145
    case $host_os in
10146
      openbsd2.[89] | openbsd2.[89].*)
10147
        shlibpath_overrides_runpath=no
10148
        ;;
10149
      *)
10150
        shlibpath_overrides_runpath=yes
10151
        ;;
10152
      esac
10153
  else
10154
    shlibpath_overrides_runpath=yes
10155
  fi
10156
  ;;
10157
 
10158
os2*)
10159
  libname_spec='$name'
10160
  shrext_cmds=".dll"
10161
  need_lib_prefix=no
10162
  library_names_spec='$libname${shared_ext} $libname.a'
10163
  dynamic_linker='OS/2 ld.exe'
10164
  shlibpath_var=LIBPATH
10165
  ;;
10166
 
10167
osf3* | osf4* | osf5*)
10168
  version_type=osf
10169
  need_lib_prefix=no
10170
  need_version=no
10171
  soname_spec='${libname}${release}${shared_ext}$major'
10172
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173
  shlibpath_var=LD_LIBRARY_PATH
10174
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10175
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10176
  ;;
10177
 
10178
rdos*)
10179
  dynamic_linker=no
10180
  ;;
10181
 
10182
solaris*)
10183
  version_type=linux
10184
  need_lib_prefix=no
10185
  need_version=no
10186
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187
  soname_spec='${libname}${release}${shared_ext}$major'
10188
  shlibpath_var=LD_LIBRARY_PATH
10189
  shlibpath_overrides_runpath=yes
10190
  hardcode_into_libs=yes
10191
  # ldd complains unless libraries are executable
10192
  postinstall_cmds='chmod +x $lib'
10193
  ;;
10194
 
10195
sunos4*)
10196
  version_type=sunos
10197
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10198
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10199
  shlibpath_var=LD_LIBRARY_PATH
10200
  shlibpath_overrides_runpath=yes
10201
  if test "$with_gnu_ld" = yes; then
10202
    need_lib_prefix=no
10203
  fi
10204
  need_version=yes
10205
  ;;
10206
 
10207
sysv4 | sysv4.3*)
10208
  version_type=linux
10209
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210
  soname_spec='${libname}${release}${shared_ext}$major'
10211
  shlibpath_var=LD_LIBRARY_PATH
10212
  case $host_vendor in
10213
    sni)
10214
      shlibpath_overrides_runpath=no
10215
      need_lib_prefix=no
10216
      runpath_var=LD_RUN_PATH
10217
      ;;
10218
    siemens)
10219
      need_lib_prefix=no
10220
      ;;
10221
    motorola)
10222
      need_lib_prefix=no
10223
      need_version=no
10224
      shlibpath_overrides_runpath=no
10225
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10226
      ;;
10227
  esac
10228
  ;;
10229
 
10230
sysv4*MP*)
10231
  if test -d /usr/nec ;then
10232
    version_type=linux
10233
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10234
    soname_spec='$libname${shared_ext}.$major'
10235
    shlibpath_var=LD_LIBRARY_PATH
10236
  fi
10237
  ;;
10238
 
10239
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10240
  version_type=freebsd-elf
10241
  need_lib_prefix=no
10242
  need_version=no
10243
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10244
  soname_spec='${libname}${release}${shared_ext}$major'
10245
  shlibpath_var=LD_LIBRARY_PATH
10246
  shlibpath_overrides_runpath=yes
10247
  hardcode_into_libs=yes
10248
  if test "$with_gnu_ld" = yes; then
10249
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10250
  else
10251
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10252
    case $host_os in
10253
      sco3.2v5*)
10254
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10255
        ;;
10256
    esac
10257
  fi
10258
  sys_lib_dlsearch_path_spec='/usr/lib'
10259
  ;;
10260
 
10261
tpf*)
10262
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10263
  version_type=linux
10264
  need_lib_prefix=no
10265
  need_version=no
10266
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267
  shlibpath_var=LD_LIBRARY_PATH
10268
  shlibpath_overrides_runpath=no
10269
  hardcode_into_libs=yes
10270
  ;;
10271
 
10272
uts4*)
10273
  version_type=linux
10274
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275
  soname_spec='${libname}${release}${shared_ext}$major'
10276
  shlibpath_var=LD_LIBRARY_PATH
10277
  ;;
10278
 
10279
*)
10280
  dynamic_linker=no
10281
  ;;
10282
esac
10283
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10284
echo "${ECHO_T}$dynamic_linker" >&6
10285
test "$dynamic_linker" = no && can_build_shared=no
10286
 
10287
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10288
if test "$GCC" = yes; then
10289
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10290
fi
10291
 
10292
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10293
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10294
fi
10295
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10296
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10297
fi
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
 
10375
 
10376
 
10377
 
10378
 
10379
 
10380
 
10381
 
10382
 
10383
 
10384
 
10385
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10386
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10387
hardcode_action=
10388
if test -n "$hardcode_libdir_flag_spec" ||
10389
   test -n "$runpath_var" ||
10390
   test "X$hardcode_automatic" = "Xyes" ; then
10391
 
10392
  # We can hardcode non-existent directories.
10393
  if test "$hardcode_direct" != no &&
10394
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10395
     # have to relink, otherwise we might link with an installed library
10396
     # when we should be linking with a yet-to-be-installed one
10397
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10398
     test "$hardcode_minus_L" != no; then
10399
    # Linking always hardcodes the temporary library directory.
10400
    hardcode_action=relink
10401
  else
10402
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10403
    hardcode_action=immediate
10404
  fi
10405
else
10406
  # We cannot hardcode anything, or else we can only hardcode existing
10407
  # directories.
10408
  hardcode_action=unsupported
10409
fi
10410
echo "$as_me:$LINENO: result: $hardcode_action" >&5
10411
echo "${ECHO_T}$hardcode_action" >&6
10412
 
10413
if test "$hardcode_action" = relink ||
10414
   test "$inherit_rpath" = yes; then
10415
  # Fast installation is not supported
10416
  enable_fast_install=no
10417
elif test "$shlibpath_overrides_runpath" = yes ||
10418
     test "$enable_shared" = no; then
10419
  # Fast installation is not necessary
10420
  enable_fast_install=needless
10421
fi
10422
 
10423
 
10424
 
10425
 
10426
 
10427
 
10428
  if test "x$enable_dlopen" != xyes; then
10429
  enable_dlopen=unknown
10430
  enable_dlopen_self=unknown
10431
  enable_dlopen_self_static=unknown
10432
else
10433
  lt_cv_dlopen=no
10434
  lt_cv_dlopen_libs=
10435
 
10436
  case $host_os in
10437
  beos*)
10438
    lt_cv_dlopen="load_add_on"
10439
    lt_cv_dlopen_libs=
10440
    lt_cv_dlopen_self=yes
10441
    ;;
10442
 
10443
  mingw* | pw32* | cegcc*)
10444
    lt_cv_dlopen="LoadLibrary"
10445
    lt_cv_dlopen_libs=
10446
    ;;
10447
 
10448
  cygwin*)
10449
    lt_cv_dlopen="dlopen"
10450
    lt_cv_dlopen_libs=
10451
    ;;
10452
 
10453
  darwin*)
10454
  # if libdl is installed we need to link against it
10455
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10456
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10457
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10458
  echo $ECHO_N "(cached) $ECHO_C" >&6
10459
else
10460
  ac_check_lib_save_LIBS=$LIBS
10461
LIBS="-ldl  $LIBS"
10462
cat >conftest.$ac_ext <<_ACEOF
10463
/* confdefs.h.  */
10464
_ACEOF
10465
cat confdefs.h >>conftest.$ac_ext
10466
cat >>conftest.$ac_ext <<_ACEOF
10467
/* end confdefs.h.  */
10468
 
10469
/* Override any gcc2 internal prototype to avoid an error.  */
10470
#ifdef __cplusplus
10471
extern "C"
10472
#endif
10473
/* We use char because int might match the return type of a gcc2
10474
   builtin and then its argument prototype would still apply.  */
10475
char dlopen ();
10476
int
10477
main ()
10478
{
10479
dlopen ();
10480
  ;
10481
  return 0;
10482
}
10483
_ACEOF
10484
rm -f conftest.$ac_objext conftest$ac_exeext
10485
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10486
  (eval $ac_link) 2>conftest.er1
10487
  ac_status=$?
10488
  grep -v '^ *+' conftest.er1 >conftest.err
10489
  rm -f conftest.er1
10490
  cat conftest.err >&5
10491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492
  (exit $ac_status); } &&
10493
         { ac_try='test -z "$ac_c_werror_flag"
10494
                         || test ! -s conftest.err'
10495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10496
  (eval $ac_try) 2>&5
10497
  ac_status=$?
10498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499
  (exit $ac_status); }; } &&
10500
         { ac_try='test -s conftest$ac_exeext'
10501
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502
  (eval $ac_try) 2>&5
10503
  ac_status=$?
10504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505
  (exit $ac_status); }; }; then
10506
  ac_cv_lib_dl_dlopen=yes
10507
else
10508
  echo "$as_me: failed program was:" >&5
10509
sed 's/^/| /' conftest.$ac_ext >&5
10510
 
10511
ac_cv_lib_dl_dlopen=no
10512
fi
10513
rm -f conftest.err conftest.$ac_objext \
10514
      conftest$ac_exeext conftest.$ac_ext
10515
LIBS=$ac_check_lib_save_LIBS
10516
fi
10517
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10518
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10519
if test $ac_cv_lib_dl_dlopen = yes; then
10520
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10521
else
10522
 
10523
    lt_cv_dlopen="dyld"
10524
    lt_cv_dlopen_libs=
10525
    lt_cv_dlopen_self=yes
10526
 
10527
fi
10528
 
10529
    ;;
10530
 
10531
  *)
10532
    echo "$as_me:$LINENO: checking for shl_load" >&5
10533
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10534
if test "${ac_cv_func_shl_load+set}" = set; then
10535
  echo $ECHO_N "(cached) $ECHO_C" >&6
10536
else
10537
  cat >conftest.$ac_ext <<_ACEOF
10538
/* confdefs.h.  */
10539
_ACEOF
10540
cat confdefs.h >>conftest.$ac_ext
10541
cat >>conftest.$ac_ext <<_ACEOF
10542
/* end confdefs.h.  */
10543
/* Define shl_load to an innocuous variant, in case  declares shl_load.
10544
   For example, HP-UX 11i  declares gettimeofday.  */
10545
#define shl_load innocuous_shl_load
10546
 
10547
/* System header to define __stub macros and hopefully few prototypes,
10548
    which can conflict with char shl_load (); below.
10549
    Prefer  to  if __STDC__ is defined, since
10550
     exists even on freestanding compilers.  */
10551
 
10552
#ifdef __STDC__
10553
# include 
10554
#else
10555
# include 
10556
#endif
10557
 
10558
#undef shl_load
10559
 
10560
/* Override any gcc2 internal prototype to avoid an error.  */
10561
#ifdef __cplusplus
10562
extern "C"
10563
{
10564
#endif
10565
/* We use char because int might match the return type of a gcc2
10566
   builtin and then its argument prototype would still apply.  */
10567
char shl_load ();
10568
/* The GNU C library defines this for functions which it implements
10569
    to always fail with ENOSYS.  Some functions are actually named
10570
    something starting with __ and the normal name is an alias.  */
10571
#if defined (__stub_shl_load) || defined (__stub___shl_load)
10572
choke me
10573
#else
10574
char (*f) () = shl_load;
10575
#endif
10576
#ifdef __cplusplus
10577
}
10578
#endif
10579
 
10580
int
10581
main ()
10582
{
10583
return f != shl_load;
10584
  ;
10585
  return 0;
10586
}
10587
_ACEOF
10588
rm -f conftest.$ac_objext conftest$ac_exeext
10589
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10590
  (eval $ac_link) 2>conftest.er1
10591
  ac_status=$?
10592
  grep -v '^ *+' conftest.er1 >conftest.err
10593
  rm -f conftest.er1
10594
  cat conftest.err >&5
10595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596
  (exit $ac_status); } &&
10597
         { ac_try='test -z "$ac_c_werror_flag"
10598
                         || test ! -s conftest.err'
10599
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600
  (eval $ac_try) 2>&5
10601
  ac_status=$?
10602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603
  (exit $ac_status); }; } &&
10604
         { ac_try='test -s conftest$ac_exeext'
10605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10606
  (eval $ac_try) 2>&5
10607
  ac_status=$?
10608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609
  (exit $ac_status); }; }; then
10610
  ac_cv_func_shl_load=yes
10611
else
10612
  echo "$as_me: failed program was:" >&5
10613
sed 's/^/| /' conftest.$ac_ext >&5
10614
 
10615
ac_cv_func_shl_load=no
10616
fi
10617
rm -f conftest.err conftest.$ac_objext \
10618
      conftest$ac_exeext conftest.$ac_ext
10619
fi
10620
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10621
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10622
if test $ac_cv_func_shl_load = yes; then
10623
  lt_cv_dlopen="shl_load"
10624
else
10625
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10626
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10627
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10628
  echo $ECHO_N "(cached) $ECHO_C" >&6
10629
else
10630
  ac_check_lib_save_LIBS=$LIBS
10631
LIBS="-ldld  $LIBS"
10632
cat >conftest.$ac_ext <<_ACEOF
10633
/* confdefs.h.  */
10634
_ACEOF
10635
cat confdefs.h >>conftest.$ac_ext
10636
cat >>conftest.$ac_ext <<_ACEOF
10637
/* end confdefs.h.  */
10638
 
10639
/* Override any gcc2 internal prototype to avoid an error.  */
10640
#ifdef __cplusplus
10641
extern "C"
10642
#endif
10643
/* We use char because int might match the return type of a gcc2
10644
   builtin and then its argument prototype would still apply.  */
10645
char shl_load ();
10646
int
10647
main ()
10648
{
10649
shl_load ();
10650
  ;
10651
  return 0;
10652
}
10653
_ACEOF
10654
rm -f conftest.$ac_objext conftest$ac_exeext
10655
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10656
  (eval $ac_link) 2>conftest.er1
10657
  ac_status=$?
10658
  grep -v '^ *+' conftest.er1 >conftest.err
10659
  rm -f conftest.er1
10660
  cat conftest.err >&5
10661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662
  (exit $ac_status); } &&
10663
         { ac_try='test -z "$ac_c_werror_flag"
10664
                         || test ! -s conftest.err'
10665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666
  (eval $ac_try) 2>&5
10667
  ac_status=$?
10668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669
  (exit $ac_status); }; } &&
10670
         { ac_try='test -s conftest$ac_exeext'
10671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672
  (eval $ac_try) 2>&5
10673
  ac_status=$?
10674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675
  (exit $ac_status); }; }; then
10676
  ac_cv_lib_dld_shl_load=yes
10677
else
10678
  echo "$as_me: failed program was:" >&5
10679
sed 's/^/| /' conftest.$ac_ext >&5
10680
 
10681
ac_cv_lib_dld_shl_load=no
10682
fi
10683
rm -f conftest.err conftest.$ac_objext \
10684
      conftest$ac_exeext conftest.$ac_ext
10685
LIBS=$ac_check_lib_save_LIBS
10686
fi
10687
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10688
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10689
if test $ac_cv_lib_dld_shl_load = yes; then
10690
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10691
else
10692
  echo "$as_me:$LINENO: checking for dlopen" >&5
10693
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10694
if test "${ac_cv_func_dlopen+set}" = set; then
10695
  echo $ECHO_N "(cached) $ECHO_C" >&6
10696
else
10697
  cat >conftest.$ac_ext <<_ACEOF
10698
/* confdefs.h.  */
10699
_ACEOF
10700
cat confdefs.h >>conftest.$ac_ext
10701
cat >>conftest.$ac_ext <<_ACEOF
10702
/* end confdefs.h.  */
10703
/* Define dlopen to an innocuous variant, in case  declares dlopen.
10704
   For example, HP-UX 11i  declares gettimeofday.  */
10705
#define dlopen innocuous_dlopen
10706
 
10707
/* System header to define __stub macros and hopefully few prototypes,
10708
    which can conflict with char dlopen (); below.
10709
    Prefer  to  if __STDC__ is defined, since
10710
     exists even on freestanding compilers.  */
10711
 
10712
#ifdef __STDC__
10713
# include 
10714
#else
10715
# include 
10716
#endif
10717
 
10718
#undef dlopen
10719
 
10720
/* Override any gcc2 internal prototype to avoid an error.  */
10721
#ifdef __cplusplus
10722
extern "C"
10723
{
10724
#endif
10725
/* We use char because int might match the return type of a gcc2
10726
   builtin and then its argument prototype would still apply.  */
10727
char dlopen ();
10728
/* The GNU C library defines this for functions which it implements
10729
    to always fail with ENOSYS.  Some functions are actually named
10730
    something starting with __ and the normal name is an alias.  */
10731
#if defined (__stub_dlopen) || defined (__stub___dlopen)
10732
choke me
10733
#else
10734
char (*f) () = dlopen;
10735
#endif
10736
#ifdef __cplusplus
10737
}
10738
#endif
10739
 
10740
int
10741
main ()
10742
{
10743
return f != dlopen;
10744
  ;
10745
  return 0;
10746
}
10747
_ACEOF
10748
rm -f conftest.$ac_objext conftest$ac_exeext
10749
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10750
  (eval $ac_link) 2>conftest.er1
10751
  ac_status=$?
10752
  grep -v '^ *+' conftest.er1 >conftest.err
10753
  rm -f conftest.er1
10754
  cat conftest.err >&5
10755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756
  (exit $ac_status); } &&
10757
         { ac_try='test -z "$ac_c_werror_flag"
10758
                         || test ! -s conftest.err'
10759
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760
  (eval $ac_try) 2>&5
10761
  ac_status=$?
10762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763
  (exit $ac_status); }; } &&
10764
         { ac_try='test -s conftest$ac_exeext'
10765
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766
  (eval $ac_try) 2>&5
10767
  ac_status=$?
10768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769
  (exit $ac_status); }; }; then
10770
  ac_cv_func_dlopen=yes
10771
else
10772
  echo "$as_me: failed program was:" >&5
10773
sed 's/^/| /' conftest.$ac_ext >&5
10774
 
10775
ac_cv_func_dlopen=no
10776
fi
10777
rm -f conftest.err conftest.$ac_objext \
10778
      conftest$ac_exeext conftest.$ac_ext
10779
fi
10780
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10781
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10782
if test $ac_cv_func_dlopen = yes; then
10783
  lt_cv_dlopen="dlopen"
10784
else
10785
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10786
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10787
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10788
  echo $ECHO_N "(cached) $ECHO_C" >&6
10789
else
10790
  ac_check_lib_save_LIBS=$LIBS
10791
LIBS="-ldl  $LIBS"
10792
cat >conftest.$ac_ext <<_ACEOF
10793
/* confdefs.h.  */
10794
_ACEOF
10795
cat confdefs.h >>conftest.$ac_ext
10796
cat >>conftest.$ac_ext <<_ACEOF
10797
/* end confdefs.h.  */
10798
 
10799
/* Override any gcc2 internal prototype to avoid an error.  */
10800
#ifdef __cplusplus
10801
extern "C"
10802
#endif
10803
/* We use char because int might match the return type of a gcc2
10804
   builtin and then its argument prototype would still apply.  */
10805
char dlopen ();
10806
int
10807
main ()
10808
{
10809
dlopen ();
10810
  ;
10811
  return 0;
10812
}
10813
_ACEOF
10814
rm -f conftest.$ac_objext conftest$ac_exeext
10815
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816
  (eval $ac_link) 2>conftest.er1
10817
  ac_status=$?
10818
  grep -v '^ *+' conftest.er1 >conftest.err
10819
  rm -f conftest.er1
10820
  cat conftest.err >&5
10821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822
  (exit $ac_status); } &&
10823
         { ac_try='test -z "$ac_c_werror_flag"
10824
                         || test ! -s conftest.err'
10825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826
  (eval $ac_try) 2>&5
10827
  ac_status=$?
10828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829
  (exit $ac_status); }; } &&
10830
         { ac_try='test -s conftest$ac_exeext'
10831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832
  (eval $ac_try) 2>&5
10833
  ac_status=$?
10834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835
  (exit $ac_status); }; }; then
10836
  ac_cv_lib_dl_dlopen=yes
10837
else
10838
  echo "$as_me: failed program was:" >&5
10839
sed 's/^/| /' conftest.$ac_ext >&5
10840
 
10841
ac_cv_lib_dl_dlopen=no
10842
fi
10843
rm -f conftest.err conftest.$ac_objext \
10844
      conftest$ac_exeext conftest.$ac_ext
10845
LIBS=$ac_check_lib_save_LIBS
10846
fi
10847
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10848
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10849
if test $ac_cv_lib_dl_dlopen = yes; then
10850
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10851
else
10852
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10853
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10854
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10855
  echo $ECHO_N "(cached) $ECHO_C" >&6
10856
else
10857
  ac_check_lib_save_LIBS=$LIBS
10858
LIBS="-lsvld  $LIBS"
10859
cat >conftest.$ac_ext <<_ACEOF
10860
/* confdefs.h.  */
10861
_ACEOF
10862
cat confdefs.h >>conftest.$ac_ext
10863
cat >>conftest.$ac_ext <<_ACEOF
10864
/* end confdefs.h.  */
10865
 
10866
/* Override any gcc2 internal prototype to avoid an error.  */
10867
#ifdef __cplusplus
10868
extern "C"
10869
#endif
10870
/* We use char because int might match the return type of a gcc2
10871
   builtin and then its argument prototype would still apply.  */
10872
char dlopen ();
10873
int
10874
main ()
10875
{
10876
dlopen ();
10877
  ;
10878
  return 0;
10879
}
10880
_ACEOF
10881
rm -f conftest.$ac_objext conftest$ac_exeext
10882
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10883
  (eval $ac_link) 2>conftest.er1
10884
  ac_status=$?
10885
  grep -v '^ *+' conftest.er1 >conftest.err
10886
  rm -f conftest.er1
10887
  cat conftest.err >&5
10888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889
  (exit $ac_status); } &&
10890
         { ac_try='test -z "$ac_c_werror_flag"
10891
                         || test ! -s conftest.err'
10892
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893
  (eval $ac_try) 2>&5
10894
  ac_status=$?
10895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896
  (exit $ac_status); }; } &&
10897
         { ac_try='test -s conftest$ac_exeext'
10898
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899
  (eval $ac_try) 2>&5
10900
  ac_status=$?
10901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902
  (exit $ac_status); }; }; then
10903
  ac_cv_lib_svld_dlopen=yes
10904
else
10905
  echo "$as_me: failed program was:" >&5
10906
sed 's/^/| /' conftest.$ac_ext >&5
10907
 
10908
ac_cv_lib_svld_dlopen=no
10909
fi
10910
rm -f conftest.err conftest.$ac_objext \
10911
      conftest$ac_exeext conftest.$ac_ext
10912
LIBS=$ac_check_lib_save_LIBS
10913
fi
10914
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10915
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10916
if test $ac_cv_lib_svld_dlopen = yes; then
10917
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10918
else
10919
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10920
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10921
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10922
  echo $ECHO_N "(cached) $ECHO_C" >&6
10923
else
10924
  ac_check_lib_save_LIBS=$LIBS
10925
LIBS="-ldld  $LIBS"
10926
cat >conftest.$ac_ext <<_ACEOF
10927
/* confdefs.h.  */
10928
_ACEOF
10929
cat confdefs.h >>conftest.$ac_ext
10930
cat >>conftest.$ac_ext <<_ACEOF
10931
/* end confdefs.h.  */
10932
 
10933
/* Override any gcc2 internal prototype to avoid an error.  */
10934
#ifdef __cplusplus
10935
extern "C"
10936
#endif
10937
/* We use char because int might match the return type of a gcc2
10938
   builtin and then its argument prototype would still apply.  */
10939
char dld_link ();
10940
int
10941
main ()
10942
{
10943
dld_link ();
10944
  ;
10945
  return 0;
10946
}
10947
_ACEOF
10948
rm -f conftest.$ac_objext conftest$ac_exeext
10949
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10950
  (eval $ac_link) 2>conftest.er1
10951
  ac_status=$?
10952
  grep -v '^ *+' conftest.er1 >conftest.err
10953
  rm -f conftest.er1
10954
  cat conftest.err >&5
10955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956
  (exit $ac_status); } &&
10957
         { ac_try='test -z "$ac_c_werror_flag"
10958
                         || test ! -s conftest.err'
10959
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960
  (eval $ac_try) 2>&5
10961
  ac_status=$?
10962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963
  (exit $ac_status); }; } &&
10964
         { ac_try='test -s conftest$ac_exeext'
10965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966
  (eval $ac_try) 2>&5
10967
  ac_status=$?
10968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969
  (exit $ac_status); }; }; then
10970
  ac_cv_lib_dld_dld_link=yes
10971
else
10972
  echo "$as_me: failed program was:" >&5
10973
sed 's/^/| /' conftest.$ac_ext >&5
10974
 
10975
ac_cv_lib_dld_dld_link=no
10976
fi
10977
rm -f conftest.err conftest.$ac_objext \
10978
      conftest$ac_exeext conftest.$ac_ext
10979
LIBS=$ac_check_lib_save_LIBS
10980
fi
10981
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10982
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10983
if test $ac_cv_lib_dld_dld_link = yes; then
10984
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10985
fi
10986
 
10987
 
10988
fi
10989
 
10990
 
10991
fi
10992
 
10993
 
10994
fi
10995
 
10996
 
10997
fi
10998
 
10999
 
11000
fi
11001
 
11002
    ;;
11003
  esac
11004
 
11005
  if test "x$lt_cv_dlopen" != xno; then
11006
    enable_dlopen=yes
11007
  else
11008
    enable_dlopen=no
11009
  fi
11010
 
11011
  case $lt_cv_dlopen in
11012
  dlopen)
11013
    save_CPPFLAGS="$CPPFLAGS"
11014
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11015
 
11016
    save_LDFLAGS="$LDFLAGS"
11017
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11018
 
11019
    save_LIBS="$LIBS"
11020
    LIBS="$lt_cv_dlopen_libs $LIBS"
11021
 
11022
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11023
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11024
if test "${lt_cv_dlopen_self+set}" = set; then
11025
  echo $ECHO_N "(cached) $ECHO_C" >&6
11026
else
11027
          if test "$cross_compiling" = yes; then :
11028
  lt_cv_dlopen_self=cross
11029
else
11030
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11031
  lt_status=$lt_dlunknown
11032
  cat > conftest.$ac_ext <<_LT_EOF
11033
#line 11033 "configure"
11034
#include "confdefs.h"
11035
 
11036
#if HAVE_DLFCN_H
11037
#include 
11038
#endif
11039
 
11040
#include 
11041
 
11042
#ifdef RTLD_GLOBAL
11043
#  define LT_DLGLOBAL           RTLD_GLOBAL
11044
#else
11045
#  ifdef DL_GLOBAL
11046
#    define LT_DLGLOBAL         DL_GLOBAL
11047
#  else
11048
#    define LT_DLGLOBAL         0
11049
#  endif
11050
#endif
11051
 
11052
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11053
   find out it does not work in some platform. */
11054
#ifndef LT_DLLAZY_OR_NOW
11055
#  ifdef RTLD_LAZY
11056
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11057
#  else
11058
#    ifdef DL_LAZY
11059
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11060
#    else
11061
#      ifdef RTLD_NOW
11062
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11063
#      else
11064
#        ifdef DL_NOW
11065
#          define LT_DLLAZY_OR_NOW      DL_NOW
11066
#        else
11067
#          define LT_DLLAZY_OR_NOW      0
11068
#        endif
11069
#      endif
11070
#    endif
11071
#  endif
11072
#endif
11073
 
11074
void fnord() { int i=42;}
11075
int main ()
11076
{
11077
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11078
  int status = $lt_dlunknown;
11079
 
11080
  if (self)
11081
    {
11082
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11083
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11084
      /* dlclose (self); */
11085
    }
11086
  else
11087
    puts (dlerror ());
11088
 
11089
  return status;
11090
}
11091
_LT_EOF
11092
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11093
  (eval $ac_link) 2>&5
11094
  ac_status=$?
11095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11097
    (./conftest; exit; ) >&5 2>/dev/null
11098
    lt_status=$?
11099
    case x$lt_status in
11100
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11101
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11102
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11103
    esac
11104
  else :
11105
    # compilation failed
11106
    lt_cv_dlopen_self=no
11107
  fi
11108
fi
11109
rm -fr conftest*
11110
 
11111
 
11112
fi
11113
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11114
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11115
 
11116
    if test "x$lt_cv_dlopen_self" = xyes; then
11117
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11118
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11119
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11120
if test "${lt_cv_dlopen_self_static+set}" = set; then
11121
  echo $ECHO_N "(cached) $ECHO_C" >&6
11122
else
11123
          if test "$cross_compiling" = yes; then :
11124
  lt_cv_dlopen_self_static=cross
11125
else
11126
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11127
  lt_status=$lt_dlunknown
11128
  cat > conftest.$ac_ext <<_LT_EOF
11129
#line 11129 "configure"
11130
#include "confdefs.h"
11131
 
11132
#if HAVE_DLFCN_H
11133
#include 
11134
#endif
11135
 
11136
#include 
11137
 
11138
#ifdef RTLD_GLOBAL
11139
#  define LT_DLGLOBAL           RTLD_GLOBAL
11140
#else
11141
#  ifdef DL_GLOBAL
11142
#    define LT_DLGLOBAL         DL_GLOBAL
11143
#  else
11144
#    define LT_DLGLOBAL         0
11145
#  endif
11146
#endif
11147
 
11148
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11149
   find out it does not work in some platform. */
11150
#ifndef LT_DLLAZY_OR_NOW
11151
#  ifdef RTLD_LAZY
11152
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11153
#  else
11154
#    ifdef DL_LAZY
11155
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11156
#    else
11157
#      ifdef RTLD_NOW
11158
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11159
#      else
11160
#        ifdef DL_NOW
11161
#          define LT_DLLAZY_OR_NOW      DL_NOW
11162
#        else
11163
#          define LT_DLLAZY_OR_NOW      0
11164
#        endif
11165
#      endif
11166
#    endif
11167
#  endif
11168
#endif
11169
 
11170
void fnord() { int i=42;}
11171
int main ()
11172
{
11173
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11174
  int status = $lt_dlunknown;
11175
 
11176
  if (self)
11177
    {
11178
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11179
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11180
      /* dlclose (self); */
11181
    }
11182
  else
11183
    puts (dlerror ());
11184
 
11185
  return status;
11186
}
11187
_LT_EOF
11188
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11189
  (eval $ac_link) 2>&5
11190
  ac_status=$?
11191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11193
    (./conftest; exit; ) >&5 2>/dev/null
11194
    lt_status=$?
11195
    case x$lt_status in
11196
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11197
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11198
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11199
    esac
11200
  else :
11201
    # compilation failed
11202
    lt_cv_dlopen_self_static=no
11203
  fi
11204
fi
11205
rm -fr conftest*
11206
 
11207
 
11208
fi
11209
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11210
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11211
    fi
11212
 
11213
    CPPFLAGS="$save_CPPFLAGS"
11214
    LDFLAGS="$save_LDFLAGS"
11215
    LIBS="$save_LIBS"
11216
    ;;
11217
  esac
11218
 
11219
  case $lt_cv_dlopen_self in
11220
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11221
  *) enable_dlopen_self=unknown ;;
11222
  esac
11223
 
11224
  case $lt_cv_dlopen_self_static in
11225
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11226
  *) enable_dlopen_self_static=unknown ;;
11227
  esac
11228
fi
11229
 
11230
 
11231
 
11232
 
11233
 
11234
 
11235
 
11236
 
11237
 
11238
 
11239
 
11240
 
11241
 
11242
 
11243
 
11244
 
11245
 
11246
striplib=
11247
old_striplib=
11248
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11249
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11250
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11251
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11252
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11253
  echo "$as_me:$LINENO: result: yes" >&5
11254
echo "${ECHO_T}yes" >&6
11255
else
11256
# FIXME - insert some real tests, host_os isn't really good enough
11257
  case $host_os in
11258
  darwin*)
11259
    if test -n "$STRIP" ; then
11260
      striplib="$STRIP -x"
11261
      old_striplib="$STRIP -S"
11262
      echo "$as_me:$LINENO: result: yes" >&5
11263
echo "${ECHO_T}yes" >&6
11264
    else
11265
      echo "$as_me:$LINENO: result: no" >&5
11266
echo "${ECHO_T}no" >&6
11267
    fi
11268
    ;;
11269
  *)
11270
    echo "$as_me:$LINENO: result: no" >&5
11271
echo "${ECHO_T}no" >&6
11272
    ;;
11273
  esac
11274
fi
11275
 
11276
 
11277
 
11278
 
11279
 
11280
 
11281
 
11282
 
11283
 
11284
 
11285
 
11286
 
11287
  # Report which library types will actually be built
11288
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11289
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11290
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
11291
echo "${ECHO_T}$can_build_shared" >&6
11292
 
11293
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11294
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11295
  test "$can_build_shared" = "no" && enable_shared=no
11296
 
11297
  # On AIX, shared libraries and static libraries use the same namespace, and
11298
  # are all built from PIC.
11299
  case $host_os in
11300
  aix3*)
11301
    test "$enable_shared" = yes && enable_static=no
11302
    if test -n "$RANLIB"; then
11303
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11304
      postinstall_cmds='$RANLIB $lib'
11305
    fi
11306
    ;;
11307
 
11308
  aix[4-9]*)
11309
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11310
      test "$enable_shared" = yes && enable_static=no
11311
    fi
11312
    ;;
11313
  esac
11314
  echo "$as_me:$LINENO: result: $enable_shared" >&5
11315
echo "${ECHO_T}$enable_shared" >&6
11316
 
11317
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11318
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11319
  # Make sure either enable_shared or enable_static is yes.
11320
  test "$enable_shared" = yes || enable_static=yes
11321
  echo "$as_me:$LINENO: result: $enable_static" >&5
11322
echo "${ECHO_T}$enable_static" >&6
11323
 
11324
 
11325
 
11326
 
11327
fi
11328
ac_ext=c
11329
ac_cpp='$CPP $CPPFLAGS'
11330
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11331
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11333
 
11334
CC="$lt_save_CC"
11335
 
11336
 
11337
 
11338
 
11339
 
11340
 
11341
 
11342
 
11343
 
11344
 
11345
 
11346
 
11347
 
11348
                  ac_config_commands="$ac_config_commands libtool"
11349
 
11350
 
11351
 
11352
 
11353
# Only expand once:
11354
 
11355
 
11356
fi
11357
 
11358
 
11359
 
11360
subdirs="$subdirs machine"
11361
 
11362
 
11363
LIBM_MACHINE_LIB=
11364
if test -n "${libm_machine_dir}"; then
11365
  if test "${use_libtool}" = "yes"; then
11366
    LIBM_MACHINE_LIB=machine/${libm_machine_dir}/lib${libm_machine_dir}.${aext}
11367
  else
11368
    LIBM_MACHINE_LIB=machine/lib.${aext}
11369
  fi
11370
fi
11371
 
11372
 
11373
 
11374
                                        ac_config_files="$ac_config_files Makefile math/Makefile mathfp/Makefile common/Makefile"
11375
 
11376
cat >confcache <<\_ACEOF
11377
# This file is a shell script that caches the results of configure
11378
# tests run on this system so they can be shared between configure
11379
# scripts and configure runs, see configure's option --config-cache.
11380
# It is not useful on other systems.  If it contains results you don't
11381
# want to keep, you may remove or edit it.
11382
#
11383
# config.status only pays attention to the cache file if you give it
11384
# the --recheck option to rerun configure.
11385
#
11386
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11387
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11388
# following values.
11389
 
11390
_ACEOF
11391
 
11392
# The following way of writing the cache mishandles newlines in values,
11393
# but we know of no workaround that is simple, portable, and efficient.
11394
# So, don't put newlines in cache variables' values.
11395
# Ultrix sh set writes to stderr and can't be redirected directly,
11396
# and sets the high bit in the cache file unless we assign to the vars.
11397
{
11398
  (set) 2>&1 |
11399
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11400
    *ac_space=\ *)
11401
      # `set' does not quote correctly, so add quotes (double-quote
11402
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11403
      sed -n \
11404
        "s/'/'\\\\''/g;
11405
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11406
      ;;
11407
    *)
11408
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11409
      sed -n \
11410
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11411
      ;;
11412
    esac;
11413
} |
11414
  sed '
11415
     t clear
11416
     : clear
11417
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11418
     t end
11419
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11420
     : end' >>confcache
11421
if diff $cache_file confcache >/dev/null 2>&1; then :; else
11422
  if test -w $cache_file; then
11423
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11424
    cat confcache >$cache_file
11425
  else
11426
    echo "not updating unwritable cache $cache_file"
11427
  fi
11428
fi
11429
rm -f confcache
11430
 
11431
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11432
# Let make expand exec_prefix.
11433
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11434
 
11435
# VPATH may cause trouble with some makes, so we remove $(srcdir),
11436
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11437
# trailing colons and then remove the whole line if VPATH becomes empty
11438
# (actually we leave an empty line to preserve line numbers).
11439
if test "x$srcdir" = x.; then
11440
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11441
s/:*\$(srcdir):*/:/;
11442
s/:*\${srcdir}:*/:/;
11443
s/:*@srcdir@:*/:/;
11444
s/^\([^=]*=[     ]*\):*/\1/;
11445
s/:*$//;
11446
s/^[^=]*=[       ]*$//;
11447
}'
11448
fi
11449
 
11450
# Transform confdefs.h into DEFS.
11451
# Protect against shell expansion while executing Makefile rules.
11452
# Protect against Makefile macro expansion.
11453
#
11454
# If the first sed substitution is executed (which looks for macros that
11455
# take arguments), then we branch to the quote section.  Otherwise,
11456
# look for a macro that doesn't take arguments.
11457
cat >confdef2opt.sed <<\_ACEOF
11458
t clear
11459
: clear
11460
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
11461
t quote
11462
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
11463
t quote
11464
d
11465
: quote
11466
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
11467
s,\[,\\&,g
11468
s,\],\\&,g
11469
s,\$,$$,g
11470
p
11471
_ACEOF
11472
# We use echo to avoid assuming a particular line-breaking character.
11473
# The extra dot is to prevent the shell from consuming trailing
11474
# line-breaks from the sub-command output.  A line-break within
11475
# single-quotes doesn't work because, if this script is created in a
11476
# platform that uses two characters for line-breaks (e.g., DOS), tr
11477
# would break.
11478
ac_LF_and_DOT=`echo; echo .`
11479
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11480
rm -f confdef2opt.sed
11481
 
11482
 
11483
ac_libobjs=
11484
ac_ltlibobjs=
11485
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11486
  # 1. Remove the extension, and $U if already installed.
11487
  ac_i=`echo "$ac_i" |
11488
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11489
  # 2. Add them.
11490
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11491
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11492
done
11493
LIBOBJS=$ac_libobjs
11494
 
11495
LTLIBOBJS=$ac_ltlibobjs
11496
 
11497
 
11498
if test -z "${NEWLIB_HW_FP_TRUE}" && test -z "${NEWLIB_HW_FP_FALSE}"; then
11499
  { { echo "$as_me:$LINENO: error: conditional \"NEWLIB_HW_FP\" was never defined.
11500
Usually this means the macro was only invoked conditionally." >&5
11501
echo "$as_me: error: conditional \"NEWLIB_HW_FP\" was never defined.
11502
Usually this means the macro was only invoked conditionally." >&2;}
11503
   { (exit 1); exit 1; }; }
11504
fi
11505
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
11506
  { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11507
Usually this means the macro was only invoked conditionally." >&5
11508
echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11509
Usually this means the macro was only invoked conditionally." >&2;}
11510
   { (exit 1); exit 1; }; }
11511
fi
11512
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11513
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11514
Usually this means the macro was only invoked conditionally." >&5
11515
echo "$as_me: error: conditional \"AMDEP\" was never defined.
11516
Usually this means the macro was only invoked conditionally." >&2;}
11517
   { (exit 1); exit 1; }; }
11518
fi
11519
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11520
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11521
Usually this means the macro was only invoked conditionally." >&5
11522
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11523
Usually this means the macro was only invoked conditionally." >&2;}
11524
   { (exit 1); exit 1; }; }
11525
fi
11526
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11527
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11528
Usually this means the macro was only invoked conditionally." >&5
11529
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11530
Usually this means the macro was only invoked conditionally." >&2;}
11531
   { (exit 1); exit 1; }; }
11532
fi
11533
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
11534
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
11535
Usually this means the macro was only invoked conditionally." >&5
11536
echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
11537
Usually this means the macro was only invoked conditionally." >&2;}
11538
   { (exit 1); exit 1; }; }
11539
fi
11540
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
11541
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
11542
Usually this means the macro was only invoked conditionally." >&5
11543
echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
11544
Usually this means the macro was only invoked conditionally." >&2;}
11545
   { (exit 1); exit 1; }; }
11546
fi
11547
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
11548
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
11549
Usually this means the macro was only invoked conditionally." >&5
11550
echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
11551
Usually this means the macro was only invoked conditionally." >&2;}
11552
   { (exit 1); exit 1; }; }
11553
fi
11554
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
11555
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
11556
Usually this means the macro was only invoked conditionally." >&5
11557
echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
11558
Usually this means the macro was only invoked conditionally." >&2;}
11559
   { (exit 1); exit 1; }; }
11560
fi
11561
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
11562
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
11563
Usually this means the macro was only invoked conditionally." >&5
11564
echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
11565
Usually this means the macro was only invoked conditionally." >&2;}
11566
   { (exit 1); exit 1; }; }
11567
fi
11568
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
11569
  { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
11570
Usually this means the macro was only invoked conditionally." >&5
11571
echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
11572
Usually this means the macro was only invoked conditionally." >&2;}
11573
   { (exit 1); exit 1; }; }
11574
fi
11575
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11576
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11577
Usually this means the macro was only invoked conditionally." >&5
11578
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11579
Usually this means the macro was only invoked conditionally." >&2;}
11580
   { (exit 1); exit 1; }; }
11581
fi
11582
 
11583
: ${CONFIG_STATUS=./config.status}
11584
ac_clean_files_save=$ac_clean_files
11585
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11586
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11587
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11588
cat >$CONFIG_STATUS <<_ACEOF
11589
#! $SHELL
11590
# Generated by $as_me.
11591
# Run this file to recreate the current configuration.
11592
# Compiler output produced by configure, useful for debugging
11593
# configure, is in config.log if it exists.
11594
 
11595
debug=false
11596
ac_cs_recheck=false
11597
ac_cs_silent=false
11598
SHELL=\${CONFIG_SHELL-$SHELL}
11599
_ACEOF
11600
 
11601
cat >>$CONFIG_STATUS <<\_ACEOF
11602
## --------------------- ##
11603
## M4sh Initialization.  ##
11604
## --------------------- ##
11605
 
11606
# Be Bourne compatible
11607
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11608
  emulate sh
11609
  NULLCMD=:
11610
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11611
  # is contrary to our usage.  Disable this feature.
11612
  alias -g '${1+"$@"}'='"$@"'
11613
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11614
  set -o posix
11615
fi
11616
DUALCASE=1; export DUALCASE # for MKS sh
11617
 
11618
# Support unset when possible.
11619
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11620
  as_unset=unset
11621
else
11622
  as_unset=false
11623
fi
11624
 
11625
 
11626
# Work around bugs in pre-3.0 UWIN ksh.
11627
$as_unset ENV MAIL MAILPATH
11628
PS1='$ '
11629
PS2='> '
11630
PS4='+ '
11631
 
11632
# NLS nuisances.
11633
for as_var in \
11634
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11635
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11636
  LC_TELEPHONE LC_TIME
11637
do
11638
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11639
    eval $as_var=C; export $as_var
11640
  else
11641
    $as_unset $as_var
11642
  fi
11643
done
11644
 
11645
# Required to use basename.
11646
if expr a : '\(a\)' >/dev/null 2>&1; then
11647
  as_expr=expr
11648
else
11649
  as_expr=false
11650
fi
11651
 
11652
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11653
  as_basename=basename
11654
else
11655
  as_basename=false
11656
fi
11657
 
11658
 
11659
# Name of the executable.
11660
as_me=`$as_basename "$0" ||
11661
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11662
         X"$0" : 'X\(//\)$' \| \
11663
         X"$0" : 'X\(/\)$' \| \
11664
         .     : '\(.\)' 2>/dev/null ||
11665
echo X/"$0" |
11666
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11667
          /^X\/\(\/\/\)$/{ s//\1/; q; }
11668
          /^X\/\(\/\).*/{ s//\1/; q; }
11669
          s/.*/./; q'`
11670
 
11671
 
11672
# PATH needs CR, and LINENO needs CR and PATH.
11673
# Avoid depending upon Character Ranges.
11674
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11675
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11676
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11677
as_cr_digits='0123456789'
11678
as_cr_alnum=$as_cr_Letters$as_cr_digits
11679
 
11680
# The user is always right.
11681
if test "${PATH_SEPARATOR+set}" != set; then
11682
  echo "#! /bin/sh" >conf$$.sh
11683
  echo  "exit 0"   >>conf$$.sh
11684
  chmod +x conf$$.sh
11685
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11686
    PATH_SEPARATOR=';'
11687
  else
11688
    PATH_SEPARATOR=:
11689
  fi
11690
  rm -f conf$$.sh
11691
fi
11692
 
11693
 
11694
  as_lineno_1=$LINENO
11695
  as_lineno_2=$LINENO
11696
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11697
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11698
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11699
  # Find who we are.  Look in the path if we contain no path at all
11700
  # relative or not.
11701
  case $0 in
11702
    *[\\/]* ) as_myself=$0 ;;
11703
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704
for as_dir in $PATH
11705
do
11706
  IFS=$as_save_IFS
11707
  test -z "$as_dir" && as_dir=.
11708
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11709
done
11710
 
11711
       ;;
11712
  esac
11713
  # We did not find ourselves, most probably we were run as `sh COMMAND'
11714
  # in which case we are not to be found in the path.
11715
  if test "x$as_myself" = x; then
11716
    as_myself=$0
11717
  fi
11718
  if test ! -f "$as_myself"; then
11719
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11720
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11721
   { (exit 1); exit 1; }; }
11722
  fi
11723
  case $CONFIG_SHELL in
11724
  '')
11725
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11727
do
11728
  IFS=$as_save_IFS
11729
  test -z "$as_dir" && as_dir=.
11730
  for as_base in sh bash ksh sh5; do
11731
         case $as_dir in
11732
         /*)
11733
           if ("$as_dir/$as_base" -c '
11734
  as_lineno_1=$LINENO
11735
  as_lineno_2=$LINENO
11736
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11737
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11738
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11739
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11740
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11741
             CONFIG_SHELL=$as_dir/$as_base
11742
             export CONFIG_SHELL
11743
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11744
           fi;;
11745
         esac
11746
       done
11747
done
11748
;;
11749
  esac
11750
 
11751
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11752
  # uniformly replaced by the line number.  The first 'sed' inserts a
11753
  # line-number line before each line; the second 'sed' does the real
11754
  # work.  The second script uses 'N' to pair each line-number line
11755
  # with the numbered line, and appends trailing '-' during
11756
  # substitution so that $LINENO is not a special case at line end.
11757
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11758
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11759
  sed '=' <$as_myself |
11760
    sed '
11761
      N
11762
      s,$,-,
11763
      : loop
11764
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11765
      t loop
11766
      s,-$,,
11767
      s,^['$as_cr_digits']*\n,,
11768
    ' >$as_me.lineno &&
11769
  chmod +x $as_me.lineno ||
11770
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11771
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11772
   { (exit 1); exit 1; }; }
11773
 
11774
  # Don't try to exec as it changes $[0], causing all sort of problems
11775
  # (the dirname of $[0] is not the place where we might find the
11776
  # original and so on.  Autoconf is especially sensible to this).
11777
  . ./$as_me.lineno
11778
  # Exit status is that of the last command.
11779
  exit
11780
}
11781
 
11782
 
11783
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11784
  *c*,-n*) ECHO_N= ECHO_C='
11785
' ECHO_T='      ' ;;
11786
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11787
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11788
esac
11789
 
11790
if expr a : '\(a\)' >/dev/null 2>&1; then
11791
  as_expr=expr
11792
else
11793
  as_expr=false
11794
fi
11795
 
11796
rm -f conf$$ conf$$.exe conf$$.file
11797
echo >conf$$.file
11798
if ln -s conf$$.file conf$$ 2>/dev/null; then
11799
  # We could just check for DJGPP; but this test a) works b) is more generic
11800
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11801
  if test -f conf$$.exe; then
11802
    # Don't use ln at all; we don't have any links
11803
    as_ln_s='cp -p'
11804
  else
11805
    as_ln_s='ln -s'
11806
  fi
11807
elif ln conf$$.file conf$$ 2>/dev/null; then
11808
  as_ln_s=ln
11809
else
11810
  as_ln_s='cp -p'
11811
fi
11812
rm -f conf$$ conf$$.exe conf$$.file
11813
 
11814
if mkdir -p . 2>/dev/null; then
11815
  as_mkdir_p=:
11816
else
11817
  test -d ./-p && rmdir ./-p
11818
  as_mkdir_p=false
11819
fi
11820
 
11821
as_executable_p="test -f"
11822
 
11823
# Sed expression to map a string onto a valid CPP name.
11824
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11825
 
11826
# Sed expression to map a string onto a valid variable name.
11827
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11828
 
11829
 
11830
# IFS
11831
# We need space, tab and new line, in precisely that order.
11832
as_nl='
11833
'
11834
IFS="   $as_nl"
11835
 
11836
# CDPATH.
11837
$as_unset CDPATH
11838
 
11839
exec 6>&1
11840
 
11841
# Open the log real soon, to keep \$[0] and so on meaningful, and to
11842
# report actual input values of CONFIG_FILES etc. instead of their
11843
# values after options handling.  Logging --version etc. is OK.
11844
exec 5>>config.log
11845
{
11846
  echo
11847
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11848
## Running $as_me. ##
11849
_ASBOX
11850
} >&5
11851
cat >&5 <<_CSEOF
11852
 
11853
This file was extended by newlib $as_me 1.17.0, which was
11854
generated by GNU Autoconf 2.59.  Invocation command line was
11855
 
11856
  CONFIG_FILES    = $CONFIG_FILES
11857
  CONFIG_HEADERS  = $CONFIG_HEADERS
11858
  CONFIG_LINKS    = $CONFIG_LINKS
11859
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11860
  $ $0 $@
11861
 
11862
_CSEOF
11863
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11864
echo >&5
11865
_ACEOF
11866
 
11867
# Files that config.status was made for.
11868
if test -n "$ac_config_files"; then
11869
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11870
fi
11871
 
11872
if test -n "$ac_config_headers"; then
11873
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11874
fi
11875
 
11876
if test -n "$ac_config_links"; then
11877
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11878
fi
11879
 
11880
if test -n "$ac_config_commands"; then
11881
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11882
fi
11883
 
11884
cat >>$CONFIG_STATUS <<\_ACEOF
11885
 
11886
ac_cs_usage="\
11887
\`$as_me' instantiates files from templates according to the
11888
current configuration.
11889
 
11890
Usage: $0 [OPTIONS] [FILE]...
11891
 
11892
  -h, --help       print this help, then exit
11893
  -V, --version    print version number, then exit
11894
  -q, --quiet      do not print progress messages
11895
  -d, --debug      don't remove temporary files
11896
      --recheck    update $as_me by reconfiguring in the same conditions
11897
  --file=FILE[:TEMPLATE]
11898
                   instantiate the configuration file FILE
11899
 
11900
Configuration files:
11901
$config_files
11902
 
11903
Configuration commands:
11904
$config_commands
11905
 
11906
Report bugs to ."
11907
_ACEOF
11908
 
11909
cat >>$CONFIG_STATUS <<_ACEOF
11910
ac_cs_version="\\
11911
newlib config.status 1.17.0
11912
configured by $0, generated by GNU Autoconf 2.59,
11913
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11914
 
11915
Copyright (C) 2003 Free Software Foundation, Inc.
11916
This config.status script is free software; the Free Software Foundation
11917
gives unlimited permission to copy, distribute and modify it."
11918
srcdir=$srcdir
11919
INSTALL="$INSTALL"
11920
_ACEOF
11921
 
11922
cat >>$CONFIG_STATUS <<\_ACEOF
11923
# If no file are specified by the user, then we need to provide default
11924
# value.  By we need to know if files were specified by the user.
11925
ac_need_defaults=:
11926
while test $# != 0
11927
do
11928
  case $1 in
11929
  --*=*)
11930
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
11931
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11932
    ac_shift=:
11933
    ;;
11934
  -*)
11935
    ac_option=$1
11936
    ac_optarg=$2
11937
    ac_shift=shift
11938
    ;;
11939
  *) # This is not an option, so the user has probably given explicit
11940
     # arguments.
11941
     ac_option=$1
11942
     ac_need_defaults=false;;
11943
  esac
11944
 
11945
  case $ac_option in
11946
  # Handling of the options.
11947
_ACEOF
11948
cat >>$CONFIG_STATUS <<\_ACEOF
11949
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11950
    ac_cs_recheck=: ;;
11951
  --version | --vers* | -V )
11952
    echo "$ac_cs_version"; exit 0 ;;
11953
  --he | --h)
11954
    # Conflict between --help and --header
11955
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
11956
Try \`$0 --help' for more information." >&5
11957
echo "$as_me: error: ambiguous option: $1
11958
Try \`$0 --help' for more information." >&2;}
11959
   { (exit 1); exit 1; }; };;
11960
  --help | --hel | -h )
11961
    echo "$ac_cs_usage"; exit 0 ;;
11962
  --debug | --d* | -d )
11963
    debug=: ;;
11964
  --file | --fil | --fi | --f )
11965
    $ac_shift
11966
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11967
    ac_need_defaults=false;;
11968
  --header | --heade | --head | --hea )
11969
    $ac_shift
11970
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11971
    ac_need_defaults=false;;
11972
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11973
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11974
    ac_cs_silent=: ;;
11975
 
11976
  # This is an error.
11977
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11978
Try \`$0 --help' for more information." >&5
11979
echo "$as_me: error: unrecognized option: $1
11980
Try \`$0 --help' for more information." >&2;}
11981
   { (exit 1); exit 1; }; } ;;
11982
 
11983
  *) ac_config_targets="$ac_config_targets $1" ;;
11984
 
11985
  esac
11986
  shift
11987
done
11988
 
11989
ac_configure_extra_args=
11990
 
11991
if $ac_cs_silent; then
11992
  exec 6>/dev/null
11993
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11994
fi
11995
 
11996
_ACEOF
11997
cat >>$CONFIG_STATUS <<_ACEOF
11998
if \$ac_cs_recheck; then
11999
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12000
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12001
fi
12002
 
12003
_ACEOF
12004
 
12005
cat >>$CONFIG_STATUS <<_ACEOF
12006
#
12007
# INIT-COMMANDS section.
12008
#
12009
 
12010
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12011
 
12012
 
12013
# The HP-UX ksh and POSIX shell print the target directory to stdout
12014
# if CDPATH is set.
12015
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12016
 
12017
sed_quote_subst='$sed_quote_subst'
12018
double_quote_subst='$double_quote_subst'
12019
delay_variable_subst='$delay_variable_subst'
12020
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12021
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12022
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12023
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12024
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12025
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12026
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12027
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12028
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12029
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12030
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12031
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12032
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12033
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12034
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12035
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12036
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12037
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12038
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12039
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12040
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12041
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12042
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12043
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12044
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12045
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12046
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12047
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12048
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12049
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12050
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12051
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12052
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12053
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12054
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12055
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12056
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12057
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12058
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12059
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12060
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12061
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12062
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12063
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12064
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12065
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12066
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"`'
12067
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"`'
12068
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12069
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12070
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12071
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12072
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12073
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12074
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12075
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12076
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12077
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12078
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12079
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12080
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12081
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12082
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12083
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12084
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12085
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12086
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12087
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12088
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12089
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12090
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12091
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12092
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12093
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12094
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12095
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12096
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12097
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12098
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12099
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12100
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12101
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12102
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12103
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12104
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12105
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12106
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12107
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12108
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12109
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12110
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12111
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12112
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12113
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12114
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12115
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12116
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12117
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12118
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12119
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12120
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12121
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12122
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12123
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12124
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12125
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12126
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12127
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12128
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12129
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12130
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12131
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12132
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12133
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12134
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12135
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12136
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12137
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12138
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12139
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12140
 
12141
LTCC='$LTCC'
12142
LTCFLAGS='$LTCFLAGS'
12143
compiler='$compiler_DEFAULT'
12144
 
12145
# Quote evaled strings.
12146
for var in SED \
12147
GREP \
12148
EGREP \
12149
FGREP \
12150
LD \
12151
NM \
12152
LN_S \
12153
lt_SP2NL \
12154
lt_NL2SP \
12155
reload_flag \
12156
deplibs_check_method \
12157
file_magic_cmd \
12158
AR \
12159
AR_FLAGS \
12160
STRIP \
12161
RANLIB \
12162
CC \
12163
CFLAGS \
12164
compiler \
12165
lt_cv_sys_global_symbol_pipe \
12166
lt_cv_sys_global_symbol_to_cdecl \
12167
lt_cv_sys_global_symbol_to_c_name_address \
12168
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12169
SHELL \
12170
ECHO \
12171
lt_prog_compiler_no_builtin_flag \
12172
lt_prog_compiler_wl \
12173
lt_prog_compiler_pic \
12174
lt_prog_compiler_static \
12175
lt_cv_prog_compiler_c_o \
12176
need_locks \
12177
DSYMUTIL \
12178
NMEDIT \
12179
LIPO \
12180
OTOOL \
12181
OTOOL64 \
12182
shrext_cmds \
12183
export_dynamic_flag_spec \
12184
whole_archive_flag_spec \
12185
compiler_needs_object \
12186
with_gnu_ld \
12187
allow_undefined_flag \
12188
no_undefined_flag \
12189
hardcode_libdir_flag_spec \
12190
hardcode_libdir_flag_spec_ld \
12191
hardcode_libdir_separator \
12192
fix_srcfile_path \
12193
exclude_expsyms \
12194
include_expsyms \
12195
file_list_spec \
12196
variables_saved_for_relink \
12197
libname_spec \
12198
library_names_spec \
12199
soname_spec \
12200
finish_eval \
12201
old_striplib \
12202
striplib; do
12203
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12204
    *[\\\\\\\`\\"\\\$]*)
12205
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12206
      ;;
12207
    *)
12208
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12209
      ;;
12210
    esac
12211
done
12212
 
12213
# Double-quote double-evaled strings.
12214
for var in reload_cmds \
12215
old_postinstall_cmds \
12216
old_postuninstall_cmds \
12217
old_archive_cmds \
12218
extract_expsyms_cmds \
12219
old_archive_from_new_cmds \
12220
old_archive_from_expsyms_cmds \
12221
archive_cmds \
12222
archive_expsym_cmds \
12223
module_cmds \
12224
module_expsym_cmds \
12225
export_symbols_cmds \
12226
prelink_cmds \
12227
postinstall_cmds \
12228
postuninstall_cmds \
12229
finish_cmds \
12230
sys_lib_search_path_spec \
12231
sys_lib_dlsearch_path_spec; do
12232
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12233
    *[\\\\\\\`\\"\\\$]*)
12234
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12235
      ;;
12236
    *)
12237
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12238
      ;;
12239
    esac
12240
done
12241
 
12242
# Fix-up fallback echo if it was mangled by the above quoting rules.
12243
case \$lt_ECHO in
12244
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12245
  ;;
12246
esac
12247
 
12248
ac_aux_dir='$ac_aux_dir'
12249
xsi_shell='$xsi_shell'
12250
lt_shell_append='$lt_shell_append'
12251
 
12252
# See if we are running on zsh, and set the options which allow our
12253
# commands through without removal of \ escapes INIT.
12254
if test -n "\${ZSH_VERSION+set}" ; then
12255
   setopt NO_GLOB_SUBST
12256
fi
12257
 
12258
 
12259
    PACKAGE='$PACKAGE'
12260
    VERSION='$VERSION'
12261
    TIMESTAMP='$TIMESTAMP'
12262
    RM='$RM'
12263
    ofile='$ofile'
12264
 
12265
 
12266
 
12267
 
12268
_ACEOF
12269
 
12270
 
12271
 
12272
cat >>$CONFIG_STATUS <<\_ACEOF
12273
for ac_config_target in $ac_config_targets
12274
do
12275
  case "$ac_config_target" in
12276
  # Handling of arguments.
12277
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12278
  "math/Makefile" ) CONFIG_FILES="$CONFIG_FILES math/Makefile" ;;
12279
  "mathfp/Makefile" ) CONFIG_FILES="$CONFIG_FILES mathfp/Makefile" ;;
12280
  "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
12281
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12282
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12283
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12284
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12285
   { (exit 1); exit 1; }; };;
12286
  esac
12287
done
12288
 
12289
# If the user did not use the arguments to specify the items to instantiate,
12290
# then the envvar interface is used.  Set only those that are not.
12291
# We use the long form for the default assignment because of an extremely
12292
# bizarre bug on SunOS 4.1.3.
12293
if $ac_need_defaults; then
12294
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12295
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12296
fi
12297
 
12298
# Have a temporary directory for convenience.  Make it in the build tree
12299
# simply because there is no reason to put it here, and in addition,
12300
# creating and moving files from /tmp can sometimes cause problems.
12301
# Create a temporary directory, and hook for its removal unless debugging.
12302
$debug ||
12303
{
12304
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12305
  trap '{ (exit 1); exit 1; }' 1 2 13 15
12306
}
12307
 
12308
# Create a (secure) tmp directory for tmp files.
12309
 
12310
{
12311
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12312
  test -n "$tmp" && test -d "$tmp"
12313
}  ||
12314
{
12315
  tmp=./confstat$$-$RANDOM
12316
  (umask 077 && mkdir $tmp)
12317
} ||
12318
{
12319
   echo "$me: cannot create a temporary directory in ." >&2
12320
   { (exit 1); exit 1; }
12321
}
12322
 
12323
_ACEOF
12324
 
12325
cat >>$CONFIG_STATUS <<_ACEOF
12326
 
12327
#
12328
# CONFIG_FILES section.
12329
#
12330
 
12331
# No need to generate the scripts if there are no CONFIG_FILES.
12332
# This happens for instance when ./config.status config.h
12333
if test -n "\$CONFIG_FILES"; then
12334
  # Protect against being on the right side of a sed subst in config.status.
12335
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12336
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12337
s,@SHELL@,$SHELL,;t t
12338
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12339
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12340
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12341
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12342
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12343
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12344
s,@exec_prefix@,$exec_prefix,;t t
12345
s,@prefix@,$prefix,;t t
12346
s,@program_transform_name@,$program_transform_name,;t t
12347
s,@bindir@,$bindir,;t t
12348
s,@sbindir@,$sbindir,;t t
12349
s,@libexecdir@,$libexecdir,;t t
12350
s,@datadir@,$datadir,;t t
12351
s,@sysconfdir@,$sysconfdir,;t t
12352
s,@sharedstatedir@,$sharedstatedir,;t t
12353
s,@localstatedir@,$localstatedir,;t t
12354
s,@libdir@,$libdir,;t t
12355
s,@includedir@,$includedir,;t t
12356
s,@oldincludedir@,$oldincludedir,;t t
12357
s,@infodir@,$infodir,;t t
12358
s,@mandir@,$mandir,;t t
12359
s,@build_alias@,$build_alias,;t t
12360
s,@host_alias@,$host_alias,;t t
12361
s,@target_alias@,$target_alias,;t t
12362
s,@DEFS@,$DEFS,;t t
12363
s,@ECHO_C@,$ECHO_C,;t t
12364
s,@ECHO_N@,$ECHO_N,;t t
12365
s,@ECHO_T@,$ECHO_T,;t t
12366
s,@LIBS@,$LIBS,;t t
12367
s,@NEWLIB_HW_FP_TRUE@,$NEWLIB_HW_FP_TRUE,;t t
12368
s,@NEWLIB_HW_FP_FALSE@,$NEWLIB_HW_FP_FALSE,;t t
12369
s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t
12370
s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t
12371
s,@newlib_basedir@,$newlib_basedir,;t t
12372
s,@build@,$build,;t t
12373
s,@build_cpu@,$build_cpu,;t t
12374
s,@build_vendor@,$build_vendor,;t t
12375
s,@build_os@,$build_os,;t t
12376
s,@host@,$host,;t t
12377
s,@host_cpu@,$host_cpu,;t t
12378
s,@host_vendor@,$host_vendor,;t t
12379
s,@host_os@,$host_os,;t t
12380
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12381
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12382
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12383
s,@CYGPATH_W@,$CYGPATH_W,;t t
12384
s,@PACKAGE@,$PACKAGE,;t t
12385
s,@VERSION@,$VERSION,;t t
12386
s,@ACLOCAL@,$ACLOCAL,;t t
12387
s,@AUTOCONF@,$AUTOCONF,;t t
12388
s,@AUTOMAKE@,$AUTOMAKE,;t t
12389
s,@AUTOHEADER@,$AUTOHEADER,;t t
12390
s,@MAKEINFO@,$MAKEINFO,;t t
12391
s,@install_sh@,$install_sh,;t t
12392
s,@STRIP@,$STRIP,;t t
12393
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12394
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12395
s,@mkdir_p@,$mkdir_p,;t t
12396
s,@AWK@,$AWK,;t t
12397
s,@SET_MAKE@,$SET_MAKE,;t t
12398
s,@am__leading_dot@,$am__leading_dot,;t t
12399
s,@AMTAR@,$AMTAR,;t t
12400
s,@am__tar@,$am__tar,;t t
12401
s,@am__untar@,$am__untar,;t t
12402
s,@CC@,$CC,;t t
12403
s,@DEPDIR@,$DEPDIR,;t t
12404
s,@am__include@,$am__include,;t t
12405
s,@am__quote@,$am__quote,;t t
12406
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12407
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12408
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12409
s,@CCDEPMODE@,$CCDEPMODE,;t t
12410
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12411
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12412
s,@AS@,$AS,;t t
12413
s,@ac_ct_AS@,$ac_ct_AS,;t t
12414
s,@AR@,$AR,;t t
12415
s,@ac_ct_AR@,$ac_ct_AR,;t t
12416
s,@RANLIB@,$RANLIB,;t t
12417
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12418
s,@READELF@,$READELF,;t t
12419
s,@ac_ct_READELF@,$ac_ct_READELF,;t t
12420
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12421
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12422
s,@MAINT@,$MAINT,;t t
12423
s,@CCAS@,$CCAS,;t t
12424
s,@CCASFLAGS@,$CCASFLAGS,;t t
12425
s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t
12426
s,@LDFLAGS@,$LDFLAGS,;t t
12427
s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t
12428
s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t
12429
s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t
12430
s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t
12431
s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t
12432
s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t
12433
s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t
12434
s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t
12435
s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t
12436
s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t
12437
s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t
12438
s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t
12439
s,@OBJEXT@,$OBJEXT,;t t
12440
s,@oext@,$oext,;t t
12441
s,@aext@,$aext,;t t
12442
s,@lpfx@,$lpfx,;t t
12443
s,@libm_machine_dir@,$libm_machine_dir,;t t
12444
s,@machine_dir@,$machine_dir,;t t
12445
s,@sys_dir@,$sys_dir,;t t
12446
s,@SED@,$SED,;t t
12447
s,@DLLTOOL@,$DLLTOOL,;t t
12448
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
12449
s,@OBJDUMP@,$OBJDUMP,;t t
12450
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
12451
s,@LIBTOOL@,$LIBTOOL,;t t
12452
s,@CFLAGS@,$CFLAGS,;t t
12453
s,@CPPFLAGS@,$CPPFLAGS,;t t
12454
s,@ac_ct_CC@,$ac_ct_CC,;t t
12455
s,@EXEEXT@,$EXEEXT,;t t
12456
s,@EGREP@,$EGREP,;t t
12457
s,@FGREP@,$FGREP,;t t
12458
s,@GREP@,$GREP,;t t
12459
s,@LD@,$LD,;t t
12460
s,@DUMPBIN@,$DUMPBIN,;t t
12461
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12462
s,@NM@,$NM,;t t
12463
s,@LN_S@,$LN_S,;t t
12464
s,@lt_ECHO@,$lt_ECHO,;t t
12465
s,@DSYMUTIL@,$DSYMUTIL,;t t
12466
s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12467
s,@NMEDIT@,$NMEDIT,;t t
12468
s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12469
s,@LIPO@,$LIPO,;t t
12470
s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12471
s,@OTOOL@,$OTOOL,;t t
12472
s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12473
s,@OTOOL64@,$OTOOL64,;t t
12474
s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
12475
s,@CPP@,$CPP,;t t
12476
s,@subdirs@,$subdirs,;t t
12477
s,@LIBM_MACHINE_LIB@,$LIBM_MACHINE_LIB,;t t
12478
s,@LIBOBJS@,$LIBOBJS,;t t
12479
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12480
CEOF
12481
 
12482
_ACEOF
12483
 
12484
  cat >>$CONFIG_STATUS <<\_ACEOF
12485
  # Split the substitutions into bite-sized pieces for seds with
12486
  # small command number limits, like on Digital OSF/1 and HP-UX.
12487
  ac_max_sed_lines=48
12488
  ac_sed_frag=1 # Number of current file.
12489
  ac_beg=1 # First line for current file.
12490
  ac_end=$ac_max_sed_lines # Line after last line for current file.
12491
  ac_more_lines=:
12492
  ac_sed_cmds=
12493
  while $ac_more_lines; do
12494
    if test $ac_beg -gt 1; then
12495
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12496
    else
12497
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12498
    fi
12499
    if test ! -s $tmp/subs.frag; then
12500
      ac_more_lines=false
12501
    else
12502
      # The purpose of the label and of the branching condition is to
12503
      # speed up the sed processing (if there are no `@' at all, there
12504
      # is no need to browse any of the substitutions).
12505
      # These are the two extra sed commands mentioned above.
12506
      (echo ':t
12507
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12508
      if test -z "$ac_sed_cmds"; then
12509
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12510
      else
12511
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12512
      fi
12513
      ac_sed_frag=`expr $ac_sed_frag + 1`
12514
      ac_beg=$ac_end
12515
      ac_end=`expr $ac_end + $ac_max_sed_lines`
12516
    fi
12517
  done
12518
  if test -z "$ac_sed_cmds"; then
12519
    ac_sed_cmds=cat
12520
  fi
12521
fi # test -n "$CONFIG_FILES"
12522
 
12523
_ACEOF
12524
cat >>$CONFIG_STATUS <<\_ACEOF
12525
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12526
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12527
  case $ac_file in
12528
  - | *:- | *:-:* ) # input from stdin
12529
        cat >$tmp/stdin
12530
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12531
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12532
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12533
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12534
  * )   ac_file_in=$ac_file.in ;;
12535
  esac
12536
 
12537
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12538
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12539
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12540
         X"$ac_file" : 'X\(//\)[^/]' \| \
12541
         X"$ac_file" : 'X\(//\)$' \| \
12542
         X"$ac_file" : 'X\(/\)' \| \
12543
         .     : '\(.\)' 2>/dev/null ||
12544
echo X"$ac_file" |
12545
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12546
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12547
          /^X\(\/\/\)$/{ s//\1/; q; }
12548
          /^X\(\/\).*/{ s//\1/; q; }
12549
          s/.*/./; q'`
12550
  { if $as_mkdir_p; then
12551
    mkdir -p "$ac_dir"
12552
  else
12553
    as_dir="$ac_dir"
12554
    as_dirs=
12555
    while test ! -d "$as_dir"; do
12556
      as_dirs="$as_dir $as_dirs"
12557
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12558
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12559
         X"$as_dir" : 'X\(//\)[^/]' \| \
12560
         X"$as_dir" : 'X\(//\)$' \| \
12561
         X"$as_dir" : 'X\(/\)' \| \
12562
         .     : '\(.\)' 2>/dev/null ||
12563
echo X"$as_dir" |
12564
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12565
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12566
          /^X\(\/\/\)$/{ s//\1/; q; }
12567
          /^X\(\/\).*/{ s//\1/; q; }
12568
          s/.*/./; q'`
12569
    done
12570
    test ! -n "$as_dirs" || mkdir $as_dirs
12571
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12572
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12573
   { (exit 1); exit 1; }; }; }
12574
 
12575
  ac_builddir=.
12576
 
12577
if test "$ac_dir" != .; then
12578
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12579
  # A "../" for each directory in $ac_dir_suffix.
12580
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12581
else
12582
  ac_dir_suffix= ac_top_builddir=
12583
fi
12584
 
12585
case $srcdir in
12586
  .)  # No --srcdir option.  We are building in place.
12587
    ac_srcdir=.
12588
    if test -z "$ac_top_builddir"; then
12589
       ac_top_srcdir=.
12590
    else
12591
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12592
    fi ;;
12593
  [\\/]* | ?:[\\/]* )  # Absolute path.
12594
    ac_srcdir=$srcdir$ac_dir_suffix;
12595
    ac_top_srcdir=$srcdir ;;
12596
  *) # Relative path.
12597
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12598
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12599
esac
12600
 
12601
# Do not use `cd foo && pwd` to compute absolute paths, because
12602
# the directories may not exist.
12603
case `pwd` in
12604
.) ac_abs_builddir="$ac_dir";;
12605
*)
12606
  case "$ac_dir" in
12607
  .) ac_abs_builddir=`pwd`;;
12608
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12609
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12610
  esac;;
12611
esac
12612
case $ac_abs_builddir in
12613
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12614
*)
12615
  case ${ac_top_builddir}. in
12616
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12617
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12618
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12619
  esac;;
12620
esac
12621
case $ac_abs_builddir in
12622
.) ac_abs_srcdir=$ac_srcdir;;
12623
*)
12624
  case $ac_srcdir in
12625
  .) ac_abs_srcdir=$ac_abs_builddir;;
12626
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12627
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12628
  esac;;
12629
esac
12630
case $ac_abs_builddir in
12631
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12632
*)
12633
  case $ac_top_srcdir in
12634
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12635
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12636
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12637
  esac;;
12638
esac
12639
 
12640
 
12641
  case $INSTALL in
12642
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12643
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12644
  esac
12645
 
12646
  if test x"$ac_file" != x-; then
12647
    { echo "$as_me:$LINENO: creating $ac_file" >&5
12648
echo "$as_me: creating $ac_file" >&6;}
12649
    rm -f "$ac_file"
12650
  fi
12651
  # Let's still pretend it is `configure' which instantiates (i.e., don't
12652
  # use $as_me), people would be surprised to read:
12653
  #    /* config.h.  Generated by config.status.  */
12654
  if test x"$ac_file" = x-; then
12655
    configure_input=
12656
  else
12657
    configure_input="$ac_file.  "
12658
  fi
12659
  configure_input=$configure_input"Generated from `echo $ac_file_in |
12660
                                     sed 's,.*/,,'` by configure."
12661
 
12662
  # First look for the input files in the build tree, otherwise in the
12663
  # src tree.
12664
  ac_file_inputs=`IFS=:
12665
    for f in $ac_file_in; do
12666
      case $f in
12667
      -) echo $tmp/stdin ;;
12668
      [\\/$]*)
12669
         # Absolute (can't be DOS-style, as IFS=:)
12670
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12671
echo "$as_me: error: cannot find input file: $f" >&2;}
12672
   { (exit 1); exit 1; }; }
12673
         echo "$f";;
12674
      *) # Relative
12675
         if test -f "$f"; then
12676
           # Build tree
12677
           echo "$f"
12678
         elif test -f "$srcdir/$f"; then
12679
           # Source tree
12680
           echo "$srcdir/$f"
12681
         else
12682
           # /dev/null tree
12683
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12684
echo "$as_me: error: cannot find input file: $f" >&2;}
12685
   { (exit 1); exit 1; }; }
12686
         fi;;
12687
      esac
12688
    done` || { (exit 1); exit 1; }
12689
_ACEOF
12690
cat >>$CONFIG_STATUS <<_ACEOF
12691
  sed "$ac_vpsub
12692
$extrasub
12693
_ACEOF
12694
cat >>$CONFIG_STATUS <<\_ACEOF
12695
:t
12696
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12697
s,@configure_input@,$configure_input,;t t
12698
s,@srcdir@,$ac_srcdir,;t t
12699
s,@abs_srcdir@,$ac_abs_srcdir,;t t
12700
s,@top_srcdir@,$ac_top_srcdir,;t t
12701
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12702
s,@builddir@,$ac_builddir,;t t
12703
s,@abs_builddir@,$ac_abs_builddir,;t t
12704
s,@top_builddir@,$ac_top_builddir,;t t
12705
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12706
s,@INSTALL@,$ac_INSTALL,;t t
12707
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12708
  rm -f $tmp/stdin
12709
  if test x"$ac_file" != x-; then
12710
    mv $tmp/out $ac_file
12711
  else
12712
    cat $tmp/out
12713
    rm -f $tmp/out
12714
  fi
12715
 
12716
done
12717
_ACEOF
12718
cat >>$CONFIG_STATUS <<\_ACEOF
12719
 
12720
#
12721
# CONFIG_COMMANDS section.
12722
#
12723
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12724
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12725
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12726
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12727
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12728
         X"$ac_dest" : 'X\(//\)[^/]' \| \
12729
         X"$ac_dest" : 'X\(//\)$' \| \
12730
         X"$ac_dest" : 'X\(/\)' \| \
12731
         .     : '\(.\)' 2>/dev/null ||
12732
echo X"$ac_dest" |
12733
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12734
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12735
          /^X\(\/\/\)$/{ s//\1/; q; }
12736
          /^X\(\/\).*/{ s//\1/; q; }
12737
          s/.*/./; q'`
12738
  { if $as_mkdir_p; then
12739
    mkdir -p "$ac_dir"
12740
  else
12741
    as_dir="$ac_dir"
12742
    as_dirs=
12743
    while test ! -d "$as_dir"; do
12744
      as_dirs="$as_dir $as_dirs"
12745
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12746
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12747
         X"$as_dir" : 'X\(//\)[^/]' \| \
12748
         X"$as_dir" : 'X\(//\)$' \| \
12749
         X"$as_dir" : 'X\(/\)' \| \
12750
         .     : '\(.\)' 2>/dev/null ||
12751
echo X"$as_dir" |
12752
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12753
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12754
          /^X\(\/\/\)$/{ s//\1/; q; }
12755
          /^X\(\/\).*/{ s//\1/; q; }
12756
          s/.*/./; q'`
12757
    done
12758
    test ! -n "$as_dirs" || mkdir $as_dirs
12759
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12760
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12761
   { (exit 1); exit 1; }; }; }
12762
 
12763
  ac_builddir=.
12764
 
12765
if test "$ac_dir" != .; then
12766
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12767
  # A "../" for each directory in $ac_dir_suffix.
12768
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12769
else
12770
  ac_dir_suffix= ac_top_builddir=
12771
fi
12772
 
12773
case $srcdir in
12774
  .)  # No --srcdir option.  We are building in place.
12775
    ac_srcdir=.
12776
    if test -z "$ac_top_builddir"; then
12777
       ac_top_srcdir=.
12778
    else
12779
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12780
    fi ;;
12781
  [\\/]* | ?:[\\/]* )  # Absolute path.
12782
    ac_srcdir=$srcdir$ac_dir_suffix;
12783
    ac_top_srcdir=$srcdir ;;
12784
  *) # Relative path.
12785
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12786
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12787
esac
12788
 
12789
# Do not use `cd foo && pwd` to compute absolute paths, because
12790
# the directories may not exist.
12791
case `pwd` in
12792
.) ac_abs_builddir="$ac_dir";;
12793
*)
12794
  case "$ac_dir" in
12795
  .) ac_abs_builddir=`pwd`;;
12796
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12797
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12798
  esac;;
12799
esac
12800
case $ac_abs_builddir in
12801
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12802
*)
12803
  case ${ac_top_builddir}. in
12804
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12805
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12806
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12807
  esac;;
12808
esac
12809
case $ac_abs_builddir in
12810
.) ac_abs_srcdir=$ac_srcdir;;
12811
*)
12812
  case $ac_srcdir in
12813
  .) ac_abs_srcdir=$ac_abs_builddir;;
12814
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12815
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12816
  esac;;
12817
esac
12818
case $ac_abs_builddir in
12819
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12820
*)
12821
  case $ac_top_srcdir in
12822
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12823
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12824
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12825
  esac;;
12826
esac
12827
 
12828
 
12829
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12830
echo "$as_me: executing $ac_dest commands" >&6;}
12831
  case $ac_dest in
12832
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12833
  # Strip MF so we end up with the name of the file.
12834
  mf=`echo "$mf" | sed -e 's/:.*$//'`
12835
  # Check whether this is an Automake generated Makefile or not.
12836
  # We used to match only the files named `Makefile.in', but
12837
  # some people rename them; so instead we look at the file content.
12838
  # Grep'ing the first line is not enough: some people post-process
12839
  # each Makefile.in and add a new line on top of each file to say so.
12840
  # So let's grep whole file.
12841
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12842
    dirpart=`(dirname "$mf") 2>/dev/null ||
12843
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12844
         X"$mf" : 'X\(//\)[^/]' \| \
12845
         X"$mf" : 'X\(//\)$' \| \
12846
         X"$mf" : 'X\(/\)' \| \
12847
         .     : '\(.\)' 2>/dev/null ||
12848
echo X"$mf" |
12849
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12850
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12851
          /^X\(\/\/\)$/{ s//\1/; q; }
12852
          /^X\(\/\).*/{ s//\1/; q; }
12853
          s/.*/./; q'`
12854
  else
12855
    continue
12856
  fi
12857
  # Extract the definition of DEPDIR, am__include, and am__quote
12858
  # from the Makefile without running `make'.
12859
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12860
  test -z "$DEPDIR" && continue
12861
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
12862
  test -z "am__include" && continue
12863
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12864
  # When using ansi2knr, U may be empty or an underscore; expand it
12865
  U=`sed -n 's/^U = //p' < "$mf"`
12866
  # Find all dependency output files, they are included files with
12867
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
12868
  # simplest approach to changing $(DEPDIR) to its actual value in the
12869
  # expansion.
12870
  for file in `sed -n "
12871
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12872
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12873
    # Make sure the directory exists.
12874
    test -f "$dirpart/$file" && continue
12875
    fdir=`(dirname "$file") 2>/dev/null ||
12876
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12877
         X"$file" : 'X\(//\)[^/]' \| \
12878
         X"$file" : 'X\(//\)$' \| \
12879
         X"$file" : 'X\(/\)' \| \
12880
         .     : '\(.\)' 2>/dev/null ||
12881
echo X"$file" |
12882
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12883
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12884
          /^X\(\/\/\)$/{ s//\1/; q; }
12885
          /^X\(\/\).*/{ s//\1/; q; }
12886
          s/.*/./; q'`
12887
    { if $as_mkdir_p; then
12888
    mkdir -p $dirpart/$fdir
12889
  else
12890
    as_dir=$dirpart/$fdir
12891
    as_dirs=
12892
    while test ! -d "$as_dir"; do
12893
      as_dirs="$as_dir $as_dirs"
12894
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12895
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12896
         X"$as_dir" : 'X\(//\)[^/]' \| \
12897
         X"$as_dir" : 'X\(//\)$' \| \
12898
         X"$as_dir" : 'X\(/\)' \| \
12899
         .     : '\(.\)' 2>/dev/null ||
12900
echo X"$as_dir" |
12901
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12902
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12903
          /^X\(\/\/\)$/{ s//\1/; q; }
12904
          /^X\(\/\).*/{ s//\1/; q; }
12905
          s/.*/./; q'`
12906
    done
12907
    test ! -n "$as_dirs" || mkdir $as_dirs
12908
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12909
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12910
   { (exit 1); exit 1; }; }; }
12911
 
12912
    # echo "creating $dirpart/$file"
12913
    echo '# dummy' > "$dirpart/$file"
12914
  done
12915
done
12916
 ;;
12917
    libtool )
12918
 
12919
    # See if we are running on zsh, and set the options which allow our
12920
    # commands through without removal of \ escapes.
12921
    if test -n "${ZSH_VERSION+set}" ; then
12922
      setopt NO_GLOB_SUBST
12923
    fi
12924
 
12925
    cfgfile="${ofile}T"
12926
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12927
    $RM "$cfgfile"
12928
 
12929
    cat <<_LT_EOF >> "$cfgfile"
12930
#! $SHELL
12931
 
12932
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12933
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12934
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12935
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12936
#
12937
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12938
#                 2006, 2007, 2008 Free Software Foundation, Inc.
12939
#   Written by Gordon Matzigkeit, 1996
12940
#
12941
#   This file is part of GNU Libtool.
12942
#
12943
# GNU Libtool is free software; you can redistribute it and/or
12944
# modify it under the terms of the GNU General Public License as
12945
# published by the Free Software Foundation; either version 2 of
12946
# the License, or (at your option) any later version.
12947
#
12948
# As a special exception to the GNU General Public License,
12949
# if you distribute this file as part of a program or library that
12950
# is built using GNU Libtool, you may include this file under the
12951
# same distribution terms that you use for the rest of that program.
12952
#
12953
# GNU Libtool is distributed in the hope that it will be useful,
12954
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12955
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12956
# GNU General Public License for more details.
12957
#
12958
# You should have received a copy of the GNU General Public License
12959
# along with GNU Libtool; see the file COPYING.  If not, a copy
12960
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12961
# obtained by writing to the Free Software Foundation, Inc.,
12962
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12963
 
12964
 
12965
# The names of the tagged configurations supported by this script.
12966
available_tags=""
12967
 
12968
# ### BEGIN LIBTOOL CONFIG
12969
 
12970
# A sed program that does not truncate output.
12971
SED=$lt_SED
12972
 
12973
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12974
Xsed="\$SED -e 1s/^X//"
12975
 
12976
# Assembler program.
12977
AS=$AS
12978
 
12979
# DLL creation program.
12980
DLLTOOL=$DLLTOOL
12981
 
12982
# Object dumper program.
12983
OBJDUMP=$OBJDUMP
12984
 
12985
# Which release of libtool.m4 was used?
12986
macro_version=$macro_version
12987
macro_revision=$macro_revision
12988
 
12989
# Whether or not to build shared libraries.
12990
build_libtool_libs=$enable_shared
12991
 
12992
# Whether or not to build static libraries.
12993
build_old_libs=$enable_static
12994
 
12995
# What type of objects to build.
12996
pic_mode=$pic_mode
12997
 
12998
# Whether or not to optimize for fast installation.
12999
fast_install=$enable_fast_install
13000
 
13001
# The host system.
13002
host_alias=$host_alias
13003
host=$host
13004
host_os=$host_os
13005
 
13006
# The build system.
13007
build_alias=$build_alias
13008
build=$build
13009
build_os=$build_os
13010
 
13011
# A grep program that handles long lines.
13012
GREP=$lt_GREP
13013
 
13014
# An ERE matcher.
13015
EGREP=$lt_EGREP
13016
 
13017
# A literal string matcher.
13018
FGREP=$lt_FGREP
13019
 
13020
# A BSD- or MS-compatible name lister.
13021
NM=$lt_NM
13022
 
13023
# Whether we need soft or hard links.
13024
LN_S=$lt_LN_S
13025
 
13026
# What is the maximum length of a command?
13027
max_cmd_len=$max_cmd_len
13028
 
13029
# Object file suffix (normally "o").
13030
objext=$ac_objext
13031
 
13032
# Executable file suffix (normally "").
13033
exeext=$exeext
13034
 
13035
# whether the shell understands "unset".
13036
lt_unset=$lt_unset
13037
 
13038
# turn spaces into newlines.
13039
SP2NL=$lt_lt_SP2NL
13040
 
13041
# turn newlines into spaces.
13042
NL2SP=$lt_lt_NL2SP
13043
 
13044
# How to create reloadable object files.
13045
reload_flag=$lt_reload_flag
13046
reload_cmds=$lt_reload_cmds
13047
 
13048
# Method to check whether dependent libraries are shared objects.
13049
deplibs_check_method=$lt_deplibs_check_method
13050
 
13051
# Command to use when deplibs_check_method == "file_magic".
13052
file_magic_cmd=$lt_file_magic_cmd
13053
 
13054
# The archiver.
13055
AR=$lt_AR
13056
AR_FLAGS=$lt_AR_FLAGS
13057
 
13058
# A symbol stripping program.
13059
STRIP=$lt_STRIP
13060
 
13061
# Commands used to install an old-style archive.
13062
RANLIB=$lt_RANLIB
13063
old_postinstall_cmds=$lt_old_postinstall_cmds
13064
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13065
 
13066
# A C compiler.
13067
LTCC=$lt_CC
13068
 
13069
# LTCC compiler flags.
13070
LTCFLAGS=$lt_CFLAGS
13071
 
13072
# Take the output of nm and produce a listing of raw symbols and C names.
13073
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13074
 
13075
# Transform the output of nm in a proper C declaration.
13076
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13077
 
13078
# Transform the output of nm in a C name address pair.
13079
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13080
 
13081
# Transform the output of nm in a C name address pair when lib prefix is needed.
13082
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13083
 
13084
# The name of the directory that contains temporary libtool files.
13085
objdir=$objdir
13086
 
13087
# Shell to use when invoking shell scripts.
13088
SHELL=$lt_SHELL
13089
 
13090
# An echo program that does not interpret backslashes.
13091
ECHO=$lt_ECHO
13092
 
13093
# Used to examine libraries when file_magic_cmd begins with "file".
13094
MAGIC_CMD=$MAGIC_CMD
13095
 
13096
# Must we lock files when doing compilation?
13097
need_locks=$lt_need_locks
13098
 
13099
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13100
DSYMUTIL=$lt_DSYMUTIL
13101
 
13102
# Tool to change global to local symbols on Mac OS X.
13103
NMEDIT=$lt_NMEDIT
13104
 
13105
# Tool to manipulate fat objects and archives on Mac OS X.
13106
LIPO=$lt_LIPO
13107
 
13108
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13109
OTOOL=$lt_OTOOL
13110
 
13111
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13112
OTOOL64=$lt_OTOOL64
13113
 
13114
# Old archive suffix (normally "a").
13115
libext=$libext
13116
 
13117
# Shared library suffix (normally ".so").
13118
shrext_cmds=$lt_shrext_cmds
13119
 
13120
# The commands to extract the exported symbol list from a shared archive.
13121
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13122
 
13123
# Variables whose values should be saved in libtool wrapper scripts and
13124
# restored at link time.
13125
variables_saved_for_relink=$lt_variables_saved_for_relink
13126
 
13127
# Do we need the "lib" prefix for modules?
13128
need_lib_prefix=$need_lib_prefix
13129
 
13130
# Do we need a version for libraries?
13131
need_version=$need_version
13132
 
13133
# Library versioning type.
13134
version_type=$version_type
13135
 
13136
# Shared library runtime path variable.
13137
runpath_var=$runpath_var
13138
 
13139
# Shared library path variable.
13140
shlibpath_var=$shlibpath_var
13141
 
13142
# Is shlibpath searched before the hard-coded library search path?
13143
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13144
 
13145
# Format of library name prefix.
13146
libname_spec=$lt_libname_spec
13147
 
13148
# List of archive names.  First name is the real one, the rest are links.
13149
# The last name is the one that the linker finds with -lNAME
13150
library_names_spec=$lt_library_names_spec
13151
 
13152
# The coded name of the library, if different from the real name.
13153
soname_spec=$lt_soname_spec
13154
 
13155
# Command to use after installation of a shared archive.
13156
postinstall_cmds=$lt_postinstall_cmds
13157
 
13158
# Command to use after uninstallation of a shared archive.
13159
postuninstall_cmds=$lt_postuninstall_cmds
13160
 
13161
# Commands used to finish a libtool library installation in a directory.
13162
finish_cmds=$lt_finish_cmds
13163
 
13164
# As "finish_cmds", except a single script fragment to be evaled but
13165
# not shown.
13166
finish_eval=$lt_finish_eval
13167
 
13168
# Whether we should hardcode library paths into libraries.
13169
hardcode_into_libs=$hardcode_into_libs
13170
 
13171
# Compile-time system search path for libraries.
13172
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13173
 
13174
# Run-time system search path for libraries.
13175
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13176
 
13177
# Whether dlopen is supported.
13178
dlopen_support=$enable_dlopen
13179
 
13180
# Whether dlopen of programs is supported.
13181
dlopen_self=$enable_dlopen_self
13182
 
13183
# Whether dlopen of statically linked programs is supported.
13184
dlopen_self_static=$enable_dlopen_self_static
13185
 
13186
# Commands to strip libraries.
13187
old_striplib=$lt_old_striplib
13188
striplib=$lt_striplib
13189
 
13190
 
13191
# The linker used to build libraries.
13192
LD=$lt_LD
13193
 
13194
# Commands used to build an old-style archive.
13195
old_archive_cmds=$lt_old_archive_cmds
13196
 
13197
# A language specific compiler.
13198
CC=$lt_compiler
13199
 
13200
# Is the compiler the GNU compiler?
13201
with_gcc=$GCC
13202
 
13203
# Compiler flag to turn off builtin functions.
13204
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13205
 
13206
# How to pass a linker flag through the compiler.
13207
wl=$lt_lt_prog_compiler_wl
13208
 
13209
# Additional compiler flags for building library objects.
13210
pic_flag=$lt_lt_prog_compiler_pic
13211
 
13212
# Compiler flag to prevent dynamic linking.
13213
link_static_flag=$lt_lt_prog_compiler_static
13214
 
13215
# Does compiler simultaneously support -c and -o options?
13216
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13217
 
13218
# Whether or not to add -lc for building shared libraries.
13219
build_libtool_need_lc=$archive_cmds_need_lc
13220
 
13221
# Whether or not to disallow shared libs when runtime libs are static.
13222
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13223
 
13224
# Compiler flag to allow reflexive dlopens.
13225
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13226
 
13227
# Compiler flag to generate shared objects directly from archives.
13228
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13229
 
13230
# Whether the compiler copes with passing no objects directly.
13231
compiler_needs_object=$lt_compiler_needs_object
13232
 
13233
# Create an old-style archive from a shared archive.
13234
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13235
 
13236
# Create a temporary old-style archive to link instead of a shared archive.
13237
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13238
 
13239
# Commands used to build a shared archive.
13240
archive_cmds=$lt_archive_cmds
13241
archive_expsym_cmds=$lt_archive_expsym_cmds
13242
 
13243
# Commands used to build a loadable module if different from building
13244
# a shared archive.
13245
module_cmds=$lt_module_cmds
13246
module_expsym_cmds=$lt_module_expsym_cmds
13247
 
13248
# Whether we are building with GNU ld or not.
13249
with_gnu_ld=$lt_with_gnu_ld
13250
 
13251
# Flag that allows shared libraries with undefined symbols to be built.
13252
allow_undefined_flag=$lt_allow_undefined_flag
13253
 
13254
# Flag that enforces no undefined symbols.
13255
no_undefined_flag=$lt_no_undefined_flag
13256
 
13257
# Flag to hardcode \$libdir into a binary during linking.
13258
# This must work even if \$libdir does not exist
13259
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13260
 
13261
# If ld is used when linking, flag to hardcode \$libdir into a binary
13262
# during linking.  This must work even if \$libdir does not exist.
13263
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13264
 
13265
# Whether we need a single "-rpath" flag with a separated argument.
13266
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13267
 
13268
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13269
# DIR into the resulting binary.
13270
hardcode_direct=$hardcode_direct
13271
 
13272
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13273
# DIR into the resulting binary and the resulting library dependency is
13274
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13275
# library is relocated.
13276
hardcode_direct_absolute=$hardcode_direct_absolute
13277
 
13278
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13279
# into the resulting binary.
13280
hardcode_minus_L=$hardcode_minus_L
13281
 
13282
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13283
# into the resulting binary.
13284
hardcode_shlibpath_var=$hardcode_shlibpath_var
13285
 
13286
# Set to "yes" if building a shared library automatically hardcodes DIR
13287
# into the library and all subsequent libraries and executables linked
13288
# against it.
13289
hardcode_automatic=$hardcode_automatic
13290
 
13291
# Set to yes if linker adds runtime paths of dependent libraries
13292
# to runtime path list.
13293
inherit_rpath=$inherit_rpath
13294
 
13295
# Whether libtool must link a program against all its dependency libraries.
13296
link_all_deplibs=$link_all_deplibs
13297
 
13298
# Fix the shell variable \$srcfile for the compiler.
13299
fix_srcfile_path=$lt_fix_srcfile_path
13300
 
13301
# Set to "yes" if exported symbols are required.
13302
always_export_symbols=$always_export_symbols
13303
 
13304
# The commands to list exported symbols.
13305
export_symbols_cmds=$lt_export_symbols_cmds
13306
 
13307
# Symbols that should not be listed in the preloaded symbols.
13308
exclude_expsyms=$lt_exclude_expsyms
13309
 
13310
# Symbols that must always be exported.
13311
include_expsyms=$lt_include_expsyms
13312
 
13313
# Commands necessary for linking programs (against libraries) with templates.
13314
prelink_cmds=$lt_prelink_cmds
13315
 
13316
# Specify filename containing input files.
13317
file_list_spec=$lt_file_list_spec
13318
 
13319
# How to hardcode a shared library path into an executable.
13320
hardcode_action=$hardcode_action
13321
 
13322
# ### END LIBTOOL CONFIG
13323
 
13324
_LT_EOF
13325
 
13326
  case $host_os in
13327
  aix3*)
13328
    cat <<\_LT_EOF >> "$cfgfile"
13329
# AIX sometimes has problems with the GCC collect2 program.  For some
13330
# reason, if we set the COLLECT_NAMES environment variable, the problems
13331
# vanish in a puff of smoke.
13332
if test "X${COLLECT_NAMES+set}" != Xset; then
13333
  COLLECT_NAMES=
13334
  export COLLECT_NAMES
13335
fi
13336
_LT_EOF
13337
    ;;
13338
  esac
13339
 
13340
 
13341
ltmain="$ac_aux_dir/ltmain.sh"
13342
 
13343
 
13344
  # We use sed instead of cat because bash on DJGPP gets confused if
13345
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13346
  # text mode, it properly converts lines to CR/LF.  This bash problem
13347
  # is reportedly fixed, but why not run on old versions too?
13348
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13349
    || (rm -f "$cfgfile"; exit 1)
13350
 
13351
  case $xsi_shell in
13352
  yes)
13353
    cat << \_LT_EOF >> "$cfgfile"
13354
 
13355
# func_dirname file append nondir_replacement
13356
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13357
# otherwise set result to NONDIR_REPLACEMENT.
13358
func_dirname ()
13359
{
13360
  case ${1} in
13361
    */*) func_dirname_result="${1%/*}${2}" ;;
13362
    *  ) func_dirname_result="${3}" ;;
13363
  esac
13364
}
13365
 
13366
# func_basename file
13367
func_basename ()
13368
{
13369
  func_basename_result="${1##*/}"
13370
}
13371
 
13372
# func_dirname_and_basename file append nondir_replacement
13373
# perform func_basename and func_dirname in a single function
13374
# call:
13375
#   dirname:  Compute the dirname of FILE.  If nonempty,
13376
#             add APPEND to the result, otherwise set result
13377
#             to NONDIR_REPLACEMENT.
13378
#             value returned in "$func_dirname_result"
13379
#   basename: Compute filename of FILE.
13380
#             value retuned in "$func_basename_result"
13381
# Implementation must be kept synchronized with func_dirname
13382
# and func_basename. For efficiency, we do not delegate to
13383
# those functions but instead duplicate the functionality here.
13384
func_dirname_and_basename ()
13385
{
13386
  case ${1} in
13387
    */*) func_dirname_result="${1%/*}${2}" ;;
13388
    *  ) func_dirname_result="${3}" ;;
13389
  esac
13390
  func_basename_result="${1##*/}"
13391
}
13392
 
13393
# func_stripname prefix suffix name
13394
# strip PREFIX and SUFFIX off of NAME.
13395
# PREFIX and SUFFIX must not contain globbing or regex special
13396
# characters, hashes, percent signs, but SUFFIX may contain a leading
13397
# dot (in which case that matches only a dot).
13398
func_stripname ()
13399
{
13400
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13401
  # positional parameters, so assign one to ordinary parameter first.
13402
  func_stripname_result=${3}
13403
  func_stripname_result=${func_stripname_result#"${1}"}
13404
  func_stripname_result=${func_stripname_result%"${2}"}
13405
}
13406
 
13407
# func_opt_split
13408
func_opt_split ()
13409
{
13410
  func_opt_split_opt=${1%%=*}
13411
  func_opt_split_arg=${1#*=}
13412
}
13413
 
13414
# func_lo2o object
13415
func_lo2o ()
13416
{
13417
  case ${1} in
13418
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13419
    *)    func_lo2o_result=${1} ;;
13420
  esac
13421
}
13422
 
13423
# func_xform libobj-or-source
13424
func_xform ()
13425
{
13426
  func_xform_result=${1%.*}.lo
13427
}
13428
 
13429
# func_arith arithmetic-term...
13430
func_arith ()
13431
{
13432
  func_arith_result=$(( $* ))
13433
}
13434
 
13435
# func_len string
13436
# STRING may not start with a hyphen.
13437
func_len ()
13438
{
13439
  func_len_result=${#1}
13440
}
13441
 
13442
_LT_EOF
13443
    ;;
13444
  *) # Bourne compatible functions.
13445
    cat << \_LT_EOF >> "$cfgfile"
13446
 
13447
# func_dirname file append nondir_replacement
13448
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13449
# otherwise set result to NONDIR_REPLACEMENT.
13450
func_dirname ()
13451
{
13452
  # Extract subdirectory from the argument.
13453
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13454
  if test "X$func_dirname_result" = "X${1}"; then
13455
    func_dirname_result="${3}"
13456
  else
13457
    func_dirname_result="$func_dirname_result${2}"
13458
  fi
13459
}
13460
 
13461
# func_basename file
13462
func_basename ()
13463
{
13464
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13465
}
13466
 
13467
 
13468
# func_stripname prefix suffix name
13469
# strip PREFIX and SUFFIX off of NAME.
13470
# PREFIX and SUFFIX must not contain globbing or regex special
13471
# characters, hashes, percent signs, but SUFFIX may contain a leading
13472
# dot (in which case that matches only a dot).
13473
# func_strip_suffix prefix name
13474
func_stripname ()
13475
{
13476
  case ${2} in
13477
    .*) func_stripname_result=`$ECHO "X${3}" \
13478
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13479
    *)  func_stripname_result=`$ECHO "X${3}" \
13480
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13481
  esac
13482
}
13483
 
13484
# sed scripts:
13485
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13486
my_sed_long_arg='1s/^-[^=]*=//'
13487
 
13488
# func_opt_split
13489
func_opt_split ()
13490
{
13491
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13492
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13493
}
13494
 
13495
# func_lo2o object
13496
func_lo2o ()
13497
{
13498
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13499
}
13500
 
13501
# func_xform libobj-or-source
13502
func_xform ()
13503
{
13504
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13505
}
13506
 
13507
# func_arith arithmetic-term...
13508
func_arith ()
13509
{
13510
  func_arith_result=`expr "$@"`
13511
}
13512
 
13513
# func_len string
13514
# STRING may not start with a hyphen.
13515
func_len ()
13516
{
13517
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13518
}
13519
 
13520
_LT_EOF
13521
esac
13522
 
13523
case $lt_shell_append in
13524
  yes)
13525
    cat << \_LT_EOF >> "$cfgfile"
13526
 
13527
# func_append var value
13528
# Append VALUE to the end of shell variable VAR.
13529
func_append ()
13530
{
13531
  eval "$1+=\$2"
13532
}
13533
_LT_EOF
13534
    ;;
13535
  *)
13536
    cat << \_LT_EOF >> "$cfgfile"
13537
 
13538
# func_append var value
13539
# Append VALUE to the end of shell variable VAR.
13540
func_append ()
13541
{
13542
  eval "$1=\$$1\$2"
13543
}
13544
 
13545
_LT_EOF
13546
    ;;
13547
  esac
13548
 
13549
 
13550
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13551
    || (rm -f "$cfgfile"; exit 1)
13552
 
13553
  mv -f "$cfgfile" "$ofile" ||
13554
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13555
  chmod +x "$ofile"
13556
 
13557
 ;;
13558
  esac
13559
done
13560
_ACEOF
13561
 
13562
cat >>$CONFIG_STATUS <<\_ACEOF
13563
 
13564
{ (exit 0); exit 0; }
13565
_ACEOF
13566
chmod +x $CONFIG_STATUS
13567
ac_clean_files=$ac_clean_files_save
13568
 
13569
 
13570
# configure is writing to config.log, and then calls config.status.
13571
# config.status does its own redirection, appending to config.log.
13572
# Unfortunately, on DOS this fails, as config.log is still kept open
13573
# by configure, so config.status won't be able to write to it; its
13574
# output is simply discarded.  So we exec the FD to /dev/null,
13575
# effectively closing config.log, so it can be properly (re)opened and
13576
# appended to by config.status.  When coming back to configure, we
13577
# need to make the FD available again.
13578
if test "$no_create" != yes; then
13579
  ac_cs_success=:
13580
  ac_config_status_args=
13581
  test "$silent" = yes &&
13582
    ac_config_status_args="$ac_config_status_args --quiet"
13583
  exec 5>/dev/null
13584
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13585
  exec 5>>config.log
13586
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13587
  # would make configure fail if this is the last instruction.
13588
  $ac_cs_success || { (exit 1); exit 1; }
13589
fi
13590
 
13591
#
13592
# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
13593
#
13594
if test "$no_recursion" != yes; then
13595
 
13596
  # Remove --cache-file and --srcdir arguments so they do not pile up.
13597
  ac_sub_configure_args=
13598
  ac_prev=
13599
  eval "set x $ac_configure_args"
13600
  shift
13601
  for ac_arg
13602
  do
13603
    if test -n "$ac_prev"; then
13604
      ac_prev=
13605
      continue
13606
    fi
13607
    case $ac_arg in
13608
    -cache-file | --cache-file | --cache-fil | --cache-fi \
13609
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13610
      ac_prev=cache_file ;;
13611
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13612
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13613
    | --c=*)
13614
      ;;
13615
    --config-cache | -C)
13616
      ;;
13617
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13618
      ac_prev=srcdir ;;
13619
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13620
      ;;
13621
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13622
      ac_prev=prefix ;;
13623
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13624
      ;;
13625
    *)
13626
      case $ac_arg in
13627
      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13628
      esac
13629
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
13630
    esac
13631
  done
13632
 
13633
  # Always prepend --prefix to ensure using the same prefix
13634
  # in subdir configurations.
13635
  ac_arg="--prefix=$prefix"
13636
  case $ac_arg in
13637
  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13638
  esac
13639
  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
13640
 
13641
  ac_popdir=`pwd`
13642
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
13643
 
13644
    # Do not complain, so a configure script can configure whichever
13645
    # parts of a large source tree are present.
13646
    test -d "$srcdir/$ac_dir" || continue
13647
 
13648
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
13649
echo "$as_me: configuring in $ac_dir" >&6;}
13650
    { if $as_mkdir_p; then
13651
    mkdir -p "$ac_dir"
13652
  else
13653
    as_dir="$ac_dir"
13654
    as_dirs=
13655
    while test ! -d "$as_dir"; do
13656
      as_dirs="$as_dir $as_dirs"
13657
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13658
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13659
         X"$as_dir" : 'X\(//\)[^/]' \| \
13660
         X"$as_dir" : 'X\(//\)$' \| \
13661
         X"$as_dir" : 'X\(/\)' \| \
13662
         .     : '\(.\)' 2>/dev/null ||
13663
echo X"$as_dir" |
13664
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13665
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13666
          /^X\(\/\/\)$/{ s//\1/; q; }
13667
          /^X\(\/\).*/{ s//\1/; q; }
13668
          s/.*/./; q'`
13669
    done
13670
    test ! -n "$as_dirs" || mkdir $as_dirs
13671
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13672
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13673
   { (exit 1); exit 1; }; }; }
13674
 
13675
    ac_builddir=.
13676
 
13677
if test "$ac_dir" != .; then
13678
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13679
  # A "../" for each directory in $ac_dir_suffix.
13680
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13681
else
13682
  ac_dir_suffix= ac_top_builddir=
13683
fi
13684
 
13685
case $srcdir in
13686
  .)  # No --srcdir option.  We are building in place.
13687
    ac_srcdir=.
13688
    if test -z "$ac_top_builddir"; then
13689
       ac_top_srcdir=.
13690
    else
13691
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13692
    fi ;;
13693
  [\\/]* | ?:[\\/]* )  # Absolute path.
13694
    ac_srcdir=$srcdir$ac_dir_suffix;
13695
    ac_top_srcdir=$srcdir ;;
13696
  *) # Relative path.
13697
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13698
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13699
esac
13700
 
13701
# Do not use `cd foo && pwd` to compute absolute paths, because
13702
# the directories may not exist.
13703
case `pwd` in
13704
.) ac_abs_builddir="$ac_dir";;
13705
*)
13706
  case "$ac_dir" in
13707
  .) ac_abs_builddir=`pwd`;;
13708
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13709
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13710
  esac;;
13711
esac
13712
case $ac_abs_builddir in
13713
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13714
*)
13715
  case ${ac_top_builddir}. in
13716
  .) ac_abs_top_builddir=$ac_abs_builddir;;
13717
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13718
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13719
  esac;;
13720
esac
13721
case $ac_abs_builddir in
13722
.) ac_abs_srcdir=$ac_srcdir;;
13723
*)
13724
  case $ac_srcdir in
13725
  .) ac_abs_srcdir=$ac_abs_builddir;;
13726
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13727
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13728
  esac;;
13729
esac
13730
case $ac_abs_builddir in
13731
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13732
*)
13733
  case $ac_top_srcdir in
13734
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13735
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13736
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13737
  esac;;
13738
esac
13739
 
13740
 
13741
    cd "$ac_dir"
13742
 
13743
    # Check for guested configure; otherwise get Cygnus style configure.
13744
    if test -f "$ac_srcdir/configure.gnu"; then
13745
      ac_sub_configure=$ac_srcdir/configure.gnu
13746
    elif test -f "$ac_srcdir/configure"; then
13747
      ac_sub_configure=$ac_srcdir/configure
13748
    elif test -f "$ac_srcdir/configure.in"; then
13749
      # This should be Cygnus configure.
13750
      ac_sub_configure=$ac_aux_dir/configure
13751
    else
13752
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
13753
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13754
      ac_sub_configure=
13755
    fi
13756
 
13757
    # The recursion is here.
13758
    if test -n "$ac_sub_configure"; then
13759
      # Make the cache file name correct relative to the subdirectory.
13760
      case $cache_file in
13761
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
13762
      *) # Relative path.
13763
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
13764
      esac
13765
 
13766
      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
13767
echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
13768
      # The eval makes quoting arguments work.
13769
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
13770
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
13771
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
13772
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
13773
   { (exit 1); exit 1; }; }
13774
    fi
13775
 
13776
    cd "$ac_popdir"
13777
  done
13778
fi
13779
 

powered by: WebSVN 2.1.0

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