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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 148 jeremybenn
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for newlib 1.17.0.
4
#
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization.  ##
10
## --------------------- ##
11
 
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
  emulate sh
15
  NULLCMD=:
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
  # is contrary to our usage.  Disable this feature.
18
  alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
  set -o posix
21
fi
22
DUALCASE=1; export DUALCASE # for MKS sh
23
 
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
  as_unset=unset
27
else
28
  as_unset=false
29
fi
30
 
31
 
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
34
PS1='$ '
35
PS2='> '
36
PS4='+ '
37
 
38
# NLS nuisances.
39
for as_var in \
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
  LC_TELEPHONE LC_TIME
43
do
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
    eval $as_var=C; export $as_var
46
  else
47
    $as_unset $as_var
48
  fi
49
done
50
 
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
53
  as_expr=expr
54
else
55
  as_expr=false
56
fi
57
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59
  as_basename=basename
60
else
61
  as_basename=false
62
fi
63
 
64
 
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
         X"$0" : 'X\(//\)$' \| \
69
         X"$0" : 'X\(/\)$' \| \
70
         .     : '\(.\)' 2>/dev/null ||
71
echo X/"$0" |
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
74
          /^X\/\(\/\).*/{ s//\1/; q; }
75
          s/.*/./; q'`
76
 
77
 
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
85
 
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
  echo "#! /bin/sh" >conf$$.sh
89
  echo  "exit 0"   >>conf$$.sh
90
  chmod +x conf$$.sh
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92
    PATH_SEPARATOR=';'
93
  else
94
    PATH_SEPARATOR=:
95
  fi
96
  rm -f conf$$.sh
97
fi
98
 
99
 
100
  as_lineno_1=$LINENO
101
  as_lineno_2=$LINENO
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105
  # Find who we are.  Look in the path if we contain no path at all
106
  # relative or not.
107
  case $0 in
108
    *[\\/]* ) as_myself=$0 ;;
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
for as_dir in $PATH
111
do
112
  IFS=$as_save_IFS
113
  test -z "$as_dir" && as_dir=.
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
done
116
 
117
       ;;
118
  esac
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
120
  # in which case we are not to be found in the path.
121
  if test "x$as_myself" = x; then
122
    as_myself=$0
123
  fi
124
  if test ! -f "$as_myself"; then
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
   { (exit 1); exit 1; }; }
127
  fi
128
  case $CONFIG_SHELL in
129
  '')
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
do
133
  IFS=$as_save_IFS
134
  test -z "$as_dir" && as_dir=.
135
  for as_base in sh bash ksh sh5; do
136
         case $as_dir in
137
         /*)
138
           if ("$as_dir/$as_base" -c '
139
  as_lineno_1=$LINENO
140
  as_lineno_2=$LINENO
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
             CONFIG_SHELL=$as_dir/$as_base
147
             export CONFIG_SHELL
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149
           fi;;
150
         esac
151
       done
152
done
153
;;
154
  esac
155
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
  # line-number line before each line; the second 'sed' does the real
159
  # work.  The second script uses 'N' to pair each line-number line
160
  # with the numbered line, and appends trailing '-' during
161
  # substitution so that $LINENO is not a special case at line end.
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
  sed '=' <$as_myself |
165
    sed '
166
      N
167
      s,$,-,
168
      : loop
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170
      t loop
171
      s,-$,,
172
      s,^['$as_cr_digits']*\n,,
173
    ' >$as_me.lineno &&
174
  chmod +x $as_me.lineno ||
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
   { (exit 1); exit 1; }; }
177
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
179
  # (the dirname of $[0] is not the place where we might find the
180
  # original and so on.  Autoconf is especially sensible to this).
181
  . ./$as_me.lineno
182
  # Exit status is that of the last command.
183
  exit
184
}
185
 
186
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
  *c*,-n*) ECHO_N= ECHO_C='
189
' ECHO_T='      ' ;;
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192
esac
193
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
195
  as_expr=expr
196
else
197
  as_expr=false
198
fi
199
 
200
rm -f conf$$ conf$$.exe conf$$.file
201
echo >conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
  # We could just check for DJGPP; but this test a) works b) is more generic
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
  if test -f conf$$.exe; then
206
    # Don't use ln at all; we don't have any links
207
    as_ln_s='cp -p'
208
  else
209
    as_ln_s='ln -s'
210
  fi
211
elif ln conf$$.file conf$$ 2>/dev/null; then
212
  as_ln_s=ln
213
else
214
  as_ln_s='cp -p'
215
fi
216
rm -f conf$$ conf$$.exe conf$$.file
217
 
218
if mkdir -p . 2>/dev/null; then
219
  as_mkdir_p=:
220
else
221
  test -d ./-p && rmdir ./-p
222
  as_mkdir_p=false
223
fi
224
 
225
as_executable_p="test -f"
226
 
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
 
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
 
233
 
234
# IFS
235
# We need space, tab and new line, in precisely that order.
236
as_nl='
237
'
238
IFS="   $as_nl"
239
 
240
# CDPATH.
241
$as_unset CDPATH
242
 
243
 
244
 
245
# Check that we are running under the correct shell.
246
SHELL=${CONFIG_SHELL-/bin/sh}
247
 
248
case X$lt_ECHO in
249
X*--fallback-echo)
250
  # Remove one level of quotation (which was required for Make).
251
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252
  ;;
253
esac
254
 
255
ECHO=${lt_ECHO-echo}
256
if test "X$1" = X--no-reexec; then
257
  # Discard the --no-reexec flag, and continue.
258
  shift
259
elif test "X$1" = X--fallback-echo; then
260
  # Avoid inline document here, it may be left over
261
  :
262
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263
  # Yippee, $ECHO works!
264
  :
265
else
266
  # Restart under the correct shell.
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
268
fi
269
 
270
if test "X$1" = X--fallback-echo; then
271
  # used as fallback echo
272
  shift
273
  cat <<_LT_EOF
274
$*
275
_LT_EOF
276
  exit 0
277
fi
278
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
280
# if CDPATH is set.
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
 
283
if test -z "$lt_ECHO"; then
284
  if test "X${echo_test_string+set}" != Xset; then
285
    # find a string as large as possible, as long as the shell can cope with it
286
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290
      then
291
        break
292
      fi
293
    done
294
  fi
295
 
296
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298
     test "X$echo_testing_string" = "X$echo_test_string"; then
299
    :
300
  else
301
    # The Solaris, AIX, and Digital Unix default echo programs unquote
302
    # backslashes.  This makes it impossible to quote backslashes using
303
    #   echo "$something" | sed 's/\\/\\\\/g'
304
    #
305
    # So, first we look for a working echo in the user's PATH.
306
 
307
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308
    for dir in $PATH /usr/ucb; do
309
      IFS="$lt_save_ifs"
310
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313
         test "X$echo_testing_string" = "X$echo_test_string"; then
314
        ECHO="$dir/echo"
315
        break
316
      fi
317
    done
318
    IFS="$lt_save_ifs"
319
 
320
    if test "X$ECHO" = Xecho; then
321
      # We didn't find a better echo, so look for alternatives.
322
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324
         test "X$echo_testing_string" = "X$echo_test_string"; then
325
        # This shell has a builtin print -r that does the trick.
326
        ECHO='print -r'
327
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328
           test "X$CONFIG_SHELL" != X/bin/ksh; then
329
        # If we have ksh, try running configure again with it.
330
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331
        export ORIGINAL_CONFIG_SHELL
332
        CONFIG_SHELL=/bin/ksh
333
        export CONFIG_SHELL
334
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335
      else
336
        # Try using printf.
337
        ECHO='printf %s\n'
338
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340
           test "X$echo_testing_string" = "X$echo_test_string"; then
341
          # Cool, printf works
342
          :
343
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344
             test "X$echo_testing_string" = 'X\t' &&
345
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346
             test "X$echo_testing_string" = "X$echo_test_string"; then
347
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348
          export CONFIG_SHELL
349
          SHELL="$CONFIG_SHELL"
350
          export SHELL
351
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
352
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353
             test "X$echo_testing_string" = 'X\t' &&
354
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355
             test "X$echo_testing_string" = "X$echo_test_string"; then
356
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
357
        else
358
          # maybe with a smaller string...
359
          prev=:
360
 
361
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363
            then
364
              break
365
            fi
366
            prev="$cmd"
367
          done
368
 
369
          if test "$prev" != 'sed 50q "$0"'; then
370
            echo_test_string=`eval $prev`
371
            export echo_test_string
372
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373
          else
374
            # Oops.  We lost completely, so just stick with echo.
375
            ECHO=echo
376
          fi
377
        fi
378
      fi
379
    fi
380
  fi
381
fi
382
 
383
# Copy echo and quote the copy suitably for passing to libtool from
384
# the Makefile, instead of quoting the original, which is used later.
385
lt_ECHO=$ECHO
386
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388
fi
389
 
390
 
391
 
392
 
393
# Name of the host.
394
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395
# so uname gets run too.
396
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
 
398
exec 6>&1
399
 
400
#
401
# Initializations.
402
#
403
ac_default_prefix=/usr/local
404
ac_config_libobj_dir=.
405
cross_compiling=no
406
subdirs=
407
MFLAGS=
408
MAKEFLAGS=
409
SHELL=${CONFIG_SHELL-/bin/sh}
410
 
411
# Maximum number of lines to put in a shell here document.
412
# This variable seems obsolete.  It should probably be removed, and
413
# only ac_max_sed_lines should be used.
414
: ${ac_max_here_lines=38}
415
 
416
# Identity of this package.
417
PACKAGE_NAME='newlib'
418
PACKAGE_TARNAME='newlib'
419
PACKAGE_VERSION='1.17.0'
420
PACKAGE_STRING='newlib 1.17.0'
421
PACKAGE_BUGREPORT=''
422
 
423
ac_unique_file="i386"
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 i386"
462
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAY_SUPPLY_SYSCALLS_TRUE MAY_SUPPLY_SYSCALLS_FALSE newlib_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB READELF ac_ct_READELF MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CCAS CCASFLAGS NEWLIB_CFLAGS LDFLAGS ELIX_LEVEL_0_TRUE ELIX_LEVEL_0_FALSE ELIX_LEVEL_1_TRUE ELIX_LEVEL_1_FALSE ELIX_LEVEL_2_TRUE ELIX_LEVEL_2_FALSE ELIX_LEVEL_3_TRUE ELIX_LEVEL_3_FALSE ELIX_LEVEL_4_TRUE ELIX_LEVEL_4_FALSE USE_LIBTOOL_TRUE USE_LIBTOOL_FALSE OBJEXT oext aext lpfx libm_machine_dir machine_dir sys_dir SED DLLTOOL ac_ct_DLLTOOL OBJDUMP ac_ct_OBJDUMP LIBTOOL CFLAGS CPPFLAGS ac_ct_CC EXEEXT EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP subdirs CRT0 HAVE_MACHINE_DIR_TRUE HAVE_MACHINE_DIR_FALSE 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-multilib         build many library versions (default)
1013
  --enable-target-optspace  optimize for space
1014
  --enable-malloc-debugging indicate malloc debugging requested
1015
  --enable-newlib-multithread        enable support for multiple threads
1016
  --enable-newlib-iconv     enable iconv library support
1017
  --enable-newlib-elix-level         supply desired elix library level (1-4)
1018
  --disable-newlib-io-float disable printf/scanf family float support
1019
  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1020
  --disable-dependency-tracking  speeds up one-time build
1021
  --enable-dependency-tracking   do not reject slow dependency extractors
1022
  --enable-maintainer-mode  enable make rules and dependencies not useful
1023
                          (and sometimes confusing) to the casual installer
1024
  --enable-shared[=PKGS]
1025
                          build shared libraries [default=yes]
1026
  --enable-static[=PKGS]
1027
                          build static libraries [default=yes]
1028
  --enable-fast-install[=PKGS]
1029
                          optimize for fast installation [default=yes]
1030
  --disable-libtool-lock  avoid locking (might break parallel builds)
1031
 
1032
Optional Packages:
1033
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1034
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1035
  --with-pic              try to use only PIC/non-PIC objects [default=use
1036
                          both]
1037
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1038
 
1039
Some influential environment variables:
1040
  CCAS        assembler compiler command (defaults to CC)
1041
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1042
  CC          C compiler command
1043
  CFLAGS      C compiler flags
1044
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1045
              nonstandard directory 
1046
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
1047
              headers in a nonstandard directory 
1048
  CPP         C preprocessor
1049
 
1050
Use these variables to override the choices made by `configure' or to help
1051
it to find libraries and programs with nonstandard names/locations.
1052
 
1053
_ACEOF
1054
fi
1055
 
1056
if test "$ac_init_help" = "recursive"; then
1057
  # If there are subdirs, report their specific --help.
1058
  ac_popdir=`pwd`
1059
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1060
    test -d $ac_dir || continue
1061
    ac_builddir=.
1062
 
1063
if test "$ac_dir" != .; then
1064
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1065
  # A "../" for each directory in $ac_dir_suffix.
1066
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1067
else
1068
  ac_dir_suffix= ac_top_builddir=
1069
fi
1070
 
1071
case $srcdir in
1072
  .)  # No --srcdir option.  We are building in place.
1073
    ac_srcdir=.
1074
    if test -z "$ac_top_builddir"; then
1075
       ac_top_srcdir=.
1076
    else
1077
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1078
    fi ;;
1079
  [\\/]* | ?:[\\/]* )  # Absolute path.
1080
    ac_srcdir=$srcdir$ac_dir_suffix;
1081
    ac_top_srcdir=$srcdir ;;
1082
  *) # Relative path.
1083
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1084
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1085
esac
1086
 
1087
# Do not use `cd foo && pwd` to compute absolute paths, because
1088
# the directories may not exist.
1089
case `pwd` in
1090
.) ac_abs_builddir="$ac_dir";;
1091
*)
1092
  case "$ac_dir" in
1093
  .) ac_abs_builddir=`pwd`;;
1094
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1095
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1096
  esac;;
1097
esac
1098
case $ac_abs_builddir in
1099
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1100
*)
1101
  case ${ac_top_builddir}. in
1102
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1103
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1104
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1105
  esac;;
1106
esac
1107
case $ac_abs_builddir in
1108
.) ac_abs_srcdir=$ac_srcdir;;
1109
*)
1110
  case $ac_srcdir in
1111
  .) ac_abs_srcdir=$ac_abs_builddir;;
1112
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1113
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1114
  esac;;
1115
esac
1116
case $ac_abs_builddir in
1117
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1118
*)
1119
  case $ac_top_srcdir in
1120
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1121
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1122
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1123
  esac;;
1124
esac
1125
 
1126
    cd $ac_dir
1127
    # Check for guested configure; otherwise get Cygnus style configure.
1128
    if test -f $ac_srcdir/configure.gnu; then
1129
      echo
1130
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1131
    elif test -f $ac_srcdir/configure; then
1132
      echo
1133
      $SHELL $ac_srcdir/configure  --help=recursive
1134
    elif test -f $ac_srcdir/configure.ac ||
1135
           test -f $ac_srcdir/configure.in; then
1136
      echo
1137
      $ac_configure --help
1138
    else
1139
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1140
    fi
1141
    cd $ac_popdir
1142
  done
1143
fi
1144
 
1145
test -n "$ac_init_help" && exit 0
1146
if $ac_init_version; then
1147
  cat <<\_ACEOF
1148
newlib configure 1.17.0
1149
generated by GNU Autoconf 2.59
1150
 
1151
Copyright (C) 2003 Free Software Foundation, Inc.
1152
This configure script is free software; the Free Software Foundation
1153
gives unlimited permission to copy, distribute and modify it.
1154
_ACEOF
1155
  exit 0
1156
fi
1157
exec 5>config.log
1158
cat >&5 <<_ACEOF
1159
This file contains any messages produced by compilers while
1160
running configure, to aid debugging if configure makes a mistake.
1161
 
1162
It was created by newlib $as_me 1.17.0, which was
1163
generated by GNU Autoconf 2.59.  Invocation command line was
1164
 
1165
  $ $0 $@
1166
 
1167
_ACEOF
1168
{
1169
cat <<_ASUNAME
1170
## --------- ##
1171
## Platform. ##
1172
## --------- ##
1173
 
1174
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1175
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1176
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1177
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1178
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1179
 
1180
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1181
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1182
 
1183
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1184
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1185
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1186
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1187
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1188
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1189
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1190
 
1191
_ASUNAME
1192
 
1193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1194
for as_dir in $PATH
1195
do
1196
  IFS=$as_save_IFS
1197
  test -z "$as_dir" && as_dir=.
1198
  echo "PATH: $as_dir"
1199
done
1200
 
1201
} >&5
1202
 
1203
cat >&5 <<_ACEOF
1204
 
1205
 
1206
## ----------- ##
1207
## Core tests. ##
1208
## ----------- ##
1209
 
1210
_ACEOF
1211
 
1212
 
1213
# Keep a trace of the command line.
1214
# Strip out --no-create and --no-recursion so they do not pile up.
1215
# Strip out --silent because we don't want to record it for future runs.
1216
# Also quote any args containing shell meta-characters.
1217
# Make two passes to allow for proper duplicate-argument suppression.
1218
ac_configure_args=
1219
ac_configure_args0=
1220
ac_configure_args1=
1221
ac_sep=
1222
ac_must_keep_next=false
1223
for ac_pass in 1 2
1224
do
1225
  for ac_arg
1226
  do
1227
    case $ac_arg in
1228
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1229
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230
    | -silent | --silent | --silen | --sile | --sil)
1231
      continue ;;
1232
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1233
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1234
    esac
1235
    case $ac_pass in
1236
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1237
    2)
1238
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1239
      if test $ac_must_keep_next = true; then
1240
        ac_must_keep_next=false # Got value, back to normal.
1241
      else
1242
        case $ac_arg in
1243
          *=* | --config-cache | -C | -disable-* | --disable-* \
1244
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1245
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1246
          | -with-* | --with-* | -without-* | --without-* | --x)
1247
            case "$ac_configure_args0 " in
1248
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1249
            esac
1250
            ;;
1251
          -* ) ac_must_keep_next=true ;;
1252
        esac
1253
      fi
1254
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1255
      # Get rid of the leading space.
1256
      ac_sep=" "
1257
      ;;
1258
    esac
1259
  done
1260
done
1261
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1262
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1263
 
1264
# When interrupted or exit'd, cleanup temporary files, and complete
1265
# config.log.  We remove comments because anyway the quotes in there
1266
# would cause problems or look ugly.
1267
# WARNING: Be sure not to use single quotes in there, as some shells,
1268
# such as our DU 5.0 friend, will then `close' the trap.
1269
trap 'exit_status=$?
1270
  # Save into config.log some information that might help in debugging.
1271
  {
1272
    echo
1273
 
1274
    cat <<\_ASBOX
1275
## ---------------- ##
1276
## Cache variables. ##
1277
## ---------------- ##
1278
_ASBOX
1279
    echo
1280
    # The following way of writing the cache mishandles newlines in values,
1281
{
1282
  (set) 2>&1 |
1283
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1284
    *ac_space=\ *)
1285
      sed -n \
1286
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1287
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1288
      ;;
1289
    *)
1290
      sed -n \
1291
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1292
      ;;
1293
    esac;
1294
}
1295
    echo
1296
 
1297
    cat <<\_ASBOX
1298
## ----------------- ##
1299
## Output variables. ##
1300
## ----------------- ##
1301
_ASBOX
1302
    echo
1303
    for ac_var in $ac_subst_vars
1304
    do
1305
      eval ac_val=$`echo $ac_var`
1306
      echo "$ac_var='"'"'$ac_val'"'"'"
1307
    done | sort
1308
    echo
1309
 
1310
    if test -n "$ac_subst_files"; then
1311
      cat <<\_ASBOX
1312
## ------------- ##
1313
## Output files. ##
1314
## ------------- ##
1315
_ASBOX
1316
      echo
1317
      for ac_var in $ac_subst_files
1318
      do
1319
        eval ac_val=$`echo $ac_var`
1320
        echo "$ac_var='"'"'$ac_val'"'"'"
1321
      done | sort
1322
      echo
1323
    fi
1324
 
1325
    if test -s confdefs.h; then
1326
      cat <<\_ASBOX
1327
## ----------- ##
1328
## confdefs.h. ##
1329
## ----------- ##
1330
_ASBOX
1331
      echo
1332
      sed "/^$/d" confdefs.h | sort
1333
      echo
1334
    fi
1335
    test "$ac_signal" != 0 &&
1336
      echo "$as_me: caught signal $ac_signal"
1337
    echo "$as_me: exit $exit_status"
1338
  } >&5
1339
  rm -f core *.core &&
1340
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1341
    exit $exit_status
1342
     ' 0
1343
for ac_signal in 1 2 13 15; do
1344
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1345
done
1346
ac_signal=0
1347
 
1348
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1349
rm -rf conftest* confdefs.h
1350
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1351
echo >confdefs.h
1352
 
1353
# Predefined preprocessor variables.
1354
 
1355
cat >>confdefs.h <<_ACEOF
1356
#define PACKAGE_NAME "$PACKAGE_NAME"
1357
_ACEOF
1358
 
1359
 
1360
cat >>confdefs.h <<_ACEOF
1361
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1362
_ACEOF
1363
 
1364
 
1365
cat >>confdefs.h <<_ACEOF
1366
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1367
_ACEOF
1368
 
1369
 
1370
cat >>confdefs.h <<_ACEOF
1371
#define PACKAGE_STRING "$PACKAGE_STRING"
1372
_ACEOF
1373
 
1374
 
1375
cat >>confdefs.h <<_ACEOF
1376
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1377
_ACEOF
1378
 
1379
 
1380
# Let the site file select an alternate cache file if it wants to.
1381
# Prefer explicitly selected file to automatically selected ones.
1382
if test -z "$CONFIG_SITE"; then
1383
  if test "x$prefix" != xNONE; then
1384
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1385
  else
1386
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1387
  fi
1388
fi
1389
for ac_site_file in $CONFIG_SITE; do
1390
  if test -r "$ac_site_file"; then
1391
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1392
echo "$as_me: loading site script $ac_site_file" >&6;}
1393
    sed 's/^/| /' "$ac_site_file" >&5
1394
    . "$ac_site_file"
1395
  fi
1396
done
1397
 
1398
if test -r "$cache_file"; then
1399
  # Some versions of bash will fail to source /dev/null (special
1400
  # files actually), so we avoid doing that.
1401
  if test -f "$cache_file"; then
1402
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1403
echo "$as_me: loading cache $cache_file" >&6;}
1404
    case $cache_file in
1405
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1406
      *)                      . ./$cache_file;;
1407
    esac
1408
  fi
1409
else
1410
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1411
echo "$as_me: creating cache $cache_file" >&6;}
1412
  >$cache_file
1413
fi
1414
 
1415
# Check that the precious variables saved in the cache have kept the same
1416
# value.
1417
ac_cache_corrupted=false
1418
for ac_var in `(set) 2>&1 |
1419
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1420
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1421
  eval ac_new_set=\$ac_env_${ac_var}_set
1422
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1423
  eval ac_new_val="\$ac_env_${ac_var}_value"
1424
  case $ac_old_set,$ac_new_set in
1425
    set,)
1426
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1427
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1428
      ac_cache_corrupted=: ;;
1429
    ,set)
1430
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1431
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1432
      ac_cache_corrupted=: ;;
1433
    ,);;
1434
    *)
1435
      if test "x$ac_old_val" != "x$ac_new_val"; then
1436
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1437
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1438
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1439
echo "$as_me:   former value:  $ac_old_val" >&2;}
1440
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1441
echo "$as_me:   current value: $ac_new_val" >&2;}
1442
        ac_cache_corrupted=:
1443
      fi;;
1444
  esac
1445
  # Pass precious variables to config.status.
1446
  if test "$ac_new_set" = set; then
1447
    case $ac_new_val in
1448
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1449
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1450
    *) ac_arg=$ac_var=$ac_new_val ;;
1451
    esac
1452
    case " $ac_configure_args " in
1453
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1454
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1455
    esac
1456
  fi
1457
done
1458
if $ac_cache_corrupted; then
1459
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1460
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1461
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1462
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1463
   { (exit 1); exit 1; }; }
1464
fi
1465
 
1466
ac_ext=c
1467
ac_cpp='$CPP $CPPFLAGS'
1468
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1469
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1470
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1471
 
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
ac_aux_dir=
1501
for ac_dir in ../../../../.. $srcdir/../../../../..; do
1502
  if test -f $ac_dir/install-sh; then
1503
    ac_aux_dir=$ac_dir
1504
    ac_install_sh="$ac_aux_dir/install-sh -c"
1505
    break
1506
  elif test -f $ac_dir/install.sh; then
1507
    ac_aux_dir=$ac_dir
1508
    ac_install_sh="$ac_aux_dir/install.sh -c"
1509
    break
1510
  elif test -f $ac_dir/shtool; then
1511
    ac_aux_dir=$ac_dir
1512
    ac_install_sh="$ac_aux_dir/shtool install -c"
1513
    break
1514
  fi
1515
done
1516
if test -z "$ac_aux_dir"; then
1517
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../../.. $srcdir/../../../../.." >&5
1518
echo "$as_me: error: cannot find install-sh or install.sh in ../../../../.. $srcdir/../../../../.." >&2;}
1519
   { (exit 1); exit 1; }; }
1520
fi
1521
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1522
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1523
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1524
 
1525
 
1526
 
1527
# Make sure we can run config.sub.
1528
$ac_config_sub sun4 >/dev/null 2>&1 ||
1529
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1530
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1531
   { (exit 1); exit 1; }; }
1532
 
1533
echo "$as_me:$LINENO: checking build system type" >&5
1534
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1535
if test "${ac_cv_build+set}" = set; then
1536
  echo $ECHO_N "(cached) $ECHO_C" >&6
1537
else
1538
  ac_cv_build_alias=$build_alias
1539
test -z "$ac_cv_build_alias" &&
1540
  ac_cv_build_alias=`$ac_config_guess`
1541
test -z "$ac_cv_build_alias" &&
1542
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1543
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1544
   { (exit 1); exit 1; }; }
1545
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1546
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1547
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1548
   { (exit 1); exit 1; }; }
1549
 
1550
fi
1551
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1552
echo "${ECHO_T}$ac_cv_build" >&6
1553
build=$ac_cv_build
1554
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557
 
1558
 
1559
am__api_version="1.9"
1560
# Find a good install program.  We prefer a C program (faster),
1561
# so one script is as good as another.  But avoid the broken or
1562
# incompatible versions:
1563
# SysV /etc/install, /usr/sbin/install
1564
# SunOS /usr/etc/install
1565
# IRIX /sbin/install
1566
# AIX /bin/install
1567
# AmigaOS /C/install, which installs bootblocks on floppy discs
1568
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1569
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1570
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1571
# OS/2's system install, which has a completely different semantic
1572
# ./install, which can be erroneously created by make from ./install.sh.
1573
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1574
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1575
if test -z "$INSTALL"; then
1576
if test "${ac_cv_path_install+set}" = set; then
1577
  echo $ECHO_N "(cached) $ECHO_C" >&6
1578
else
1579
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580
for as_dir in $PATH
1581
do
1582
  IFS=$as_save_IFS
1583
  test -z "$as_dir" && as_dir=.
1584
  # Account for people who put trailing slashes in PATH elements.
1585
case $as_dir/ in
1586
  ./ | .// | /cC/* | \
1587
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1588
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1589
  /usr/ucb/* ) ;;
1590
  *)
1591
    # OSF1 and SCO ODT 3.0 have their own names for install.
1592
    # Don't use installbsd from OSF since it installs stuff as root
1593
    # by default.
1594
    for ac_prog in ginstall scoinst install; do
1595
      for ac_exec_ext in '' $ac_executable_extensions; do
1596
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1597
          if test $ac_prog = install &&
1598
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1599
            # AIX install.  It has an incompatible calling convention.
1600
            :
1601
          elif test $ac_prog = install &&
1602
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1603
            # program-specific install script used by HP pwplus--don't use.
1604
            :
1605
          else
1606
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1607
            break 3
1608
          fi
1609
        fi
1610
      done
1611
    done
1612
    ;;
1613
esac
1614
done
1615
 
1616
 
1617
fi
1618
  if test "${ac_cv_path_install+set}" = set; then
1619
    INSTALL=$ac_cv_path_install
1620
  else
1621
    # As a last resort, use the slow shell script.  We don't cache a
1622
    # path for INSTALL within a source directory, because that will
1623
    # break other packages using the cache if that directory is
1624
    # removed, or if the path is relative.
1625
    INSTALL=$ac_install_sh
1626
  fi
1627
fi
1628
echo "$as_me:$LINENO: result: $INSTALL" >&5
1629
echo "${ECHO_T}$INSTALL" >&6
1630
 
1631
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1632
# It thinks the first close brace ends the variable substitution.
1633
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1634
 
1635
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1636
 
1637
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1638
 
1639
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1640
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1641
# Just in case
1642
sleep 1
1643
echo timestamp > conftest.file
1644
# Do `set' in a subshell so we don't clobber the current shell's
1645
# arguments.  Must try -L first in case configure is actually a
1646
# symlink; some systems play weird games with the mod time of symlinks
1647
# (eg FreeBSD returns the mod time of the symlink's containing
1648
# directory).
1649
if (
1650
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1651
   if test "$*" = "X"; then
1652
      # -L didn't work.
1653
      set X `ls -t $srcdir/configure conftest.file`
1654
   fi
1655
   rm -f conftest.file
1656
   if test "$*" != "X $srcdir/configure conftest.file" \
1657
      && test "$*" != "X conftest.file $srcdir/configure"; then
1658
 
1659
      # If neither matched, then we have a broken ls.  This can happen
1660
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1661
      # broken ls alias from the environment.  This has actually
1662
      # happened.  Such a system could not be considered "sane".
1663
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1664
alias in your environment" >&5
1665
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1666
alias in your environment" >&2;}
1667
   { (exit 1); exit 1; }; }
1668
   fi
1669
 
1670
   test "$2" = conftest.file
1671
   )
1672
then
1673
   # Ok.
1674
   :
1675
else
1676
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1677
Check your system clock" >&5
1678
echo "$as_me: error: newly created file is older than distributed files!
1679
Check your system clock" >&2;}
1680
   { (exit 1); exit 1; }; }
1681
fi
1682
echo "$as_me:$LINENO: result: yes" >&5
1683
echo "${ECHO_T}yes" >&6
1684
test "$program_prefix" != NONE &&
1685
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1686
# Use a double $ so make ignores it.
1687
test "$program_suffix" != NONE &&
1688
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1689
# Double any \ or $.  echo might interpret backslashes.
1690
# By default was `s,x,x', remove it if useless.
1691
cat <<\_ACEOF >conftest.sed
1692
s/[\\$]/&&/g;s/;s,x,x,$//
1693
_ACEOF
1694
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1695
rm conftest.sed
1696
 
1697
# expand $ac_aux_dir to an absolute path
1698
am_aux_dir=`cd $ac_aux_dir && pwd`
1699
 
1700
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1701
# Use eval to expand $SHELL
1702
if eval "$MISSING --run true"; then
1703
  am_missing_run="$MISSING --run "
1704
else
1705
  am_missing_run=
1706
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1707
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1708
fi
1709
 
1710
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1711
  # We used to keeping the `.' as first argument, in order to
1712
  # allow $(mkdir_p) to be used without argument.  As in
1713
  #   $(mkdir_p) $(somedir)
1714
  # where $(somedir) is conditionally defined.  However this is wrong
1715
  # for two reasons:
1716
  #  1. if the package is installed by a user who cannot write `.'
1717
  #     make install will fail,
1718
  #  2. the above comment should most certainly read
1719
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1720
  #     so it does not work when $(somedir) is undefined and
1721
  #     $(DESTDIR) is not.
1722
  #  To support the latter case, we have to write
1723
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1724
  #  so the `.' trick is pointless.
1725
  mkdir_p='mkdir -p --'
1726
else
1727
  # On NextStep and OpenStep, the `mkdir' command does not
1728
  # recognize any option.  It will interpret all options as
1729
  # directories to create, and then abort because `.' already
1730
  # exists.
1731
  for d in ./-p ./--version;
1732
  do
1733
    test -d $d && rmdir $d
1734
  done
1735
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1736
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1737
    mkdir_p='$(mkinstalldirs)'
1738
  else
1739
    mkdir_p='$(install_sh) -d'
1740
  fi
1741
fi
1742
 
1743
for ac_prog in gawk mawk nawk awk
1744
do
1745
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1746
set dummy $ac_prog; ac_word=$2
1747
echo "$as_me:$LINENO: checking for $ac_word" >&5
1748
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749
if test "${ac_cv_prog_AWK+set}" = set; then
1750
  echo $ECHO_N "(cached) $ECHO_C" >&6
1751
else
1752
  if test -n "$AWK"; then
1753
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1754
else
1755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756
for as_dir in $PATH
1757
do
1758
  IFS=$as_save_IFS
1759
  test -z "$as_dir" && as_dir=.
1760
  for ac_exec_ext in '' $ac_executable_extensions; do
1761
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762
    ac_cv_prog_AWK="$ac_prog"
1763
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764
    break 2
1765
  fi
1766
done
1767
done
1768
 
1769
fi
1770
fi
1771
AWK=$ac_cv_prog_AWK
1772
if test -n "$AWK"; then
1773
  echo "$as_me:$LINENO: result: $AWK" >&5
1774
echo "${ECHO_T}$AWK" >&6
1775
else
1776
  echo "$as_me:$LINENO: result: no" >&5
1777
echo "${ECHO_T}no" >&6
1778
fi
1779
 
1780
  test -n "$AWK" && break
1781
done
1782
 
1783
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1784
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1785
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1786
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1787
  echo $ECHO_N "(cached) $ECHO_C" >&6
1788
else
1789
  cat >conftest.make <<\_ACEOF
1790
all:
1791
        @echo 'ac_maketemp="$(MAKE)"'
1792
_ACEOF
1793
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1794
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1795
if test -n "$ac_maketemp"; then
1796
  eval ac_cv_prog_make_${ac_make}_set=yes
1797
else
1798
  eval ac_cv_prog_make_${ac_make}_set=no
1799
fi
1800
rm -f conftest.make
1801
fi
1802
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1803
  echo "$as_me:$LINENO: result: yes" >&5
1804
echo "${ECHO_T}yes" >&6
1805
  SET_MAKE=
1806
else
1807
  echo "$as_me:$LINENO: result: no" >&5
1808
echo "${ECHO_T}no" >&6
1809
  SET_MAKE="MAKE=${MAKE-make}"
1810
fi
1811
 
1812
rm -rf .tst 2>/dev/null
1813
mkdir .tst 2>/dev/null
1814
if test -d .tst; then
1815
  am__leading_dot=.
1816
else
1817
  am__leading_dot=_
1818
fi
1819
rmdir .tst 2>/dev/null
1820
 
1821
DEPDIR="${am__leading_dot}deps"
1822
 
1823
          ac_config_commands="$ac_config_commands depfiles"
1824
 
1825
 
1826
am_make=${MAKE-make}
1827
cat > confinc << 'END'
1828
am__doit:
1829
        @echo done
1830
.PHONY: am__doit
1831
END
1832
# If we don't find an include directive, just comment out the code.
1833
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1834
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1835
am__include="#"
1836
am__quote=
1837
_am_result=none
1838
# First try GNU make style include.
1839
echo "include confinc" > confmf
1840
# We grep out `Entering directory' and `Leaving directory'
1841
# messages which can occur if `w' ends up in MAKEFLAGS.
1842
# In particular we don't look at `^make:' because GNU make might
1843
# be invoked under some other name (usually "gmake"), in which
1844
# case it prints its new name instead of `make'.
1845
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1846
   am__include=include
1847
   am__quote=
1848
   _am_result=GNU
1849
fi
1850
# Now try BSD make style include.
1851
if test "$am__include" = "#"; then
1852
   echo '.include "confinc"' > confmf
1853
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1854
      am__include=.include
1855
      am__quote="\""
1856
      _am_result=BSD
1857
   fi
1858
fi
1859
 
1860
 
1861
echo "$as_me:$LINENO: result: $_am_result" >&5
1862
echo "${ECHO_T}$_am_result" >&6
1863
rm -f confinc confmf
1864
 
1865
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1866
if test "${enable_dependency_tracking+set}" = set; then
1867
  enableval="$enable_dependency_tracking"
1868
 
1869
fi;
1870
if test "x$enable_dependency_tracking" != xno; then
1871
  am_depcomp="$ac_aux_dir/depcomp"
1872
  AMDEPBACKSLASH='\'
1873
fi
1874
 
1875
 
1876
if test "x$enable_dependency_tracking" != xno; then
1877
  AMDEP_TRUE=
1878
  AMDEP_FALSE='#'
1879
else
1880
  AMDEP_TRUE='#'
1881
  AMDEP_FALSE=
1882
fi
1883
 
1884
 
1885
 
1886
 
1887
# Check whether --enable-multilib or --disable-multilib was given.
1888
if test "${enable_multilib+set}" = set; then
1889
  enableval="$enable_multilib"
1890
  case "${enableval}" in
1891
  yes) multilib=yes ;;
1892
  no)  multilib=no ;;
1893
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1894
echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1895
   { (exit 1); exit 1; }; } ;;
1896
 esac
1897
else
1898
  multilib=yes
1899
fi;
1900
# Check whether --enable-target-optspace or --disable-target-optspace was given.
1901
if test "${enable_target_optspace+set}" = set; then
1902
  enableval="$enable_target_optspace"
1903
  case "${enableval}" in
1904
  yes) target_optspace=yes ;;
1905
  no)  target_optspace=no ;;
1906
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
1907
echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
1908
   { (exit 1); exit 1; }; } ;;
1909
 esac
1910
else
1911
  target_optspace=
1912
fi;
1913
# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
1914
if test "${enable_malloc_debugging+set}" = set; then
1915
  enableval="$enable_malloc_debugging"
1916
  case "${enableval}" in
1917
  yes) malloc_debugging=yes ;;
1918
  no)  malloc_debugging=no ;;
1919
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
1920
echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
1921
   { (exit 1); exit 1; }; } ;;
1922
 esac
1923
else
1924
  malloc_debugging=
1925
fi;
1926
# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
1927
if test "${enable_newlib_multithread+set}" = set; then
1928
  enableval="$enable_newlib_multithread"
1929
  case "${enableval}" in
1930
  yes) newlib_multithread=yes ;;
1931
  no)  newlib_multithread=no ;;
1932
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
1933
echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
1934
   { (exit 1); exit 1; }; } ;;
1935
 esac
1936
else
1937
  newlib_multithread=yes
1938
fi;
1939
# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
1940
if test "${enable_newlib_iconv+set}" = set; then
1941
  enableval="$enable_newlib_iconv"
1942
  if test "${newlib_iconv+set}" != set; then
1943
   case "${enableval}" in
1944
     yes) newlib_iconv=yes ;;
1945
     no)  newlib_iconv=no ;;
1946
     *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
1947
echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
1948
   { (exit 1); exit 1; }; } ;;
1949
   esac
1950
 fi
1951
else
1952
  newlib_iconv=${newlib_iconv}
1953
fi;
1954
# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
1955
if test "${enable_newlib_elix_level+set}" = set; then
1956
  enableval="$enable_newlib_elix_level"
1957
  case "${enableval}" in
1958
  0)   newlib_elix_level=0 ;;
1959
  1)   newlib_elix_level=1 ;;
1960
  2)   newlib_elix_level=2 ;;
1961
  3)   newlib_elix_level=3 ;;
1962
  4)   newlib_elix_level=4 ;;
1963
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
1964
echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
1965
   { (exit 1); exit 1; }; } ;;
1966
 esac
1967
else
1968
  newlib_elix_level=0
1969
fi;
1970
# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
1971
if test "${enable_newlib_io_float+set}" = set; then
1972
  enableval="$enable_newlib_io_float"
1973
  case "${enableval}" in
1974
  yes) newlib_io_float=yes ;;
1975
  no)  newlib_io_float=no ;;
1976
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
1977
echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
1978
   { (exit 1); exit 1; }; } ;;
1979
 esac
1980
else
1981
  newlib_io_float=yes
1982
fi;
1983
# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
1984
if test "${enable_newlib_supplied_syscalls+set}" = set; then
1985
  enableval="$enable_newlib_supplied_syscalls"
1986
  case "${enableval}" in
1987
  yes) newlib_may_supply_syscalls=yes ;;
1988
  no)  newlib_may_supply_syscalls=no ;;
1989
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
1990
echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
1991
   { (exit 1); exit 1; }; } ;;
1992
 esac
1993
else
1994
  newlib_may_supply_syscalls=yes
1995
fi;
1996
 
1997
 
1998
if test x${newlib_may_supply_syscalls} = xyes; then
1999
  MAY_SUPPLY_SYSCALLS_TRUE=
2000
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2001
else
2002
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2003
  MAY_SUPPLY_SYSCALLS_FALSE=
2004
fi
2005
 
2006
 
2007
 
2008
test -z "${with_target_subdir}" && with_target_subdir=.
2009
 
2010
if test "${srcdir}" = "."; then
2011
  if test "${with_target_subdir}" != "."; then
2012
    newlib_basedir="${srcdir}/${with_multisrctop}../../../../.."
2013
  else
2014
    newlib_basedir="${srcdir}/${with_multisrctop}../../../.."
2015
  fi
2016
else
2017
  newlib_basedir="${srcdir}/../../../.."
2018
fi
2019
 
2020
 
2021
echo "$as_me:$LINENO: checking host system type" >&5
2022
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2023
if test "${ac_cv_host+set}" = set; then
2024
  echo $ECHO_N "(cached) $ECHO_C" >&6
2025
else
2026
  ac_cv_host_alias=$host_alias
2027
test -z "$ac_cv_host_alias" &&
2028
  ac_cv_host_alias=$ac_cv_build_alias
2029
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2030
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2031
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2032
   { (exit 1); exit 1; }; }
2033
 
2034
fi
2035
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2036
echo "${ECHO_T}$ac_cv_host" >&6
2037
host=$ac_cv_host
2038
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2039
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2040
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2041
 
2042
 
2043
 
2044
# test to see if srcdir already configured
2045
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2046
   test -f $srcdir/config.status; then
2047
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2048
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2049
   { (exit 1); exit 1; }; }
2050
fi
2051
 
2052
# test whether we have cygpath
2053
if test -z "$CYGPATH_W"; then
2054
  if (cygpath --version) >/dev/null 2>/dev/null; then
2055
    CYGPATH_W='cygpath -w'
2056
  else
2057
    CYGPATH_W=echo
2058
  fi
2059
fi
2060
 
2061
 
2062
# Define the identity of the package.
2063
 PACKAGE='newlib'
2064
 VERSION='1.17.0'
2065
 
2066
 
2067
# Some tools Automake needs.
2068
 
2069
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2070
 
2071
 
2072
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2073
 
2074
 
2075
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2076
 
2077
 
2078
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2079
 
2080
 
2081
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2082
 
2083
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2084
 
2085
# Installed binaries are usually stripped using `strip' when the user
2086
# run `make install-strip'.  However `strip' might not be the right
2087
# tool to use in cross-compilation environments, therefore Automake
2088
# will honor the `STRIP' environment variable to overrule this program.
2089
if test "$cross_compiling" != no; then
2090
  if test -n "$ac_tool_prefix"; then
2091
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2092
set dummy ${ac_tool_prefix}strip; ac_word=$2
2093
echo "$as_me:$LINENO: checking for $ac_word" >&5
2094
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095
if test "${ac_cv_prog_STRIP+set}" = set; then
2096
  echo $ECHO_N "(cached) $ECHO_C" >&6
2097
else
2098
  if test -n "$STRIP"; then
2099
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2100
else
2101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102
for as_dir in $PATH
2103
do
2104
  IFS=$as_save_IFS
2105
  test -z "$as_dir" && as_dir=.
2106
  for ac_exec_ext in '' $ac_executable_extensions; do
2107
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2109
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110
    break 2
2111
  fi
2112
done
2113
done
2114
 
2115
fi
2116
fi
2117
STRIP=$ac_cv_prog_STRIP
2118
if test -n "$STRIP"; then
2119
  echo "$as_me:$LINENO: result: $STRIP" >&5
2120
echo "${ECHO_T}$STRIP" >&6
2121
else
2122
  echo "$as_me:$LINENO: result: no" >&5
2123
echo "${ECHO_T}no" >&6
2124
fi
2125
 
2126
fi
2127
if test -z "$ac_cv_prog_STRIP"; then
2128
  ac_ct_STRIP=$STRIP
2129
  # Extract the first word of "strip", so it can be a program name with args.
2130
set dummy strip; ac_word=$2
2131
echo "$as_me:$LINENO: checking for $ac_word" >&5
2132
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2134
  echo $ECHO_N "(cached) $ECHO_C" >&6
2135
else
2136
  if test -n "$ac_ct_STRIP"; then
2137
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2138
else
2139
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140
for as_dir in $PATH
2141
do
2142
  IFS=$as_save_IFS
2143
  test -z "$as_dir" && as_dir=.
2144
  for ac_exec_ext in '' $ac_executable_extensions; do
2145
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146
    ac_cv_prog_ac_ct_STRIP="strip"
2147
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148
    break 2
2149
  fi
2150
done
2151
done
2152
 
2153
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2154
fi
2155
fi
2156
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2157
if test -n "$ac_ct_STRIP"; then
2158
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2159
echo "${ECHO_T}$ac_ct_STRIP" >&6
2160
else
2161
  echo "$as_me:$LINENO: result: no" >&5
2162
echo "${ECHO_T}no" >&6
2163
fi
2164
 
2165
  STRIP=$ac_ct_STRIP
2166
else
2167
  STRIP="$ac_cv_prog_STRIP"
2168
fi
2169
 
2170
fi
2171
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2172
 
2173
# We need awk for the "check" target.  The system "awk" is bad on
2174
# some platforms.
2175
# Always define AMTAR for backward compatibility.
2176
 
2177
AMTAR=${AMTAR-"${am_missing_run}tar"}
2178
 
2179
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2180
 
2181
 
2182
 
2183
 
2184
 
2185
 
2186
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2187
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2188
# are probably using a cross compiler, which will not be able to fully
2189
# link an executable.  This should really be fixed in autoconf
2190
# itself.
2191
 
2192
 
2193
 
2194
 
2195
 
2196
 
2197
 
2198
# Extract the first word of "gcc", so it can be a program name with args.
2199
set dummy gcc; ac_word=$2
2200
echo "$as_me:$LINENO: checking for $ac_word" >&5
2201
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202
if test "${ac_cv_prog_CC+set}" = set; then
2203
  echo $ECHO_N "(cached) $ECHO_C" >&6
2204
else
2205
  if test -n "$CC"; then
2206
  ac_cv_prog_CC="$CC" # Let the user override the test.
2207
else
2208
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209
for as_dir in $PATH
2210
do
2211
  IFS=$as_save_IFS
2212
  test -z "$as_dir" && as_dir=.
2213
  for ac_exec_ext in '' $ac_executable_extensions; do
2214
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215
    ac_cv_prog_CC="gcc"
2216
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217
    break 2
2218
  fi
2219
done
2220
done
2221
 
2222
fi
2223
fi
2224
CC=$ac_cv_prog_CC
2225
if test -n "$CC"; then
2226
  echo "$as_me:$LINENO: result: $CC" >&5
2227
echo "${ECHO_T}$CC" >&6
2228
else
2229
  echo "$as_me:$LINENO: result: no" >&5
2230
echo "${ECHO_T}no" >&6
2231
fi
2232
 
2233
 
2234
depcc="$CC"   am_compiler_list=
2235
 
2236
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2237
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2238
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2239
  echo $ECHO_N "(cached) $ECHO_C" >&6
2240
else
2241
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2242
  # We make a subdir and do the tests there.  Otherwise we can end up
2243
  # making bogus files that we don't know about and never remove.  For
2244
  # instance it was reported that on HP-UX the gcc test will end up
2245
  # making a dummy file named `D' -- because `-MD' means `put the output
2246
  # in D'.
2247
  mkdir conftest.dir
2248
  # Copy depcomp to subdir because otherwise we won't find it if we're
2249
  # using a relative directory.
2250
  cp "$am_depcomp" conftest.dir
2251
  cd conftest.dir
2252
  # We will build objects and dependencies in a subdirectory because
2253
  # it helps to detect inapplicable dependency modes.  For instance
2254
  # both Tru64's cc and ICC support -MD to output dependencies as a
2255
  # side effect of compilation, but ICC will put the dependencies in
2256
  # the current directory while Tru64 will put them in the object
2257
  # directory.
2258
  mkdir sub
2259
 
2260
  am_cv_CC_dependencies_compiler_type=none
2261
  if test "$am_compiler_list" = ""; then
2262
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2263
  fi
2264
  for depmode in $am_compiler_list; do
2265
    # Setup a source with many dependencies, because some compilers
2266
    # like to wrap large dependency lists on column 80 (with \), and
2267
    # we should not choose a depcomp mode which is confused by this.
2268
    #
2269
    # We need to recreate these files for each test, as the compiler may
2270
    # overwrite some of them when testing with obscure command lines.
2271
    # This happens at least with the AIX C compiler.
2272
    : > sub/conftest.c
2273
    for i in 1 2 3 4 5 6; do
2274
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2275
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2276
      # Solaris 8's {/usr,}/bin/sh.
2277
      touch sub/conftst$i.h
2278
    done
2279
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2280
 
2281
    case $depmode in
2282
    nosideeffect)
2283
      # after this tag, mechanisms are not by side-effect, so they'll
2284
      # only be used when explicitly requested
2285
      if test "x$enable_dependency_tracking" = xyes; then
2286
        continue
2287
      else
2288
        break
2289
      fi
2290
      ;;
2291
    none) break ;;
2292
    esac
2293
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2294
    # mode.  It turns out that the SunPro C++ compiler does not properly
2295
    # handle `-M -o', and we need to detect this.
2296
    if depmode=$depmode \
2297
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2298
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2299
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2300
         >/dev/null 2>conftest.err &&
2301
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2302
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2303
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2304
      # icc doesn't choke on unknown options, it will just issue warnings
2305
      # or remarks (even with -Werror).  So we grep stderr for any message
2306
      # that says an option was ignored or not supported.
2307
      # When given -MP, icc 7.0 and 7.1 complain thusly:
2308
      #   icc: Command line warning: ignoring option '-M'; no argument required
2309
      # The diagnosis changed in icc 8.0:
2310
      #   icc: Command line remark: option '-MP' not supported
2311
      if (grep 'ignoring option' conftest.err ||
2312
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2313
        am_cv_CC_dependencies_compiler_type=$depmode
2314
        break
2315
      fi
2316
    fi
2317
  done
2318
 
2319
  cd ..
2320
  rm -rf conftest.dir
2321
else
2322
  am_cv_CC_dependencies_compiler_type=none
2323
fi
2324
 
2325
fi
2326
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2327
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2328
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2329
 
2330
 
2331
 
2332
if
2333
  test "x$enable_dependency_tracking" != xno \
2334
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2335
  am__fastdepCC_TRUE=
2336
  am__fastdepCC_FALSE='#'
2337
else
2338
  am__fastdepCC_TRUE='#'
2339
  am__fastdepCC_FALSE=
2340
fi
2341
 
2342
 
2343
if test -z "$CC"; then
2344
  # Extract the first word of "cc", so it can be a program name with args.
2345
set dummy cc; ac_word=$2
2346
echo "$as_me:$LINENO: checking for $ac_word" >&5
2347
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348
if test "${ac_cv_prog_CC+set}" = set; then
2349
  echo $ECHO_N "(cached) $ECHO_C" >&6
2350
else
2351
  if test -n "$CC"; then
2352
  ac_cv_prog_CC="$CC" # Let the user override the test.
2353
else
2354
  ac_prog_rejected=no
2355
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356
for as_dir in $PATH
2357
do
2358
  IFS=$as_save_IFS
2359
  test -z "$as_dir" && as_dir=.
2360
  for ac_exec_ext in '' $ac_executable_extensions; do
2361
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2363
       ac_prog_rejected=yes
2364
       continue
2365
     fi
2366
    ac_cv_prog_CC="cc"
2367
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368
    break 2
2369
  fi
2370
done
2371
done
2372
 
2373
if test $ac_prog_rejected = yes; then
2374
  # We found a bogon in the path, so make sure we never use it.
2375
  set dummy $ac_cv_prog_CC
2376
  shift
2377
  if test $# != 0; then
2378
    # We chose a different compiler from the bogus one.
2379
    # However, it has the same basename, so the bogon will be chosen
2380
    # first if we set CC to just the basename; use the full file name.
2381
    shift
2382
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2383
  fi
2384
fi
2385
fi
2386
fi
2387
CC=$ac_cv_prog_CC
2388
if test -n "$CC"; then
2389
  echo "$as_me:$LINENO: result: $CC" >&5
2390
echo "${ECHO_T}$CC" >&6
2391
else
2392
  echo "$as_me:$LINENO: result: no" >&5
2393
echo "${ECHO_T}no" >&6
2394
fi
2395
 
2396
  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2397
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2398
   { (exit 1); exit 1; }; }
2399
fi
2400
 
2401
echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
2402
echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
2403
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2404
  echo $ECHO_N "(cached) $ECHO_C" >&6
2405
else
2406
  cat > conftest.c <
2407
#ifdef __GNUC__
2408
  yes;
2409
#endif
2410
EOF
2411
if { ac_try='${CC-cc} -E conftest.c'
2412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413
  (eval $ac_try) 2>&5
2414
  ac_status=$?
2415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2417
  ac_cv_c_compiler_gnu=yes
2418
else
2419
  ac_cv_c_compiler_gnu=no
2420
fi
2421
fi
2422
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2424
 
2425
if test $ac_cv_c_compiler_gnu = yes; then
2426
  GCC=yes
2427
  ac_test_CFLAGS="${CFLAGS+set}"
2428
  ac_save_CFLAGS="$CFLAGS"
2429
  CFLAGS=
2430
  ac_test_CFLAGS=${CFLAGS+set}
2431
ac_save_CFLAGS=$CFLAGS
2432
CFLAGS="-g"
2433
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2435
if test "${ac_cv_prog_cc_g+set}" = set; then
2436
  echo $ECHO_N "(cached) $ECHO_C" >&6
2437
else
2438
  cat >conftest.$ac_ext <<_ACEOF
2439
/* confdefs.h.  */
2440
_ACEOF
2441
cat confdefs.h >>conftest.$ac_ext
2442
cat >>conftest.$ac_ext <<_ACEOF
2443
/* end confdefs.h.  */
2444
 
2445
int
2446
main ()
2447
{
2448
 
2449
  ;
2450
  return 0;
2451
}
2452
_ACEOF
2453
rm -f conftest.$ac_objext
2454
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455
  (eval $ac_compile) 2>conftest.er1
2456
  ac_status=$?
2457
  grep -v '^ *+' conftest.er1 >conftest.err
2458
  rm -f conftest.er1
2459
  cat conftest.err >&5
2460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461
  (exit $ac_status); } &&
2462
         { ac_try='test -z "$ac_c_werror_flag"
2463
                         || test ! -s conftest.err'
2464
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465
  (eval $ac_try) 2>&5
2466
  ac_status=$?
2467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468
  (exit $ac_status); }; } &&
2469
         { ac_try='test -s conftest.$ac_objext'
2470
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471
  (eval $ac_try) 2>&5
2472
  ac_status=$?
2473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474
  (exit $ac_status); }; }; then
2475
  ac_cv_prog_cc_g=yes
2476
else
2477
  echo "$as_me: failed program was:" >&5
2478
sed 's/^/| /' conftest.$ac_ext >&5
2479
 
2480
ac_cv_prog_cc_g=no
2481
fi
2482
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2483
fi
2484
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2485
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2486
if test "$ac_test_CFLAGS" = set; then
2487
  CFLAGS=$ac_save_CFLAGS
2488
elif test $ac_cv_prog_cc_g = yes; then
2489
  if test "$GCC" = yes; then
2490
    CFLAGS="-g -O2"
2491
  else
2492
    CFLAGS="-g"
2493
  fi
2494
else
2495
  if test "$GCC" = yes; then
2496
    CFLAGS="-O2"
2497
  else
2498
    CFLAGS=
2499
  fi
2500
fi
2501
  if test "$ac_test_CFLAGS" = set; then
2502
    CFLAGS="$ac_save_CFLAGS"
2503
  elif test $ac_cv_prog_cc_g = yes; then
2504
    CFLAGS="-g -O2"
2505
  else
2506
    CFLAGS="-O2"
2507
  fi
2508
else
2509
  GCC=
2510
  test "${CFLAGS+set}" = set || CFLAGS="-g"
2511
fi
2512
 
2513
 
2514
if test -n "$ac_tool_prefix"; then
2515
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2516
set dummy ${ac_tool_prefix}as; ac_word=$2
2517
echo "$as_me:$LINENO: checking for $ac_word" >&5
2518
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2519
if test "${ac_cv_prog_AS+set}" = set; then
2520
  echo $ECHO_N "(cached) $ECHO_C" >&6
2521
else
2522
  if test -n "$AS"; then
2523
  ac_cv_prog_AS="$AS" # Let the user override the test.
2524
else
2525
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526
for as_dir in $PATH
2527
do
2528
  IFS=$as_save_IFS
2529
  test -z "$as_dir" && as_dir=.
2530
  for ac_exec_ext in '' $ac_executable_extensions; do
2531
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532
    ac_cv_prog_AS="${ac_tool_prefix}as"
2533
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534
    break 2
2535
  fi
2536
done
2537
done
2538
 
2539
fi
2540
fi
2541
AS=$ac_cv_prog_AS
2542
if test -n "$AS"; then
2543
  echo "$as_me:$LINENO: result: $AS" >&5
2544
echo "${ECHO_T}$AS" >&6
2545
else
2546
  echo "$as_me:$LINENO: result: no" >&5
2547
echo "${ECHO_T}no" >&6
2548
fi
2549
 
2550
fi
2551
if test -z "$ac_cv_prog_AS"; then
2552
  ac_ct_AS=$AS
2553
  # Extract the first word of "as", so it can be a program name with args.
2554
set dummy as; ac_word=$2
2555
echo "$as_me:$LINENO: checking for $ac_word" >&5
2556
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2557
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2558
  echo $ECHO_N "(cached) $ECHO_C" >&6
2559
else
2560
  if test -n "$ac_ct_AS"; then
2561
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2562
else
2563
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564
for as_dir in $PATH
2565
do
2566
  IFS=$as_save_IFS
2567
  test -z "$as_dir" && as_dir=.
2568
  for ac_exec_ext in '' $ac_executable_extensions; do
2569
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570
    ac_cv_prog_ac_ct_AS="as"
2571
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572
    break 2
2573
  fi
2574
done
2575
done
2576
 
2577
fi
2578
fi
2579
ac_ct_AS=$ac_cv_prog_ac_ct_AS
2580
if test -n "$ac_ct_AS"; then
2581
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2582
echo "${ECHO_T}$ac_ct_AS" >&6
2583
else
2584
  echo "$as_me:$LINENO: result: no" >&5
2585
echo "${ECHO_T}no" >&6
2586
fi
2587
 
2588
  AS=$ac_ct_AS
2589
else
2590
  AS="$ac_cv_prog_AS"
2591
fi
2592
 
2593
if test -n "$ac_tool_prefix"; then
2594
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2595
set dummy ${ac_tool_prefix}ar; ac_word=$2
2596
echo "$as_me:$LINENO: checking for $ac_word" >&5
2597
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2598
if test "${ac_cv_prog_AR+set}" = set; then
2599
  echo $ECHO_N "(cached) $ECHO_C" >&6
2600
else
2601
  if test -n "$AR"; then
2602
  ac_cv_prog_AR="$AR" # Let the user override the test.
2603
else
2604
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605
for as_dir in $PATH
2606
do
2607
  IFS=$as_save_IFS
2608
  test -z "$as_dir" && as_dir=.
2609
  for ac_exec_ext in '' $ac_executable_extensions; do
2610
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611
    ac_cv_prog_AR="${ac_tool_prefix}ar"
2612
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613
    break 2
2614
  fi
2615
done
2616
done
2617
 
2618
fi
2619
fi
2620
AR=$ac_cv_prog_AR
2621
if test -n "$AR"; then
2622
  echo "$as_me:$LINENO: result: $AR" >&5
2623
echo "${ECHO_T}$AR" >&6
2624
else
2625
  echo "$as_me:$LINENO: result: no" >&5
2626
echo "${ECHO_T}no" >&6
2627
fi
2628
 
2629
fi
2630
if test -z "$ac_cv_prog_AR"; then
2631
  ac_ct_AR=$AR
2632
  # Extract the first word of "ar", so it can be a program name with args.
2633
set dummy ar; ac_word=$2
2634
echo "$as_me:$LINENO: checking for $ac_word" >&5
2635
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2636
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2637
  echo $ECHO_N "(cached) $ECHO_C" >&6
2638
else
2639
  if test -n "$ac_ct_AR"; then
2640
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2641
else
2642
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643
for as_dir in $PATH
2644
do
2645
  IFS=$as_save_IFS
2646
  test -z "$as_dir" && as_dir=.
2647
  for ac_exec_ext in '' $ac_executable_extensions; do
2648
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649
    ac_cv_prog_ac_ct_AR="ar"
2650
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651
    break 2
2652
  fi
2653
done
2654
done
2655
 
2656
fi
2657
fi
2658
ac_ct_AR=$ac_cv_prog_ac_ct_AR
2659
if test -n "$ac_ct_AR"; then
2660
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2661
echo "${ECHO_T}$ac_ct_AR" >&6
2662
else
2663
  echo "$as_me:$LINENO: result: no" >&5
2664
echo "${ECHO_T}no" >&6
2665
fi
2666
 
2667
  AR=$ac_ct_AR
2668
else
2669
  AR="$ac_cv_prog_AR"
2670
fi
2671
 
2672
if test -n "$ac_tool_prefix"; then
2673
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2674
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2675
echo "$as_me:$LINENO: checking for $ac_word" >&5
2676
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2677
if test "${ac_cv_prog_RANLIB+set}" = set; then
2678
  echo $ECHO_N "(cached) $ECHO_C" >&6
2679
else
2680
  if test -n "$RANLIB"; then
2681
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2682
else
2683
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684
for as_dir in $PATH
2685
do
2686
  IFS=$as_save_IFS
2687
  test -z "$as_dir" && as_dir=.
2688
  for ac_exec_ext in '' $ac_executable_extensions; do
2689
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2691
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692
    break 2
2693
  fi
2694
done
2695
done
2696
 
2697
fi
2698
fi
2699
RANLIB=$ac_cv_prog_RANLIB
2700
if test -n "$RANLIB"; then
2701
  echo "$as_me:$LINENO: result: $RANLIB" >&5
2702
echo "${ECHO_T}$RANLIB" >&6
2703
else
2704
  echo "$as_me:$LINENO: result: no" >&5
2705
echo "${ECHO_T}no" >&6
2706
fi
2707
 
2708
fi
2709
if test -z "$ac_cv_prog_RANLIB"; then
2710
  ac_ct_RANLIB=$RANLIB
2711
  # Extract the first word of "ranlib", so it can be a program name with args.
2712
set dummy ranlib; ac_word=$2
2713
echo "$as_me:$LINENO: checking for $ac_word" >&5
2714
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2715
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2716
  echo $ECHO_N "(cached) $ECHO_C" >&6
2717
else
2718
  if test -n "$ac_ct_RANLIB"; then
2719
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2720
else
2721
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722
for as_dir in $PATH
2723
do
2724
  IFS=$as_save_IFS
2725
  test -z "$as_dir" && as_dir=.
2726
  for ac_exec_ext in '' $ac_executable_extensions; do
2727
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728
    ac_cv_prog_ac_ct_RANLIB="ranlib"
2729
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730
    break 2
2731
  fi
2732
done
2733
done
2734
 
2735
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2736
fi
2737
fi
2738
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2739
if test -n "$ac_ct_RANLIB"; then
2740
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2741
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2742
else
2743
  echo "$as_me:$LINENO: result: no" >&5
2744
echo "${ECHO_T}no" >&6
2745
fi
2746
 
2747
  RANLIB=$ac_ct_RANLIB
2748
else
2749
  RANLIB="$ac_cv_prog_RANLIB"
2750
fi
2751
 
2752
if test -n "$ac_tool_prefix"; then
2753
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2754
set dummy ${ac_tool_prefix}readelf; ac_word=$2
2755
echo "$as_me:$LINENO: checking for $ac_word" >&5
2756
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2757
if test "${ac_cv_prog_READELF+set}" = set; then
2758
  echo $ECHO_N "(cached) $ECHO_C" >&6
2759
else
2760
  if test -n "$READELF"; then
2761
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
2762
else
2763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764
for as_dir in $PATH
2765
do
2766
  IFS=$as_save_IFS
2767
  test -z "$as_dir" && as_dir=.
2768
  for ac_exec_ext in '' $ac_executable_extensions; do
2769
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2771
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772
    break 2
2773
  fi
2774
done
2775
done
2776
 
2777
fi
2778
fi
2779
READELF=$ac_cv_prog_READELF
2780
if test -n "$READELF"; then
2781
  echo "$as_me:$LINENO: result: $READELF" >&5
2782
echo "${ECHO_T}$READELF" >&6
2783
else
2784
  echo "$as_me:$LINENO: result: no" >&5
2785
echo "${ECHO_T}no" >&6
2786
fi
2787
 
2788
fi
2789
if test -z "$ac_cv_prog_READELF"; then
2790
  ac_ct_READELF=$READELF
2791
  # Extract the first word of "readelf", so it can be a program name with args.
2792
set dummy readelf; ac_word=$2
2793
echo "$as_me:$LINENO: checking for $ac_word" >&5
2794
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2795
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
2796
  echo $ECHO_N "(cached) $ECHO_C" >&6
2797
else
2798
  if test -n "$ac_ct_READELF"; then
2799
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2800
else
2801
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802
for as_dir in $PATH
2803
do
2804
  IFS=$as_save_IFS
2805
  test -z "$as_dir" && as_dir=.
2806
  for ac_exec_ext in '' $ac_executable_extensions; do
2807
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808
    ac_cv_prog_ac_ct_READELF="readelf"
2809
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810
    break 2
2811
  fi
2812
done
2813
done
2814
 
2815
  test -z "$ac_cv_prog_ac_ct_READELF" && ac_cv_prog_ac_ct_READELF=":"
2816
fi
2817
fi
2818
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2819
if test -n "$ac_ct_READELF"; then
2820
  echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
2821
echo "${ECHO_T}$ac_ct_READELF" >&6
2822
else
2823
  echo "$as_me:$LINENO: result: no" >&5
2824
echo "${ECHO_T}no" >&6
2825
fi
2826
 
2827
  READELF=$ac_ct_READELF
2828
else
2829
  READELF="$ac_cv_prog_READELF"
2830
fi
2831
 
2832
 
2833
# Find a good install program.  We prefer a C program (faster),
2834
# so one script is as good as another.  But avoid the broken or
2835
# incompatible versions:
2836
# SysV /etc/install, /usr/sbin/install
2837
# SunOS /usr/etc/install
2838
# IRIX /sbin/install
2839
# AIX /bin/install
2840
# AmigaOS /C/install, which installs bootblocks on floppy discs
2841
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2842
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2843
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2844
# OS/2's system install, which has a completely different semantic
2845
# ./install, which can be erroneously created by make from ./install.sh.
2846
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2847
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2848
if test -z "$INSTALL"; then
2849
if test "${ac_cv_path_install+set}" = set; then
2850
  echo $ECHO_N "(cached) $ECHO_C" >&6
2851
else
2852
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853
for as_dir in $PATH
2854
do
2855
  IFS=$as_save_IFS
2856
  test -z "$as_dir" && as_dir=.
2857
  # Account for people who put trailing slashes in PATH elements.
2858
case $as_dir/ in
2859
  ./ | .// | /cC/* | \
2860
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2861
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2862
  /usr/ucb/* ) ;;
2863
  *)
2864
    # OSF1 and SCO ODT 3.0 have their own names for install.
2865
    # Don't use installbsd from OSF since it installs stuff as root
2866
    # by default.
2867
    for ac_prog in ginstall scoinst install; do
2868
      for ac_exec_ext in '' $ac_executable_extensions; do
2869
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2870
          if test $ac_prog = install &&
2871
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2872
            # AIX install.  It has an incompatible calling convention.
2873
            :
2874
          elif test $ac_prog = install &&
2875
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2876
            # program-specific install script used by HP pwplus--don't use.
2877
            :
2878
          else
2879
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2880
            break 3
2881
          fi
2882
        fi
2883
      done
2884
    done
2885
    ;;
2886
esac
2887
done
2888
 
2889
 
2890
fi
2891
  if test "${ac_cv_path_install+set}" = set; then
2892
    INSTALL=$ac_cv_path_install
2893
  else
2894
    # As a last resort, use the slow shell script.  We don't cache a
2895
    # path for INSTALL within a source directory, because that will
2896
    # break other packages using the cache if that directory is
2897
    # removed, or if the path is relative.
2898
    INSTALL=$ac_install_sh
2899
  fi
2900
fi
2901
echo "$as_me:$LINENO: result: $INSTALL" >&5
2902
echo "${ECHO_T}$INSTALL" >&6
2903
 
2904
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2905
# It thinks the first close brace ends the variable substitution.
2906
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2907
 
2908
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2909
 
2910
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2911
 
2912
 
2913
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
2914
ac_given_INSTALL=$INSTALL
2915
 
2916
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2917
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2918
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2919
if test "${enable_maintainer_mode+set}" = set; then
2920
  enableval="$enable_maintainer_mode"
2921
  USE_MAINTAINER_MODE=$enableval
2922
else
2923
  USE_MAINTAINER_MODE=no
2924
fi;
2925
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2926
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2927
 
2928
 
2929
if test $USE_MAINTAINER_MODE = yes; then
2930
  MAINTAINER_MODE_TRUE=
2931
  MAINTAINER_MODE_FALSE='#'
2932
else
2933
  MAINTAINER_MODE_TRUE='#'
2934
  MAINTAINER_MODE_FALSE=
2935
fi
2936
 
2937
  MAINT=$MAINTAINER_MODE_TRUE
2938
 
2939
 
2940
# By default we simply use the C compiler to build assembly code.
2941
 
2942
test "${CCAS+set}" = set || CCAS=$CC
2943
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2944
 
2945
 
2946
 
2947
 
2948
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
2949
# at least currently, we never actually build a program, so we never
2950
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
2951
# fails, because we are probably configuring with a cross compiler
2952
# which can't create executables.  So we include AC_EXEEXT to keep
2953
# automake happy, but we don't execute it, since we don't care about
2954
# the result.
2955
if false; then
2956
 
2957
  dummy_var=1
2958
fi
2959
 
2960
. ${newlib_basedir}/configure.host
2961
 
2962
newlib_cflags="${newlib_cflags} -fno-builtin"
2963
 
2964
NEWLIB_CFLAGS=${newlib_cflags}
2965
 
2966
 
2967
LDFLAGS=${ldflags}
2968
 
2969
 
2970
 
2971
 
2972
if test x${newlib_elix_level} = x0; then
2973
  ELIX_LEVEL_0_TRUE=
2974
  ELIX_LEVEL_0_FALSE='#'
2975
else
2976
  ELIX_LEVEL_0_TRUE='#'
2977
  ELIX_LEVEL_0_FALSE=
2978
fi
2979
 
2980
 
2981
 
2982
if test x${newlib_elix_level} = x1; then
2983
  ELIX_LEVEL_1_TRUE=
2984
  ELIX_LEVEL_1_FALSE='#'
2985
else
2986
  ELIX_LEVEL_1_TRUE='#'
2987
  ELIX_LEVEL_1_FALSE=
2988
fi
2989
 
2990
 
2991
 
2992
if test x${newlib_elix_level} = x2; then
2993
  ELIX_LEVEL_2_TRUE=
2994
  ELIX_LEVEL_2_FALSE='#'
2995
else
2996
  ELIX_LEVEL_2_TRUE='#'
2997
  ELIX_LEVEL_2_FALSE=
2998
fi
2999
 
3000
 
3001
 
3002
if test x${newlib_elix_level} = x3; then
3003
  ELIX_LEVEL_3_TRUE=
3004
  ELIX_LEVEL_3_FALSE='#'
3005
else
3006
  ELIX_LEVEL_3_TRUE='#'
3007
  ELIX_LEVEL_3_FALSE=
3008
fi
3009
 
3010
 
3011
 
3012
if test x${newlib_elix_level} = x4; then
3013
  ELIX_LEVEL_4_TRUE=
3014
  ELIX_LEVEL_4_FALSE='#'
3015
else
3016
  ELIX_LEVEL_4_TRUE='#'
3017
  ELIX_LEVEL_4_FALSE=
3018
fi
3019
 
3020
 
3021
 
3022
 
3023
if test x${use_libtool} = xyes; then
3024
  USE_LIBTOOL_TRUE=
3025
  USE_LIBTOOL_FALSE='#'
3026
else
3027
  USE_LIBTOOL_TRUE='#'
3028
  USE_LIBTOOL_FALSE=
3029
fi
3030
 
3031
 
3032
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3033
# use oext, which is set in configure.host based on the target platform.
3034
OBJEXT=${oext}
3035
 
3036
 
3037
 
3038
 
3039
 
3040
 
3041
 
3042
 
3043
 
3044
 
3045
 
3046
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3047
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3048
if test "${lt_cv_path_SED+set}" = set; then
3049
  echo $ECHO_N "(cached) $ECHO_C" >&6
3050
else
3051
  # Loop through the user's path and test for sed and gsed.
3052
# Then use that list of sed's as ones to test for truncation.
3053
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054
for as_dir in $PATH
3055
do
3056
  IFS=$as_save_IFS
3057
  test -z "$as_dir" && as_dir=.
3058
  for lt_ac_prog in sed gsed; do
3059
    for ac_exec_ext in '' $ac_executable_extensions; do
3060
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3061
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3062
      fi
3063
    done
3064
  done
3065
done
3066
IFS=$as_save_IFS
3067
lt_ac_max=0
3068
lt_ac_count=0
3069
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3070
# along with /bin/sed that truncates output.
3071
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3072
  test ! -f $lt_ac_sed && continue
3073
  cat /dev/null > conftest.in
3074
  lt_ac_count=0
3075
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3076
  # Check for GNU sed and select it if it is found.
3077
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3078
    lt_cv_path_SED=$lt_ac_sed
3079
    break
3080
  fi
3081
  while true; do
3082
    cat conftest.in conftest.in >conftest.tmp
3083
    mv conftest.tmp conftest.in
3084
    cp conftest.in conftest.nl
3085
    echo >>conftest.nl
3086
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3087
    cmp -s conftest.out conftest.nl || break
3088
    # 10000 chars as input seems more than enough
3089
    test $lt_ac_count -gt 10 && break
3090
    lt_ac_count=`expr $lt_ac_count + 1`
3091
    if test $lt_ac_count -gt $lt_ac_max; then
3092
      lt_ac_max=$lt_ac_count
3093
      lt_cv_path_SED=$lt_ac_sed
3094
    fi
3095
  done
3096
done
3097
 
3098
fi
3099
 
3100
SED=$lt_cv_path_SED
3101
 
3102
echo "$as_me:$LINENO: result: $SED" >&5
3103
echo "${ECHO_T}$SED" >&6
3104
 
3105
test -z "$SED" && SED=sed
3106
Xsed="$SED -e 1s/^X//"
3107
 
3108
 
3109
 
3110
 
3111
 
3112
 
3113
 
3114
 
3115
 
3116
 
3117
 
3118
if test "${use_libtool}" = "yes"; then
3119
enable_win32_dll=yes
3120
 
3121
case $host in
3122
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3123
  if test -n "$ac_tool_prefix"; then
3124
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3125
set dummy ${ac_tool_prefix}as; ac_word=$2
3126
echo "$as_me:$LINENO: checking for $ac_word" >&5
3127
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3128
if test "${ac_cv_prog_AS+set}" = set; then
3129
  echo $ECHO_N "(cached) $ECHO_C" >&6
3130
else
3131
  if test -n "$AS"; then
3132
  ac_cv_prog_AS="$AS" # Let the user override the test.
3133
else
3134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135
for as_dir in $PATH
3136
do
3137
  IFS=$as_save_IFS
3138
  test -z "$as_dir" && as_dir=.
3139
  for ac_exec_ext in '' $ac_executable_extensions; do
3140
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141
    ac_cv_prog_AS="${ac_tool_prefix}as"
3142
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143
    break 2
3144
  fi
3145
done
3146
done
3147
 
3148
fi
3149
fi
3150
AS=$ac_cv_prog_AS
3151
if test -n "$AS"; then
3152
  echo "$as_me:$LINENO: result: $AS" >&5
3153
echo "${ECHO_T}$AS" >&6
3154
else
3155
  echo "$as_me:$LINENO: result: no" >&5
3156
echo "${ECHO_T}no" >&6
3157
fi
3158
 
3159
fi
3160
if test -z "$ac_cv_prog_AS"; then
3161
  ac_ct_AS=$AS
3162
  # Extract the first word of "as", so it can be a program name with args.
3163
set dummy as; ac_word=$2
3164
echo "$as_me:$LINENO: checking for $ac_word" >&5
3165
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3167
  echo $ECHO_N "(cached) $ECHO_C" >&6
3168
else
3169
  if test -n "$ac_ct_AS"; then
3170
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3171
else
3172
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173
for as_dir in $PATH
3174
do
3175
  IFS=$as_save_IFS
3176
  test -z "$as_dir" && as_dir=.
3177
  for ac_exec_ext in '' $ac_executable_extensions; do
3178
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179
    ac_cv_prog_ac_ct_AS="as"
3180
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181
    break 2
3182
  fi
3183
done
3184
done
3185
 
3186
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3187
fi
3188
fi
3189
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3190
if test -n "$ac_ct_AS"; then
3191
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3192
echo "${ECHO_T}$ac_ct_AS" >&6
3193
else
3194
  echo "$as_me:$LINENO: result: no" >&5
3195
echo "${ECHO_T}no" >&6
3196
fi
3197
 
3198
  AS=$ac_ct_AS
3199
else
3200
  AS="$ac_cv_prog_AS"
3201
fi
3202
 
3203
  if test -n "$ac_tool_prefix"; then
3204
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3205
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3206
echo "$as_me:$LINENO: checking for $ac_word" >&5
3207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3209
  echo $ECHO_N "(cached) $ECHO_C" >&6
3210
else
3211
  if test -n "$DLLTOOL"; then
3212
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3213
else
3214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215
for as_dir in $PATH
3216
do
3217
  IFS=$as_save_IFS
3218
  test -z "$as_dir" && as_dir=.
3219
  for ac_exec_ext in '' $ac_executable_extensions; do
3220
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3222
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3223
    break 2
3224
  fi
3225
done
3226
done
3227
 
3228
fi
3229
fi
3230
DLLTOOL=$ac_cv_prog_DLLTOOL
3231
if test -n "$DLLTOOL"; then
3232
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3233
echo "${ECHO_T}$DLLTOOL" >&6
3234
else
3235
  echo "$as_me:$LINENO: result: no" >&5
3236
echo "${ECHO_T}no" >&6
3237
fi
3238
 
3239
fi
3240
if test -z "$ac_cv_prog_DLLTOOL"; then
3241
  ac_ct_DLLTOOL=$DLLTOOL
3242
  # Extract the first word of "dlltool", so it can be a program name with args.
3243
set dummy dlltool; ac_word=$2
3244
echo "$as_me:$LINENO: checking for $ac_word" >&5
3245
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3247
  echo $ECHO_N "(cached) $ECHO_C" >&6
3248
else
3249
  if test -n "$ac_ct_DLLTOOL"; then
3250
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3251
else
3252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253
for as_dir in $PATH
3254
do
3255
  IFS=$as_save_IFS
3256
  test -z "$as_dir" && as_dir=.
3257
  for ac_exec_ext in '' $ac_executable_extensions; do
3258
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3260
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261
    break 2
3262
  fi
3263
done
3264
done
3265
 
3266
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3267
fi
3268
fi
3269
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3270
if test -n "$ac_ct_DLLTOOL"; then
3271
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3272
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3273
else
3274
  echo "$as_me:$LINENO: result: no" >&5
3275
echo "${ECHO_T}no" >&6
3276
fi
3277
 
3278
  DLLTOOL=$ac_ct_DLLTOOL
3279
else
3280
  DLLTOOL="$ac_cv_prog_DLLTOOL"
3281
fi
3282
 
3283
  if test -n "$ac_tool_prefix"; then
3284
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3285
set dummy ${ac_tool_prefix}objdump; ac_word=$2
3286
echo "$as_me:$LINENO: checking for $ac_word" >&5
3287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3289
  echo $ECHO_N "(cached) $ECHO_C" >&6
3290
else
3291
  if test -n "$OBJDUMP"; then
3292
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3293
else
3294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295
for as_dir in $PATH
3296
do
3297
  IFS=$as_save_IFS
3298
  test -z "$as_dir" && as_dir=.
3299
  for ac_exec_ext in '' $ac_executable_extensions; do
3300
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3302
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303
    break 2
3304
  fi
3305
done
3306
done
3307
 
3308
fi
3309
fi
3310
OBJDUMP=$ac_cv_prog_OBJDUMP
3311
if test -n "$OBJDUMP"; then
3312
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3313
echo "${ECHO_T}$OBJDUMP" >&6
3314
else
3315
  echo "$as_me:$LINENO: result: no" >&5
3316
echo "${ECHO_T}no" >&6
3317
fi
3318
 
3319
fi
3320
if test -z "$ac_cv_prog_OBJDUMP"; then
3321
  ac_ct_OBJDUMP=$OBJDUMP
3322
  # Extract the first word of "objdump", so it can be a program name with args.
3323
set dummy objdump; ac_word=$2
3324
echo "$as_me:$LINENO: checking for $ac_word" >&5
3325
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3326
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3327
  echo $ECHO_N "(cached) $ECHO_C" >&6
3328
else
3329
  if test -n "$ac_ct_OBJDUMP"; then
3330
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3331
else
3332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333
for as_dir in $PATH
3334
do
3335
  IFS=$as_save_IFS
3336
  test -z "$as_dir" && as_dir=.
3337
  for ac_exec_ext in '' $ac_executable_extensions; do
3338
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
3340
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341
    break 2
3342
  fi
3343
done
3344
done
3345
 
3346
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3347
fi
3348
fi
3349
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3350
if test -n "$ac_ct_OBJDUMP"; then
3351
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3352
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3353
else
3354
  echo "$as_me:$LINENO: result: no" >&5
3355
echo "${ECHO_T}no" >&6
3356
fi
3357
 
3358
  OBJDUMP=$ac_ct_OBJDUMP
3359
else
3360
  OBJDUMP="$ac_cv_prog_OBJDUMP"
3361
fi
3362
 
3363
  ;;
3364
esac
3365
 
3366
test -z "$AS" && AS=as
3367
 
3368
 
3369
 
3370
 
3371
 
3372
test -z "$DLLTOOL" && DLLTOOL=dlltool
3373
 
3374
 
3375
 
3376
 
3377
 
3378
test -z "$OBJDUMP" && OBJDUMP=objdump
3379
 
3380
 
3381
 
3382
 
3383
 
3384
 
3385
 
3386
case `pwd` in
3387
  *\ * | *\     *)
3388
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3389
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3390
esac
3391
 
3392
 
3393
 
3394
macro_version='2.2.6'
3395
macro_revision='1.3012'
3396
 
3397
 
3398
 
3399
 
3400
 
3401
 
3402
 
3403
 
3404
 
3405
 
3406
 
3407
 
3408
 
3409
ltmain="$ac_aux_dir/ltmain.sh"
3410
 
3411
ac_ext=c
3412
ac_cpp='$CPP $CPPFLAGS'
3413
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3414
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3415
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3416
if test -n "$ac_tool_prefix"; then
3417
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3418
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3419
echo "$as_me:$LINENO: checking for $ac_word" >&5
3420
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3421
if test "${ac_cv_prog_CC+set}" = set; then
3422
  echo $ECHO_N "(cached) $ECHO_C" >&6
3423
else
3424
  if test -n "$CC"; then
3425
  ac_cv_prog_CC="$CC" # Let the user override the test.
3426
else
3427
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428
for as_dir in $PATH
3429
do
3430
  IFS=$as_save_IFS
3431
  test -z "$as_dir" && as_dir=.
3432
  for ac_exec_ext in '' $ac_executable_extensions; do
3433
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3435
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436
    break 2
3437
  fi
3438
done
3439
done
3440
 
3441
fi
3442
fi
3443
CC=$ac_cv_prog_CC
3444
if test -n "$CC"; then
3445
  echo "$as_me:$LINENO: result: $CC" >&5
3446
echo "${ECHO_T}$CC" >&6
3447
else
3448
  echo "$as_me:$LINENO: result: no" >&5
3449
echo "${ECHO_T}no" >&6
3450
fi
3451
 
3452
fi
3453
if test -z "$ac_cv_prog_CC"; then
3454
  ac_ct_CC=$CC
3455
  # Extract the first word of "gcc", so it can be a program name with args.
3456
set dummy gcc; ac_word=$2
3457
echo "$as_me:$LINENO: checking for $ac_word" >&5
3458
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3460
  echo $ECHO_N "(cached) $ECHO_C" >&6
3461
else
3462
  if test -n "$ac_ct_CC"; then
3463
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3464
else
3465
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466
for as_dir in $PATH
3467
do
3468
  IFS=$as_save_IFS
3469
  test -z "$as_dir" && as_dir=.
3470
  for ac_exec_ext in '' $ac_executable_extensions; do
3471
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472
    ac_cv_prog_ac_ct_CC="gcc"
3473
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474
    break 2
3475
  fi
3476
done
3477
done
3478
 
3479
fi
3480
fi
3481
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3482
if test -n "$ac_ct_CC"; then
3483
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3484
echo "${ECHO_T}$ac_ct_CC" >&6
3485
else
3486
  echo "$as_me:$LINENO: result: no" >&5
3487
echo "${ECHO_T}no" >&6
3488
fi
3489
 
3490
  CC=$ac_ct_CC
3491
else
3492
  CC="$ac_cv_prog_CC"
3493
fi
3494
 
3495
if test -z "$CC"; then
3496
  if test -n "$ac_tool_prefix"; then
3497
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3498
set dummy ${ac_tool_prefix}cc; ac_word=$2
3499
echo "$as_me:$LINENO: checking for $ac_word" >&5
3500
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3501
if test "${ac_cv_prog_CC+set}" = set; then
3502
  echo $ECHO_N "(cached) $ECHO_C" >&6
3503
else
3504
  if test -n "$CC"; then
3505
  ac_cv_prog_CC="$CC" # Let the user override the test.
3506
else
3507
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508
for as_dir in $PATH
3509
do
3510
  IFS=$as_save_IFS
3511
  test -z "$as_dir" && as_dir=.
3512
  for ac_exec_ext in '' $ac_executable_extensions; do
3513
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3515
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3516
    break 2
3517
  fi
3518
done
3519
done
3520
 
3521
fi
3522
fi
3523
CC=$ac_cv_prog_CC
3524
if test -n "$CC"; then
3525
  echo "$as_me:$LINENO: result: $CC" >&5
3526
echo "${ECHO_T}$CC" >&6
3527
else
3528
  echo "$as_me:$LINENO: result: no" >&5
3529
echo "${ECHO_T}no" >&6
3530
fi
3531
 
3532
fi
3533
if test -z "$ac_cv_prog_CC"; then
3534
  ac_ct_CC=$CC
3535
  # Extract the first word of "cc", so it can be a program name with args.
3536
set dummy cc; ac_word=$2
3537
echo "$as_me:$LINENO: checking for $ac_word" >&5
3538
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3540
  echo $ECHO_N "(cached) $ECHO_C" >&6
3541
else
3542
  if test -n "$ac_ct_CC"; then
3543
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544
else
3545
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546
for as_dir in $PATH
3547
do
3548
  IFS=$as_save_IFS
3549
  test -z "$as_dir" && as_dir=.
3550
  for ac_exec_ext in '' $ac_executable_extensions; do
3551
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552
    ac_cv_prog_ac_ct_CC="cc"
3553
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554
    break 2
3555
  fi
3556
done
3557
done
3558
 
3559
fi
3560
fi
3561
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562
if test -n "$ac_ct_CC"; then
3563
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3564
echo "${ECHO_T}$ac_ct_CC" >&6
3565
else
3566
  echo "$as_me:$LINENO: result: no" >&5
3567
echo "${ECHO_T}no" >&6
3568
fi
3569
 
3570
  CC=$ac_ct_CC
3571
else
3572
  CC="$ac_cv_prog_CC"
3573
fi
3574
 
3575
fi
3576
if test -z "$CC"; then
3577
  # Extract the first word of "cc", so it can be a program name with args.
3578
set dummy cc; ac_word=$2
3579
echo "$as_me:$LINENO: checking for $ac_word" >&5
3580
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3581
if test "${ac_cv_prog_CC+set}" = set; then
3582
  echo $ECHO_N "(cached) $ECHO_C" >&6
3583
else
3584
  if test -n "$CC"; then
3585
  ac_cv_prog_CC="$CC" # Let the user override the test.
3586
else
3587
  ac_prog_rejected=no
3588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589
for as_dir in $PATH
3590
do
3591
  IFS=$as_save_IFS
3592
  test -z "$as_dir" && as_dir=.
3593
  for ac_exec_ext in '' $ac_executable_extensions; do
3594
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3596
       ac_prog_rejected=yes
3597
       continue
3598
     fi
3599
    ac_cv_prog_CC="cc"
3600
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601
    break 2
3602
  fi
3603
done
3604
done
3605
 
3606
if test $ac_prog_rejected = yes; then
3607
  # We found a bogon in the path, so make sure we never use it.
3608
  set dummy $ac_cv_prog_CC
3609
  shift
3610
  if test $# != 0; then
3611
    # We chose a different compiler from the bogus one.
3612
    # However, it has the same basename, so the bogon will be chosen
3613
    # first if we set CC to just the basename; use the full file name.
3614
    shift
3615
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3616
  fi
3617
fi
3618
fi
3619
fi
3620
CC=$ac_cv_prog_CC
3621
if test -n "$CC"; then
3622
  echo "$as_me:$LINENO: result: $CC" >&5
3623
echo "${ECHO_T}$CC" >&6
3624
else
3625
  echo "$as_me:$LINENO: result: no" >&5
3626
echo "${ECHO_T}no" >&6
3627
fi
3628
 
3629
fi
3630
if test -z "$CC"; then
3631
  if test -n "$ac_tool_prefix"; then
3632
  for ac_prog in cl
3633
  do
3634
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3635
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3636
echo "$as_me:$LINENO: checking for $ac_word" >&5
3637
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638
if test "${ac_cv_prog_CC+set}" = set; then
3639
  echo $ECHO_N "(cached) $ECHO_C" >&6
3640
else
3641
  if test -n "$CC"; then
3642
  ac_cv_prog_CC="$CC" # Let the user override the test.
3643
else
3644
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645
for as_dir in $PATH
3646
do
3647
  IFS=$as_save_IFS
3648
  test -z "$as_dir" && as_dir=.
3649
  for ac_exec_ext in '' $ac_executable_extensions; do
3650
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3652
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3653
    break 2
3654
  fi
3655
done
3656
done
3657
 
3658
fi
3659
fi
3660
CC=$ac_cv_prog_CC
3661
if test -n "$CC"; then
3662
  echo "$as_me:$LINENO: result: $CC" >&5
3663
echo "${ECHO_T}$CC" >&6
3664
else
3665
  echo "$as_me:$LINENO: result: no" >&5
3666
echo "${ECHO_T}no" >&6
3667
fi
3668
 
3669
    test -n "$CC" && break
3670
  done
3671
fi
3672
if test -z "$CC"; then
3673
  ac_ct_CC=$CC
3674
  for ac_prog in cl
3675
do
3676
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3677
set dummy $ac_prog; ac_word=$2
3678
echo "$as_me:$LINENO: checking for $ac_word" >&5
3679
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3680
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3681
  echo $ECHO_N "(cached) $ECHO_C" >&6
3682
else
3683
  if test -n "$ac_ct_CC"; then
3684
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3685
else
3686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687
for as_dir in $PATH
3688
do
3689
  IFS=$as_save_IFS
3690
  test -z "$as_dir" && as_dir=.
3691
  for ac_exec_ext in '' $ac_executable_extensions; do
3692
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693
    ac_cv_prog_ac_ct_CC="$ac_prog"
3694
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695
    break 2
3696
  fi
3697
done
3698
done
3699
 
3700
fi
3701
fi
3702
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3703
if test -n "$ac_ct_CC"; then
3704
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3705
echo "${ECHO_T}$ac_ct_CC" >&6
3706
else
3707
  echo "$as_me:$LINENO: result: no" >&5
3708
echo "${ECHO_T}no" >&6
3709
fi
3710
 
3711
  test -n "$ac_ct_CC" && break
3712
done
3713
 
3714
  CC=$ac_ct_CC
3715
fi
3716
 
3717
fi
3718
 
3719
 
3720
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3721
See \`config.log' for more details." >&5
3722
echo "$as_me: error: no acceptable C compiler found in \$PATH
3723
See \`config.log' for more details." >&2;}
3724
   { (exit 1); exit 1; }; }
3725
 
3726
# Provide some information about the compiler.
3727
echo "$as_me:$LINENO:" \
3728
     "checking for C compiler version" >&5
3729
ac_compiler=`set X $ac_compile; echo $2`
3730
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3731
  (eval $ac_compiler --version &5) 2>&5
3732
  ac_status=$?
3733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734
  (exit $ac_status); }
3735
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3736
  (eval $ac_compiler -v &5) 2>&5
3737
  ac_status=$?
3738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739
  (exit $ac_status); }
3740
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3741
  (eval $ac_compiler -V &5) 2>&5
3742
  ac_status=$?
3743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744
  (exit $ac_status); }
3745
 
3746
cat >conftest.$ac_ext <<_ACEOF
3747
/* confdefs.h.  */
3748
_ACEOF
3749
cat confdefs.h >>conftest.$ac_ext
3750
cat >>conftest.$ac_ext <<_ACEOF
3751
/* end confdefs.h.  */
3752
 
3753
int
3754
main ()
3755
{
3756
 
3757
  ;
3758
  return 0;
3759
}
3760
_ACEOF
3761
ac_clean_files_save=$ac_clean_files
3762
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3763
# Try to create an executable without -o first, disregard a.out.
3764
# It will help us diagnose broken compilers, and finding out an intuition
3765
# of exeext.
3766
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3767
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3768
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3769
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3770
  (eval $ac_link_default) 2>&5
3771
  ac_status=$?
3772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773
  (exit $ac_status); }; then
3774
  # Find the output, starting from the most likely.  This scheme is
3775
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3776
# resort.
3777
 
3778
# Be careful to initialize this variable, since it used to be cached.
3779
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3780
ac_cv_exeext=
3781
# b.out is created by i960 compilers.
3782
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3783
do
3784
  test -f "$ac_file" || continue
3785
  case $ac_file in
3786
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3787
        ;;
3788
    conftest.$ac_ext )
3789
        # This is the source file.
3790
        ;;
3791
    [ab].out )
3792
        # We found the default executable, but exeext='' is most
3793
        # certainly right.
3794
        break;;
3795
    *.* )
3796
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3797
        # FIXME: I believe we export ac_cv_exeext for Libtool,
3798
        # but it would be cool to find out if it's true.  Does anybody
3799
        # maintain Libtool? --akim.
3800
        export ac_cv_exeext
3801
        break;;
3802
    * )
3803
        break;;
3804
  esac
3805
done
3806
else
3807
  echo "$as_me: failed program was:" >&5
3808
sed 's/^/| /' conftest.$ac_ext >&5
3809
 
3810
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3811
See \`config.log' for more details." >&5
3812
echo "$as_me: error: C compiler cannot create executables
3813
See \`config.log' for more details." >&2;}
3814
   { (exit 77); exit 77; }; }
3815
fi
3816
 
3817
ac_exeext=$ac_cv_exeext
3818
echo "$as_me:$LINENO: result: $ac_file" >&5
3819
echo "${ECHO_T}$ac_file" >&6
3820
 
3821
# Check the compiler produces executables we can run.  If not, either
3822
# the compiler is broken, or we cross compile.
3823
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3824
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3825
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3826
# If not cross compiling, check that we can run a simple program.
3827
if test "$cross_compiling" != yes; then
3828
  if { ac_try='./$ac_file'
3829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830
  (eval $ac_try) 2>&5
3831
  ac_status=$?
3832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833
  (exit $ac_status); }; }; then
3834
    cross_compiling=no
3835
  else
3836
    if test "$cross_compiling" = maybe; then
3837
        cross_compiling=yes
3838
    else
3839
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3840
If you meant to cross compile, use \`--host'.
3841
See \`config.log' for more details." >&5
3842
echo "$as_me: error: cannot run C compiled programs.
3843
If you meant to cross compile, use \`--host'.
3844
See \`config.log' for more details." >&2;}
3845
   { (exit 1); exit 1; }; }
3846
    fi
3847
  fi
3848
fi
3849
echo "$as_me:$LINENO: result: yes" >&5
3850
echo "${ECHO_T}yes" >&6
3851
 
3852
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3853
ac_clean_files=$ac_clean_files_save
3854
# Check the compiler produces executables we can run.  If not, either
3855
# the compiler is broken, or we cross compile.
3856
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3857
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3858
echo "$as_me:$LINENO: result: $cross_compiling" >&5
3859
echo "${ECHO_T}$cross_compiling" >&6
3860
 
3861
echo "$as_me:$LINENO: checking for suffix of executables" >&5
3862
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3863
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3864
  (eval $ac_link) 2>&5
3865
  ac_status=$?
3866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867
  (exit $ac_status); }; then
3868
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3869
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3870
# work properly (i.e., refer to `conftest.exe'), while it won't with
3871
# `rm'.
3872
for ac_file in conftest.exe conftest conftest.*; do
3873
  test -f "$ac_file" || continue
3874
  case $ac_file in
3875
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3876
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3877
          export ac_cv_exeext
3878
          break;;
3879
    * ) break;;
3880
  esac
3881
done
3882
else
3883
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3884
See \`config.log' for more details." >&5
3885
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3886
See \`config.log' for more details." >&2;}
3887
   { (exit 1); exit 1; }; }
3888
fi
3889
 
3890
rm -f conftest$ac_cv_exeext
3891
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3892
echo "${ECHO_T}$ac_cv_exeext" >&6
3893
 
3894
rm -f conftest.$ac_ext
3895
EXEEXT=$ac_cv_exeext
3896
ac_exeext=$EXEEXT
3897
echo "$as_me:$LINENO: checking for suffix of object files" >&5
3898
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3899
if test "${ac_cv_objext+set}" = set; then
3900
  echo $ECHO_N "(cached) $ECHO_C" >&6
3901
else
3902
  cat >conftest.$ac_ext <<_ACEOF
3903
/* confdefs.h.  */
3904
_ACEOF
3905
cat confdefs.h >>conftest.$ac_ext
3906
cat >>conftest.$ac_ext <<_ACEOF
3907
/* end confdefs.h.  */
3908
 
3909
int
3910
main ()
3911
{
3912
 
3913
  ;
3914
  return 0;
3915
}
3916
_ACEOF
3917
rm -f conftest.o conftest.obj
3918
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919
  (eval $ac_compile) 2>&5
3920
  ac_status=$?
3921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922
  (exit $ac_status); }; then
3923
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3924
  case $ac_file in
3925
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3926
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3927
       break;;
3928
  esac
3929
done
3930
else
3931
  echo "$as_me: failed program was:" >&5
3932
sed 's/^/| /' conftest.$ac_ext >&5
3933
 
3934
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3935
See \`config.log' for more details." >&5
3936
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3937
See \`config.log' for more details." >&2;}
3938
   { (exit 1); exit 1; }; }
3939
fi
3940
 
3941
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3942
fi
3943
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3944
echo "${ECHO_T}$ac_cv_objext" >&6
3945
OBJEXT=$ac_cv_objext
3946
ac_objext=$OBJEXT
3947
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3948
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3949
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3950
  echo $ECHO_N "(cached) $ECHO_C" >&6
3951
else
3952
  cat >conftest.$ac_ext <<_ACEOF
3953
/* confdefs.h.  */
3954
_ACEOF
3955
cat confdefs.h >>conftest.$ac_ext
3956
cat >>conftest.$ac_ext <<_ACEOF
3957
/* end confdefs.h.  */
3958
 
3959
int
3960
main ()
3961
{
3962
#ifndef __GNUC__
3963
       choke me
3964
#endif
3965
 
3966
  ;
3967
  return 0;
3968
}
3969
_ACEOF
3970
rm -f conftest.$ac_objext
3971
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3972
  (eval $ac_compile) 2>conftest.er1
3973
  ac_status=$?
3974
  grep -v '^ *+' conftest.er1 >conftest.err
3975
  rm -f conftest.er1
3976
  cat conftest.err >&5
3977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978
  (exit $ac_status); } &&
3979
         { ac_try='test -z "$ac_c_werror_flag"
3980
                         || test ! -s conftest.err'
3981
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982
  (eval $ac_try) 2>&5
3983
  ac_status=$?
3984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985
  (exit $ac_status); }; } &&
3986
         { ac_try='test -s conftest.$ac_objext'
3987
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988
  (eval $ac_try) 2>&5
3989
  ac_status=$?
3990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991
  (exit $ac_status); }; }; then
3992
  ac_compiler_gnu=yes
3993
else
3994
  echo "$as_me: failed program was:" >&5
3995
sed 's/^/| /' conftest.$ac_ext >&5
3996
 
3997
ac_compiler_gnu=no
3998
fi
3999
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4000
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4001
 
4002
fi
4003
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4004
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4005
GCC=`test $ac_compiler_gnu = yes && echo yes`
4006
ac_test_CFLAGS=${CFLAGS+set}
4007
ac_save_CFLAGS=$CFLAGS
4008
CFLAGS="-g"
4009
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4010
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4011
if test "${ac_cv_prog_cc_g+set}" = set; then
4012
  echo $ECHO_N "(cached) $ECHO_C" >&6
4013
else
4014
  cat >conftest.$ac_ext <<_ACEOF
4015
/* confdefs.h.  */
4016
_ACEOF
4017
cat confdefs.h >>conftest.$ac_ext
4018
cat >>conftest.$ac_ext <<_ACEOF
4019
/* end confdefs.h.  */
4020
 
4021
int
4022
main ()
4023
{
4024
 
4025
  ;
4026
  return 0;
4027
}
4028
_ACEOF
4029
rm -f conftest.$ac_objext
4030
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031
  (eval $ac_compile) 2>conftest.er1
4032
  ac_status=$?
4033
  grep -v '^ *+' conftest.er1 >conftest.err
4034
  rm -f conftest.er1
4035
  cat conftest.err >&5
4036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037
  (exit $ac_status); } &&
4038
         { ac_try='test -z "$ac_c_werror_flag"
4039
                         || test ! -s conftest.err'
4040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041
  (eval $ac_try) 2>&5
4042
  ac_status=$?
4043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044
  (exit $ac_status); }; } &&
4045
         { ac_try='test -s conftest.$ac_objext'
4046
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047
  (eval $ac_try) 2>&5
4048
  ac_status=$?
4049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050
  (exit $ac_status); }; }; then
4051
  ac_cv_prog_cc_g=yes
4052
else
4053
  echo "$as_me: failed program was:" >&5
4054
sed 's/^/| /' conftest.$ac_ext >&5
4055
 
4056
ac_cv_prog_cc_g=no
4057
fi
4058
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4059
fi
4060
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4061
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4062
if test "$ac_test_CFLAGS" = set; then
4063
  CFLAGS=$ac_save_CFLAGS
4064
elif test $ac_cv_prog_cc_g = yes; then
4065
  if test "$GCC" = yes; then
4066
    CFLAGS="-g -O2"
4067
  else
4068
    CFLAGS="-g"
4069
  fi
4070
else
4071
  if test "$GCC" = yes; then
4072
    CFLAGS="-O2"
4073
  else
4074
    CFLAGS=
4075
  fi
4076
fi
4077
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4078
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4079
if test "${ac_cv_prog_cc_stdc+set}" = set; then
4080
  echo $ECHO_N "(cached) $ECHO_C" >&6
4081
else
4082
  ac_cv_prog_cc_stdc=no
4083
ac_save_CC=$CC
4084
cat >conftest.$ac_ext <<_ACEOF
4085
/* confdefs.h.  */
4086
_ACEOF
4087
cat confdefs.h >>conftest.$ac_ext
4088
cat >>conftest.$ac_ext <<_ACEOF
4089
/* end confdefs.h.  */
4090
#include 
4091
#include 
4092
#include 
4093
#include 
4094
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4095
struct buf { int x; };
4096
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4097
static char *e (p, i)
4098
     char **p;
4099
     int i;
4100
{
4101
  return p[i];
4102
}
4103
static char *f (char * (*g) (char **, int), char **p, ...)
4104
{
4105
  char *s;
4106
  va_list v;
4107
  va_start (v,p);
4108
  s = g (p, va_arg (v,int));
4109
  va_end (v);
4110
  return s;
4111
}
4112
 
4113
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4114
   function prototypes and stuff, but not '\xHH' hex character constants.
4115
   These don't provoke an error unfortunately, instead are silently treated
4116
   as 'x'.  The following induces an error, until -std1 is added to get
4117
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4118
   array size at least.  It's necessary to write '\x00'==0 to get something
4119
   that's true only with -std1.  */
4120
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4121
 
4122
int test (int i, double x);
4123
struct s1 {int (*f) (int a);};
4124
struct s2 {int (*f) (double a);};
4125
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4126
int argc;
4127
char **argv;
4128
int
4129
main ()
4130
{
4131
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4132
  ;
4133
  return 0;
4134
}
4135
_ACEOF
4136
# Don't try gcc -ansi; that turns off useful extensions and
4137
# breaks some systems' header files.
4138
# AIX                   -qlanglvl=ansi
4139
# Ultrix and OSF/1      -std1
4140
# HP-UX 10.20 and later -Ae
4141
# HP-UX older versions  -Aa -D_HPUX_SOURCE
4142
# SVR4                  -Xc -D__EXTENSIONS__
4143
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4144
do
4145
  CC="$ac_save_CC $ac_arg"
4146
  rm -f conftest.$ac_objext
4147
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148
  (eval $ac_compile) 2>conftest.er1
4149
  ac_status=$?
4150
  grep -v '^ *+' conftest.er1 >conftest.err
4151
  rm -f conftest.er1
4152
  cat conftest.err >&5
4153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154
  (exit $ac_status); } &&
4155
         { ac_try='test -z "$ac_c_werror_flag"
4156
                         || test ! -s conftest.err'
4157
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158
  (eval $ac_try) 2>&5
4159
  ac_status=$?
4160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161
  (exit $ac_status); }; } &&
4162
         { ac_try='test -s conftest.$ac_objext'
4163
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164
  (eval $ac_try) 2>&5
4165
  ac_status=$?
4166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167
  (exit $ac_status); }; }; then
4168
  ac_cv_prog_cc_stdc=$ac_arg
4169
break
4170
else
4171
  echo "$as_me: failed program was:" >&5
4172
sed 's/^/| /' conftest.$ac_ext >&5
4173
 
4174
fi
4175
rm -f conftest.err conftest.$ac_objext
4176
done
4177
rm -f conftest.$ac_ext conftest.$ac_objext
4178
CC=$ac_save_CC
4179
 
4180
fi
4181
 
4182
case "x$ac_cv_prog_cc_stdc" in
4183
  x|xno)
4184
    echo "$as_me:$LINENO: result: none needed" >&5
4185
echo "${ECHO_T}none needed" >&6 ;;
4186
  *)
4187
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4188
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4189
    CC="$CC $ac_cv_prog_cc_stdc" ;;
4190
esac
4191
 
4192
# Some people use a C++ compiler to compile C.  Since we use `exit',
4193
# in C++ we need to declare it.  In case someone uses the same compiler
4194
# for both compiling C and C++ we need to have the C++ compiler decide
4195
# the declaration of exit, since it's the most demanding environment.
4196
cat >conftest.$ac_ext <<_ACEOF
4197
#ifndef __cplusplus
4198
  choke me
4199
#endif
4200
_ACEOF
4201
rm -f conftest.$ac_objext
4202
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4203
  (eval $ac_compile) 2>conftest.er1
4204
  ac_status=$?
4205
  grep -v '^ *+' conftest.er1 >conftest.err
4206
  rm -f conftest.er1
4207
  cat conftest.err >&5
4208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209
  (exit $ac_status); } &&
4210
         { ac_try='test -z "$ac_c_werror_flag"
4211
                         || test ! -s conftest.err'
4212
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213
  (eval $ac_try) 2>&5
4214
  ac_status=$?
4215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216
  (exit $ac_status); }; } &&
4217
         { ac_try='test -s conftest.$ac_objext'
4218
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219
  (eval $ac_try) 2>&5
4220
  ac_status=$?
4221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222
  (exit $ac_status); }; }; then
4223
  for ac_declaration in \
4224
   '' \
4225
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4226
   'extern "C" void std::exit (int); using std::exit;' \
4227
   'extern "C" void exit (int) throw ();' \
4228
   'extern "C" void exit (int);' \
4229
   'void exit (int);'
4230
do
4231
  cat >conftest.$ac_ext <<_ACEOF
4232
/* confdefs.h.  */
4233
_ACEOF
4234
cat confdefs.h >>conftest.$ac_ext
4235
cat >>conftest.$ac_ext <<_ACEOF
4236
/* end confdefs.h.  */
4237
$ac_declaration
4238
#include 
4239
int
4240
main ()
4241
{
4242
exit (42);
4243
  ;
4244
  return 0;
4245
}
4246
_ACEOF
4247
rm -f conftest.$ac_objext
4248
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249
  (eval $ac_compile) 2>conftest.er1
4250
  ac_status=$?
4251
  grep -v '^ *+' conftest.er1 >conftest.err
4252
  rm -f conftest.er1
4253
  cat conftest.err >&5
4254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255
  (exit $ac_status); } &&
4256
         { ac_try='test -z "$ac_c_werror_flag"
4257
                         || test ! -s conftest.err'
4258
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259
  (eval $ac_try) 2>&5
4260
  ac_status=$?
4261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262
  (exit $ac_status); }; } &&
4263
         { ac_try='test -s conftest.$ac_objext'
4264
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265
  (eval $ac_try) 2>&5
4266
  ac_status=$?
4267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268
  (exit $ac_status); }; }; then
4269
  :
4270
else
4271
  echo "$as_me: failed program was:" >&5
4272
sed 's/^/| /' conftest.$ac_ext >&5
4273
 
4274
continue
4275
fi
4276
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4277
  cat >conftest.$ac_ext <<_ACEOF
4278
/* confdefs.h.  */
4279
_ACEOF
4280
cat confdefs.h >>conftest.$ac_ext
4281
cat >>conftest.$ac_ext <<_ACEOF
4282
/* end confdefs.h.  */
4283
$ac_declaration
4284
int
4285
main ()
4286
{
4287
exit (42);
4288
  ;
4289
  return 0;
4290
}
4291
_ACEOF
4292
rm -f conftest.$ac_objext
4293
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4294
  (eval $ac_compile) 2>conftest.er1
4295
  ac_status=$?
4296
  grep -v '^ *+' conftest.er1 >conftest.err
4297
  rm -f conftest.er1
4298
  cat conftest.err >&5
4299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300
  (exit $ac_status); } &&
4301
         { ac_try='test -z "$ac_c_werror_flag"
4302
                         || test ! -s conftest.err'
4303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304
  (eval $ac_try) 2>&5
4305
  ac_status=$?
4306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307
  (exit $ac_status); }; } &&
4308
         { ac_try='test -s conftest.$ac_objext'
4309
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310
  (eval $ac_try) 2>&5
4311
  ac_status=$?
4312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313
  (exit $ac_status); }; }; then
4314
  break
4315
else
4316
  echo "$as_me: failed program was:" >&5
4317
sed 's/^/| /' conftest.$ac_ext >&5
4318
 
4319
fi
4320
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4321
done
4322
rm -f conftest*
4323
if test -n "$ac_declaration"; then
4324
  echo '#ifdef __cplusplus' >>confdefs.h
4325
  echo $ac_declaration      >>confdefs.h
4326
  echo '#endif'             >>confdefs.h
4327
fi
4328
 
4329
else
4330
  echo "$as_me: failed program was:" >&5
4331
sed 's/^/| /' conftest.$ac_ext >&5
4332
 
4333
fi
4334
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4335
ac_ext=c
4336
ac_cpp='$CPP $CPPFLAGS'
4337
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340
 
4341
depcc="$CC"   am_compiler_list=
4342
 
4343
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4344
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4345
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4346
  echo $ECHO_N "(cached) $ECHO_C" >&6
4347
else
4348
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4349
  # We make a subdir and do the tests there.  Otherwise we can end up
4350
  # making bogus files that we don't know about and never remove.  For
4351
  # instance it was reported that on HP-UX the gcc test will end up
4352
  # making a dummy file named `D' -- because `-MD' means `put the output
4353
  # in D'.
4354
  mkdir conftest.dir
4355
  # Copy depcomp to subdir because otherwise we won't find it if we're
4356
  # using a relative directory.
4357
  cp "$am_depcomp" conftest.dir
4358
  cd conftest.dir
4359
  # We will build objects and dependencies in a subdirectory because
4360
  # it helps to detect inapplicable dependency modes.  For instance
4361
  # both Tru64's cc and ICC support -MD to output dependencies as a
4362
  # side effect of compilation, but ICC will put the dependencies in
4363
  # the current directory while Tru64 will put them in the object
4364
  # directory.
4365
  mkdir sub
4366
 
4367
  am_cv_CC_dependencies_compiler_type=none
4368
  if test "$am_compiler_list" = ""; then
4369
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4370
  fi
4371
  for depmode in $am_compiler_list; do
4372
    # Setup a source with many dependencies, because some compilers
4373
    # like to wrap large dependency lists on column 80 (with \), and
4374
    # we should not choose a depcomp mode which is confused by this.
4375
    #
4376
    # We need to recreate these files for each test, as the compiler may
4377
    # overwrite some of them when testing with obscure command lines.
4378
    # This happens at least with the AIX C compiler.
4379
    : > sub/conftest.c
4380
    for i in 1 2 3 4 5 6; do
4381
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4382
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4383
      # Solaris 8's {/usr,}/bin/sh.
4384
      touch sub/conftst$i.h
4385
    done
4386
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4387
 
4388
    case $depmode in
4389
    nosideeffect)
4390
      # after this tag, mechanisms are not by side-effect, so they'll
4391
      # only be used when explicitly requested
4392
      if test "x$enable_dependency_tracking" = xyes; then
4393
        continue
4394
      else
4395
        break
4396
      fi
4397
      ;;
4398
    none) break ;;
4399
    esac
4400
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4401
    # mode.  It turns out that the SunPro C++ compiler does not properly
4402
    # handle `-M -o', and we need to detect this.
4403
    if depmode=$depmode \
4404
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4405
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4406
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4407
         >/dev/null 2>conftest.err &&
4408
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4409
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4410
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4411
      # icc doesn't choke on unknown options, it will just issue warnings
4412
      # or remarks (even with -Werror).  So we grep stderr for any message
4413
      # that says an option was ignored or not supported.
4414
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4415
      #   icc: Command line warning: ignoring option '-M'; no argument required
4416
      # The diagnosis changed in icc 8.0:
4417
      #   icc: Command line remark: option '-MP' not supported
4418
      if (grep 'ignoring option' conftest.err ||
4419
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4420
        am_cv_CC_dependencies_compiler_type=$depmode
4421
        break
4422
      fi
4423
    fi
4424
  done
4425
 
4426
  cd ..
4427
  rm -rf conftest.dir
4428
else
4429
  am_cv_CC_dependencies_compiler_type=none
4430
fi
4431
 
4432
fi
4433
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4434
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4435
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4436
 
4437
 
4438
 
4439
if
4440
  test "x$enable_dependency_tracking" != xno \
4441
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4442
  am__fastdepCC_TRUE=
4443
  am__fastdepCC_FALSE='#'
4444
else
4445
  am__fastdepCC_TRUE='#'
4446
  am__fastdepCC_FALSE=
4447
fi
4448
 
4449
 
4450
echo "$as_me:$LINENO: checking for egrep" >&5
4451
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4452
if test "${ac_cv_prog_egrep+set}" = set; then
4453
  echo $ECHO_N "(cached) $ECHO_C" >&6
4454
else
4455
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4456
    then ac_cv_prog_egrep='grep -E'
4457
    else ac_cv_prog_egrep='egrep'
4458
    fi
4459
fi
4460
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4461
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4462
 EGREP=$ac_cv_prog_egrep
4463
 
4464
 
4465
echo "$as_me:$LINENO: checking for fgrep" >&5
4466
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4467
if test "${ac_cv_prog_fgrep+set}" = set; then
4468
  echo $ECHO_N "(cached) $ECHO_C" >&6
4469
else
4470
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4471
    then ac_cv_prog_fgrep='grep -F'
4472
    else ac_cv_prog_fgrep='fgrep'
4473
    fi
4474
fi
4475
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4476
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4477
 FGREP=$ac_cv_prog_fgrep
4478
 
4479
 
4480
test -z "$GREP" && GREP=grep
4481
 
4482
 
4483
 
4484
 
4485
 
4486
 
4487
 
4488
 
4489
 
4490
 
4491
 
4492
 
4493
 
4494
 
4495
 
4496
 
4497
 
4498
 
4499
 
4500
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4501
if test "${with_gnu_ld+set}" = set; then
4502
  withval="$with_gnu_ld"
4503
  test "$withval" = no || with_gnu_ld=yes
4504
else
4505
  with_gnu_ld=no
4506
fi;
4507
ac_prog=ld
4508
if test "$GCC" = yes; then
4509
  # Check if gcc -print-prog-name=ld gives a path.
4510
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4511
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4512
  case $host in
4513
  *-*-mingw*)
4514
    # gcc leaves a trailing carriage return which upsets mingw
4515
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4516
  *)
4517
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4518
  esac
4519
  case $ac_prog in
4520
    # Accept absolute paths.
4521
    [\\/]* | ?:[\\/]*)
4522
      re_direlt='/[^/][^/]*/\.\./'
4523
      # Canonicalize the pathname of ld
4524
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4525
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4526
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4527
      done
4528
      test -z "$LD" && LD="$ac_prog"
4529
      ;;
4530
  "")
4531
    # If it fails, then pretend we aren't using GCC.
4532
    ac_prog=ld
4533
    ;;
4534
  *)
4535
    # If it is relative, then search for the first ld in PATH.
4536
    with_gnu_ld=unknown
4537
    ;;
4538
  esac
4539
elif test "$with_gnu_ld" = yes; then
4540
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4541
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4542
else
4543
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4544
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4545
fi
4546
if test "${lt_cv_path_LD+set}" = set; then
4547
  echo $ECHO_N "(cached) $ECHO_C" >&6
4548
else
4549
  if test -z "$LD"; then
4550
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4551
  for ac_dir in $PATH; do
4552
    IFS="$lt_save_ifs"
4553
    test -z "$ac_dir" && ac_dir=.
4554
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4555
      lt_cv_path_LD="$ac_dir/$ac_prog"
4556
      # Check to see if the program is GNU ld.  I'd rather use --version,
4557
      # but apparently some variants of GNU ld only accept -v.
4558
      # Break only if it was the GNU/non-GNU ld that we prefer.
4559
      case `"$lt_cv_path_LD" -v 2>&1 
4560
      *GNU* | *'with BFD'*)
4561
        test "$with_gnu_ld" != no && break
4562
        ;;
4563
      *)
4564
        test "$with_gnu_ld" != yes && break
4565
        ;;
4566
      esac
4567
    fi
4568
  done
4569
  IFS="$lt_save_ifs"
4570
else
4571
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4572
fi
4573
fi
4574
 
4575
LD="$lt_cv_path_LD"
4576
if test -n "$LD"; then
4577
  echo "$as_me:$LINENO: result: $LD" >&5
4578
echo "${ECHO_T}$LD" >&6
4579
else
4580
  echo "$as_me:$LINENO: result: no" >&5
4581
echo "${ECHO_T}no" >&6
4582
fi
4583
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4584
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4585
   { (exit 1); exit 1; }; }
4586
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4587
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4588
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4589
  echo $ECHO_N "(cached) $ECHO_C" >&6
4590
else
4591
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4592
case `$LD -v 2>&1 
4593
*GNU* | *'with BFD'*)
4594
  lt_cv_prog_gnu_ld=yes
4595
  ;;
4596
*)
4597
  lt_cv_prog_gnu_ld=no
4598
  ;;
4599
esac
4600
fi
4601
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4602
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4603
with_gnu_ld=$lt_cv_prog_gnu_ld
4604
 
4605
 
4606
 
4607
 
4608
 
4609
 
4610
 
4611
 
4612
 
4613
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4614
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4615
if test "${lt_cv_path_NM+set}" = set; then
4616
  echo $ECHO_N "(cached) $ECHO_C" >&6
4617
else
4618
  if test -n "$NM"; then
4619
  # Let the user override the test.
4620
  lt_cv_path_NM="$NM"
4621
else
4622
  lt_nm_to_check="${ac_tool_prefix}nm"
4623
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4624
    lt_nm_to_check="$lt_nm_to_check nm"
4625
  fi
4626
  for lt_tmp_nm in $lt_nm_to_check; do
4627
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4628
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4629
      IFS="$lt_save_ifs"
4630
      test -z "$ac_dir" && ac_dir=.
4631
      tmp_nm="$ac_dir/$lt_tmp_nm"
4632
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4633
        # Check to see if the nm accepts a BSD-compat flag.
4634
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4635
        #   nm: unknown option "B" ignored
4636
        # Tru64's nm complains that /dev/null is an invalid object file
4637
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4638
        */dev/null* | *'Invalid file or object type'*)
4639
          lt_cv_path_NM="$tmp_nm -B"
4640
          break
4641
          ;;
4642
        *)
4643
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4644
          */dev/null*)
4645
            lt_cv_path_NM="$tmp_nm -p"
4646
            break
4647
            ;;
4648
          *)
4649
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4650
            continue # so that we can try to find one that supports BSD flags
4651
            ;;
4652
          esac
4653
          ;;
4654
        esac
4655
      fi
4656
    done
4657
    IFS="$lt_save_ifs"
4658
  done
4659
  : ${lt_cv_path_NM=no}
4660
fi
4661
fi
4662
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4663
echo "${ECHO_T}$lt_cv_path_NM" >&6
4664
if test "$lt_cv_path_NM" != "no"; then
4665
  NM="$lt_cv_path_NM"
4666
else
4667
  # Didn't find any BSD compatible name lister, look for dumpbin.
4668
  if test -n "$ac_tool_prefix"; then
4669
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4670
  do
4671
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4672
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4673
echo "$as_me:$LINENO: checking for $ac_word" >&5
4674
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4675
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4676
  echo $ECHO_N "(cached) $ECHO_C" >&6
4677
else
4678
  if test -n "$DUMPBIN"; then
4679
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4680
else
4681
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682
for as_dir in $PATH
4683
do
4684
  IFS=$as_save_IFS
4685
  test -z "$as_dir" && as_dir=.
4686
  for ac_exec_ext in '' $ac_executable_extensions; do
4687
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4689
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4690
    break 2
4691
  fi
4692
done
4693
done
4694
 
4695
fi
4696
fi
4697
DUMPBIN=$ac_cv_prog_DUMPBIN
4698
if test -n "$DUMPBIN"; then
4699
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4700
echo "${ECHO_T}$DUMPBIN" >&6
4701
else
4702
  echo "$as_me:$LINENO: result: no" >&5
4703
echo "${ECHO_T}no" >&6
4704
fi
4705
 
4706
    test -n "$DUMPBIN" && break
4707
  done
4708
fi
4709
if test -z "$DUMPBIN"; then
4710
  ac_ct_DUMPBIN=$DUMPBIN
4711
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4712
do
4713
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4714
set dummy $ac_prog; ac_word=$2
4715
echo "$as_me:$LINENO: checking for $ac_word" >&5
4716
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4717
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4718
  echo $ECHO_N "(cached) $ECHO_C" >&6
4719
else
4720
  if test -n "$ac_ct_DUMPBIN"; then
4721
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4722
else
4723
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724
for as_dir in $PATH
4725
do
4726
  IFS=$as_save_IFS
4727
  test -z "$as_dir" && as_dir=.
4728
  for ac_exec_ext in '' $ac_executable_extensions; do
4729
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4731
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732
    break 2
4733
  fi
4734
done
4735
done
4736
 
4737
fi
4738
fi
4739
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4740
if test -n "$ac_ct_DUMPBIN"; then
4741
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4742
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4743
else
4744
  echo "$as_me:$LINENO: result: no" >&5
4745
echo "${ECHO_T}no" >&6
4746
fi
4747
 
4748
  test -n "$ac_ct_DUMPBIN" && break
4749
done
4750
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4751
 
4752
  DUMPBIN=$ac_ct_DUMPBIN
4753
fi
4754
 
4755
 
4756
  if test "$DUMPBIN" != ":"; then
4757
    NM="$DUMPBIN"
4758
  fi
4759
fi
4760
test -z "$NM" && NM=nm
4761
 
4762
 
4763
 
4764
 
4765
 
4766
 
4767
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4768
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4769
if test "${lt_cv_nm_interface+set}" = set; then
4770
  echo $ECHO_N "(cached) $ECHO_C" >&6
4771
else
4772
  lt_cv_nm_interface="BSD nm"
4773
  echo "int some_variable = 0;" > conftest.$ac_ext
4774
  (eval echo "\"\$as_me:4774: $ac_compile\"" >&5)
4775
  (eval "$ac_compile" 2>conftest.err)
4776
  cat conftest.err >&5
4777
  (eval echo "\"\$as_me:4777: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4778
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4779
  cat conftest.err >&5
4780
  (eval echo "\"\$as_me:4780: output\"" >&5)
4781
  cat conftest.out >&5
4782
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4783
    lt_cv_nm_interface="MS dumpbin"
4784
  fi
4785
  rm -f conftest*
4786
fi
4787
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4788
echo "${ECHO_T}$lt_cv_nm_interface" >&6
4789
 
4790
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4791
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4792
LN_S=$as_ln_s
4793
if test "$LN_S" = "ln -s"; then
4794
  echo "$as_me:$LINENO: result: yes" >&5
4795
echo "${ECHO_T}yes" >&6
4796
else
4797
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4798
echo "${ECHO_T}no, using $LN_S" >&6
4799
fi
4800
 
4801
# find the maximum length of command line arguments
4802
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4803
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4804
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4805
  echo $ECHO_N "(cached) $ECHO_C" >&6
4806
else
4807
    i=0
4808
  teststring="ABCD"
4809
 
4810
  case $build_os in
4811
  msdosdjgpp*)
4812
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4813
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4814
    # during glob expansion).  Even if it were fixed, the result of this
4815
    # check would be larger than it should be.
4816
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4817
    ;;
4818
 
4819
  gnu*)
4820
    # Under GNU Hurd, this test is not required because there is
4821
    # no limit to the length of command line arguments.
4822
    # Libtool will interpret -1 as no limit whatsoever
4823
    lt_cv_sys_max_cmd_len=-1;
4824
    ;;
4825
 
4826
  cygwin* | mingw* | cegcc*)
4827
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4828
    # about 5 minutes as the teststring grows exponentially.
4829
    # Worse, since 9x/ME are not pre-emptively multitasking,
4830
    # you end up with a "frozen" computer, even though with patience
4831
    # the test eventually succeeds (with a max line length of 256k).
4832
    # Instead, let's just punt: use the minimum linelength reported by
4833
    # all of the supported platforms: 8192 (on NT/2K/XP).
4834
    lt_cv_sys_max_cmd_len=8192;
4835
    ;;
4836
 
4837
  amigaos*)
4838
    # On AmigaOS with pdksh, this test takes hours, literally.
4839
    # So we just punt and use a minimum line length of 8192.
4840
    lt_cv_sys_max_cmd_len=8192;
4841
    ;;
4842
 
4843
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4844
    # This has been around since 386BSD, at least.  Likely further.
4845
    if test -x /sbin/sysctl; then
4846
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4847
    elif test -x /usr/sbin/sysctl; then
4848
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4849
    else
4850
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4851
    fi
4852
    # And add a safety zone
4853
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4854
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4855
    ;;
4856
 
4857
  interix*)
4858
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4859
    lt_cv_sys_max_cmd_len=196608
4860
    ;;
4861
 
4862
  osf*)
4863
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4864
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4865
    # nice to cause kernel panics so lets avoid the loop below.
4866
    # First set a reasonable default.
4867
    lt_cv_sys_max_cmd_len=16384
4868
    #
4869
    if test -x /sbin/sysconfig; then
4870
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4871
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4872
      esac
4873
    fi
4874
    ;;
4875
  sco3.2v5*)
4876
    lt_cv_sys_max_cmd_len=102400
4877
    ;;
4878
  sysv5* | sco5v6* | sysv4.2uw2*)
4879
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4880
    if test -n "$kargmax"; then
4881
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4882
    else
4883
      lt_cv_sys_max_cmd_len=32768
4884
    fi
4885
    ;;
4886
  *)
4887
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4888
    if test -n "$lt_cv_sys_max_cmd_len"; then
4889
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4890
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4891
    else
4892
      # Make teststring a little bigger before we do anything with it.
4893
      # a 1K string should be a reasonable start.
4894
      for i in 1 2 3 4 5 6 7 8 ; do
4895
        teststring=$teststring$teststring
4896
      done
4897
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4898
      # If test is not a shell built-in, we'll probably end up computing a
4899
      # maximum length that is only half of the actual maximum length, but
4900
      # we can't tell.
4901
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4902
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4903
              test $i != 17 # 1/2 MB should be enough
4904
      do
4905
        i=`expr $i + 1`
4906
        teststring=$teststring$teststring
4907
      done
4908
      # Only check the string length outside the loop.
4909
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4910
      teststring=
4911
      # Add a significant safety factor because C++ compilers can tack on
4912
      # massive amounts of additional arguments before passing them to the
4913
      # linker.  It appears as though 1/2 is a usable value.
4914
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4915
    fi
4916
    ;;
4917
  esac
4918
 
4919
fi
4920
 
4921
if test -n $lt_cv_sys_max_cmd_len ; then
4922
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4923
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4924
else
4925
  echo "$as_me:$LINENO: result: none" >&5
4926
echo "${ECHO_T}none" >&6
4927
fi
4928
max_cmd_len=$lt_cv_sys_max_cmd_len
4929
 
4930
 
4931
 
4932
 
4933
 
4934
 
4935
: ${CP="cp -f"}
4936
: ${MV="mv -f"}
4937
: ${RM="rm -f"}
4938
 
4939
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4940
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4941
# Try some XSI features
4942
xsi_shell=no
4943
( _lt_dummy="a/b/c"
4944
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4945
      = c,a/b,, \
4946
    && eval 'test $(( 1 + 1 )) -eq 2 \
4947
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4948
  && xsi_shell=yes
4949
echo "$as_me:$LINENO: result: $xsi_shell" >&5
4950
echo "${ECHO_T}$xsi_shell" >&6
4951
 
4952
 
4953
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4954
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4955
lt_shell_append=no
4956
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4957
    >/dev/null 2>&1 \
4958
  && lt_shell_append=yes
4959
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4960
echo "${ECHO_T}$lt_shell_append" >&6
4961
 
4962
 
4963
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4964
  lt_unset=unset
4965
else
4966
  lt_unset=false
4967
fi
4968
 
4969
 
4970
 
4971
 
4972
 
4973
# test EBCDIC or ASCII
4974
case `echo X|tr X '\101'` in
4975
 A) # ASCII based system
4976
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4977
  lt_SP2NL='tr \040 \012'
4978
  lt_NL2SP='tr \015\012 \040\040'
4979
  ;;
4980
 *) # EBCDIC based system
4981
  lt_SP2NL='tr \100 \n'
4982
  lt_NL2SP='tr \r\n \100\100'
4983
  ;;
4984
esac
4985
 
4986
 
4987
 
4988
 
4989
 
4990
 
4991
 
4992
 
4993
 
4994
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4995
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4996
if test "${lt_cv_ld_reload_flag+set}" = set; then
4997
  echo $ECHO_N "(cached) $ECHO_C" >&6
4998
else
4999
  lt_cv_ld_reload_flag='-r'
5000
fi
5001
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5002
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5003
reload_flag=$lt_cv_ld_reload_flag
5004
case $reload_flag in
5005
"" | " "*) ;;
5006
*) reload_flag=" $reload_flag" ;;
5007
esac
5008
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5009
case $host_os in
5010
  darwin*)
5011
    if test "$GCC" = yes; then
5012
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5013
    else
5014
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5015
    fi
5016
    ;;
5017
esac
5018
 
5019
 
5020
 
5021
 
5022
 
5023
 
5024
 
5025
 
5026
 
5027
if test -n "$ac_tool_prefix"; then
5028
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5029
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5030
echo "$as_me:$LINENO: checking for $ac_word" >&5
5031
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5032
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5033
  echo $ECHO_N "(cached) $ECHO_C" >&6
5034
else
5035
  if test -n "$OBJDUMP"; then
5036
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5037
else
5038
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039
for as_dir in $PATH
5040
do
5041
  IFS=$as_save_IFS
5042
  test -z "$as_dir" && as_dir=.
5043
  for ac_exec_ext in '' $ac_executable_extensions; do
5044
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5046
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047
    break 2
5048
  fi
5049
done
5050
done
5051
 
5052
fi
5053
fi
5054
OBJDUMP=$ac_cv_prog_OBJDUMP
5055
if test -n "$OBJDUMP"; then
5056
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5057
echo "${ECHO_T}$OBJDUMP" >&6
5058
else
5059
  echo "$as_me:$LINENO: result: no" >&5
5060
echo "${ECHO_T}no" >&6
5061
fi
5062
 
5063
fi
5064
if test -z "$ac_cv_prog_OBJDUMP"; then
5065
  ac_ct_OBJDUMP=$OBJDUMP
5066
  # Extract the first word of "objdump", so it can be a program name with args.
5067
set dummy objdump; ac_word=$2
5068
echo "$as_me:$LINENO: checking for $ac_word" >&5
5069
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5070
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5071
  echo $ECHO_N "(cached) $ECHO_C" >&6
5072
else
5073
  if test -n "$ac_ct_OBJDUMP"; then
5074
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5075
else
5076
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077
for as_dir in $PATH
5078
do
5079
  IFS=$as_save_IFS
5080
  test -z "$as_dir" && as_dir=.
5081
  for ac_exec_ext in '' $ac_executable_extensions; do
5082
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5083
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5084
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5085
    break 2
5086
  fi
5087
done
5088
done
5089
 
5090
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5091
fi
5092
fi
5093
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5094
if test -n "$ac_ct_OBJDUMP"; then
5095
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5096
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5097
else
5098
  echo "$as_me:$LINENO: result: no" >&5
5099
echo "${ECHO_T}no" >&6
5100
fi
5101
 
5102
  OBJDUMP=$ac_ct_OBJDUMP
5103
else
5104
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5105
fi
5106
 
5107
test -z "$OBJDUMP" && OBJDUMP=objdump
5108
 
5109
 
5110
 
5111
 
5112
 
5113
 
5114
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5115
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5116
if test "${lt_cv_deplibs_check_method+set}" = set; then
5117
  echo $ECHO_N "(cached) $ECHO_C" >&6
5118
else
5119
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5120
lt_cv_file_magic_test_file=
5121
lt_cv_deplibs_check_method='unknown'
5122
# Need to set the preceding variable on all platforms that support
5123
# interlibrary dependencies.
5124
# 'none' -- dependencies not supported.
5125
# `unknown' -- same as none, but documents that we really don't know.
5126
# 'pass_all' -- all dependencies passed with no checks.
5127
# 'test_compile' -- check by making test program.
5128
# 'file_magic [[regex]]' -- check by looking for files in library path
5129
# which responds to the $file_magic_cmd with a given extended regex.
5130
# If you have `file' or equivalent on your system and you're not sure
5131
# whether `pass_all' will *always* work, you probably want this one.
5132
 
5133
case $host_os in
5134
aix[4-9]*)
5135
  lt_cv_deplibs_check_method=pass_all
5136
  ;;
5137
 
5138
beos*)
5139
  lt_cv_deplibs_check_method=pass_all
5140
  ;;
5141
 
5142
bsdi[45]*)
5143
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5144
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5145
  lt_cv_file_magic_test_file=/shlib/libc.so
5146
  ;;
5147
 
5148
cygwin*)
5149
  # func_win32_libid is a shell function defined in ltmain.sh
5150
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5151
  lt_cv_file_magic_cmd='func_win32_libid'
5152
  ;;
5153
 
5154
mingw* | pw32*)
5155
  # Base MSYS/MinGW do not provide the 'file' command needed by
5156
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5157
  # unless we find 'file', for example because we are cross-compiling.
5158
  if ( file / ) >/dev/null 2>&1; then
5159
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5160
    lt_cv_file_magic_cmd='func_win32_libid'
5161
  else
5162
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5163
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5164
  fi
5165
  ;;
5166
 
5167
cegcc)
5168
  # use the weaker test based on 'objdump'. See mingw*.
5169
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5170
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5171
  ;;
5172
 
5173
darwin* | rhapsody*)
5174
  lt_cv_deplibs_check_method=pass_all
5175
  ;;
5176
 
5177
freebsd* | dragonfly*)
5178
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5179
    case $host_cpu in
5180
    i*86 )
5181
      # Not sure whether the presence of OpenBSD here was a mistake.
5182
      # Let's accept both of them until this is cleared up.
5183
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5184
      lt_cv_file_magic_cmd=/usr/bin/file
5185
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5186
      ;;
5187
    esac
5188
  else
5189
    lt_cv_deplibs_check_method=pass_all
5190
  fi
5191
  ;;
5192
 
5193
gnu*)
5194
  lt_cv_deplibs_check_method=pass_all
5195
  ;;
5196
 
5197
hpux10.20* | hpux11*)
5198
  lt_cv_file_magic_cmd=/usr/bin/file
5199
  case $host_cpu in
5200
  ia64*)
5201
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5202
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5203
    ;;
5204
  hppa*64*)
5205
    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]'
5206
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5207
    ;;
5208
  *)
5209
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5210
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5211
    ;;
5212
  esac
5213
  ;;
5214
 
5215
interix[3-9]*)
5216
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5217
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5218
  ;;
5219
 
5220
irix5* | irix6* | nonstopux*)
5221
  case $LD in
5222
  *-32|*"-32 ") libmagic=32-bit;;
5223
  *-n32|*"-n32 ") libmagic=N32;;
5224
  *-64|*"-64 ") libmagic=64-bit;;
5225
  *) libmagic=never-match;;
5226
  esac
5227
  lt_cv_deplibs_check_method=pass_all
5228
  ;;
5229
 
5230
# This must be Linux ELF.
5231
linux* | k*bsd*-gnu)
5232
  lt_cv_deplibs_check_method=pass_all
5233
  ;;
5234
 
5235
netbsd*)
5236
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5237
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5238
  else
5239
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5240
  fi
5241
  ;;
5242
 
5243
newos6*)
5244
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5245
  lt_cv_file_magic_cmd=/usr/bin/file
5246
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5247
  ;;
5248
 
5249
*nto* | *qnx*)
5250
  lt_cv_deplibs_check_method=pass_all
5251
  ;;
5252
 
5253
openbsd*)
5254
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5255
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5256
  else
5257
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5258
  fi
5259
  ;;
5260
 
5261
osf3* | osf4* | osf5*)
5262
  lt_cv_deplibs_check_method=pass_all
5263
  ;;
5264
 
5265
rdos*)
5266
  lt_cv_deplibs_check_method=pass_all
5267
  ;;
5268
 
5269
solaris*)
5270
  lt_cv_deplibs_check_method=pass_all
5271
  ;;
5272
 
5273
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5274
  lt_cv_deplibs_check_method=pass_all
5275
  ;;
5276
 
5277
sysv4 | sysv4.3*)
5278
  case $host_vendor in
5279
  motorola)
5280
    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]'
5281
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5282
    ;;
5283
  ncr)
5284
    lt_cv_deplibs_check_method=pass_all
5285
    ;;
5286
  sequent)
5287
    lt_cv_file_magic_cmd='/bin/file'
5288
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5289
    ;;
5290
  sni)
5291
    lt_cv_file_magic_cmd='/bin/file'
5292
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5293
    lt_cv_file_magic_test_file=/lib/libc.so
5294
    ;;
5295
  siemens)
5296
    lt_cv_deplibs_check_method=pass_all
5297
    ;;
5298
  pc)
5299
    lt_cv_deplibs_check_method=pass_all
5300
    ;;
5301
  esac
5302
  ;;
5303
 
5304
tpf*)
5305
  lt_cv_deplibs_check_method=pass_all
5306
  ;;
5307
esac
5308
 
5309
fi
5310
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5311
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5312
file_magic_cmd=$lt_cv_file_magic_cmd
5313
deplibs_check_method=$lt_cv_deplibs_check_method
5314
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5315
 
5316
 
5317
 
5318
 
5319
 
5320
 
5321
 
5322
 
5323
 
5324
 
5325
 
5326
 
5327
if test -n "$ac_tool_prefix"; then
5328
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5329
set dummy ${ac_tool_prefix}ar; ac_word=$2
5330
echo "$as_me:$LINENO: checking for $ac_word" >&5
5331
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5332
if test "${ac_cv_prog_AR+set}" = set; then
5333
  echo $ECHO_N "(cached) $ECHO_C" >&6
5334
else
5335
  if test -n "$AR"; then
5336
  ac_cv_prog_AR="$AR" # Let the user override the test.
5337
else
5338
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339
for as_dir in $PATH
5340
do
5341
  IFS=$as_save_IFS
5342
  test -z "$as_dir" && as_dir=.
5343
  for ac_exec_ext in '' $ac_executable_extensions; do
5344
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5346
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347
    break 2
5348
  fi
5349
done
5350
done
5351
 
5352
fi
5353
fi
5354
AR=$ac_cv_prog_AR
5355
if test -n "$AR"; then
5356
  echo "$as_me:$LINENO: result: $AR" >&5
5357
echo "${ECHO_T}$AR" >&6
5358
else
5359
  echo "$as_me:$LINENO: result: no" >&5
5360
echo "${ECHO_T}no" >&6
5361
fi
5362
 
5363
fi
5364
if test -z "$ac_cv_prog_AR"; then
5365
  ac_ct_AR=$AR
5366
  # Extract the first word of "ar", so it can be a program name with args.
5367
set dummy ar; ac_word=$2
5368
echo "$as_me:$LINENO: checking for $ac_word" >&5
5369
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5370
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5371
  echo $ECHO_N "(cached) $ECHO_C" >&6
5372
else
5373
  if test -n "$ac_ct_AR"; then
5374
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5375
else
5376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377
for as_dir in $PATH
5378
do
5379
  IFS=$as_save_IFS
5380
  test -z "$as_dir" && as_dir=.
5381
  for ac_exec_ext in '' $ac_executable_extensions; do
5382
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383
    ac_cv_prog_ac_ct_AR="ar"
5384
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5385
    break 2
5386
  fi
5387
done
5388
done
5389
 
5390
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5391
fi
5392
fi
5393
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5394
if test -n "$ac_ct_AR"; then
5395
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5396
echo "${ECHO_T}$ac_ct_AR" >&6
5397
else
5398
  echo "$as_me:$LINENO: result: no" >&5
5399
echo "${ECHO_T}no" >&6
5400
fi
5401
 
5402
  AR=$ac_ct_AR
5403
else
5404
  AR="$ac_cv_prog_AR"
5405
fi
5406
 
5407
test -z "$AR" && AR=ar
5408
test -z "$AR_FLAGS" && AR_FLAGS=cru
5409
 
5410
 
5411
 
5412
 
5413
 
5414
 
5415
 
5416
 
5417
 
5418
 
5419
 
5420
if test -n "$ac_tool_prefix"; then
5421
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5422
set dummy ${ac_tool_prefix}strip; ac_word=$2
5423
echo "$as_me:$LINENO: checking for $ac_word" >&5
5424
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425
if test "${ac_cv_prog_STRIP+set}" = set; then
5426
  echo $ECHO_N "(cached) $ECHO_C" >&6
5427
else
5428
  if test -n "$STRIP"; then
5429
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5430
else
5431
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432
for as_dir in $PATH
5433
do
5434
  IFS=$as_save_IFS
5435
  test -z "$as_dir" && as_dir=.
5436
  for ac_exec_ext in '' $ac_executable_extensions; do
5437
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5439
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5440
    break 2
5441
  fi
5442
done
5443
done
5444
 
5445
fi
5446
fi
5447
STRIP=$ac_cv_prog_STRIP
5448
if test -n "$STRIP"; then
5449
  echo "$as_me:$LINENO: result: $STRIP" >&5
5450
echo "${ECHO_T}$STRIP" >&6
5451
else
5452
  echo "$as_me:$LINENO: result: no" >&5
5453
echo "${ECHO_T}no" >&6
5454
fi
5455
 
5456
fi
5457
if test -z "$ac_cv_prog_STRIP"; then
5458
  ac_ct_STRIP=$STRIP
5459
  # Extract the first word of "strip", so it can be a program name with args.
5460
set dummy strip; ac_word=$2
5461
echo "$as_me:$LINENO: checking for $ac_word" >&5
5462
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5463
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5464
  echo $ECHO_N "(cached) $ECHO_C" >&6
5465
else
5466
  if test -n "$ac_ct_STRIP"; then
5467
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5468
else
5469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470
for as_dir in $PATH
5471
do
5472
  IFS=$as_save_IFS
5473
  test -z "$as_dir" && as_dir=.
5474
  for ac_exec_ext in '' $ac_executable_extensions; do
5475
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476
    ac_cv_prog_ac_ct_STRIP="strip"
5477
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478
    break 2
5479
  fi
5480
done
5481
done
5482
 
5483
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5484
fi
5485
fi
5486
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5487
if test -n "$ac_ct_STRIP"; then
5488
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5489
echo "${ECHO_T}$ac_ct_STRIP" >&6
5490
else
5491
  echo "$as_me:$LINENO: result: no" >&5
5492
echo "${ECHO_T}no" >&6
5493
fi
5494
 
5495
  STRIP=$ac_ct_STRIP
5496
else
5497
  STRIP="$ac_cv_prog_STRIP"
5498
fi
5499
 
5500
test -z "$STRIP" && STRIP=:
5501
 
5502
 
5503
 
5504
 
5505
 
5506
 
5507
if test -n "$ac_tool_prefix"; then
5508
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5509
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5510
echo "$as_me:$LINENO: checking for $ac_word" >&5
5511
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5512
if test "${ac_cv_prog_RANLIB+set}" = set; then
5513
  echo $ECHO_N "(cached) $ECHO_C" >&6
5514
else
5515
  if test -n "$RANLIB"; then
5516
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5517
else
5518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519
for as_dir in $PATH
5520
do
5521
  IFS=$as_save_IFS
5522
  test -z "$as_dir" && as_dir=.
5523
  for ac_exec_ext in '' $ac_executable_extensions; do
5524
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5525
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5526
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5527
    break 2
5528
  fi
5529
done
5530
done
5531
 
5532
fi
5533
fi
5534
RANLIB=$ac_cv_prog_RANLIB
5535
if test -n "$RANLIB"; then
5536
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5537
echo "${ECHO_T}$RANLIB" >&6
5538
else
5539
  echo "$as_me:$LINENO: result: no" >&5
5540
echo "${ECHO_T}no" >&6
5541
fi
5542
 
5543
fi
5544
if test -z "$ac_cv_prog_RANLIB"; then
5545
  ac_ct_RANLIB=$RANLIB
5546
  # Extract the first word of "ranlib", so it can be a program name with args.
5547
set dummy ranlib; ac_word=$2
5548
echo "$as_me:$LINENO: checking for $ac_word" >&5
5549
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5550
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5551
  echo $ECHO_N "(cached) $ECHO_C" >&6
5552
else
5553
  if test -n "$ac_ct_RANLIB"; then
5554
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5555
else
5556
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557
for as_dir in $PATH
5558
do
5559
  IFS=$as_save_IFS
5560
  test -z "$as_dir" && as_dir=.
5561
  for ac_exec_ext in '' $ac_executable_extensions; do
5562
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5563
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5564
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565
    break 2
5566
  fi
5567
done
5568
done
5569
 
5570
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5571
fi
5572
fi
5573
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5574
if test -n "$ac_ct_RANLIB"; then
5575
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5576
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5577
else
5578
  echo "$as_me:$LINENO: result: no" >&5
5579
echo "${ECHO_T}no" >&6
5580
fi
5581
 
5582
  RANLIB=$ac_ct_RANLIB
5583
else
5584
  RANLIB="$ac_cv_prog_RANLIB"
5585
fi
5586
 
5587
test -z "$RANLIB" && RANLIB=:
5588
 
5589
 
5590
 
5591
 
5592
 
5593
 
5594
# Determine commands to create old-style static archives.
5595
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5596
old_postinstall_cmds='chmod 644 $oldlib'
5597
old_postuninstall_cmds=
5598
 
5599
if test -n "$RANLIB"; then
5600
  case $host_os in
5601
  openbsd*)
5602
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5603
    ;;
5604
  *)
5605
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5606
    ;;
5607
  esac
5608
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5609
fi
5610
 
5611
 
5612
 
5613
 
5614
 
5615
 
5616
 
5617
 
5618
 
5619
 
5620
 
5621
 
5622
 
5623
 
5624
 
5625
 
5626
 
5627
 
5628
 
5629
 
5630
 
5631
 
5632
 
5633
 
5634
 
5635
 
5636
 
5637
 
5638
 
5639
 
5640
 
5641
 
5642
 
5643
 
5644
# If no C compiler was specified, use CC.
5645
LTCC=${LTCC-"$CC"}
5646
 
5647
# If no C compiler flags were specified, use CFLAGS.
5648
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5649
 
5650
# Allow CC to be a program name with arguments.
5651
compiler=$CC
5652
 
5653
 
5654
# Check for command to grab the raw symbol name followed by C symbol from nm.
5655
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5656
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5657
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5658
  echo $ECHO_N "(cached) $ECHO_C" >&6
5659
else
5660
 
5661
# These are sane defaults that work on at least a few old systems.
5662
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5663
 
5664
# Character class describing NM global symbol codes.
5665
symcode='[BCDEGRST]'
5666
 
5667
# Regexp to match symbols that can be accessed directly from C.
5668
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5669
 
5670
# Define system-specific variables.
5671
case $host_os in
5672
aix*)
5673
  symcode='[BCDT]'
5674
  ;;
5675
cygwin* | mingw* | pw32* | cegcc*)
5676
  symcode='[ABCDGISTW]'
5677
  ;;
5678
hpux*)
5679
  if test "$host_cpu" = ia64; then
5680
    symcode='[ABCDEGRST]'
5681
  fi
5682
  ;;
5683
irix* | nonstopux*)
5684
  symcode='[BCDEGRST]'
5685
  ;;
5686
osf*)
5687
  symcode='[BCDEGQRST]'
5688
  ;;
5689
solaris*)
5690
  symcode='[BDRT]'
5691
  ;;
5692
sco3.2v5*)
5693
  symcode='[DT]'
5694
  ;;
5695
sysv4.2uw2*)
5696
  symcode='[DT]'
5697
  ;;
5698
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5699
  symcode='[ABDT]'
5700
  ;;
5701
sysv4)
5702
  symcode='[DFNSTU]'
5703
  ;;
5704
esac
5705
 
5706
# If we're using GNU nm, then use its standard symbol codes.
5707
case `$NM -V 2>&1` in
5708
*GNU* | *'with BFD'*)
5709
  symcode='[ABCDGIRSTW]' ;;
5710
esac
5711
 
5712
# Transform an extracted symbol line into a proper C declaration.
5713
# Some systems (esp. on ia64) link data and code symbols differently,
5714
# so use this general approach.
5715
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5716
 
5717
# Transform an extracted symbol line into symbol name and symbol address
5718
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5719
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'"
5720
 
5721
# Handle CRLF in mingw tool chain
5722
opt_cr=
5723
case $build_os in
5724
mingw*)
5725
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5726
  ;;
5727
esac
5728
 
5729
# Try without a prefix underscore, then with it.
5730
for ac_symprfx in "" "_"; do
5731
 
5732
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5733
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5734
 
5735
  # Write the raw and C identifiers.
5736
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5737
    # Fake it for dumpbin and say T for any non-static function
5738
    # and D for any global variable.
5739
    # Also find C++ and __fastcall symbols from MSVC++,
5740
    # which start with @ or ?.
5741
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5742
"     {last_section=section; section=\$ 3};"\
5743
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5744
"     \$ 0!~/External *\|/{next};"\
5745
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5746
"     {if(hide[section]) next};"\
5747
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5748
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5749
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5750
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5751
"     ' prfx=^$ac_symprfx"
5752
  else
5753
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5754
  fi
5755
 
5756
  # Check to see that the pipe works correctly.
5757
  pipe_works=no
5758
 
5759
  rm -f conftest*
5760
  cat > conftest.$ac_ext <<_LT_EOF
5761
#ifdef __cplusplus
5762
extern "C" {
5763
#endif
5764
char nm_test_var;
5765
void nm_test_func(void);
5766
void nm_test_func(void){}
5767
#ifdef __cplusplus
5768
}
5769
#endif
5770
int main(){nm_test_var='a';nm_test_func();return(0);}
5771
_LT_EOF
5772
 
5773
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774
  (eval $ac_compile) 2>&5
5775
  ac_status=$?
5776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777
  (exit $ac_status); }; then
5778
    # Now try to grab the symbols.
5779
    nlist=conftest.nm
5780
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5781
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5782
  ac_status=$?
5783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784
  (exit $ac_status); } && test -s "$nlist"; then
5785
      # Try sorting and uniquifying the output.
5786
      if sort "$nlist" | uniq > "$nlist"T; then
5787
        mv -f "$nlist"T "$nlist"
5788
      else
5789
        rm -f "$nlist"T
5790
      fi
5791
 
5792
      # Make sure that we snagged all the symbols we need.
5793
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5794
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5795
          cat <<_LT_EOF > conftest.$ac_ext
5796
#ifdef __cplusplus
5797
extern "C" {
5798
#endif
5799
 
5800
_LT_EOF
5801
          # Now generate the symbol file.
5802
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5803
 
5804
          cat <<_LT_EOF >> conftest.$ac_ext
5805
 
5806
/* The mapping between symbol names and symbols.  */
5807
const struct {
5808
  const char *name;
5809
  void       *address;
5810
}
5811
lt__PROGRAM__LTX_preloaded_symbols[] =
5812
{
5813
  { "@PROGRAM@", (void *) 0 },
5814
_LT_EOF
5815
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5816
          cat <<\_LT_EOF >> conftest.$ac_ext
5817
  {0, (void *) 0}
5818
};
5819
 
5820
/* This works around a problem in FreeBSD linker */
5821
#ifdef FREEBSD_WORKAROUND
5822
static const void *lt_preloaded_setup() {
5823
  return lt__PROGRAM__LTX_preloaded_symbols;
5824
}
5825
#endif
5826
 
5827
#ifdef __cplusplus
5828
}
5829
#endif
5830
_LT_EOF
5831
          # Now try linking the two files.
5832
          mv conftest.$ac_objext conftstm.$ac_objext
5833
          lt_save_LIBS="$LIBS"
5834
          lt_save_CFLAGS="$CFLAGS"
5835
          LIBS="conftstm.$ac_objext"
5836
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5837
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838
  (eval $ac_link) 2>&5
5839
  ac_status=$?
5840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5842
            pipe_works=yes
5843
          fi
5844
          LIBS="$lt_save_LIBS"
5845
          CFLAGS="$lt_save_CFLAGS"
5846
        else
5847
          echo "cannot find nm_test_func in $nlist" >&5
5848
        fi
5849
      else
5850
        echo "cannot find nm_test_var in $nlist" >&5
5851
      fi
5852
    else
5853
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5854
    fi
5855
  else
5856
    echo "$progname: failed program was:" >&5
5857
    cat conftest.$ac_ext >&5
5858
  fi
5859
  rm -rf conftest* conftst*
5860
 
5861
  # Do not use the global_symbol_pipe unless it works.
5862
  if test "$pipe_works" = yes; then
5863
    break
5864
  else
5865
    lt_cv_sys_global_symbol_pipe=
5866
  fi
5867
done
5868
 
5869
fi
5870
 
5871
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5872
  lt_cv_sys_global_symbol_to_cdecl=
5873
fi
5874
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5875
  echo "$as_me:$LINENO: result: failed" >&5
5876
echo "${ECHO_T}failed" >&6
5877
else
5878
  echo "$as_me:$LINENO: result: ok" >&5
5879
echo "${ECHO_T}ok" >&6
5880
fi
5881
 
5882
 
5883
 
5884
 
5885
 
5886
 
5887
 
5888
 
5889
 
5890
 
5891
 
5892
 
5893
 
5894
 
5895
 
5896
 
5897
 
5898
 
5899
 
5900
 
5901
 
5902
 
5903
 
5904
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5905
if test "${enable_libtool_lock+set}" = set; then
5906
  enableval="$enable_libtool_lock"
5907
 
5908
fi;
5909
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5910
 
5911
# Some flags need to be propagated to the compiler or linker for good
5912
# libtool support.
5913
case $host in
5914
ia64-*-hpux*)
5915
  # Find out which ABI we are using.
5916
  echo 'int i;' > conftest.$ac_ext
5917
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918
  (eval $ac_compile) 2>&5
5919
  ac_status=$?
5920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921
  (exit $ac_status); }; then
5922
    case `/usr/bin/file conftest.$ac_objext` in
5923
      *ELF-32*)
5924
        HPUX_IA64_MODE="32"
5925
        ;;
5926
      *ELF-64*)
5927
        HPUX_IA64_MODE="64"
5928
        ;;
5929
    esac
5930
  fi
5931
  rm -rf conftest*
5932
  ;;
5933
*-*-irix6*)
5934
  # Find out which ABI we are using.
5935
  echo '#line 5935 "configure"' > conftest.$ac_ext
5936
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937
  (eval $ac_compile) 2>&5
5938
  ac_status=$?
5939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940
  (exit $ac_status); }; then
5941
    if test "$lt_cv_prog_gnu_ld" = yes; then
5942
      case `/usr/bin/file conftest.$ac_objext` in
5943
        *32-bit*)
5944
          LD="${LD-ld} -melf32bsmip"
5945
          ;;
5946
        *N32*)
5947
          LD="${LD-ld} -melf32bmipn32"
5948
          ;;
5949
        *64-bit*)
5950
          LD="${LD-ld} -melf64bmip"
5951
        ;;
5952
      esac
5953
    else
5954
      case `/usr/bin/file conftest.$ac_objext` in
5955
        *32-bit*)
5956
          LD="${LD-ld} -32"
5957
          ;;
5958
        *N32*)
5959
          LD="${LD-ld} -n32"
5960
          ;;
5961
        *64-bit*)
5962
          LD="${LD-ld} -64"
5963
          ;;
5964
      esac
5965
    fi
5966
  fi
5967
  rm -rf conftest*
5968
  ;;
5969
 
5970
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5971
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5972
  # Find out which ABI we are using.
5973
  echo 'int i;' > conftest.$ac_ext
5974
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975
  (eval $ac_compile) 2>&5
5976
  ac_status=$?
5977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978
  (exit $ac_status); }; then
5979
    case `/usr/bin/file conftest.o` in
5980
      *32-bit*)
5981
        case $host in
5982
          x86_64-*kfreebsd*-gnu)
5983
            LD="${LD-ld} -m elf_i386_fbsd"
5984
            ;;
5985
          x86_64-*linux*)
5986
            LD="${LD-ld} -m elf_i386"
5987
            ;;
5988
          ppc64-*linux*|powerpc64-*linux*)
5989
            LD="${LD-ld} -m elf32ppclinux"
5990
            ;;
5991
          s390x-*linux*)
5992
            LD="${LD-ld} -m elf_s390"
5993
            ;;
5994
          sparc64-*linux*)
5995
            LD="${LD-ld} -m elf32_sparc"
5996
            ;;
5997
        esac
5998
        ;;
5999
      *64-bit*)
6000
        case $host in
6001
          x86_64-*kfreebsd*-gnu)
6002
            LD="${LD-ld} -m elf_x86_64_fbsd"
6003
            ;;
6004
          x86_64-*linux*)
6005
            LD="${LD-ld} -m elf_x86_64"
6006
            ;;
6007
          ppc*-*linux*|powerpc*-*linux*)
6008
            LD="${LD-ld} -m elf64ppc"
6009
            ;;
6010
          s390*-*linux*|s390*-*tpf*)
6011
            LD="${LD-ld} -m elf64_s390"
6012
            ;;
6013
          sparc*-*linux*)
6014
            LD="${LD-ld} -m elf64_sparc"
6015
            ;;
6016
        esac
6017
        ;;
6018
    esac
6019
  fi
6020
  rm -rf conftest*
6021
  ;;
6022
 
6023
*-*-sco3.2v5*)
6024
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6025
  SAVE_CFLAGS="$CFLAGS"
6026
  CFLAGS="$CFLAGS -belf"
6027
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6028
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6029
if test "${lt_cv_cc_needs_belf+set}" = set; then
6030
  echo $ECHO_N "(cached) $ECHO_C" >&6
6031
else
6032
  ac_ext=c
6033
ac_cpp='$CPP $CPPFLAGS'
6034
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6035
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6036
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6037
 
6038
     cat >conftest.$ac_ext <<_ACEOF
6039
/* confdefs.h.  */
6040
_ACEOF
6041
cat confdefs.h >>conftest.$ac_ext
6042
cat >>conftest.$ac_ext <<_ACEOF
6043
/* end confdefs.h.  */
6044
 
6045
int
6046
main ()
6047
{
6048
 
6049
  ;
6050
  return 0;
6051
}
6052
_ACEOF
6053
rm -f conftest.$ac_objext conftest$ac_exeext
6054
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6055
  (eval $ac_link) 2>conftest.er1
6056
  ac_status=$?
6057
  grep -v '^ *+' conftest.er1 >conftest.err
6058
  rm -f conftest.er1
6059
  cat conftest.err >&5
6060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061
  (exit $ac_status); } &&
6062
         { ac_try='test -z "$ac_c_werror_flag"
6063
                         || test ! -s conftest.err'
6064
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065
  (eval $ac_try) 2>&5
6066
  ac_status=$?
6067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068
  (exit $ac_status); }; } &&
6069
         { ac_try='test -s conftest$ac_exeext'
6070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071
  (eval $ac_try) 2>&5
6072
  ac_status=$?
6073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074
  (exit $ac_status); }; }; then
6075
  lt_cv_cc_needs_belf=yes
6076
else
6077
  echo "$as_me: failed program was:" >&5
6078
sed 's/^/| /' conftest.$ac_ext >&5
6079
 
6080
lt_cv_cc_needs_belf=no
6081
fi
6082
rm -f conftest.err conftest.$ac_objext \
6083
      conftest$ac_exeext conftest.$ac_ext
6084
     ac_ext=c
6085
ac_cpp='$CPP $CPPFLAGS'
6086
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6087
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6088
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6089
 
6090
fi
6091
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6092
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6093
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6094
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6095
    CFLAGS="$SAVE_CFLAGS"
6096
  fi
6097
  ;;
6098
sparc*-*solaris*)
6099
  # Find out which ABI we are using.
6100
  echo 'int i;' > conftest.$ac_ext
6101
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102
  (eval $ac_compile) 2>&5
6103
  ac_status=$?
6104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105
  (exit $ac_status); }; then
6106
    case `/usr/bin/file conftest.o` in
6107
    *64-bit*)
6108
      case $lt_cv_prog_gnu_ld in
6109
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6110
      *)
6111
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6112
          LD="${LD-ld} -64"
6113
        fi
6114
        ;;
6115
      esac
6116
      ;;
6117
    esac
6118
  fi
6119
  rm -rf conftest*
6120
  ;;
6121
esac
6122
 
6123
need_locks="$enable_libtool_lock"
6124
 
6125
 
6126
  case $host_os in
6127
    rhapsody* | darwin*)
6128
    if test -n "$ac_tool_prefix"; then
6129
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6130
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6131
echo "$as_me:$LINENO: checking for $ac_word" >&5
6132
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6133
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6134
  echo $ECHO_N "(cached) $ECHO_C" >&6
6135
else
6136
  if test -n "$DSYMUTIL"; then
6137
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6138
else
6139
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140
for as_dir in $PATH
6141
do
6142
  IFS=$as_save_IFS
6143
  test -z "$as_dir" && as_dir=.
6144
  for ac_exec_ext in '' $ac_executable_extensions; do
6145
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6147
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148
    break 2
6149
  fi
6150
done
6151
done
6152
 
6153
fi
6154
fi
6155
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6156
if test -n "$DSYMUTIL"; then
6157
  echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6158
echo "${ECHO_T}$DSYMUTIL" >&6
6159
else
6160
  echo "$as_me:$LINENO: result: no" >&5
6161
echo "${ECHO_T}no" >&6
6162
fi
6163
 
6164
fi
6165
if test -z "$ac_cv_prog_DSYMUTIL"; then
6166
  ac_ct_DSYMUTIL=$DSYMUTIL
6167
  # Extract the first word of "dsymutil", so it can be a program name with args.
6168
set dummy dsymutil; ac_word=$2
6169
echo "$as_me:$LINENO: checking for $ac_word" >&5
6170
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6171
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6172
  echo $ECHO_N "(cached) $ECHO_C" >&6
6173
else
6174
  if test -n "$ac_ct_DSYMUTIL"; then
6175
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6176
else
6177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178
for as_dir in $PATH
6179
do
6180
  IFS=$as_save_IFS
6181
  test -z "$as_dir" && as_dir=.
6182
  for ac_exec_ext in '' $ac_executable_extensions; do
6183
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6184
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6185
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186
    break 2
6187
  fi
6188
done
6189
done
6190
 
6191
  test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6192
fi
6193
fi
6194
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6195
if test -n "$ac_ct_DSYMUTIL"; then
6196
  echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6197
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6198
else
6199
  echo "$as_me:$LINENO: result: no" >&5
6200
echo "${ECHO_T}no" >&6
6201
fi
6202
 
6203
  DSYMUTIL=$ac_ct_DSYMUTIL
6204
else
6205
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6206
fi
6207
 
6208
    if test -n "$ac_tool_prefix"; then
6209
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6210
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6211
echo "$as_me:$LINENO: checking for $ac_word" >&5
6212
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6213
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6214
  echo $ECHO_N "(cached) $ECHO_C" >&6
6215
else
6216
  if test -n "$NMEDIT"; then
6217
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6218
else
6219
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220
for as_dir in $PATH
6221
do
6222
  IFS=$as_save_IFS
6223
  test -z "$as_dir" && as_dir=.
6224
  for ac_exec_ext in '' $ac_executable_extensions; do
6225
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6226
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6227
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228
    break 2
6229
  fi
6230
done
6231
done
6232
 
6233
fi
6234
fi
6235
NMEDIT=$ac_cv_prog_NMEDIT
6236
if test -n "$NMEDIT"; then
6237
  echo "$as_me:$LINENO: result: $NMEDIT" >&5
6238
echo "${ECHO_T}$NMEDIT" >&6
6239
else
6240
  echo "$as_me:$LINENO: result: no" >&5
6241
echo "${ECHO_T}no" >&6
6242
fi
6243
 
6244
fi
6245
if test -z "$ac_cv_prog_NMEDIT"; then
6246
  ac_ct_NMEDIT=$NMEDIT
6247
  # Extract the first word of "nmedit", so it can be a program name with args.
6248
set dummy nmedit; ac_word=$2
6249
echo "$as_me:$LINENO: checking for $ac_word" >&5
6250
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6251
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6252
  echo $ECHO_N "(cached) $ECHO_C" >&6
6253
else
6254
  if test -n "$ac_ct_NMEDIT"; then
6255
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6256
else
6257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258
for as_dir in $PATH
6259
do
6260
  IFS=$as_save_IFS
6261
  test -z "$as_dir" && as_dir=.
6262
  for ac_exec_ext in '' $ac_executable_extensions; do
6263
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6264
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6265
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266
    break 2
6267
  fi
6268
done
6269
done
6270
 
6271
  test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6272
fi
6273
fi
6274
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6275
if test -n "$ac_ct_NMEDIT"; then
6276
  echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6277
echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6278
else
6279
  echo "$as_me:$LINENO: result: no" >&5
6280
echo "${ECHO_T}no" >&6
6281
fi
6282
 
6283
  NMEDIT=$ac_ct_NMEDIT
6284
else
6285
  NMEDIT="$ac_cv_prog_NMEDIT"
6286
fi
6287
 
6288
    if test -n "$ac_tool_prefix"; then
6289
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6290
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6291
echo "$as_me:$LINENO: checking for $ac_word" >&5
6292
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6293
if test "${ac_cv_prog_LIPO+set}" = set; then
6294
  echo $ECHO_N "(cached) $ECHO_C" >&6
6295
else
6296
  if test -n "$LIPO"; then
6297
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6298
else
6299
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300
for as_dir in $PATH
6301
do
6302
  IFS=$as_save_IFS
6303
  test -z "$as_dir" && as_dir=.
6304
  for ac_exec_ext in '' $ac_executable_extensions; do
6305
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6306
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6307
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6308
    break 2
6309
  fi
6310
done
6311
done
6312
 
6313
fi
6314
fi
6315
LIPO=$ac_cv_prog_LIPO
6316
if test -n "$LIPO"; then
6317
  echo "$as_me:$LINENO: result: $LIPO" >&5
6318
echo "${ECHO_T}$LIPO" >&6
6319
else
6320
  echo "$as_me:$LINENO: result: no" >&5
6321
echo "${ECHO_T}no" >&6
6322
fi
6323
 
6324
fi
6325
if test -z "$ac_cv_prog_LIPO"; then
6326
  ac_ct_LIPO=$LIPO
6327
  # Extract the first word of "lipo", so it can be a program name with args.
6328
set dummy lipo; ac_word=$2
6329
echo "$as_me:$LINENO: checking for $ac_word" >&5
6330
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6331
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6332
  echo $ECHO_N "(cached) $ECHO_C" >&6
6333
else
6334
  if test -n "$ac_ct_LIPO"; then
6335
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6336
else
6337
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338
for as_dir in $PATH
6339
do
6340
  IFS=$as_save_IFS
6341
  test -z "$as_dir" && as_dir=.
6342
  for ac_exec_ext in '' $ac_executable_extensions; do
6343
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344
    ac_cv_prog_ac_ct_LIPO="lipo"
6345
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6346
    break 2
6347
  fi
6348
done
6349
done
6350
 
6351
  test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6352
fi
6353
fi
6354
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6355
if test -n "$ac_ct_LIPO"; then
6356
  echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6357
echo "${ECHO_T}$ac_ct_LIPO" >&6
6358
else
6359
  echo "$as_me:$LINENO: result: no" >&5
6360
echo "${ECHO_T}no" >&6
6361
fi
6362
 
6363
  LIPO=$ac_ct_LIPO
6364
else
6365
  LIPO="$ac_cv_prog_LIPO"
6366
fi
6367
 
6368
    if test -n "$ac_tool_prefix"; then
6369
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6370
set dummy ${ac_tool_prefix}otool; ac_word=$2
6371
echo "$as_me:$LINENO: checking for $ac_word" >&5
6372
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6373
if test "${ac_cv_prog_OTOOL+set}" = set; then
6374
  echo $ECHO_N "(cached) $ECHO_C" >&6
6375
else
6376
  if test -n "$OTOOL"; then
6377
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6378
else
6379
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380
for as_dir in $PATH
6381
do
6382
  IFS=$as_save_IFS
6383
  test -z "$as_dir" && as_dir=.
6384
  for ac_exec_ext in '' $ac_executable_extensions; do
6385
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6386
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6387
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388
    break 2
6389
  fi
6390
done
6391
done
6392
 
6393
fi
6394
fi
6395
OTOOL=$ac_cv_prog_OTOOL
6396
if test -n "$OTOOL"; then
6397
  echo "$as_me:$LINENO: result: $OTOOL" >&5
6398
echo "${ECHO_T}$OTOOL" >&6
6399
else
6400
  echo "$as_me:$LINENO: result: no" >&5
6401
echo "${ECHO_T}no" >&6
6402
fi
6403
 
6404
fi
6405
if test -z "$ac_cv_prog_OTOOL"; then
6406
  ac_ct_OTOOL=$OTOOL
6407
  # Extract the first word of "otool", so it can be a program name with args.
6408
set dummy otool; ac_word=$2
6409
echo "$as_me:$LINENO: checking for $ac_word" >&5
6410
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6411
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6412
  echo $ECHO_N "(cached) $ECHO_C" >&6
6413
else
6414
  if test -n "$ac_ct_OTOOL"; then
6415
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6416
else
6417
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418
for as_dir in $PATH
6419
do
6420
  IFS=$as_save_IFS
6421
  test -z "$as_dir" && as_dir=.
6422
  for ac_exec_ext in '' $ac_executable_extensions; do
6423
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424
    ac_cv_prog_ac_ct_OTOOL="otool"
6425
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6426
    break 2
6427
  fi
6428
done
6429
done
6430
 
6431
  test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6432
fi
6433
fi
6434
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6435
if test -n "$ac_ct_OTOOL"; then
6436
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6437
echo "${ECHO_T}$ac_ct_OTOOL" >&6
6438
else
6439
  echo "$as_me:$LINENO: result: no" >&5
6440
echo "${ECHO_T}no" >&6
6441
fi
6442
 
6443
  OTOOL=$ac_ct_OTOOL
6444
else
6445
  OTOOL="$ac_cv_prog_OTOOL"
6446
fi
6447
 
6448
    if test -n "$ac_tool_prefix"; then
6449
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6450
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6451
echo "$as_me:$LINENO: checking for $ac_word" >&5
6452
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6453
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6454
  echo $ECHO_N "(cached) $ECHO_C" >&6
6455
else
6456
  if test -n "$OTOOL64"; then
6457
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6458
else
6459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460
for as_dir in $PATH
6461
do
6462
  IFS=$as_save_IFS
6463
  test -z "$as_dir" && as_dir=.
6464
  for ac_exec_ext in '' $ac_executable_extensions; do
6465
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6466
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6467
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6468
    break 2
6469
  fi
6470
done
6471
done
6472
 
6473
fi
6474
fi
6475
OTOOL64=$ac_cv_prog_OTOOL64
6476
if test -n "$OTOOL64"; then
6477
  echo "$as_me:$LINENO: result: $OTOOL64" >&5
6478
echo "${ECHO_T}$OTOOL64" >&6
6479
else
6480
  echo "$as_me:$LINENO: result: no" >&5
6481
echo "${ECHO_T}no" >&6
6482
fi
6483
 
6484
fi
6485
if test -z "$ac_cv_prog_OTOOL64"; then
6486
  ac_ct_OTOOL64=$OTOOL64
6487
  # Extract the first word of "otool64", so it can be a program name with args.
6488
set dummy otool64; ac_word=$2
6489
echo "$as_me:$LINENO: checking for $ac_word" >&5
6490
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6491
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6492
  echo $ECHO_N "(cached) $ECHO_C" >&6
6493
else
6494
  if test -n "$ac_ct_OTOOL64"; then
6495
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6496
else
6497
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498
for as_dir in $PATH
6499
do
6500
  IFS=$as_save_IFS
6501
  test -z "$as_dir" && as_dir=.
6502
  for ac_exec_ext in '' $ac_executable_extensions; do
6503
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6505
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506
    break 2
6507
  fi
6508
done
6509
done
6510
 
6511
  test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6512
fi
6513
fi
6514
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6515
if test -n "$ac_ct_OTOOL64"; then
6516
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6517
echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6518
else
6519
  echo "$as_me:$LINENO: result: no" >&5
6520
echo "${ECHO_T}no" >&6
6521
fi
6522
 
6523
  OTOOL64=$ac_ct_OTOOL64
6524
else
6525
  OTOOL64="$ac_cv_prog_OTOOL64"
6526
fi
6527
 
6528
 
6529
 
6530
 
6531
 
6532
 
6533
 
6534
 
6535
 
6536
 
6537
 
6538
 
6539
 
6540
 
6541
 
6542
 
6543
 
6544
 
6545
 
6546
 
6547
 
6548
 
6549
 
6550
 
6551
 
6552
 
6553
 
6554
    echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6555
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6556
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6557
  echo $ECHO_N "(cached) $ECHO_C" >&6
6558
else
6559
  lt_cv_apple_cc_single_mod=no
6560
      if test -z "${LT_MULTI_MODULE}"; then
6561
        # By default we will add the -single_module flag. You can override
6562
        # by either setting the environment variable LT_MULTI_MODULE
6563
        # non-empty at configure time, or by adding -multi_module to the
6564
        # link flags.
6565
        rm -rf libconftest.dylib*
6566
        echo "int foo(void){return 1;}" > conftest.c
6567
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6568
-dynamiclib -Wl,-single_module conftest.c" >&5
6569
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6570
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6571
        _lt_result=$?
6572
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6573
          lt_cv_apple_cc_single_mod=yes
6574
        else
6575
          cat conftest.err >&5
6576
        fi
6577
        rm -rf libconftest.dylib*
6578
        rm -f conftest.*
6579
      fi
6580
fi
6581
echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6582
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6583
    echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6584
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6585
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6586
  echo $ECHO_N "(cached) $ECHO_C" >&6
6587
else
6588
  lt_cv_ld_exported_symbols_list=no
6589
      save_LDFLAGS=$LDFLAGS
6590
      echo "_main" > conftest.sym
6591
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6592
      cat >conftest.$ac_ext <<_ACEOF
6593
/* confdefs.h.  */
6594
_ACEOF
6595
cat confdefs.h >>conftest.$ac_ext
6596
cat >>conftest.$ac_ext <<_ACEOF
6597
/* end confdefs.h.  */
6598
 
6599
int
6600
main ()
6601
{
6602
 
6603
  ;
6604
  return 0;
6605
}
6606
_ACEOF
6607
rm -f conftest.$ac_objext conftest$ac_exeext
6608
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6609
  (eval $ac_link) 2>conftest.er1
6610
  ac_status=$?
6611
  grep -v '^ *+' conftest.er1 >conftest.err
6612
  rm -f conftest.er1
6613
  cat conftest.err >&5
6614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615
  (exit $ac_status); } &&
6616
         { ac_try='test -z "$ac_c_werror_flag"
6617
                         || test ! -s conftest.err'
6618
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619
  (eval $ac_try) 2>&5
6620
  ac_status=$?
6621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622
  (exit $ac_status); }; } &&
6623
         { ac_try='test -s conftest$ac_exeext'
6624
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625
  (eval $ac_try) 2>&5
6626
  ac_status=$?
6627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628
  (exit $ac_status); }; }; then
6629
  lt_cv_ld_exported_symbols_list=yes
6630
else
6631
  echo "$as_me: failed program was:" >&5
6632
sed 's/^/| /' conftest.$ac_ext >&5
6633
 
6634
lt_cv_ld_exported_symbols_list=no
6635
fi
6636
rm -f conftest.err conftest.$ac_objext \
6637
      conftest$ac_exeext conftest.$ac_ext
6638
        LDFLAGS="$save_LDFLAGS"
6639
 
6640
fi
6641
echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6642
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6643
    case $host_os in
6644
    rhapsody* | darwin1.[012])
6645
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6646
    darwin1.*)
6647
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6648
    darwin*) # darwin 5.x on
6649
      # if running on 10.5 or later, the deployment target defaults
6650
      # to the OS version, if on x86, and 10.4, the deployment
6651
      # target defaults to 10.4. Don't you love it?
6652
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6653
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6654
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6655
        10.[012]*)
6656
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6657
        10.*)
6658
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6659
      esac
6660
    ;;
6661
  esac
6662
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6663
      _lt_dar_single_mod='$single_module'
6664
    fi
6665
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6666
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6667
    else
6668
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6669
    fi
6670
    if test "$DSYMUTIL" != ":"; then
6671
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6672
    else
6673
      _lt_dsymutil=
6674
    fi
6675
    ;;
6676
  esac
6677
 
6678
ac_ext=c
6679
ac_cpp='$CPP $CPPFLAGS'
6680
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6681
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6682
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6683
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6684
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6685
# On Suns, sometimes $CPP names a directory.
6686
if test -n "$CPP" && test -d "$CPP"; then
6687
  CPP=
6688
fi
6689
if test -z "$CPP"; then
6690
  if test "${ac_cv_prog_CPP+set}" = set; then
6691
  echo $ECHO_N "(cached) $ECHO_C" >&6
6692
else
6693
      # Double quotes because CPP needs to be expanded
6694
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6695
    do
6696
      ac_preproc_ok=false
6697
for ac_c_preproc_warn_flag in '' yes
6698
do
6699
  # Use a header file that comes with gcc, so configuring glibc
6700
  # with a fresh cross-compiler works.
6701
  # Prefer  to  if __STDC__ is defined, since
6702
  #  exists even on freestanding compilers.
6703
  # On the NeXT, cc -E runs the code through the compiler's parser,
6704
  # not just through cpp. "Syntax error" is here to catch this case.
6705
  cat >conftest.$ac_ext <<_ACEOF
6706
/* confdefs.h.  */
6707
_ACEOF
6708
cat confdefs.h >>conftest.$ac_ext
6709
cat >>conftest.$ac_ext <<_ACEOF
6710
/* end confdefs.h.  */
6711
#ifdef __STDC__
6712
# include 
6713
#else
6714
# include 
6715
#endif
6716
                     Syntax error
6717
_ACEOF
6718
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6719
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6720
  ac_status=$?
6721
  grep -v '^ *+' conftest.er1 >conftest.err
6722
  rm -f conftest.er1
6723
  cat conftest.err >&5
6724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725
  (exit $ac_status); } >/dev/null; then
6726
  if test -s conftest.err; then
6727
    ac_cpp_err=$ac_c_preproc_warn_flag
6728
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6729
  else
6730
    ac_cpp_err=
6731
  fi
6732
else
6733
  ac_cpp_err=yes
6734
fi
6735
if test -z "$ac_cpp_err"; then
6736
  :
6737
else
6738
  echo "$as_me: failed program was:" >&5
6739
sed 's/^/| /' conftest.$ac_ext >&5
6740
 
6741
  # Broken: fails on valid input.
6742
continue
6743
fi
6744
rm -f conftest.err conftest.$ac_ext
6745
 
6746
  # OK, works on sane cases.  Now check whether non-existent headers
6747
  # can be detected and how.
6748
  cat >conftest.$ac_ext <<_ACEOF
6749
/* confdefs.h.  */
6750
_ACEOF
6751
cat confdefs.h >>conftest.$ac_ext
6752
cat >>conftest.$ac_ext <<_ACEOF
6753
/* end confdefs.h.  */
6754
#include 
6755
_ACEOF
6756
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6757
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6758
  ac_status=$?
6759
  grep -v '^ *+' conftest.er1 >conftest.err
6760
  rm -f conftest.er1
6761
  cat conftest.err >&5
6762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763
  (exit $ac_status); } >/dev/null; then
6764
  if test -s conftest.err; then
6765
    ac_cpp_err=$ac_c_preproc_warn_flag
6766
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6767
  else
6768
    ac_cpp_err=
6769
  fi
6770
else
6771
  ac_cpp_err=yes
6772
fi
6773
if test -z "$ac_cpp_err"; then
6774
  # Broken: success on invalid input.
6775
continue
6776
else
6777
  echo "$as_me: failed program was:" >&5
6778
sed 's/^/| /' conftest.$ac_ext >&5
6779
 
6780
  # Passes both tests.
6781
ac_preproc_ok=:
6782
break
6783
fi
6784
rm -f conftest.err conftest.$ac_ext
6785
 
6786
done
6787
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6788
rm -f conftest.err conftest.$ac_ext
6789
if $ac_preproc_ok; then
6790
  break
6791
fi
6792
 
6793
    done
6794
    ac_cv_prog_CPP=$CPP
6795
 
6796
fi
6797
  CPP=$ac_cv_prog_CPP
6798
else
6799
  ac_cv_prog_CPP=$CPP
6800
fi
6801
echo "$as_me:$LINENO: result: $CPP" >&5
6802
echo "${ECHO_T}$CPP" >&6
6803
ac_preproc_ok=false
6804
for ac_c_preproc_warn_flag in '' yes
6805
do
6806
  # Use a header file that comes with gcc, so configuring glibc
6807
  # with a fresh cross-compiler works.
6808
  # Prefer  to  if __STDC__ is defined, since
6809
  #  exists even on freestanding compilers.
6810
  # On the NeXT, cc -E runs the code through the compiler's parser,
6811
  # not just through cpp. "Syntax error" is here to catch this case.
6812
  cat >conftest.$ac_ext <<_ACEOF
6813
/* confdefs.h.  */
6814
_ACEOF
6815
cat confdefs.h >>conftest.$ac_ext
6816
cat >>conftest.$ac_ext <<_ACEOF
6817
/* end confdefs.h.  */
6818
#ifdef __STDC__
6819
# include 
6820
#else
6821
# include 
6822
#endif
6823
                     Syntax error
6824
_ACEOF
6825
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6826
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6827
  ac_status=$?
6828
  grep -v '^ *+' conftest.er1 >conftest.err
6829
  rm -f conftest.er1
6830
  cat conftest.err >&5
6831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832
  (exit $ac_status); } >/dev/null; then
6833
  if test -s conftest.err; then
6834
    ac_cpp_err=$ac_c_preproc_warn_flag
6835
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6836
  else
6837
    ac_cpp_err=
6838
  fi
6839
else
6840
  ac_cpp_err=yes
6841
fi
6842
if test -z "$ac_cpp_err"; then
6843
  :
6844
else
6845
  echo "$as_me: failed program was:" >&5
6846
sed 's/^/| /' conftest.$ac_ext >&5
6847
 
6848
  # Broken: fails on valid input.
6849
continue
6850
fi
6851
rm -f conftest.err conftest.$ac_ext
6852
 
6853
  # OK, works on sane cases.  Now check whether non-existent headers
6854
  # can be detected and how.
6855
  cat >conftest.$ac_ext <<_ACEOF
6856
/* confdefs.h.  */
6857
_ACEOF
6858
cat confdefs.h >>conftest.$ac_ext
6859
cat >>conftest.$ac_ext <<_ACEOF
6860
/* end confdefs.h.  */
6861
#include 
6862
_ACEOF
6863
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6864
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6865
  ac_status=$?
6866
  grep -v '^ *+' conftest.er1 >conftest.err
6867
  rm -f conftest.er1
6868
  cat conftest.err >&5
6869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870
  (exit $ac_status); } >/dev/null; then
6871
  if test -s conftest.err; then
6872
    ac_cpp_err=$ac_c_preproc_warn_flag
6873
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6874
  else
6875
    ac_cpp_err=
6876
  fi
6877
else
6878
  ac_cpp_err=yes
6879
fi
6880
if test -z "$ac_cpp_err"; then
6881
  # Broken: success on invalid input.
6882
continue
6883
else
6884
  echo "$as_me: failed program was:" >&5
6885
sed 's/^/| /' conftest.$ac_ext >&5
6886
 
6887
  # Passes both tests.
6888
ac_preproc_ok=:
6889
break
6890
fi
6891
rm -f conftest.err conftest.$ac_ext
6892
 
6893
done
6894
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6895
rm -f conftest.err conftest.$ac_ext
6896
if $ac_preproc_ok; then
6897
  :
6898
else
6899
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6900
See \`config.log' for more details." >&5
6901
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6902
See \`config.log' for more details." >&2;}
6903
   { (exit 1); exit 1; }; }
6904
fi
6905
 
6906
ac_ext=c
6907
ac_cpp='$CPP $CPPFLAGS'
6908
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6911
 
6912
 
6913
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6914
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6915
if test "${ac_cv_header_stdc+set}" = set; then
6916
  echo $ECHO_N "(cached) $ECHO_C" >&6
6917
else
6918
  cat >conftest.$ac_ext <<_ACEOF
6919
/* confdefs.h.  */
6920
_ACEOF
6921
cat confdefs.h >>conftest.$ac_ext
6922
cat >>conftest.$ac_ext <<_ACEOF
6923
/* end confdefs.h.  */
6924
#include 
6925
#include 
6926
#include 
6927
#include 
6928
 
6929
int
6930
main ()
6931
{
6932
 
6933
  ;
6934
  return 0;
6935
}
6936
_ACEOF
6937
rm -f conftest.$ac_objext
6938
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939
  (eval $ac_compile) 2>conftest.er1
6940
  ac_status=$?
6941
  grep -v '^ *+' conftest.er1 >conftest.err
6942
  rm -f conftest.er1
6943
  cat conftest.err >&5
6944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945
  (exit $ac_status); } &&
6946
         { ac_try='test -z "$ac_c_werror_flag"
6947
                         || test ! -s conftest.err'
6948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949
  (eval $ac_try) 2>&5
6950
  ac_status=$?
6951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952
  (exit $ac_status); }; } &&
6953
         { ac_try='test -s conftest.$ac_objext'
6954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955
  (eval $ac_try) 2>&5
6956
  ac_status=$?
6957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958
  (exit $ac_status); }; }; then
6959
  ac_cv_header_stdc=yes
6960
else
6961
  echo "$as_me: failed program was:" >&5
6962
sed 's/^/| /' conftest.$ac_ext >&5
6963
 
6964
ac_cv_header_stdc=no
6965
fi
6966
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6967
 
6968
if test $ac_cv_header_stdc = yes; then
6969
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6970
  cat >conftest.$ac_ext <<_ACEOF
6971
/* confdefs.h.  */
6972
_ACEOF
6973
cat confdefs.h >>conftest.$ac_ext
6974
cat >>conftest.$ac_ext <<_ACEOF
6975
/* end confdefs.h.  */
6976
#include 
6977
 
6978
_ACEOF
6979
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6980
  $EGREP "memchr" >/dev/null 2>&1; then
6981
  :
6982
else
6983
  ac_cv_header_stdc=no
6984
fi
6985
rm -f conftest*
6986
 
6987
fi
6988
 
6989
if test $ac_cv_header_stdc = yes; then
6990
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6991
  cat >conftest.$ac_ext <<_ACEOF
6992
/* confdefs.h.  */
6993
_ACEOF
6994
cat confdefs.h >>conftest.$ac_ext
6995
cat >>conftest.$ac_ext <<_ACEOF
6996
/* end confdefs.h.  */
6997
#include 
6998
 
6999
_ACEOF
7000
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7001
  $EGREP "free" >/dev/null 2>&1; then
7002
  :
7003
else
7004
  ac_cv_header_stdc=no
7005
fi
7006
rm -f conftest*
7007
 
7008
fi
7009
 
7010
if test $ac_cv_header_stdc = yes; then
7011
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7012
  if test "$cross_compiling" = yes; then
7013
  :
7014
else
7015
  cat >conftest.$ac_ext <<_ACEOF
7016
/* confdefs.h.  */
7017
_ACEOF
7018
cat confdefs.h >>conftest.$ac_ext
7019
cat >>conftest.$ac_ext <<_ACEOF
7020
/* end confdefs.h.  */
7021
#include 
7022
#if ((' ' & 0x0FF) == 0x020)
7023
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7024
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7025
#else
7026
# define ISLOWER(c) \
7027
                   (('a' <= (c) && (c) <= 'i') \
7028
                     || ('j' <= (c) && (c) <= 'r') \
7029
                     || ('s' <= (c) && (c) <= 'z'))
7030
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7031
#endif
7032
 
7033
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7034
int
7035
main ()
7036
{
7037
  int i;
7038
  for (i = 0; i < 256; i++)
7039
    if (XOR (islower (i), ISLOWER (i))
7040
        || toupper (i) != TOUPPER (i))
7041
      exit(2);
7042
  exit (0);
7043
}
7044
_ACEOF
7045
rm -f conftest$ac_exeext
7046
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7047
  (eval $ac_link) 2>&5
7048
  ac_status=$?
7049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7051
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052
  (eval $ac_try) 2>&5
7053
  ac_status=$?
7054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055
  (exit $ac_status); }; }; then
7056
  :
7057
else
7058
  echo "$as_me: program exited with status $ac_status" >&5
7059
echo "$as_me: failed program was:" >&5
7060
sed 's/^/| /' conftest.$ac_ext >&5
7061
 
7062
( exit $ac_status )
7063
ac_cv_header_stdc=no
7064
fi
7065
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7066
fi
7067
fi
7068
fi
7069
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7070
echo "${ECHO_T}$ac_cv_header_stdc" >&6
7071
if test $ac_cv_header_stdc = yes; then
7072
 
7073
cat >>confdefs.h <<\_ACEOF
7074
#define STDC_HEADERS 1
7075
_ACEOF
7076
 
7077
fi
7078
 
7079
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7080
 
7081
 
7082
 
7083
 
7084
 
7085
 
7086
 
7087
 
7088
 
7089
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7090
                  inttypes.h stdint.h unistd.h
7091
do
7092
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7093
echo "$as_me:$LINENO: checking for $ac_header" >&5
7094
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7095
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7096
  echo $ECHO_N "(cached) $ECHO_C" >&6
7097
else
7098
  cat >conftest.$ac_ext <<_ACEOF
7099
/* confdefs.h.  */
7100
_ACEOF
7101
cat confdefs.h >>conftest.$ac_ext
7102
cat >>conftest.$ac_ext <<_ACEOF
7103
/* end confdefs.h.  */
7104
$ac_includes_default
7105
 
7106
#include <$ac_header>
7107
_ACEOF
7108
rm -f conftest.$ac_objext
7109
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7110
  (eval $ac_compile) 2>conftest.er1
7111
  ac_status=$?
7112
  grep -v '^ *+' conftest.er1 >conftest.err
7113
  rm -f conftest.er1
7114
  cat conftest.err >&5
7115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116
  (exit $ac_status); } &&
7117
         { ac_try='test -z "$ac_c_werror_flag"
7118
                         || test ! -s conftest.err'
7119
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120
  (eval $ac_try) 2>&5
7121
  ac_status=$?
7122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123
  (exit $ac_status); }; } &&
7124
         { ac_try='test -s conftest.$ac_objext'
7125
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126
  (eval $ac_try) 2>&5
7127
  ac_status=$?
7128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129
  (exit $ac_status); }; }; then
7130
  eval "$as_ac_Header=yes"
7131
else
7132
  echo "$as_me: failed program was:" >&5
7133
sed 's/^/| /' conftest.$ac_ext >&5
7134
 
7135
eval "$as_ac_Header=no"
7136
fi
7137
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7138
fi
7139
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7140
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7141
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7142
  cat >>confdefs.h <<_ACEOF
7143
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7144
_ACEOF
7145
 
7146
fi
7147
 
7148
done
7149
 
7150
 
7151
 
7152
for ac_header in dlfcn.h
7153
do
7154
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7155
echo "$as_me:$LINENO: checking for $ac_header" >&5
7156
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7157
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7158
  echo $ECHO_N "(cached) $ECHO_C" >&6
7159
else
7160
  cat >conftest.$ac_ext <<_ACEOF
7161
/* confdefs.h.  */
7162
_ACEOF
7163
cat confdefs.h >>conftest.$ac_ext
7164
cat >>conftest.$ac_ext <<_ACEOF
7165
/* end confdefs.h.  */
7166
$ac_includes_default
7167
 
7168
#include <$ac_header>
7169
_ACEOF
7170
rm -f conftest.$ac_objext
7171
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7172
  (eval $ac_compile) 2>conftest.er1
7173
  ac_status=$?
7174
  grep -v '^ *+' conftest.er1 >conftest.err
7175
  rm -f conftest.er1
7176
  cat conftest.err >&5
7177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178
  (exit $ac_status); } &&
7179
         { ac_try='test -z "$ac_c_werror_flag"
7180
                         || test ! -s conftest.err'
7181
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182
  (eval $ac_try) 2>&5
7183
  ac_status=$?
7184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185
  (exit $ac_status); }; } &&
7186
         { ac_try='test -s conftest.$ac_objext'
7187
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188
  (eval $ac_try) 2>&5
7189
  ac_status=$?
7190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191
  (exit $ac_status); }; }; then
7192
  eval "$as_ac_Header=yes"
7193
else
7194
  echo "$as_me: failed program was:" >&5
7195
sed 's/^/| /' conftest.$ac_ext >&5
7196
 
7197
eval "$as_ac_Header=no"
7198
fi
7199
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7200
fi
7201
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7202
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7203
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7204
  cat >>confdefs.h <<_ACEOF
7205
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7206
_ACEOF
7207
 
7208
fi
7209
 
7210
done
7211
 
7212
 
7213
 
7214
# Set options
7215
 
7216
 
7217
 
7218
        enable_dlopen=no
7219
 
7220
 
7221
 
7222
            # Check whether --enable-shared or --disable-shared was given.
7223
if test "${enable_shared+set}" = set; then
7224
  enableval="$enable_shared"
7225
  p=${PACKAGE-default}
7226
    case $enableval in
7227
    yes) enable_shared=yes ;;
7228
    no) enable_shared=no ;;
7229
    *)
7230
      enable_shared=no
7231
      # Look at the argument we got.  We use all the common list separators.
7232
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7233
      for pkg in $enableval; do
7234
        IFS="$lt_save_ifs"
7235
        if test "X$pkg" = "X$p"; then
7236
          enable_shared=yes
7237
        fi
7238
      done
7239
      IFS="$lt_save_ifs"
7240
      ;;
7241
    esac
7242
else
7243
  enable_shared=yes
7244
fi;
7245
 
7246
 
7247
 
7248
 
7249
 
7250
 
7251
 
7252
 
7253
  # Check whether --enable-static or --disable-static was given.
7254
if test "${enable_static+set}" = set; then
7255
  enableval="$enable_static"
7256
  p=${PACKAGE-default}
7257
    case $enableval in
7258
    yes) enable_static=yes ;;
7259
    no) enable_static=no ;;
7260
    *)
7261
     enable_static=no
7262
      # Look at the argument we got.  We use all the common list separators.
7263
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7264
      for pkg in $enableval; do
7265
        IFS="$lt_save_ifs"
7266
        if test "X$pkg" = "X$p"; then
7267
          enable_static=yes
7268
        fi
7269
      done
7270
      IFS="$lt_save_ifs"
7271
      ;;
7272
    esac
7273
else
7274
  enable_static=yes
7275
fi;
7276
 
7277
 
7278
 
7279
 
7280
 
7281
 
7282
 
7283
 
7284
 
7285
# Check whether --with-pic or --without-pic was given.
7286
if test "${with_pic+set}" = set; then
7287
  withval="$with_pic"
7288
  pic_mode="$withval"
7289
else
7290
  pic_mode=default
7291
fi;
7292
 
7293
test -z "$pic_mode" && pic_mode=default
7294
 
7295
 
7296
 
7297
 
7298
 
7299
 
7300
 
7301
  # Check whether --enable-fast-install or --disable-fast-install was given.
7302
if test "${enable_fast_install+set}" = set; then
7303
  enableval="$enable_fast_install"
7304
  p=${PACKAGE-default}
7305
    case $enableval in
7306
    yes) enable_fast_install=yes ;;
7307
    no) enable_fast_install=no ;;
7308
    *)
7309
      enable_fast_install=no
7310
      # Look at the argument we got.  We use all the common list separators.
7311
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7312
      for pkg in $enableval; do
7313
        IFS="$lt_save_ifs"
7314
        if test "X$pkg" = "X$p"; then
7315
          enable_fast_install=yes
7316
        fi
7317
      done
7318
      IFS="$lt_save_ifs"
7319
      ;;
7320
    esac
7321
else
7322
  enable_fast_install=yes
7323
fi;
7324
 
7325
 
7326
 
7327
 
7328
 
7329
 
7330
 
7331
 
7332
 
7333
 
7334
# This can be used to rebuild libtool when needed
7335
LIBTOOL_DEPS="$ltmain"
7336
 
7337
# Always use our own libtool.
7338
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7339
 
7340
 
7341
 
7342
 
7343
 
7344
 
7345
 
7346
 
7347
 
7348
 
7349
 
7350
 
7351
 
7352
 
7353
 
7354
 
7355
 
7356
 
7357
 
7358
 
7359
 
7360
 
7361
 
7362
 
7363
 
7364
test -z "$LN_S" && LN_S="ln -s"
7365
 
7366
 
7367
 
7368
 
7369
 
7370
 
7371
 
7372
 
7373
 
7374
 
7375
 
7376
 
7377
 
7378
 
7379
if test -n "${ZSH_VERSION+set}" ; then
7380
   setopt NO_GLOB_SUBST
7381
fi
7382
 
7383
echo "$as_me:$LINENO: checking for objdir" >&5
7384
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7385
if test "${lt_cv_objdir+set}" = set; then
7386
  echo $ECHO_N "(cached) $ECHO_C" >&6
7387
else
7388
  rm -f .libs 2>/dev/null
7389
mkdir .libs 2>/dev/null
7390
if test -d .libs; then
7391
  lt_cv_objdir=.libs
7392
else
7393
  # MS-DOS does not allow filenames that begin with a dot.
7394
  lt_cv_objdir=_libs
7395
fi
7396
rmdir .libs 2>/dev/null
7397
fi
7398
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7399
echo "${ECHO_T}$lt_cv_objdir" >&6
7400
objdir=$lt_cv_objdir
7401
 
7402
 
7403
 
7404
 
7405
 
7406
cat >>confdefs.h <<_ACEOF
7407
#define LT_OBJDIR "$lt_cv_objdir/"
7408
_ACEOF
7409
 
7410
 
7411
 
7412
 
7413
 
7414
 
7415
 
7416
 
7417
 
7418
 
7419
 
7420
 
7421
 
7422
 
7423
 
7424
 
7425
 
7426
case $host_os in
7427
aix3*)
7428
  # AIX sometimes has problems with the GCC collect2 program.  For some
7429
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7430
  # vanish in a puff of smoke.
7431
  if test "X${COLLECT_NAMES+set}" != Xset; then
7432
    COLLECT_NAMES=
7433
    export COLLECT_NAMES
7434
  fi
7435
  ;;
7436
esac
7437
 
7438
# Sed substitution that helps us do robust quoting.  It backslashifies
7439
# metacharacters that are still active within double-quoted strings.
7440
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7441
 
7442
# Same as above, but do not quote variable references.
7443
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7444
 
7445
# Sed substitution to delay expansion of an escaped shell variable in a
7446
# double_quote_subst'ed string.
7447
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7448
 
7449
# Sed substitution to delay expansion of an escaped single quote.
7450
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7451
 
7452
# Sed substitution to avoid accidental globbing in evaled expressions
7453
no_glob_subst='s/\*/\\\*/g'
7454
 
7455
# Global variables:
7456
ofile=libtool
7457
can_build_shared=yes
7458
 
7459
# All known linkers require a `.a' archive for static linking (except MSVC,
7460
# which needs '.lib').
7461
libext=a
7462
 
7463
with_gnu_ld="$lt_cv_prog_gnu_ld"
7464
 
7465
old_CC="$CC"
7466
old_CFLAGS="$CFLAGS"
7467
 
7468
# Set sane defaults for various variables
7469
test -z "$CC" && CC=cc
7470
test -z "$LTCC" && LTCC=$CC
7471
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7472
test -z "$LD" && LD=ld
7473
test -z "$ac_objext" && ac_objext=o
7474
 
7475
for cc_temp in $compiler""; do
7476
  case $cc_temp in
7477
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7478
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7479
    \-*) ;;
7480
    *) break;;
7481
  esac
7482
done
7483
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7484
 
7485
 
7486
# Only perform the check for file, if the check method requires it
7487
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7488
case $deplibs_check_method in
7489
file_magic*)
7490
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7491
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7492
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7493
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7494
  echo $ECHO_N "(cached) $ECHO_C" >&6
7495
else
7496
  case $MAGIC_CMD in
7497
[\\/*] |  ?:[\\/]*)
7498
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7499
  ;;
7500
*)
7501
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7502
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7503
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7504
  for ac_dir in $ac_dummy; do
7505
    IFS="$lt_save_ifs"
7506
    test -z "$ac_dir" && ac_dir=.
7507
    if test -f $ac_dir/${ac_tool_prefix}file; then
7508
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7509
      if test -n "$file_magic_test_file"; then
7510
        case $deplibs_check_method in
7511
        "file_magic "*)
7512
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7513
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7514
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7515
            $EGREP "$file_magic_regex" > /dev/null; then
7516
            :
7517
          else
7518
            cat <<_LT_EOF 1>&2
7519
 
7520
*** Warning: the command libtool uses to detect shared libraries,
7521
*** $file_magic_cmd, produces output that libtool cannot recognize.
7522
*** The result is that libtool may fail to recognize shared libraries
7523
*** as such.  This will affect the creation of libtool libraries that
7524
*** depend on shared libraries, but programs linked with such libtool
7525
*** libraries will work regardless of this problem.  Nevertheless, you
7526
*** may want to report the problem to your system manager and/or to
7527
*** bug-libtool@gnu.org
7528
 
7529
_LT_EOF
7530
          fi ;;
7531
        esac
7532
      fi
7533
      break
7534
    fi
7535
  done
7536
  IFS="$lt_save_ifs"
7537
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7538
  ;;
7539
esac
7540
fi
7541
 
7542
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7543
if test -n "$MAGIC_CMD"; then
7544
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7545
echo "${ECHO_T}$MAGIC_CMD" >&6
7546
else
7547
  echo "$as_me:$LINENO: result: no" >&5
7548
echo "${ECHO_T}no" >&6
7549
fi
7550
 
7551
 
7552
 
7553
 
7554
 
7555
if test -z "$lt_cv_path_MAGIC_CMD"; then
7556
  if test -n "$ac_tool_prefix"; then
7557
    echo "$as_me:$LINENO: checking for file" >&5
7558
echo $ECHO_N "checking for file... $ECHO_C" >&6
7559
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7560
  echo $ECHO_N "(cached) $ECHO_C" >&6
7561
else
7562
  case $MAGIC_CMD in
7563
[\\/*] |  ?:[\\/]*)
7564
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7565
  ;;
7566
*)
7567
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7568
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7569
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7570
  for ac_dir in $ac_dummy; do
7571
    IFS="$lt_save_ifs"
7572
    test -z "$ac_dir" && ac_dir=.
7573
    if test -f $ac_dir/file; then
7574
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7575
      if test -n "$file_magic_test_file"; then
7576
        case $deplibs_check_method in
7577
        "file_magic "*)
7578
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7579
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7580
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7581
            $EGREP "$file_magic_regex" > /dev/null; then
7582
            :
7583
          else
7584
            cat <<_LT_EOF 1>&2
7585
 
7586
*** Warning: the command libtool uses to detect shared libraries,
7587
*** $file_magic_cmd, produces output that libtool cannot recognize.
7588
*** The result is that libtool may fail to recognize shared libraries
7589
*** as such.  This will affect the creation of libtool libraries that
7590
*** depend on shared libraries, but programs linked with such libtool
7591
*** libraries will work regardless of this problem.  Nevertheless, you
7592
*** may want to report the problem to your system manager and/or to
7593
*** bug-libtool@gnu.org
7594
 
7595
_LT_EOF
7596
          fi ;;
7597
        esac
7598
      fi
7599
      break
7600
    fi
7601
  done
7602
  IFS="$lt_save_ifs"
7603
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7604
  ;;
7605
esac
7606
fi
7607
 
7608
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7609
if test -n "$MAGIC_CMD"; then
7610
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7611
echo "${ECHO_T}$MAGIC_CMD" >&6
7612
else
7613
  echo "$as_me:$LINENO: result: no" >&5
7614
echo "${ECHO_T}no" >&6
7615
fi
7616
 
7617
 
7618
  else
7619
    MAGIC_CMD=:
7620
  fi
7621
fi
7622
 
7623
  fi
7624
  ;;
7625
esac
7626
 
7627
# Use C for the default configuration in the libtool script
7628
 
7629
lt_save_CC="$CC"
7630
ac_ext=c
7631
ac_cpp='$CPP $CPPFLAGS'
7632
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7635
 
7636
 
7637
# Source file extension for C test sources.
7638
ac_ext=c
7639
 
7640
# Object file extension for compiled C test sources.
7641
objext=o
7642
objext=$objext
7643
 
7644
# Code to be used in simple compile tests
7645
lt_simple_compile_test_code="int some_variable = 0;"
7646
 
7647
# Code to be used in simple link tests
7648
lt_simple_link_test_code='int main(){return(0);}'
7649
 
7650
 
7651
 
7652
 
7653
 
7654
 
7655
 
7656
# If no C compiler was specified, use CC.
7657
LTCC=${LTCC-"$CC"}
7658
 
7659
# If no C compiler flags were specified, use CFLAGS.
7660
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7661
 
7662
# Allow CC to be a program name with arguments.
7663
compiler=$CC
7664
 
7665
# Save the default compiler, since it gets overwritten when the other
7666
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7667
compiler_DEFAULT=$CC
7668
 
7669
# save warnings/boilerplate of simple test code
7670
ac_outfile=conftest.$ac_objext
7671
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7672
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7673
_lt_compiler_boilerplate=`cat conftest.err`
7674
$RM conftest*
7675
 
7676
ac_outfile=conftest.$ac_objext
7677
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7678
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7679
_lt_linker_boilerplate=`cat conftest.err`
7680
$RM -r conftest*
7681
 
7682
 
7683
## CAVEAT EMPTOR:
7684
## There is no encapsulation within the following macros, do not change
7685
## the running order or otherwise move them around unless you know exactly
7686
## what you are doing...
7687
if test -n "$compiler"; then
7688
 
7689
lt_prog_compiler_no_builtin_flag=
7690
 
7691
if test "$GCC" = yes; then
7692
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7693
 
7694
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7695
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7696
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7697
  echo $ECHO_N "(cached) $ECHO_C" >&6
7698
else
7699
  lt_cv_prog_compiler_rtti_exceptions=no
7700
   ac_outfile=conftest.$ac_objext
7701
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7702
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7703
   # Insert the option either (1) after the last *FLAGS variable, or
7704
   # (2) before a word containing "conftest.", or (3) at the end.
7705
   # Note that $ac_compile itself does not contain backslashes and begins
7706
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7707
   # The option is referenced via a variable to avoid confusing sed.
7708
   lt_compile=`echo "$ac_compile" | $SED \
7709
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7710
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7711
   -e 's:$: $lt_compiler_flag:'`
7712
   (eval echo "\"\$as_me:7712: $lt_compile\"" >&5)
7713
   (eval "$lt_compile" 2>conftest.err)
7714
   ac_status=$?
7715
   cat conftest.err >&5
7716
   echo "$as_me:7716: \$? = $ac_status" >&5
7717
   if (exit $ac_status) && test -s "$ac_outfile"; then
7718
     # The compiler can only warn and ignore the option if not recognized
7719
     # So say no if there are warnings other than the usual output.
7720
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7721
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7722
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7723
       lt_cv_prog_compiler_rtti_exceptions=yes
7724
     fi
7725
   fi
7726
   $RM conftest*
7727
 
7728
fi
7729
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7730
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7731
 
7732
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7733
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7734
else
7735
    :
7736
fi
7737
 
7738
fi
7739
 
7740
 
7741
 
7742
 
7743
 
7744
 
7745
  lt_prog_compiler_wl=
7746
lt_prog_compiler_pic=
7747
lt_prog_compiler_static=
7748
 
7749
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7750
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7751
 
7752
  if test "$GCC" = yes; then
7753
    lt_prog_compiler_wl='-Wl,'
7754
    lt_prog_compiler_static='-static'
7755
 
7756
    case $host_os in
7757
      aix*)
7758
      # All AIX code is PIC.
7759
      if test "$host_cpu" = ia64; then
7760
        # AIX 5 now supports IA64 processor
7761
        lt_prog_compiler_static='-Bstatic'
7762
      fi
7763
      ;;
7764
 
7765
    amigaos*)
7766
      case $host_cpu in
7767
      powerpc)
7768
            # see comment about AmigaOS4 .so support
7769
            lt_prog_compiler_pic='-fPIC'
7770
        ;;
7771
      m68k)
7772
            # FIXME: we need at least 68020 code to build shared libraries, but
7773
            # adding the `-m68020' flag to GCC prevents building anything better,
7774
            # like `-m68040'.
7775
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7776
        ;;
7777
      esac
7778
      ;;
7779
 
7780
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7781
      # PIC is the default for these OSes.
7782
      ;;
7783
 
7784
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7785
      # This hack is so that the source file can tell whether it is being
7786
      # built for inclusion in a dll (and should export symbols for example).
7787
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7788
      # (--disable-auto-import) libraries
7789
      lt_prog_compiler_pic='-DDLL_EXPORT'
7790
      ;;
7791
 
7792
    darwin* | rhapsody*)
7793
      # PIC is the default on this platform
7794
      # Common symbols not allowed in MH_DYLIB files
7795
      lt_prog_compiler_pic='-fno-common'
7796
      ;;
7797
 
7798
    hpux*)
7799
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7800
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7801
      # sets the default TLS model and affects inlining.
7802
      case $host_cpu in
7803
      hppa*64*)
7804
        # +Z the default
7805
        ;;
7806
      *)
7807
        lt_prog_compiler_pic='-fPIC'
7808
        ;;
7809
      esac
7810
      ;;
7811
 
7812
    interix[3-9]*)
7813
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7814
      # Instead, we relocate shared libraries at runtime.
7815
      ;;
7816
 
7817
    msdosdjgpp*)
7818
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7819
      # on systems that don't support them.
7820
      lt_prog_compiler_can_build_shared=no
7821
      enable_shared=no
7822
      ;;
7823
 
7824
    *nto* | *qnx*)
7825
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7826
      # it will coredump.
7827
      lt_prog_compiler_pic='-fPIC -shared'
7828
      ;;
7829
 
7830
    sysv4*MP*)
7831
      if test -d /usr/nec; then
7832
        lt_prog_compiler_pic=-Kconform_pic
7833
      fi
7834
      ;;
7835
 
7836
    *)
7837
      lt_prog_compiler_pic='-fPIC'
7838
      ;;
7839
    esac
7840
  else
7841
    # PORTME Check for flag to pass linker flags through the system compiler.
7842
    case $host_os in
7843
    aix*)
7844
      lt_prog_compiler_wl='-Wl,'
7845
      if test "$host_cpu" = ia64; then
7846
        # AIX 5 now supports IA64 processor
7847
        lt_prog_compiler_static='-Bstatic'
7848
      else
7849
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7850
      fi
7851
      ;;
7852
 
7853
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7854
      # This hack is so that the source file can tell whether it is being
7855
      # built for inclusion in a dll (and should export symbols for example).
7856
      lt_prog_compiler_pic='-DDLL_EXPORT'
7857
      ;;
7858
 
7859
    hpux9* | hpux10* | hpux11*)
7860
      lt_prog_compiler_wl='-Wl,'
7861
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7862
      # not for PA HP-UX.
7863
      case $host_cpu in
7864
      hppa*64*|ia64*)
7865
        # +Z the default
7866
        ;;
7867
      *)
7868
        lt_prog_compiler_pic='+Z'
7869
        ;;
7870
      esac
7871
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7872
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7873
      ;;
7874
 
7875
    irix5* | irix6* | nonstopux*)
7876
      lt_prog_compiler_wl='-Wl,'
7877
      # PIC (with -KPIC) is the default.
7878
      lt_prog_compiler_static='-non_shared'
7879
      ;;
7880
 
7881
    linux* | k*bsd*-gnu)
7882
      case $cc_basename in
7883
      # old Intel for x86_64 which still supported -KPIC.
7884
      ecc*)
7885
        lt_prog_compiler_wl='-Wl,'
7886
        lt_prog_compiler_pic='-KPIC'
7887
        lt_prog_compiler_static='-static'
7888
        ;;
7889
      # icc used to be incompatible with GCC.
7890
      # ICC 10 doesn't accept -KPIC any more.
7891
      icc* | ifort*)
7892
        lt_prog_compiler_wl='-Wl,'
7893
        lt_prog_compiler_pic='-fPIC'
7894
        lt_prog_compiler_static='-static'
7895
        ;;
7896
      # Lahey Fortran 8.1.
7897
      lf95*)
7898
        lt_prog_compiler_wl='-Wl,'
7899
        lt_prog_compiler_pic='--shared'
7900
        lt_prog_compiler_static='--static'
7901
        ;;
7902
      pgcc* | pgf77* | pgf90* | pgf95*)
7903
        # Portland Group compilers (*not* the Pentium gcc compiler,
7904
        # which looks to be a dead project)
7905
        lt_prog_compiler_wl='-Wl,'
7906
        lt_prog_compiler_pic='-fpic'
7907
        lt_prog_compiler_static='-Bstatic'
7908
        ;;
7909
      ccc*)
7910
        lt_prog_compiler_wl='-Wl,'
7911
        # All Alpha code is PIC.
7912
        lt_prog_compiler_static='-non_shared'
7913
        ;;
7914
      xl*)
7915
        # IBM XL C 8.0/Fortran 10.1 on PPC
7916
        lt_prog_compiler_wl='-Wl,'
7917
        lt_prog_compiler_pic='-qpic'
7918
        lt_prog_compiler_static='-qstaticlink'
7919
        ;;
7920
      *)
7921
        case `$CC -V 2>&1 | sed 5q` in
7922
        *Sun\ C*)
7923
          # Sun C 5.9
7924
          lt_prog_compiler_pic='-KPIC'
7925
          lt_prog_compiler_static='-Bstatic'
7926
          lt_prog_compiler_wl='-Wl,'
7927
          ;;
7928
        *Sun\ F*)
7929
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7930
          lt_prog_compiler_pic='-KPIC'
7931
          lt_prog_compiler_static='-Bstatic'
7932
          lt_prog_compiler_wl=''
7933
          ;;
7934
        esac
7935
        ;;
7936
      esac
7937
      ;;
7938
 
7939
    newsos6)
7940
      lt_prog_compiler_pic='-KPIC'
7941
      lt_prog_compiler_static='-Bstatic'
7942
      ;;
7943
 
7944
    *nto* | *qnx*)
7945
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7946
      # it will coredump.
7947
      lt_prog_compiler_pic='-fPIC -shared'
7948
      ;;
7949
 
7950
    osf3* | osf4* | osf5*)
7951
      lt_prog_compiler_wl='-Wl,'
7952
      # All OSF/1 code is PIC.
7953
      lt_prog_compiler_static='-non_shared'
7954
      ;;
7955
 
7956
    rdos*)
7957
      lt_prog_compiler_static='-non_shared'
7958
      ;;
7959
 
7960
    solaris*)
7961
      lt_prog_compiler_pic='-KPIC'
7962
      lt_prog_compiler_static='-Bstatic'
7963
      case $cc_basename in
7964
      f77* | f90* | f95*)
7965
        lt_prog_compiler_wl='-Qoption ld ';;
7966
      *)
7967
        lt_prog_compiler_wl='-Wl,';;
7968
      esac
7969
      ;;
7970
 
7971
    sunos4*)
7972
      lt_prog_compiler_wl='-Qoption ld '
7973
      lt_prog_compiler_pic='-PIC'
7974
      lt_prog_compiler_static='-Bstatic'
7975
      ;;
7976
 
7977
    sysv4 | sysv4.2uw2* | sysv4.3*)
7978
      lt_prog_compiler_wl='-Wl,'
7979
      lt_prog_compiler_pic='-KPIC'
7980
      lt_prog_compiler_static='-Bstatic'
7981
      ;;
7982
 
7983
    sysv4*MP*)
7984
      if test -d /usr/nec ;then
7985
        lt_prog_compiler_pic='-Kconform_pic'
7986
        lt_prog_compiler_static='-Bstatic'
7987
      fi
7988
      ;;
7989
 
7990
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7991
      lt_prog_compiler_wl='-Wl,'
7992
      lt_prog_compiler_pic='-KPIC'
7993
      lt_prog_compiler_static='-Bstatic'
7994
      ;;
7995
 
7996
    unicos*)
7997
      lt_prog_compiler_wl='-Wl,'
7998
      lt_prog_compiler_can_build_shared=no
7999
      ;;
8000
 
8001
    uts4*)
8002
      lt_prog_compiler_pic='-pic'
8003
      lt_prog_compiler_static='-Bstatic'
8004
      ;;
8005
 
8006
    *)
8007
      lt_prog_compiler_can_build_shared=no
8008
      ;;
8009
    esac
8010
  fi
8011
 
8012
case $host_os in
8013
  # For platforms which do not support PIC, -DPIC is meaningless:
8014
  *djgpp*)
8015
    lt_prog_compiler_pic=
8016
    ;;
8017
  *)
8018
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8019
    ;;
8020
esac
8021
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8022
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8023
 
8024
 
8025
 
8026
 
8027
 
8028
 
8029
#
8030
# Check to make sure the PIC flag actually works.
8031
#
8032
if test -n "$lt_prog_compiler_pic"; then
8033
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8034
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8035
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8036
  echo $ECHO_N "(cached) $ECHO_C" >&6
8037
else
8038
  lt_cv_prog_compiler_pic_works=no
8039
   ac_outfile=conftest.$ac_objext
8040
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8041
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8042
   # Insert the option either (1) after the last *FLAGS variable, or
8043
   # (2) before a word containing "conftest.", or (3) at the end.
8044
   # Note that $ac_compile itself does not contain backslashes and begins
8045
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8046
   # The option is referenced via a variable to avoid confusing sed.
8047
   lt_compile=`echo "$ac_compile" | $SED \
8048
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8049
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8050
   -e 's:$: $lt_compiler_flag:'`
8051
   (eval echo "\"\$as_me:8051: $lt_compile\"" >&5)
8052
   (eval "$lt_compile" 2>conftest.err)
8053
   ac_status=$?
8054
   cat conftest.err >&5
8055
   echo "$as_me:8055: \$? = $ac_status" >&5
8056
   if (exit $ac_status) && test -s "$ac_outfile"; then
8057
     # The compiler can only warn and ignore the option if not recognized
8058
     # So say no if there are warnings other than the usual output.
8059
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8060
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8061
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8062
       lt_cv_prog_compiler_pic_works=yes
8063
     fi
8064
   fi
8065
   $RM conftest*
8066
 
8067
fi
8068
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8069
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8070
 
8071
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8072
    case $lt_prog_compiler_pic in
8073
     "" | " "*) ;;
8074
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8075
     esac
8076
else
8077
    lt_prog_compiler_pic=
8078
     lt_prog_compiler_can_build_shared=no
8079
fi
8080
 
8081
fi
8082
 
8083
 
8084
 
8085
 
8086
 
8087
 
8088
#
8089
# Check to make sure the static flag actually works.
8090
#
8091
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8092
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8093
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8094
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8095
  echo $ECHO_N "(cached) $ECHO_C" >&6
8096
else
8097
  lt_cv_prog_compiler_static_works=no
8098
   save_LDFLAGS="$LDFLAGS"
8099
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8100
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8101
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8102
     # The linker can only warn and ignore the option if not recognized
8103
     # So say no if there are warnings
8104
     if test -s conftest.err; then
8105
       # Append any errors to the config.log.
8106
       cat conftest.err 1>&5
8107
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8108
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8109
       if diff conftest.exp conftest.er2 >/dev/null; then
8110
         lt_cv_prog_compiler_static_works=yes
8111
       fi
8112
     else
8113
       lt_cv_prog_compiler_static_works=yes
8114
     fi
8115
   fi
8116
   $RM -r conftest*
8117
   LDFLAGS="$save_LDFLAGS"
8118
 
8119
fi
8120
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8121
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8122
 
8123
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8124
    :
8125
else
8126
    lt_prog_compiler_static=
8127
fi
8128
 
8129
 
8130
 
8131
 
8132
 
8133
 
8134
 
8135
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8136
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8137
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8138
  echo $ECHO_N "(cached) $ECHO_C" >&6
8139
else
8140
  lt_cv_prog_compiler_c_o=no
8141
   $RM -r conftest 2>/dev/null
8142
   mkdir conftest
8143
   cd conftest
8144
   mkdir out
8145
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8146
 
8147
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8148
   # Insert the option either (1) after the last *FLAGS variable, or
8149
   # (2) before a word containing "conftest.", or (3) at the end.
8150
   # Note that $ac_compile itself does not contain backslashes and begins
8151
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8152
   lt_compile=`echo "$ac_compile" | $SED \
8153
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8154
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8155
   -e 's:$: $lt_compiler_flag:'`
8156
   (eval echo "\"\$as_me:8156: $lt_compile\"" >&5)
8157
   (eval "$lt_compile" 2>out/conftest.err)
8158
   ac_status=$?
8159
   cat out/conftest.err >&5
8160
   echo "$as_me:8160: \$? = $ac_status" >&5
8161
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8162
   then
8163
     # The compiler can only warn and ignore the option if not recognized
8164
     # So say no if there are warnings
8165
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8166
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8167
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8168
       lt_cv_prog_compiler_c_o=yes
8169
     fi
8170
   fi
8171
   chmod u+w . 2>&5
8172
   $RM conftest*
8173
   # SGI C++ compiler will create directory out/ii_files/ for
8174
   # template instantiation
8175
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8176
   $RM out/* && rmdir out
8177
   cd ..
8178
   $RM -r conftest
8179
   $RM conftest*
8180
 
8181
fi
8182
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8183
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8184
 
8185
 
8186
 
8187
 
8188
 
8189
 
8190
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8191
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8192
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8193
  echo $ECHO_N "(cached) $ECHO_C" >&6
8194
else
8195
  lt_cv_prog_compiler_c_o=no
8196
   $RM -r conftest 2>/dev/null
8197
   mkdir conftest
8198
   cd conftest
8199
   mkdir out
8200
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8201
 
8202
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8203
   # Insert the option either (1) after the last *FLAGS variable, or
8204
   # (2) before a word containing "conftest.", or (3) at the end.
8205
   # Note that $ac_compile itself does not contain backslashes and begins
8206
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8207
   lt_compile=`echo "$ac_compile" | $SED \
8208
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8209
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8210
   -e 's:$: $lt_compiler_flag:'`
8211
   (eval echo "\"\$as_me:8211: $lt_compile\"" >&5)
8212
   (eval "$lt_compile" 2>out/conftest.err)
8213
   ac_status=$?
8214
   cat out/conftest.err >&5
8215
   echo "$as_me:8215: \$? = $ac_status" >&5
8216
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8217
   then
8218
     # The compiler can only warn and ignore the option if not recognized
8219
     # So say no if there are warnings
8220
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8221
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8222
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8223
       lt_cv_prog_compiler_c_o=yes
8224
     fi
8225
   fi
8226
   chmod u+w . 2>&5
8227
   $RM conftest*
8228
   # SGI C++ compiler will create directory out/ii_files/ for
8229
   # template instantiation
8230
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8231
   $RM out/* && rmdir out
8232
   cd ..
8233
   $RM -r conftest
8234
   $RM conftest*
8235
 
8236
fi
8237
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8238
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8239
 
8240
 
8241
 
8242
 
8243
hard_links="nottested"
8244
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8245
  # do not overwrite the value of need_locks provided by the user
8246
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8247
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8248
  hard_links=yes
8249
  $RM conftest*
8250
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8251
  touch conftest.a
8252
  ln conftest.a conftest.b 2>&5 || hard_links=no
8253
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8254
  echo "$as_me:$LINENO: result: $hard_links" >&5
8255
echo "${ECHO_T}$hard_links" >&6
8256
  if test "$hard_links" = no; then
8257
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8258
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8259
    need_locks=warn
8260
  fi
8261
else
8262
  need_locks=no
8263
fi
8264
 
8265
 
8266
 
8267
 
8268
 
8269
 
8270
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8271
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8272
 
8273
  runpath_var=
8274
  allow_undefined_flag=
8275
  always_export_symbols=no
8276
  archive_cmds=
8277
  archive_expsym_cmds=
8278
  compiler_needs_object=no
8279
  enable_shared_with_static_runtimes=no
8280
  export_dynamic_flag_spec=
8281
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8282
  hardcode_automatic=no
8283
  hardcode_direct=no
8284
  hardcode_direct_absolute=no
8285
  hardcode_libdir_flag_spec=
8286
  hardcode_libdir_flag_spec_ld=
8287
  hardcode_libdir_separator=
8288
  hardcode_minus_L=no
8289
  hardcode_shlibpath_var=unsupported
8290
  inherit_rpath=no
8291
  link_all_deplibs=unknown
8292
  module_cmds=
8293
  module_expsym_cmds=
8294
  old_archive_from_new_cmds=
8295
  old_archive_from_expsyms_cmds=
8296
  thread_safe_flag_spec=
8297
  whole_archive_flag_spec=
8298
  # include_expsyms should be a list of space-separated symbols to be *always*
8299
  # included in the symbol list
8300
  include_expsyms=
8301
  # exclude_expsyms can be an extended regexp of symbols to exclude
8302
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8303
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8304
  # as well as any symbol that contains `d'.
8305
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8306
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8307
  # platforms (ab)use it in PIC code, but their linkers get confused if
8308
  # the symbol is explicitly referenced.  Since portable code cannot
8309
  # rely on this symbol name, it's probably fine to never include it in
8310
  # preloaded symbol tables.
8311
  # Exclude shared library initialization/finalization symbols.
8312
  extract_expsyms_cmds=
8313
 
8314
  case $host_os in
8315
  cygwin* | mingw* | pw32* | cegcc*)
8316
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8317
    # When not using gcc, we currently assume that we are using
8318
    # Microsoft Visual C++.
8319
    if test "$GCC" != yes; then
8320
      with_gnu_ld=no
8321
    fi
8322
    ;;
8323
  interix*)
8324
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8325
    with_gnu_ld=yes
8326
    ;;
8327
  openbsd*)
8328
    with_gnu_ld=no
8329
    ;;
8330
  esac
8331
 
8332
  ld_shlibs=yes
8333
  if test "$with_gnu_ld" = yes; then
8334
    # If archive_cmds runs LD, not CC, wlarc should be empty
8335
    wlarc='${wl}'
8336
 
8337
    # Set some defaults for GNU ld with shared library support. These
8338
    # are reset later if shared libraries are not supported. Putting them
8339
    # here allows them to be overridden if necessary.
8340
    runpath_var=LD_RUN_PATH
8341
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8342
    export_dynamic_flag_spec='${wl}--export-dynamic'
8343
    # ancient GNU ld didn't support --whole-archive et. al.
8344
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8345
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8346
    else
8347
      whole_archive_flag_spec=
8348
    fi
8349
    supports_anon_versioning=no
8350
    case `$LD -v 2>&1` in
8351
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8352
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8353
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8354
      *\ 2.11.*) ;; # other 2.11 versions
8355
      *) supports_anon_versioning=yes ;;
8356
    esac
8357
 
8358
    # See if GNU ld supports shared libraries.
8359
    case $host_os in
8360
    aix[3-9]*)
8361
      # On AIX/PPC, the GNU linker is very broken
8362
      if test "$host_cpu" != ia64; then
8363
        ld_shlibs=no
8364
        cat <<_LT_EOF 1>&2
8365
 
8366
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8367
*** to be unable to reliably create shared libraries on AIX.
8368
*** Therefore, libtool is disabling shared libraries support.  If you
8369
*** really care for shared libraries, you may want to modify your PATH
8370
*** so that a non-GNU linker is found, and then restart.
8371
 
8372
_LT_EOF
8373
      fi
8374
      ;;
8375
 
8376
    amigaos*)
8377
      case $host_cpu in
8378
      powerpc)
8379
            # see comment about AmigaOS4 .so support
8380
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8381
            archive_expsym_cmds=''
8382
        ;;
8383
      m68k)
8384
            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)'
8385
            hardcode_libdir_flag_spec='-L$libdir'
8386
            hardcode_minus_L=yes
8387
        ;;
8388
      esac
8389
      ;;
8390
 
8391
    beos*)
8392
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8393
        allow_undefined_flag=unsupported
8394
        # Joseph Beckenbach  says some releases of gcc
8395
        # support --undefined.  This deserves some investigation.  FIXME
8396
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8397
      else
8398
        ld_shlibs=no
8399
      fi
8400
      ;;
8401
 
8402
    cygwin* | mingw* | pw32* | cegcc*)
8403
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8404
      # as there is no search path for DLLs.
8405
      hardcode_libdir_flag_spec='-L$libdir'
8406
      allow_undefined_flag=unsupported
8407
      always_export_symbols=no
8408
      enable_shared_with_static_runtimes=yes
8409
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8410
 
8411
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8412
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8413
        # If the export-symbols file already is a .def file (1st line
8414
        # is EXPORTS), use it as is; otherwise, prepend...
8415
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8416
          cp $export_symbols $output_objdir/$soname.def;
8417
        else
8418
          echo EXPORTS > $output_objdir/$soname.def;
8419
          cat $export_symbols >> $output_objdir/$soname.def;
8420
        fi~
8421
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8422
      else
8423
        ld_shlibs=no
8424
      fi
8425
      ;;
8426
 
8427
    interix[3-9]*)
8428
      hardcode_direct=no
8429
      hardcode_shlibpath_var=no
8430
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8431
      export_dynamic_flag_spec='${wl}-E'
8432
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8433
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8434
      # default) and relocated if they conflict, which is a slow very memory
8435
      # consuming and fragmenting process.  To avoid this, we pick a random,
8436
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8437
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8438
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8439
      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'
8440
      ;;
8441
 
8442
    gnu* | linux* | tpf* | k*bsd*-gnu)
8443
      tmp_diet=no
8444
      if test "$host_os" = linux-dietlibc; then
8445
        case $cc_basename in
8446
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8447
        esac
8448
      fi
8449
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8450
         && test "$tmp_diet" = no
8451
      then
8452
        tmp_addflag=
8453
        tmp_sharedflag='-shared'
8454
        case $cc_basename,$host_cpu in
8455
        pgcc*)                          # Portland Group C compiler
8456
          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'
8457
          tmp_addflag=' $pic_flag'
8458
          ;;
8459
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8460
          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'
8461
          tmp_addflag=' $pic_flag -Mnomain' ;;
8462
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8463
          tmp_addflag=' -i_dynamic' ;;
8464
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8465
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8466
        ifc* | ifort*)                  # Intel Fortran compiler
8467
          tmp_addflag=' -nofor_main' ;;
8468
        lf95*)                          # Lahey Fortran 8.1
8469
          whole_archive_flag_spec=
8470
          tmp_sharedflag='--shared' ;;
8471
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8472
          tmp_sharedflag='-qmkshrobj'
8473
          tmp_addflag= ;;
8474
        esac
8475
        case `$CC -V 2>&1 | sed 5q` in
8476
        *Sun\ C*)                       # Sun C 5.9
8477
          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'
8478
          compiler_needs_object=yes
8479
          tmp_sharedflag='-G' ;;
8480
        *Sun\ F*)                       # Sun Fortran 8.3
8481
          tmp_sharedflag='-G' ;;
8482
        esac
8483
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8484
 
8485
        if test "x$supports_anon_versioning" = xyes; then
8486
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8487
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8488
            echo "local: *; };" >> $output_objdir/$libname.ver~
8489
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8490
        fi
8491
 
8492
        case $cc_basename in
8493
        xlf*)
8494
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8495
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8496
          hardcode_libdir_flag_spec=
8497
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8498
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8499
          if test "x$supports_anon_versioning" = xyes; then
8500
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8501
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8502
              echo "local: *; };" >> $output_objdir/$libname.ver~
8503
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8504
          fi
8505
          ;;
8506
        esac
8507
      else
8508
        ld_shlibs=no
8509
      fi
8510
      ;;
8511
 
8512
    netbsd*)
8513
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8514
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8515
        wlarc=
8516
      else
8517
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8518
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8519
      fi
8520
      ;;
8521
 
8522
    solaris*)
8523
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8524
        ld_shlibs=no
8525
        cat <<_LT_EOF 1>&2
8526
 
8527
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8528
*** create shared libraries on Solaris systems.  Therefore, libtool
8529
*** is disabling shared libraries support.  We urge you to upgrade GNU
8530
*** binutils to release 2.9.1 or newer.  Another option is to modify
8531
*** your PATH or compiler configuration so that the native linker is
8532
*** used, and then restart.
8533
 
8534
_LT_EOF
8535
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8536
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8537
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8538
      else
8539
        ld_shlibs=no
8540
      fi
8541
      ;;
8542
 
8543
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8544
      case `$LD -v 2>&1` in
8545
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8546
        ld_shlibs=no
8547
        cat <<_LT_EOF 1>&2
8548
 
8549
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8550
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8551
*** is disabling shared libraries support.  We urge you to upgrade GNU
8552
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8553
*** your PATH or compiler configuration so that the native linker is
8554
*** used, and then restart.
8555
 
8556
_LT_EOF
8557
        ;;
8558
        *)
8559
          # For security reasons, it is highly recommended that you always
8560
          # use absolute paths for naming shared libraries, and exclude the
8561
          # DT_RUNPATH tag from executables and libraries.  But doing so
8562
          # requires that you compile everything twice, which is a pain.
8563
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8564
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8565
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8566
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8567
          else
8568
            ld_shlibs=no
8569
          fi
8570
        ;;
8571
      esac
8572
      ;;
8573
 
8574
    sunos4*)
8575
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8576
      wlarc=
8577
      hardcode_direct=yes
8578
      hardcode_shlibpath_var=no
8579
      ;;
8580
 
8581
    *)
8582
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8583
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8584
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8585
      else
8586
        ld_shlibs=no
8587
      fi
8588
      ;;
8589
    esac
8590
 
8591
    if test "$ld_shlibs" = no; then
8592
      runpath_var=
8593
      hardcode_libdir_flag_spec=
8594
      export_dynamic_flag_spec=
8595
      whole_archive_flag_spec=
8596
    fi
8597
  else
8598
    # PORTME fill in a description of your system's linker (not GNU ld)
8599
    case $host_os in
8600
    aix3*)
8601
      allow_undefined_flag=unsupported
8602
      always_export_symbols=yes
8603
      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'
8604
      # Note: this linker hardcodes the directories in LIBPATH if there
8605
      # are no directories specified by -L.
8606
      hardcode_minus_L=yes
8607
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8608
        # Neither direct hardcoding nor static linking is supported with a
8609
        # broken collect2.
8610
        hardcode_direct=unsupported
8611
      fi
8612
      ;;
8613
 
8614
    aix[4-9]*)
8615
      if test "$host_cpu" = ia64; then
8616
        # On IA64, the linker does run time linking by default, so we don't
8617
        # have to do anything special.
8618
        aix_use_runtimelinking=no
8619
        exp_sym_flag='-Bexport'
8620
        no_entry_flag=""
8621
      else
8622
        # If we're using GNU nm, then we don't want the "-C" option.
8623
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8624
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8625
          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'
8626
        else
8627
          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'
8628
        fi
8629
        aix_use_runtimelinking=no
8630
 
8631
        # Test if we are trying to use run time linking or normal
8632
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8633
        # need to do runtime linking.
8634
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8635
          for ld_flag in $LDFLAGS; do
8636
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8637
            aix_use_runtimelinking=yes
8638
            break
8639
          fi
8640
          done
8641
          ;;
8642
        esac
8643
 
8644
        exp_sym_flag='-bexport'
8645
        no_entry_flag='-bnoentry'
8646
      fi
8647
 
8648
      # When large executables or shared objects are built, AIX ld can
8649
      # have problems creating the table of contents.  If linking a library
8650
      # or program results in "error TOC overflow" add -mminimal-toc to
8651
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8652
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8653
 
8654
      archive_cmds=''
8655
      hardcode_direct=yes
8656
      hardcode_direct_absolute=yes
8657
      hardcode_libdir_separator=':'
8658
      link_all_deplibs=yes
8659
      file_list_spec='${wl}-f,'
8660
 
8661
      if test "$GCC" = yes; then
8662
        case $host_os in aix4.[012]|aix4.[012].*)
8663
        # We only want to do this on AIX 4.2 and lower, the check
8664
        # below for broken collect2 doesn't work under 4.3+
8665
          collect2name=`${CC} -print-prog-name=collect2`
8666
          if test -f "$collect2name" &&
8667
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8668
          then
8669
          # We have reworked collect2
8670
          :
8671
          else
8672
          # We have old collect2
8673
          hardcode_direct=unsupported
8674
          # It fails to find uninstalled libraries when the uninstalled
8675
          # path is not listed in the libpath.  Setting hardcode_minus_L
8676
          # to unsupported forces relinking
8677
          hardcode_minus_L=yes
8678
          hardcode_libdir_flag_spec='-L$libdir'
8679
          hardcode_libdir_separator=
8680
          fi
8681
          ;;
8682
        esac
8683
        shared_flag='-shared'
8684
        if test "$aix_use_runtimelinking" = yes; then
8685
          shared_flag="$shared_flag "'${wl}-G'
8686
        fi
8687
      else
8688
        # not using gcc
8689
        if test "$host_cpu" = ia64; then
8690
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8691
        # chokes on -Wl,-G. The following line is correct:
8692
          shared_flag='-G'
8693
        else
8694
          if test "$aix_use_runtimelinking" = yes; then
8695
            shared_flag='${wl}-G'
8696
          else
8697
            shared_flag='${wl}-bM:SRE'
8698
          fi
8699
        fi
8700
      fi
8701
 
8702
      export_dynamic_flag_spec='${wl}-bexpall'
8703
      # It seems that -bexpall does not export symbols beginning with
8704
      # underscore (_), so it is better to generate a list of symbols to export.
8705
      always_export_symbols=yes
8706
      if test "$aix_use_runtimelinking" = yes; then
8707
        # Warning - without using the other runtime loading flags (-brtl),
8708
        # -berok will link without error, but may produce a broken library.
8709
        allow_undefined_flag='-berok'
8710
        # Determine the default libpath from the value encoded in an
8711
        # empty executable.
8712
        cat >conftest.$ac_ext <<_ACEOF
8713
/* confdefs.h.  */
8714
_ACEOF
8715
cat confdefs.h >>conftest.$ac_ext
8716
cat >>conftest.$ac_ext <<_ACEOF
8717
/* end confdefs.h.  */
8718
 
8719
int
8720
main ()
8721
{
8722
 
8723
  ;
8724
  return 0;
8725
}
8726
_ACEOF
8727
rm -f conftest.$ac_objext conftest$ac_exeext
8728
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8729
  (eval $ac_link) 2>conftest.er1
8730
  ac_status=$?
8731
  grep -v '^ *+' conftest.er1 >conftest.err
8732
  rm -f conftest.er1
8733
  cat conftest.err >&5
8734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735
  (exit $ac_status); } &&
8736
         { ac_try='test -z "$ac_c_werror_flag"
8737
                         || test ! -s conftest.err'
8738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739
  (eval $ac_try) 2>&5
8740
  ac_status=$?
8741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742
  (exit $ac_status); }; } &&
8743
         { ac_try='test -s conftest$ac_exeext'
8744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745
  (eval $ac_try) 2>&5
8746
  ac_status=$?
8747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748
  (exit $ac_status); }; }; then
8749
 
8750
lt_aix_libpath_sed='
8751
    /Import File Strings/,/^$/ {
8752
        /^0/ {
8753
            s/^0  *\(.*\)$/\1/
8754
            p
8755
        }
8756
    }'
8757
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8758
# Check for a 64-bit object if we didn't find anything.
8759
if test -z "$aix_libpath"; then
8760
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8761
fi
8762
else
8763
  echo "$as_me: failed program was:" >&5
8764
sed 's/^/| /' conftest.$ac_ext >&5
8765
 
8766
fi
8767
rm -f conftest.err conftest.$ac_objext \
8768
      conftest$ac_exeext conftest.$ac_ext
8769
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8770
 
8771
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8772
        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"
8773
      else
8774
        if test "$host_cpu" = ia64; then
8775
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8776
          allow_undefined_flag="-z nodefs"
8777
          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"
8778
        else
8779
         # Determine the default libpath from the value encoded in an
8780
         # empty executable.
8781
         cat >conftest.$ac_ext <<_ACEOF
8782
/* confdefs.h.  */
8783
_ACEOF
8784
cat confdefs.h >>conftest.$ac_ext
8785
cat >>conftest.$ac_ext <<_ACEOF
8786
/* end confdefs.h.  */
8787
 
8788
int
8789
main ()
8790
{
8791
 
8792
  ;
8793
  return 0;
8794
}
8795
_ACEOF
8796
rm -f conftest.$ac_objext conftest$ac_exeext
8797
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8798
  (eval $ac_link) 2>conftest.er1
8799
  ac_status=$?
8800
  grep -v '^ *+' conftest.er1 >conftest.err
8801
  rm -f conftest.er1
8802
  cat conftest.err >&5
8803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804
  (exit $ac_status); } &&
8805
         { ac_try='test -z "$ac_c_werror_flag"
8806
                         || test ! -s conftest.err'
8807
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808
  (eval $ac_try) 2>&5
8809
  ac_status=$?
8810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811
  (exit $ac_status); }; } &&
8812
         { ac_try='test -s conftest$ac_exeext'
8813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814
  (eval $ac_try) 2>&5
8815
  ac_status=$?
8816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817
  (exit $ac_status); }; }; then
8818
 
8819
lt_aix_libpath_sed='
8820
    /Import File Strings/,/^$/ {
8821
        /^0/ {
8822
            s/^0  *\(.*\)$/\1/
8823
            p
8824
        }
8825
    }'
8826
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8827
# Check for a 64-bit object if we didn't find anything.
8828
if test -z "$aix_libpath"; then
8829
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8830
fi
8831
else
8832
  echo "$as_me: failed program was:" >&5
8833
sed 's/^/| /' conftest.$ac_ext >&5
8834
 
8835
fi
8836
rm -f conftest.err conftest.$ac_objext \
8837
      conftest$ac_exeext conftest.$ac_ext
8838
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8839
 
8840
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8841
          # Warning - without using the other run time loading flags,
8842
          # -berok will link without error, but may produce a broken library.
8843
          no_undefined_flag=' ${wl}-bernotok'
8844
          allow_undefined_flag=' ${wl}-berok'
8845
          # Exported symbols can be pulled into shared objects from archives
8846
          whole_archive_flag_spec='$convenience'
8847
          archive_cmds_need_lc=yes
8848
          # This is similar to how AIX traditionally builds its shared libraries.
8849
          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'
8850
        fi
8851
      fi
8852
      ;;
8853
 
8854
    amigaos*)
8855
      case $host_cpu in
8856
      powerpc)
8857
            # see comment about AmigaOS4 .so support
8858
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8859
            archive_expsym_cmds=''
8860
        ;;
8861
      m68k)
8862
            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)'
8863
            hardcode_libdir_flag_spec='-L$libdir'
8864
            hardcode_minus_L=yes
8865
        ;;
8866
      esac
8867
      ;;
8868
 
8869
    bsdi[45]*)
8870
      export_dynamic_flag_spec=-rdynamic
8871
      ;;
8872
 
8873
    cygwin* | mingw* | pw32* | cegcc*)
8874
      # When not using gcc, we currently assume that we are using
8875
      # Microsoft Visual C++.
8876
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8877
      # no search path for DLLs.
8878
      hardcode_libdir_flag_spec=' '
8879
      allow_undefined_flag=unsupported
8880
      # Tell ltmain to make .lib files, not .a files.
8881
      libext=lib
8882
      # Tell ltmain to make .dll files, not .so files.
8883
      shrext_cmds=".dll"
8884
      # FIXME: Setting linknames here is a bad hack.
8885
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8886
      # The linker will automatically build a .lib file if we build a DLL.
8887
      old_archive_from_new_cmds='true'
8888
      # FIXME: Should let the user specify the lib program.
8889
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8890
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8891
      enable_shared_with_static_runtimes=yes
8892
      ;;
8893
 
8894
    darwin* | rhapsody*)
8895
 
8896
 
8897
  archive_cmds_need_lc=no
8898
  hardcode_direct=no
8899
  hardcode_automatic=yes
8900
  hardcode_shlibpath_var=unsupported
8901
  whole_archive_flag_spec=''
8902
  link_all_deplibs=yes
8903
  allow_undefined_flag="$_lt_dar_allow_undefined"
8904
  case $cc_basename in
8905
     ifort*) _lt_dar_can_shared=yes ;;
8906
     *) _lt_dar_can_shared=$GCC ;;
8907
  esac
8908
  if test "$_lt_dar_can_shared" = "yes"; then
8909
    output_verbose_link_cmd=echo
8910
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8911
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8912
    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}"
8913
    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}"
8914
 
8915
  else
8916
  ld_shlibs=no
8917
  fi
8918
 
8919
      ;;
8920
 
8921
    dgux*)
8922
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8923
      hardcode_libdir_flag_spec='-L$libdir'
8924
      hardcode_shlibpath_var=no
8925
      ;;
8926
 
8927
    freebsd1*)
8928
      ld_shlibs=no
8929
      ;;
8930
 
8931
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8932
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8933
    # does not break anything, and helps significantly (at the cost of a little
8934
    # extra space).
8935
    freebsd2.2*)
8936
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8937
      hardcode_libdir_flag_spec='-R$libdir'
8938
      hardcode_direct=yes
8939
      hardcode_shlibpath_var=no
8940
      ;;
8941
 
8942
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8943
    freebsd2*)
8944
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8945
      hardcode_direct=yes
8946
      hardcode_minus_L=yes
8947
      hardcode_shlibpath_var=no
8948
      ;;
8949
 
8950
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8951
    freebsd* | dragonfly*)
8952
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8953
      hardcode_libdir_flag_spec='-R$libdir'
8954
      hardcode_direct=yes
8955
      hardcode_shlibpath_var=no
8956
      ;;
8957
 
8958
    hpux9*)
8959
      if test "$GCC" = yes; then
8960
        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'
8961
      else
8962
        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'
8963
      fi
8964
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8965
      hardcode_libdir_separator=:
8966
      hardcode_direct=yes
8967
 
8968
      # hardcode_minus_L: Not really in the search PATH,
8969
      # but as the default location of the library.
8970
      hardcode_minus_L=yes
8971
      export_dynamic_flag_spec='${wl}-E'
8972
      ;;
8973
 
8974
    hpux10*)
8975
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8976
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8977
      else
8978
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8979
      fi
8980
      if test "$with_gnu_ld" = no; then
8981
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8982
        hardcode_libdir_flag_spec_ld='+b $libdir'
8983
        hardcode_libdir_separator=:
8984
        hardcode_direct=yes
8985
        hardcode_direct_absolute=yes
8986
        export_dynamic_flag_spec='${wl}-E'
8987
        # hardcode_minus_L: Not really in the search PATH,
8988
        # but as the default location of the library.
8989
        hardcode_minus_L=yes
8990
      fi
8991
      ;;
8992
 
8993
    hpux11*)
8994
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8995
        case $host_cpu in
8996
        hppa*64*)
8997
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8998
          ;;
8999
        ia64*)
9000
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9001
          ;;
9002
        *)
9003
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9004
          ;;
9005
        esac
9006
      else
9007
        case $host_cpu in
9008
        hppa*64*)
9009
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9010
          ;;
9011
        ia64*)
9012
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9013
          ;;
9014
        *)
9015
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9016
          ;;
9017
        esac
9018
      fi
9019
      if test "$with_gnu_ld" = no; then
9020
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9021
        hardcode_libdir_separator=:
9022
 
9023
        case $host_cpu in
9024
        hppa*64*|ia64*)
9025
          hardcode_direct=no
9026
          hardcode_shlibpath_var=no
9027
          ;;
9028
        *)
9029
          hardcode_direct=yes
9030
          hardcode_direct_absolute=yes
9031
          export_dynamic_flag_spec='${wl}-E'
9032
 
9033
          # hardcode_minus_L: Not really in the search PATH,
9034
          # but as the default location of the library.
9035
          hardcode_minus_L=yes
9036
          ;;
9037
        esac
9038
      fi
9039
      ;;
9040
 
9041
    irix5* | irix6* | nonstopux*)
9042
      if test "$GCC" = yes; then
9043
        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'
9044
        # Try to use the -exported_symbol ld option, if it does not
9045
        # work, assume that -exports_file does not work either and
9046
        # implicitly export all symbols.
9047
        save_LDFLAGS="$LDFLAGS"
9048
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9049
        cat >conftest.$ac_ext <<_ACEOF
9050
int foo(void) {}
9051
_ACEOF
9052
rm -f conftest.$ac_objext conftest$ac_exeext
9053
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9054
  (eval $ac_link) 2>conftest.er1
9055
  ac_status=$?
9056
  grep -v '^ *+' conftest.er1 >conftest.err
9057
  rm -f conftest.er1
9058
  cat conftest.err >&5
9059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060
  (exit $ac_status); } &&
9061
         { ac_try='test -z "$ac_c_werror_flag"
9062
                         || test ! -s conftest.err'
9063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064
  (eval $ac_try) 2>&5
9065
  ac_status=$?
9066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067
  (exit $ac_status); }; } &&
9068
         { ac_try='test -s conftest$ac_exeext'
9069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070
  (eval $ac_try) 2>&5
9071
  ac_status=$?
9072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073
  (exit $ac_status); }; }; then
9074
  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'
9075
 
9076
else
9077
  echo "$as_me: failed program was:" >&5
9078
sed 's/^/| /' conftest.$ac_ext >&5
9079
 
9080
fi
9081
rm -f conftest.err conftest.$ac_objext \
9082
      conftest$ac_exeext conftest.$ac_ext
9083
        LDFLAGS="$save_LDFLAGS"
9084
      else
9085
        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'
9086
        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'
9087
      fi
9088
      archive_cmds_need_lc='no'
9089
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9090
      hardcode_libdir_separator=:
9091
      inherit_rpath=yes
9092
      link_all_deplibs=yes
9093
      ;;
9094
 
9095
    netbsd*)
9096
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9097
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9098
      else
9099
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9100
      fi
9101
      hardcode_libdir_flag_spec='-R$libdir'
9102
      hardcode_direct=yes
9103
      hardcode_shlibpath_var=no
9104
      ;;
9105
 
9106
    newsos6)
9107
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9108
      hardcode_direct=yes
9109
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9110
      hardcode_libdir_separator=:
9111
      hardcode_shlibpath_var=no
9112
      ;;
9113
 
9114
    *nto* | *qnx*)
9115
      ;;
9116
 
9117
    openbsd*)
9118
      if test -f /usr/libexec/ld.so; then
9119
        hardcode_direct=yes
9120
        hardcode_shlibpath_var=no
9121
        hardcode_direct_absolute=yes
9122
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9123
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9124
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9125
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9126
          export_dynamic_flag_spec='${wl}-E'
9127
        else
9128
          case $host_os in
9129
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9130
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9131
             hardcode_libdir_flag_spec='-R$libdir'
9132
             ;;
9133
           *)
9134
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9135
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9136
             ;;
9137
          esac
9138
        fi
9139
      else
9140
        ld_shlibs=no
9141
      fi
9142
      ;;
9143
 
9144
    os2*)
9145
      hardcode_libdir_flag_spec='-L$libdir'
9146
      hardcode_minus_L=yes
9147
      allow_undefined_flag=unsupported
9148
      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'
9149
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9150
      ;;
9151
 
9152
    osf3*)
9153
      if test "$GCC" = yes; then
9154
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9155
        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'
9156
      else
9157
        allow_undefined_flag=' -expect_unresolved \*'
9158
        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'
9159
      fi
9160
      archive_cmds_need_lc='no'
9161
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9162
      hardcode_libdir_separator=:
9163
      ;;
9164
 
9165
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9166
      if test "$GCC" = yes; then
9167
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9168
        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'
9169
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9170
      else
9171
        allow_undefined_flag=' -expect_unresolved \*'
9172
        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'
9173
        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~
9174
        $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'
9175
 
9176
        # Both c and cxx compiler support -rpath directly
9177
        hardcode_libdir_flag_spec='-rpath $libdir'
9178
      fi
9179
      archive_cmds_need_lc='no'
9180
      hardcode_libdir_separator=:
9181
      ;;
9182
 
9183
    solaris*)
9184
      no_undefined_flag=' -z defs'
9185
      if test "$GCC" = yes; then
9186
        wlarc='${wl}'
9187
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9188
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9189
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9190
      else
9191
        case `$CC -V 2>&1` in
9192
        *"Compilers 5.0"*)
9193
          wlarc=''
9194
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9195
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9196
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9197
          ;;
9198
        *)
9199
          wlarc='${wl}'
9200
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9201
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9202
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9203
          ;;
9204
        esac
9205
      fi
9206
      hardcode_libdir_flag_spec='-R$libdir'
9207
      hardcode_shlibpath_var=no
9208
      case $host_os in
9209
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9210
      *)
9211
        # The compiler driver will combine and reorder linker options,
9212
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9213
        # but is careful enough not to reorder.
9214
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9215
        if test "$GCC" = yes; then
9216
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9217
        else
9218
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9219
        fi
9220
        ;;
9221
      esac
9222
      link_all_deplibs=yes
9223
      ;;
9224
 
9225
    sunos4*)
9226
      if test "x$host_vendor" = xsequent; then
9227
        # Use $CC to link under sequent, because it throws in some extra .o
9228
        # files that make .init and .fini sections work.
9229
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9230
      else
9231
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9232
      fi
9233
      hardcode_libdir_flag_spec='-L$libdir'
9234
      hardcode_direct=yes
9235
      hardcode_minus_L=yes
9236
      hardcode_shlibpath_var=no
9237
      ;;
9238
 
9239
    sysv4)
9240
      case $host_vendor in
9241
        sni)
9242
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9243
          hardcode_direct=yes # is this really true???
9244
        ;;
9245
        siemens)
9246
          ## LD is ld it makes a PLAMLIB
9247
          ## CC just makes a GrossModule.
9248
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9249
          reload_cmds='$CC -r -o $output$reload_objs'
9250
          hardcode_direct=no
9251
        ;;
9252
        motorola)
9253
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9254
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9255
        ;;
9256
      esac
9257
      runpath_var='LD_RUN_PATH'
9258
      hardcode_shlibpath_var=no
9259
      ;;
9260
 
9261
    sysv4.3*)
9262
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9263
      hardcode_shlibpath_var=no
9264
      export_dynamic_flag_spec='-Bexport'
9265
      ;;
9266
 
9267
    sysv4*MP*)
9268
      if test -d /usr/nec; then
9269
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9270
        hardcode_shlibpath_var=no
9271
        runpath_var=LD_RUN_PATH
9272
        hardcode_runpath_var=yes
9273
        ld_shlibs=yes
9274
      fi
9275
      ;;
9276
 
9277
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9278
      no_undefined_flag='${wl}-z,text'
9279
      archive_cmds_need_lc=no
9280
      hardcode_shlibpath_var=no
9281
      runpath_var='LD_RUN_PATH'
9282
 
9283
      if test "$GCC" = yes; then
9284
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9285
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9286
      else
9287
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9288
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9289
      fi
9290
      ;;
9291
 
9292
    sysv5* | sco3.2v5* | sco5v6*)
9293
      # Note: We can NOT use -z defs as we might desire, because we do not
9294
      # link with -lc, and that would cause any symbols used from libc to
9295
      # always be unresolved, which means just about no library would
9296
      # ever link correctly.  If we're not using GNU ld we use -z text
9297
      # though, which does catch some bad symbols but isn't as heavy-handed
9298
      # as -z defs.
9299
      no_undefined_flag='${wl}-z,text'
9300
      allow_undefined_flag='${wl}-z,nodefs'
9301
      archive_cmds_need_lc=no
9302
      hardcode_shlibpath_var=no
9303
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9304
      hardcode_libdir_separator=':'
9305
      link_all_deplibs=yes
9306
      export_dynamic_flag_spec='${wl}-Bexport'
9307
      runpath_var='LD_RUN_PATH'
9308
 
9309
      if test "$GCC" = yes; then
9310
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9311
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9312
      else
9313
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9314
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9315
      fi
9316
      ;;
9317
 
9318
    uts4*)
9319
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9320
      hardcode_libdir_flag_spec='-L$libdir'
9321
      hardcode_shlibpath_var=no
9322
      ;;
9323
 
9324
    *)
9325
      ld_shlibs=no
9326
      ;;
9327
    esac
9328
 
9329
    if test x$host_vendor = xsni; then
9330
      case $host in
9331
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9332
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9333
        ;;
9334
      esac
9335
    fi
9336
  fi
9337
 
9338
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9339
echo "${ECHO_T}$ld_shlibs" >&6
9340
test "$ld_shlibs" = no && can_build_shared=no
9341
 
9342
with_gnu_ld=$with_gnu_ld
9343
 
9344
 
9345
 
9346
 
9347
 
9348
 
9349
 
9350
 
9351
 
9352
 
9353
 
9354
 
9355
 
9356
 
9357
 
9358
#
9359
# Do we need to explicitly link libc?
9360
#
9361
case "x$archive_cmds_need_lc" in
9362
x|xyes)
9363
  # Assume -lc should be added
9364
  archive_cmds_need_lc=yes
9365
 
9366
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9367
    case $archive_cmds in
9368
    *'~'*)
9369
      # FIXME: we may have to deal with multi-command sequences.
9370
      ;;
9371
    '$CC '*)
9372
      # Test whether the compiler implicitly links with -lc since on some
9373
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9374
      # to ld, don't add -lc before -lgcc.
9375
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9376
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9377
      $RM conftest*
9378
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9379
 
9380
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381
  (eval $ac_compile) 2>&5
9382
  ac_status=$?
9383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384
  (exit $ac_status); } 2>conftest.err; then
9385
        soname=conftest
9386
        lib=conftest
9387
        libobjs=conftest.$ac_objext
9388
        deplibs=
9389
        wl=$lt_prog_compiler_wl
9390
        pic_flag=$lt_prog_compiler_pic
9391
        compiler_flags=-v
9392
        linker_flags=-v
9393
        verstring=
9394
        output_objdir=.
9395
        libname=conftest
9396
        lt_save_allow_undefined_flag=$allow_undefined_flag
9397
        allow_undefined_flag=
9398
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9399
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9400
  ac_status=$?
9401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402
  (exit $ac_status); }
9403
        then
9404
          archive_cmds_need_lc=no
9405
        else
9406
          archive_cmds_need_lc=yes
9407
        fi
9408
        allow_undefined_flag=$lt_save_allow_undefined_flag
9409
      else
9410
        cat conftest.err 1>&5
9411
      fi
9412
      $RM conftest*
9413
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9414
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9415
      ;;
9416
    esac
9417
  fi
9418
  ;;
9419
esac
9420
 
9421
 
9422
 
9423
 
9424
 
9425
 
9426
 
9427
 
9428
 
9429
 
9430
 
9431
 
9432
 
9433
 
9434
 
9435
 
9436
 
9437
 
9438
 
9439
 
9440
 
9441
 
9442
 
9443
 
9444
 
9445
 
9446
 
9447
 
9448
 
9449
 
9450
 
9451
 
9452
 
9453
 
9454
 
9455
 
9456
 
9457
 
9458
 
9459
 
9460
 
9461
 
9462
 
9463
 
9464
 
9465
 
9466
 
9467
 
9468
 
9469
 
9470
 
9471
 
9472
 
9473
 
9474
 
9475
 
9476
 
9477
 
9478
 
9479
 
9480
 
9481
 
9482
 
9483
 
9484
 
9485
 
9486
 
9487
 
9488
 
9489
 
9490
 
9491
 
9492
 
9493
 
9494
 
9495
 
9496
 
9497
 
9498
 
9499
 
9500
 
9501
 
9502
 
9503
 
9504
 
9505
 
9506
 
9507
 
9508
 
9509
 
9510
 
9511
 
9512
 
9513
 
9514
 
9515
 
9516
 
9517
 
9518
 
9519
 
9520
 
9521
 
9522
 
9523
 
9524
 
9525
 
9526
 
9527
 
9528
 
9529
 
9530
 
9531
 
9532
 
9533
 
9534
 
9535
 
9536
 
9537
 
9538
 
9539
 
9540
 
9541
 
9542
 
9543
 
9544
 
9545
 
9546
 
9547
 
9548
 
9549
 
9550
 
9551
 
9552
 
9553
 
9554
 
9555
 
9556
 
9557
 
9558
 
9559
 
9560
 
9561
 
9562
 
9563
 
9564
 
9565
 
9566
 
9567
 
9568
 
9569
 
9570
 
9571
 
9572
 
9573
 
9574
 
9575
 
9576
 
9577
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9578
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9579
 
9580
if test "$GCC" = yes; then
9581
  case $host_os in
9582
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9583
    *) lt_awk_arg="/^libraries:/" ;;
9584
  esac
9585
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9586
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9587
    # if the path contains ";" then we assume it to be the separator
9588
    # otherwise default to the standard path separator (i.e. ":") - it is
9589
    # assumed that no part of a normal pathname contains ";" but that should
9590
    # okay in the real world where ";" in dirpaths is itself problematic.
9591
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9592
  else
9593
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9594
  fi
9595
  # Ok, now we have the path, separated by spaces, we can step through it
9596
  # and add multilib dir if necessary.
9597
  lt_tmp_lt_search_path_spec=
9598
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9599
  for lt_sys_path in $lt_search_path_spec; do
9600
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9601
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9602
    else
9603
      test -d "$lt_sys_path" && \
9604
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9605
    fi
9606
  done
9607
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9608
BEGIN {RS=" "; FS="/|\n";} {
9609
  lt_foo="";
9610
  lt_count=0;
9611
  for (lt_i = NF; lt_i > 0; lt_i--) {
9612
    if ($lt_i != "" && $lt_i != ".") {
9613
      if ($lt_i == "..") {
9614
        lt_count++;
9615
      } else {
9616
        if (lt_count == 0) {
9617
          lt_foo="/" $lt_i lt_foo;
9618
        } else {
9619
          lt_count--;
9620
        }
9621
      }
9622
    }
9623
  }
9624
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9625
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9626
}'`
9627
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9628
else
9629
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9630
fi
9631
library_names_spec=
9632
libname_spec='lib$name'
9633
soname_spec=
9634
shrext_cmds=".so"
9635
postinstall_cmds=
9636
postuninstall_cmds=
9637
finish_cmds=
9638
finish_eval=
9639
shlibpath_var=
9640
shlibpath_overrides_runpath=unknown
9641
version_type=none
9642
dynamic_linker="$host_os ld.so"
9643
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9644
need_lib_prefix=unknown
9645
hardcode_into_libs=no
9646
 
9647
# when you set need_version to no, make sure it does not cause -set_version
9648
# flags to be left without arguments
9649
need_version=unknown
9650
 
9651
case $host_os in
9652
aix3*)
9653
  version_type=linux
9654
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9655
  shlibpath_var=LIBPATH
9656
 
9657
  # AIX 3 has no versioning support, so we append a major version to the name.
9658
  soname_spec='${libname}${release}${shared_ext}$major'
9659
  ;;
9660
 
9661
aix[4-9]*)
9662
  version_type=linux
9663
  need_lib_prefix=no
9664
  need_version=no
9665
  hardcode_into_libs=yes
9666
  if test "$host_cpu" = ia64; then
9667
    # AIX 5 supports IA64
9668
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9669
    shlibpath_var=LD_LIBRARY_PATH
9670
  else
9671
    # With GCC up to 2.95.x, collect2 would create an import file
9672
    # for dependence libraries.  The import file would start with
9673
    # the line `#! .'.  This would cause the generated library to
9674
    # depend on `.', always an invalid library.  This was fixed in
9675
    # development snapshots of GCC prior to 3.0.
9676
    case $host_os in
9677
      aix4 | aix4.[01] | aix4.[01].*)
9678
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9679
           echo ' yes '
9680
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9681
        :
9682
      else
9683
        can_build_shared=no
9684
      fi
9685
      ;;
9686
    esac
9687
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9688
    # soname into executable. Probably we can add versioning support to
9689
    # collect2, so additional links can be useful in future.
9690
    if test "$aix_use_runtimelinking" = yes; then
9691
      # If using run time linking (on AIX 4.2 or later) use lib.so
9692
      # instead of lib.a to let people know that these are not
9693
      # typical AIX shared libraries.
9694
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9695
    else
9696
      # We preserve .a as extension for shared libraries through AIX4.2
9697
      # and later when we are not doing run time linking.
9698
      library_names_spec='${libname}${release}.a $libname.a'
9699
      soname_spec='${libname}${release}${shared_ext}$major'
9700
    fi
9701
    shlibpath_var=LIBPATH
9702
  fi
9703
  ;;
9704
 
9705
amigaos*)
9706
  case $host_cpu in
9707
  powerpc)
9708
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9709
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9710
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9711
    ;;
9712
  m68k)
9713
    library_names_spec='$libname.ixlibrary $libname.a'
9714
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9715
    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'
9716
    ;;
9717
  esac
9718
  ;;
9719
 
9720
beos*)
9721
  library_names_spec='${libname}${shared_ext}'
9722
  dynamic_linker="$host_os ld.so"
9723
  shlibpath_var=LIBRARY_PATH
9724
  ;;
9725
 
9726
bsdi[45]*)
9727
  version_type=linux
9728
  need_version=no
9729
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730
  soname_spec='${libname}${release}${shared_ext}$major'
9731
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9732
  shlibpath_var=LD_LIBRARY_PATH
9733
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9734
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9735
  # the default ld.so.conf also contains /usr/contrib/lib and
9736
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9737
  # libtool to hard-code these into programs
9738
  ;;
9739
 
9740
cygwin* | mingw* | pw32* | cegcc*)
9741
  version_type=windows
9742
  shrext_cmds=".dll"
9743
  need_version=no
9744
  need_lib_prefix=no
9745
 
9746
  case $GCC,$host_os in
9747
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9748
    library_names_spec='$libname.dll.a'
9749
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9750
    postinstall_cmds='base_file=`basename \${file}`~
9751
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9752
      dldir=$destdir/`dirname \$dlpath`~
9753
      test -d \$dldir || mkdir -p \$dldir~
9754
      $install_prog $dir/$dlname \$dldir/$dlname~
9755
      chmod a+x \$dldir/$dlname~
9756
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9757
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9758
      fi'
9759
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9760
      dlpath=$dir/\$dldll~
9761
       $RM \$dlpath'
9762
    shlibpath_overrides_runpath=yes
9763
 
9764
    case $host_os in
9765
    cygwin*)
9766
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9767
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9768
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9769
      ;;
9770
    mingw* | cegcc*)
9771
      # MinGW DLLs use traditional 'lib' prefix
9772
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9773
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9774
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9775
        # It is most probably a Windows format PATH printed by
9776
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9777
        # path with ; separators, and with drive letters. We can handle the
9778
        # drive letters (cygwin fileutils understands them), so leave them,
9779
        # especially as we might pass files found there to a mingw objdump,
9780
        # which wouldn't understand a cygwinified path. Ahh.
9781
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9782
      else
9783
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9784
      fi
9785
      ;;
9786
    pw32*)
9787
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9788
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9789
      ;;
9790
    esac
9791
    ;;
9792
 
9793
  *)
9794
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9795
    ;;
9796
  esac
9797
  dynamic_linker='Win32 ld.exe'
9798
  # FIXME: first we should search . and the directory the executable is in
9799
  shlibpath_var=PATH
9800
  ;;
9801
 
9802
darwin* | rhapsody*)
9803
  dynamic_linker="$host_os dyld"
9804
  version_type=darwin
9805
  need_lib_prefix=no
9806
  need_version=no
9807
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9808
  soname_spec='${libname}${release}${major}$shared_ext'
9809
  shlibpath_overrides_runpath=yes
9810
  shlibpath_var=DYLD_LIBRARY_PATH
9811
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9812
 
9813
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9814
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9815
  ;;
9816
 
9817
dgux*)
9818
  version_type=linux
9819
  need_lib_prefix=no
9820
  need_version=no
9821
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9822
  soname_spec='${libname}${release}${shared_ext}$major'
9823
  shlibpath_var=LD_LIBRARY_PATH
9824
  ;;
9825
 
9826
freebsd1*)
9827
  dynamic_linker=no
9828
  ;;
9829
 
9830
freebsd* | dragonfly*)
9831
  # DragonFly does not have aout.  When/if they implement a new
9832
  # versioning mechanism, adjust this.
9833
  if test -x /usr/bin/objformat; then
9834
    objformat=`/usr/bin/objformat`
9835
  else
9836
    case $host_os in
9837
    freebsd[123]*) objformat=aout ;;
9838
    *) objformat=elf ;;
9839
    esac
9840
  fi
9841
  version_type=freebsd-$objformat
9842
  case $version_type in
9843
    freebsd-elf*)
9844
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9845
      need_version=no
9846
      need_lib_prefix=no
9847
      ;;
9848
    freebsd-*)
9849
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9850
      need_version=yes
9851
      ;;
9852
  esac
9853
  shlibpath_var=LD_LIBRARY_PATH
9854
  case $host_os in
9855
  freebsd2*)
9856
    shlibpath_overrides_runpath=yes
9857
    ;;
9858
  freebsd3.[01]* | freebsdelf3.[01]*)
9859
    shlibpath_overrides_runpath=yes
9860
    hardcode_into_libs=yes
9861
    ;;
9862
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9863
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9864
    shlibpath_overrides_runpath=no
9865
    hardcode_into_libs=yes
9866
    ;;
9867
  *) # from 4.6 on, and DragonFly
9868
    shlibpath_overrides_runpath=yes
9869
    hardcode_into_libs=yes
9870
    ;;
9871
  esac
9872
  ;;
9873
 
9874
gnu*)
9875
  version_type=linux
9876
  need_lib_prefix=no
9877
  need_version=no
9878
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9879
  soname_spec='${libname}${release}${shared_ext}$major'
9880
  shlibpath_var=LD_LIBRARY_PATH
9881
  hardcode_into_libs=yes
9882
  ;;
9883
 
9884
hpux9* | hpux10* | hpux11*)
9885
  # Give a soname corresponding to the major version so that dld.sl refuses to
9886
  # link against other versions.
9887
  version_type=sunos
9888
  need_lib_prefix=no
9889
  need_version=no
9890
  case $host_cpu in
9891
  ia64*)
9892
    shrext_cmds='.so'
9893
    hardcode_into_libs=yes
9894
    dynamic_linker="$host_os dld.so"
9895
    shlibpath_var=LD_LIBRARY_PATH
9896
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9897
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898
    soname_spec='${libname}${release}${shared_ext}$major'
9899
    if test "X$HPUX_IA64_MODE" = X32; then
9900
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9901
    else
9902
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9903
    fi
9904
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9905
    ;;
9906
  hppa*64*)
9907
    shrext_cmds='.sl'
9908
    hardcode_into_libs=yes
9909
    dynamic_linker="$host_os dld.sl"
9910
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9911
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9912
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9913
    soname_spec='${libname}${release}${shared_ext}$major'
9914
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9915
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9916
    ;;
9917
  *)
9918
    shrext_cmds='.sl'
9919
    dynamic_linker="$host_os dld.sl"
9920
    shlibpath_var=SHLIB_PATH
9921
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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
    ;;
9925
  esac
9926
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9927
  postinstall_cmds='chmod 555 $lib'
9928
  ;;
9929
 
9930
interix[3-9]*)
9931
  version_type=linux
9932
  need_lib_prefix=no
9933
  need_version=no
9934
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9935
  soname_spec='${libname}${release}${shared_ext}$major'
9936
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9937
  shlibpath_var=LD_LIBRARY_PATH
9938
  shlibpath_overrides_runpath=no
9939
  hardcode_into_libs=yes
9940
  ;;
9941
 
9942
irix5* | irix6* | nonstopux*)
9943
  case $host_os in
9944
    nonstopux*) version_type=nonstopux ;;
9945
    *)
9946
        if test "$lt_cv_prog_gnu_ld" = yes; then
9947
                version_type=linux
9948
        else
9949
                version_type=irix
9950
        fi ;;
9951
  esac
9952
  need_lib_prefix=no
9953
  need_version=no
9954
  soname_spec='${libname}${release}${shared_ext}$major'
9955
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9956
  case $host_os in
9957
  irix5* | nonstopux*)
9958
    libsuff= shlibsuff=
9959
    ;;
9960
  *)
9961
    case $LD in # libtool.m4 will add one of these switches to LD
9962
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9963
      libsuff= shlibsuff= libmagic=32-bit;;
9964
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9965
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9966
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9967
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9968
    *) libsuff= shlibsuff= libmagic=never-match;;
9969
    esac
9970
    ;;
9971
  esac
9972
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9973
  shlibpath_overrides_runpath=no
9974
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9975
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9976
  hardcode_into_libs=yes
9977
  ;;
9978
 
9979
# No shared lib support for Linux oldld, aout, or coff.
9980
linux*oldld* | linux*aout* | linux*coff*)
9981
  dynamic_linker=no
9982
  ;;
9983
 
9984
# This must be Linux ELF.
9985
linux* | k*bsd*-gnu)
9986
  version_type=linux
9987
  need_lib_prefix=no
9988
  need_version=no
9989
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9990
  soname_spec='${libname}${release}${shared_ext}$major'
9991
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9992
  shlibpath_var=LD_LIBRARY_PATH
9993
  shlibpath_overrides_runpath=no
9994
  # Some binutils ld are patched to set DT_RUNPATH
9995
  save_LDFLAGS=$LDFLAGS
9996
  save_libdir=$libdir
9997
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9998
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9999
  cat >conftest.$ac_ext <<_ACEOF
10000
/* confdefs.h.  */
10001
_ACEOF
10002
cat confdefs.h >>conftest.$ac_ext
10003
cat >>conftest.$ac_ext <<_ACEOF
10004
/* end confdefs.h.  */
10005
 
10006
int
10007
main ()
10008
{
10009
 
10010
  ;
10011
  return 0;
10012
}
10013
_ACEOF
10014
rm -f conftest.$ac_objext conftest$ac_exeext
10015
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016
  (eval $ac_link) 2>conftest.er1
10017
  ac_status=$?
10018
  grep -v '^ *+' conftest.er1 >conftest.err
10019
  rm -f conftest.er1
10020
  cat conftest.err >&5
10021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022
  (exit $ac_status); } &&
10023
         { ac_try='test -z "$ac_c_werror_flag"
10024
                         || test ! -s conftest.err'
10025
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026
  (eval $ac_try) 2>&5
10027
  ac_status=$?
10028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029
  (exit $ac_status); }; } &&
10030
         { ac_try='test -s conftest$ac_exeext'
10031
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032
  (eval $ac_try) 2>&5
10033
  ac_status=$?
10034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035
  (exit $ac_status); }; }; then
10036
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10037
  shlibpath_overrides_runpath=yes
10038
fi
10039
 
10040
else
10041
  echo "$as_me: failed program was:" >&5
10042
sed 's/^/| /' conftest.$ac_ext >&5
10043
 
10044
fi
10045
rm -f conftest.err conftest.$ac_objext \
10046
      conftest$ac_exeext conftest.$ac_ext
10047
  LDFLAGS=$save_LDFLAGS
10048
  libdir=$save_libdir
10049
 
10050
  # This implies no fast_install, which is unacceptable.
10051
  # Some rework will be needed to allow for fast_install
10052
  # before this can be enabled.
10053
  hardcode_into_libs=yes
10054
 
10055
  # Append ld.so.conf contents to the search path
10056
  if test -f /etc/ld.so.conf; then
10057
    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' ' '`
10058
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10059
  fi
10060
 
10061
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10062
  # powerpc, because MkLinux only supported shared libraries with the
10063
  # GNU dynamic linker.  Since this was broken with cross compilers,
10064
  # most powerpc-linux boxes support dynamic linking these days and
10065
  # people can always --disable-shared, the test was removed, and we
10066
  # assume the GNU/Linux dynamic linker is in use.
10067
  dynamic_linker='GNU/Linux ld.so'
10068
  ;;
10069
 
10070
netbsd*)
10071
  version_type=sunos
10072
  need_lib_prefix=no
10073
  need_version=no
10074
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10075
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10076
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10077
    dynamic_linker='NetBSD (a.out) ld.so'
10078
  else
10079
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10080
    soname_spec='${libname}${release}${shared_ext}$major'
10081
    dynamic_linker='NetBSD ld.elf_so'
10082
  fi
10083
  shlibpath_var=LD_LIBRARY_PATH
10084
  shlibpath_overrides_runpath=yes
10085
  hardcode_into_libs=yes
10086
  ;;
10087
 
10088
newsos6)
10089
  version_type=linux
10090
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091
  shlibpath_var=LD_LIBRARY_PATH
10092
  shlibpath_overrides_runpath=yes
10093
  ;;
10094
 
10095
*nto* | *qnx*)
10096
  version_type=qnx
10097
  need_lib_prefix=no
10098
  need_version=no
10099
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10100
  soname_spec='${libname}${release}${shared_ext}$major'
10101
  shlibpath_var=LD_LIBRARY_PATH
10102
  shlibpath_overrides_runpath=no
10103
  hardcode_into_libs=yes
10104
  dynamic_linker='ldqnx.so'
10105
  ;;
10106
 
10107
openbsd*)
10108
  version_type=sunos
10109
  sys_lib_dlsearch_path_spec="/usr/lib"
10110
  need_lib_prefix=no
10111
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10112
  case $host_os in
10113
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10114
    *)                          need_version=no  ;;
10115
  esac
10116
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10117
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10118
  shlibpath_var=LD_LIBRARY_PATH
10119
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10120
    case $host_os in
10121
      openbsd2.[89] | openbsd2.[89].*)
10122
        shlibpath_overrides_runpath=no
10123
        ;;
10124
      *)
10125
        shlibpath_overrides_runpath=yes
10126
        ;;
10127
      esac
10128
  else
10129
    shlibpath_overrides_runpath=yes
10130
  fi
10131
  ;;
10132
 
10133
os2*)
10134
  libname_spec='$name'
10135
  shrext_cmds=".dll"
10136
  need_lib_prefix=no
10137
  library_names_spec='$libname${shared_ext} $libname.a'
10138
  dynamic_linker='OS/2 ld.exe'
10139
  shlibpath_var=LIBPATH
10140
  ;;
10141
 
10142
osf3* | osf4* | osf5*)
10143
  version_type=osf
10144
  need_lib_prefix=no
10145
  need_version=no
10146
  soname_spec='${libname}${release}${shared_ext}$major'
10147
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148
  shlibpath_var=LD_LIBRARY_PATH
10149
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10150
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10151
  ;;
10152
 
10153
rdos*)
10154
  dynamic_linker=no
10155
  ;;
10156
 
10157
solaris*)
10158
  version_type=linux
10159
  need_lib_prefix=no
10160
  need_version=no
10161
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162
  soname_spec='${libname}${release}${shared_ext}$major'
10163
  shlibpath_var=LD_LIBRARY_PATH
10164
  shlibpath_overrides_runpath=yes
10165
  hardcode_into_libs=yes
10166
  # ldd complains unless libraries are executable
10167
  postinstall_cmds='chmod +x $lib'
10168
  ;;
10169
 
10170
sunos4*)
10171
  version_type=sunos
10172
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10173
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10174
  shlibpath_var=LD_LIBRARY_PATH
10175
  shlibpath_overrides_runpath=yes
10176
  if test "$with_gnu_ld" = yes; then
10177
    need_lib_prefix=no
10178
  fi
10179
  need_version=yes
10180
  ;;
10181
 
10182
sysv4 | sysv4.3*)
10183
  version_type=linux
10184
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185
  soname_spec='${libname}${release}${shared_ext}$major'
10186
  shlibpath_var=LD_LIBRARY_PATH
10187
  case $host_vendor in
10188
    sni)
10189
      shlibpath_overrides_runpath=no
10190
      need_lib_prefix=no
10191
      runpath_var=LD_RUN_PATH
10192
      ;;
10193
    siemens)
10194
      need_lib_prefix=no
10195
      ;;
10196
    motorola)
10197
      need_lib_prefix=no
10198
      need_version=no
10199
      shlibpath_overrides_runpath=no
10200
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10201
      ;;
10202
  esac
10203
  ;;
10204
 
10205
sysv4*MP*)
10206
  if test -d /usr/nec ;then
10207
    version_type=linux
10208
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10209
    soname_spec='$libname${shared_ext}.$major'
10210
    shlibpath_var=LD_LIBRARY_PATH
10211
  fi
10212
  ;;
10213
 
10214
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10215
  version_type=freebsd-elf
10216
  need_lib_prefix=no
10217
  need_version=no
10218
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10219
  soname_spec='${libname}${release}${shared_ext}$major'
10220
  shlibpath_var=LD_LIBRARY_PATH
10221
  shlibpath_overrides_runpath=yes
10222
  hardcode_into_libs=yes
10223
  if test "$with_gnu_ld" = yes; then
10224
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10225
  else
10226
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10227
    case $host_os in
10228
      sco3.2v5*)
10229
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10230
        ;;
10231
    esac
10232
  fi
10233
  sys_lib_dlsearch_path_spec='/usr/lib'
10234
  ;;
10235
 
10236
tpf*)
10237
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10238
  version_type=linux
10239
  need_lib_prefix=no
10240
  need_version=no
10241
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242
  shlibpath_var=LD_LIBRARY_PATH
10243
  shlibpath_overrides_runpath=no
10244
  hardcode_into_libs=yes
10245
  ;;
10246
 
10247
uts4*)
10248
  version_type=linux
10249
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250
  soname_spec='${libname}${release}${shared_ext}$major'
10251
  shlibpath_var=LD_LIBRARY_PATH
10252
  ;;
10253
 
10254
*)
10255
  dynamic_linker=no
10256
  ;;
10257
esac
10258
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10259
echo "${ECHO_T}$dynamic_linker" >&6
10260
test "$dynamic_linker" = no && can_build_shared=no
10261
 
10262
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10263
if test "$GCC" = yes; then
10264
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10265
fi
10266
 
10267
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10268
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10269
fi
10270
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10271
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10272
fi
10273
 
10274
 
10275
 
10276
 
10277
 
10278
 
10279
 
10280
 
10281
 
10282
 
10283
 
10284
 
10285
 
10286
 
10287
 
10288
 
10289
 
10290
 
10291
 
10292
 
10293
 
10294
 
10295
 
10296
 
10297
 
10298
 
10299
 
10300
 
10301
 
10302
 
10303
 
10304
 
10305
 
10306
 
10307
 
10308
 
10309
 
10310
 
10311
 
10312
 
10313
 
10314
 
10315
 
10316
 
10317
 
10318
 
10319
 
10320
 
10321
 
10322
 
10323
 
10324
 
10325
 
10326
 
10327
 
10328
 
10329
 
10330
 
10331
 
10332
 
10333
 
10334
 
10335
 
10336
 
10337
 
10338
 
10339
 
10340
 
10341
 
10342
 
10343
 
10344
 
10345
 
10346
 
10347
 
10348
 
10349
 
10350
 
10351
 
10352
 
10353
 
10354
 
10355
 
10356
 
10357
 
10358
 
10359
 
10360
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10361
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10362
hardcode_action=
10363
if test -n "$hardcode_libdir_flag_spec" ||
10364
   test -n "$runpath_var" ||
10365
   test "X$hardcode_automatic" = "Xyes" ; then
10366
 
10367
  # We can hardcode non-existent directories.
10368
  if test "$hardcode_direct" != no &&
10369
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10370
     # have to relink, otherwise we might link with an installed library
10371
     # when we should be linking with a yet-to-be-installed one
10372
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10373
     test "$hardcode_minus_L" != no; then
10374
    # Linking always hardcodes the temporary library directory.
10375
    hardcode_action=relink
10376
  else
10377
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10378
    hardcode_action=immediate
10379
  fi
10380
else
10381
  # We cannot hardcode anything, or else we can only hardcode existing
10382
  # directories.
10383
  hardcode_action=unsupported
10384
fi
10385
echo "$as_me:$LINENO: result: $hardcode_action" >&5
10386
echo "${ECHO_T}$hardcode_action" >&6
10387
 
10388
if test "$hardcode_action" = relink ||
10389
   test "$inherit_rpath" = yes; then
10390
  # Fast installation is not supported
10391
  enable_fast_install=no
10392
elif test "$shlibpath_overrides_runpath" = yes ||
10393
     test "$enable_shared" = no; then
10394
  # Fast installation is not necessary
10395
  enable_fast_install=needless
10396
fi
10397
 
10398
 
10399
 
10400
 
10401
 
10402
 
10403
  if test "x$enable_dlopen" != xyes; then
10404
  enable_dlopen=unknown
10405
  enable_dlopen_self=unknown
10406
  enable_dlopen_self_static=unknown
10407
else
10408
  lt_cv_dlopen=no
10409
  lt_cv_dlopen_libs=
10410
 
10411
  case $host_os in
10412
  beos*)
10413
    lt_cv_dlopen="load_add_on"
10414
    lt_cv_dlopen_libs=
10415
    lt_cv_dlopen_self=yes
10416
    ;;
10417
 
10418
  mingw* | pw32* | cegcc*)
10419
    lt_cv_dlopen="LoadLibrary"
10420
    lt_cv_dlopen_libs=
10421
    ;;
10422
 
10423
  cygwin*)
10424
    lt_cv_dlopen="dlopen"
10425
    lt_cv_dlopen_libs=
10426
    ;;
10427
 
10428
  darwin*)
10429
  # if libdl is installed we need to link against it
10430
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10431
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10432
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10433
  echo $ECHO_N "(cached) $ECHO_C" >&6
10434
else
10435
  ac_check_lib_save_LIBS=$LIBS
10436
LIBS="-ldl  $LIBS"
10437
cat >conftest.$ac_ext <<_ACEOF
10438
/* confdefs.h.  */
10439
_ACEOF
10440
cat confdefs.h >>conftest.$ac_ext
10441
cat >>conftest.$ac_ext <<_ACEOF
10442
/* end confdefs.h.  */
10443
 
10444
/* Override any gcc2 internal prototype to avoid an error.  */
10445
#ifdef __cplusplus
10446
extern "C"
10447
#endif
10448
/* We use char because int might match the return type of a gcc2
10449
   builtin and then its argument prototype would still apply.  */
10450
char dlopen ();
10451
int
10452
main ()
10453
{
10454
dlopen ();
10455
  ;
10456
  return 0;
10457
}
10458
_ACEOF
10459
rm -f conftest.$ac_objext conftest$ac_exeext
10460
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10461
  (eval $ac_link) 2>conftest.er1
10462
  ac_status=$?
10463
  grep -v '^ *+' conftest.er1 >conftest.err
10464
  rm -f conftest.er1
10465
  cat conftest.err >&5
10466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467
  (exit $ac_status); } &&
10468
         { ac_try='test -z "$ac_c_werror_flag"
10469
                         || test ! -s conftest.err'
10470
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471
  (eval $ac_try) 2>&5
10472
  ac_status=$?
10473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474
  (exit $ac_status); }; } &&
10475
         { ac_try='test -s conftest$ac_exeext'
10476
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477
  (eval $ac_try) 2>&5
10478
  ac_status=$?
10479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480
  (exit $ac_status); }; }; then
10481
  ac_cv_lib_dl_dlopen=yes
10482
else
10483
  echo "$as_me: failed program was:" >&5
10484
sed 's/^/| /' conftest.$ac_ext >&5
10485
 
10486
ac_cv_lib_dl_dlopen=no
10487
fi
10488
rm -f conftest.err conftest.$ac_objext \
10489
      conftest$ac_exeext conftest.$ac_ext
10490
LIBS=$ac_check_lib_save_LIBS
10491
fi
10492
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10493
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10494
if test $ac_cv_lib_dl_dlopen = yes; then
10495
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10496
else
10497
 
10498
    lt_cv_dlopen="dyld"
10499
    lt_cv_dlopen_libs=
10500
    lt_cv_dlopen_self=yes
10501
 
10502
fi
10503
 
10504
    ;;
10505
 
10506
  *)
10507
    echo "$as_me:$LINENO: checking for shl_load" >&5
10508
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10509
if test "${ac_cv_func_shl_load+set}" = set; then
10510
  echo $ECHO_N "(cached) $ECHO_C" >&6
10511
else
10512
  cat >conftest.$ac_ext <<_ACEOF
10513
/* confdefs.h.  */
10514
_ACEOF
10515
cat confdefs.h >>conftest.$ac_ext
10516
cat >>conftest.$ac_ext <<_ACEOF
10517
/* end confdefs.h.  */
10518
/* Define shl_load to an innocuous variant, in case  declares shl_load.
10519
   For example, HP-UX 11i  declares gettimeofday.  */
10520
#define shl_load innocuous_shl_load
10521
 
10522
/* System header to define __stub macros and hopefully few prototypes,
10523
    which can conflict with char shl_load (); below.
10524
    Prefer  to  if __STDC__ is defined, since
10525
     exists even on freestanding compilers.  */
10526
 
10527
#ifdef __STDC__
10528
# include 
10529
#else
10530
# include 
10531
#endif
10532
 
10533
#undef shl_load
10534
 
10535
/* Override any gcc2 internal prototype to avoid an error.  */
10536
#ifdef __cplusplus
10537
extern "C"
10538
{
10539
#endif
10540
/* We use char because int might match the return type of a gcc2
10541
   builtin and then its argument prototype would still apply.  */
10542
char shl_load ();
10543
/* The GNU C library defines this for functions which it implements
10544
    to always fail with ENOSYS.  Some functions are actually named
10545
    something starting with __ and the normal name is an alias.  */
10546
#if defined (__stub_shl_load) || defined (__stub___shl_load)
10547
choke me
10548
#else
10549
char (*f) () = shl_load;
10550
#endif
10551
#ifdef __cplusplus
10552
}
10553
#endif
10554
 
10555
int
10556
main ()
10557
{
10558
return f != shl_load;
10559
  ;
10560
  return 0;
10561
}
10562
_ACEOF
10563
rm -f conftest.$ac_objext conftest$ac_exeext
10564
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565
  (eval $ac_link) 2>conftest.er1
10566
  ac_status=$?
10567
  grep -v '^ *+' conftest.er1 >conftest.err
10568
  rm -f conftest.er1
10569
  cat conftest.err >&5
10570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571
  (exit $ac_status); } &&
10572
         { ac_try='test -z "$ac_c_werror_flag"
10573
                         || test ! -s conftest.err'
10574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575
  (eval $ac_try) 2>&5
10576
  ac_status=$?
10577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578
  (exit $ac_status); }; } &&
10579
         { ac_try='test -s conftest$ac_exeext'
10580
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581
  (eval $ac_try) 2>&5
10582
  ac_status=$?
10583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584
  (exit $ac_status); }; }; then
10585
  ac_cv_func_shl_load=yes
10586
else
10587
  echo "$as_me: failed program was:" >&5
10588
sed 's/^/| /' conftest.$ac_ext >&5
10589
 
10590
ac_cv_func_shl_load=no
10591
fi
10592
rm -f conftest.err conftest.$ac_objext \
10593
      conftest$ac_exeext conftest.$ac_ext
10594
fi
10595
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10596
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10597
if test $ac_cv_func_shl_load = yes; then
10598
  lt_cv_dlopen="shl_load"
10599
else
10600
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10601
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10602
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10603
  echo $ECHO_N "(cached) $ECHO_C" >&6
10604
else
10605
  ac_check_lib_save_LIBS=$LIBS
10606
LIBS="-ldld  $LIBS"
10607
cat >conftest.$ac_ext <<_ACEOF
10608
/* confdefs.h.  */
10609
_ACEOF
10610
cat confdefs.h >>conftest.$ac_ext
10611
cat >>conftest.$ac_ext <<_ACEOF
10612
/* end confdefs.h.  */
10613
 
10614
/* Override any gcc2 internal prototype to avoid an error.  */
10615
#ifdef __cplusplus
10616
extern "C"
10617
#endif
10618
/* We use char because int might match the return type of a gcc2
10619
   builtin and then its argument prototype would still apply.  */
10620
char shl_load ();
10621
int
10622
main ()
10623
{
10624
shl_load ();
10625
  ;
10626
  return 0;
10627
}
10628
_ACEOF
10629
rm -f conftest.$ac_objext conftest$ac_exeext
10630
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631
  (eval $ac_link) 2>conftest.er1
10632
  ac_status=$?
10633
  grep -v '^ *+' conftest.er1 >conftest.err
10634
  rm -f conftest.er1
10635
  cat conftest.err >&5
10636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637
  (exit $ac_status); } &&
10638
         { ac_try='test -z "$ac_c_werror_flag"
10639
                         || test ! -s conftest.err'
10640
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641
  (eval $ac_try) 2>&5
10642
  ac_status=$?
10643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644
  (exit $ac_status); }; } &&
10645
         { ac_try='test -s conftest$ac_exeext'
10646
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647
  (eval $ac_try) 2>&5
10648
  ac_status=$?
10649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650
  (exit $ac_status); }; }; then
10651
  ac_cv_lib_dld_shl_load=yes
10652
else
10653
  echo "$as_me: failed program was:" >&5
10654
sed 's/^/| /' conftest.$ac_ext >&5
10655
 
10656
ac_cv_lib_dld_shl_load=no
10657
fi
10658
rm -f conftest.err conftest.$ac_objext \
10659
      conftest$ac_exeext conftest.$ac_ext
10660
LIBS=$ac_check_lib_save_LIBS
10661
fi
10662
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10663
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10664
if test $ac_cv_lib_dld_shl_load = yes; then
10665
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10666
else
10667
  echo "$as_me:$LINENO: checking for dlopen" >&5
10668
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10669
if test "${ac_cv_func_dlopen+set}" = set; then
10670
  echo $ECHO_N "(cached) $ECHO_C" >&6
10671
else
10672
  cat >conftest.$ac_ext <<_ACEOF
10673
/* confdefs.h.  */
10674
_ACEOF
10675
cat confdefs.h >>conftest.$ac_ext
10676
cat >>conftest.$ac_ext <<_ACEOF
10677
/* end confdefs.h.  */
10678
/* Define dlopen to an innocuous variant, in case  declares dlopen.
10679
   For example, HP-UX 11i  declares gettimeofday.  */
10680
#define dlopen innocuous_dlopen
10681
 
10682
/* System header to define __stub macros and hopefully few prototypes,
10683
    which can conflict with char dlopen (); below.
10684
    Prefer  to  if __STDC__ is defined, since
10685
     exists even on freestanding compilers.  */
10686
 
10687
#ifdef __STDC__
10688
# include 
10689
#else
10690
# include 
10691
#endif
10692
 
10693
#undef dlopen
10694
 
10695
/* Override any gcc2 internal prototype to avoid an error.  */
10696
#ifdef __cplusplus
10697
extern "C"
10698
{
10699
#endif
10700
/* We use char because int might match the return type of a gcc2
10701
   builtin and then its argument prototype would still apply.  */
10702
char dlopen ();
10703
/* The GNU C library defines this for functions which it implements
10704
    to always fail with ENOSYS.  Some functions are actually named
10705
    something starting with __ and the normal name is an alias.  */
10706
#if defined (__stub_dlopen) || defined (__stub___dlopen)
10707
choke me
10708
#else
10709
char (*f) () = dlopen;
10710
#endif
10711
#ifdef __cplusplus
10712
}
10713
#endif
10714
 
10715
int
10716
main ()
10717
{
10718
return f != dlopen;
10719
  ;
10720
  return 0;
10721
}
10722
_ACEOF
10723
rm -f conftest.$ac_objext conftest$ac_exeext
10724
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10725
  (eval $ac_link) 2>conftest.er1
10726
  ac_status=$?
10727
  grep -v '^ *+' conftest.er1 >conftest.err
10728
  rm -f conftest.er1
10729
  cat conftest.err >&5
10730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731
  (exit $ac_status); } &&
10732
         { ac_try='test -z "$ac_c_werror_flag"
10733
                         || test ! -s conftest.err'
10734
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735
  (eval $ac_try) 2>&5
10736
  ac_status=$?
10737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738
  (exit $ac_status); }; } &&
10739
         { ac_try='test -s conftest$ac_exeext'
10740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741
  (eval $ac_try) 2>&5
10742
  ac_status=$?
10743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744
  (exit $ac_status); }; }; then
10745
  ac_cv_func_dlopen=yes
10746
else
10747
  echo "$as_me: failed program was:" >&5
10748
sed 's/^/| /' conftest.$ac_ext >&5
10749
 
10750
ac_cv_func_dlopen=no
10751
fi
10752
rm -f conftest.err conftest.$ac_objext \
10753
      conftest$ac_exeext conftest.$ac_ext
10754
fi
10755
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10756
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10757
if test $ac_cv_func_dlopen = yes; then
10758
  lt_cv_dlopen="dlopen"
10759
else
10760
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10761
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10762
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10763
  echo $ECHO_N "(cached) $ECHO_C" >&6
10764
else
10765
  ac_check_lib_save_LIBS=$LIBS
10766
LIBS="-ldl  $LIBS"
10767
cat >conftest.$ac_ext <<_ACEOF
10768
/* confdefs.h.  */
10769
_ACEOF
10770
cat confdefs.h >>conftest.$ac_ext
10771
cat >>conftest.$ac_ext <<_ACEOF
10772
/* end confdefs.h.  */
10773
 
10774
/* Override any gcc2 internal prototype to avoid an error.  */
10775
#ifdef __cplusplus
10776
extern "C"
10777
#endif
10778
/* We use char because int might match the return type of a gcc2
10779
   builtin and then its argument prototype would still apply.  */
10780
char dlopen ();
10781
int
10782
main ()
10783
{
10784
dlopen ();
10785
  ;
10786
  return 0;
10787
}
10788
_ACEOF
10789
rm -f conftest.$ac_objext conftest$ac_exeext
10790
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10791
  (eval $ac_link) 2>conftest.er1
10792
  ac_status=$?
10793
  grep -v '^ *+' conftest.er1 >conftest.err
10794
  rm -f conftest.er1
10795
  cat conftest.err >&5
10796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797
  (exit $ac_status); } &&
10798
         { ac_try='test -z "$ac_c_werror_flag"
10799
                         || test ! -s conftest.err'
10800
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801
  (eval $ac_try) 2>&5
10802
  ac_status=$?
10803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804
  (exit $ac_status); }; } &&
10805
         { ac_try='test -s conftest$ac_exeext'
10806
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807
  (eval $ac_try) 2>&5
10808
  ac_status=$?
10809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810
  (exit $ac_status); }; }; then
10811
  ac_cv_lib_dl_dlopen=yes
10812
else
10813
  echo "$as_me: failed program was:" >&5
10814
sed 's/^/| /' conftest.$ac_ext >&5
10815
 
10816
ac_cv_lib_dl_dlopen=no
10817
fi
10818
rm -f conftest.err conftest.$ac_objext \
10819
      conftest$ac_exeext conftest.$ac_ext
10820
LIBS=$ac_check_lib_save_LIBS
10821
fi
10822
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10823
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10824
if test $ac_cv_lib_dl_dlopen = yes; then
10825
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10826
else
10827
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10828
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10829
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10830
  echo $ECHO_N "(cached) $ECHO_C" >&6
10831
else
10832
  ac_check_lib_save_LIBS=$LIBS
10833
LIBS="-lsvld  $LIBS"
10834
cat >conftest.$ac_ext <<_ACEOF
10835
/* confdefs.h.  */
10836
_ACEOF
10837
cat confdefs.h >>conftest.$ac_ext
10838
cat >>conftest.$ac_ext <<_ACEOF
10839
/* end confdefs.h.  */
10840
 
10841
/* Override any gcc2 internal prototype to avoid an error.  */
10842
#ifdef __cplusplus
10843
extern "C"
10844
#endif
10845
/* We use char because int might match the return type of a gcc2
10846
   builtin and then its argument prototype would still apply.  */
10847
char dlopen ();
10848
int
10849
main ()
10850
{
10851
dlopen ();
10852
  ;
10853
  return 0;
10854
}
10855
_ACEOF
10856
rm -f conftest.$ac_objext conftest$ac_exeext
10857
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10858
  (eval $ac_link) 2>conftest.er1
10859
  ac_status=$?
10860
  grep -v '^ *+' conftest.er1 >conftest.err
10861
  rm -f conftest.er1
10862
  cat conftest.err >&5
10863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864
  (exit $ac_status); } &&
10865
         { ac_try='test -z "$ac_c_werror_flag"
10866
                         || test ! -s conftest.err'
10867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868
  (eval $ac_try) 2>&5
10869
  ac_status=$?
10870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871
  (exit $ac_status); }; } &&
10872
         { ac_try='test -s conftest$ac_exeext'
10873
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874
  (eval $ac_try) 2>&5
10875
  ac_status=$?
10876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877
  (exit $ac_status); }; }; then
10878
  ac_cv_lib_svld_dlopen=yes
10879
else
10880
  echo "$as_me: failed program was:" >&5
10881
sed 's/^/| /' conftest.$ac_ext >&5
10882
 
10883
ac_cv_lib_svld_dlopen=no
10884
fi
10885
rm -f conftest.err conftest.$ac_objext \
10886
      conftest$ac_exeext conftest.$ac_ext
10887
LIBS=$ac_check_lib_save_LIBS
10888
fi
10889
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10890
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10891
if test $ac_cv_lib_svld_dlopen = yes; then
10892
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10893
else
10894
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10895
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10896
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10897
  echo $ECHO_N "(cached) $ECHO_C" >&6
10898
else
10899
  ac_check_lib_save_LIBS=$LIBS
10900
LIBS="-ldld  $LIBS"
10901
cat >conftest.$ac_ext <<_ACEOF
10902
/* confdefs.h.  */
10903
_ACEOF
10904
cat confdefs.h >>conftest.$ac_ext
10905
cat >>conftest.$ac_ext <<_ACEOF
10906
/* end confdefs.h.  */
10907
 
10908
/* Override any gcc2 internal prototype to avoid an error.  */
10909
#ifdef __cplusplus
10910
extern "C"
10911
#endif
10912
/* We use char because int might match the return type of a gcc2
10913
   builtin and then its argument prototype would still apply.  */
10914
char dld_link ();
10915
int
10916
main ()
10917
{
10918
dld_link ();
10919
  ;
10920
  return 0;
10921
}
10922
_ACEOF
10923
rm -f conftest.$ac_objext conftest$ac_exeext
10924
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10925
  (eval $ac_link) 2>conftest.er1
10926
  ac_status=$?
10927
  grep -v '^ *+' conftest.er1 >conftest.err
10928
  rm -f conftest.er1
10929
  cat conftest.err >&5
10930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931
  (exit $ac_status); } &&
10932
         { ac_try='test -z "$ac_c_werror_flag"
10933
                         || test ! -s conftest.err'
10934
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935
  (eval $ac_try) 2>&5
10936
  ac_status=$?
10937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938
  (exit $ac_status); }; } &&
10939
         { ac_try='test -s conftest$ac_exeext'
10940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941
  (eval $ac_try) 2>&5
10942
  ac_status=$?
10943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944
  (exit $ac_status); }; }; then
10945
  ac_cv_lib_dld_dld_link=yes
10946
else
10947
  echo "$as_me: failed program was:" >&5
10948
sed 's/^/| /' conftest.$ac_ext >&5
10949
 
10950
ac_cv_lib_dld_dld_link=no
10951
fi
10952
rm -f conftest.err conftest.$ac_objext \
10953
      conftest$ac_exeext conftest.$ac_ext
10954
LIBS=$ac_check_lib_save_LIBS
10955
fi
10956
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10957
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10958
if test $ac_cv_lib_dld_dld_link = yes; then
10959
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10960
fi
10961
 
10962
 
10963
fi
10964
 
10965
 
10966
fi
10967
 
10968
 
10969
fi
10970
 
10971
 
10972
fi
10973
 
10974
 
10975
fi
10976
 
10977
    ;;
10978
  esac
10979
 
10980
  if test "x$lt_cv_dlopen" != xno; then
10981
    enable_dlopen=yes
10982
  else
10983
    enable_dlopen=no
10984
  fi
10985
 
10986
  case $lt_cv_dlopen in
10987
  dlopen)
10988
    save_CPPFLAGS="$CPPFLAGS"
10989
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10990
 
10991
    save_LDFLAGS="$LDFLAGS"
10992
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10993
 
10994
    save_LIBS="$LIBS"
10995
    LIBS="$lt_cv_dlopen_libs $LIBS"
10996
 
10997
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10998
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10999
if test "${lt_cv_dlopen_self+set}" = set; then
11000
  echo $ECHO_N "(cached) $ECHO_C" >&6
11001
else
11002
          if test "$cross_compiling" = yes; then :
11003
  lt_cv_dlopen_self=cross
11004
else
11005
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11006
  lt_status=$lt_dlunknown
11007
  cat > conftest.$ac_ext <<_LT_EOF
11008
#line 11008 "configure"
11009
#include "confdefs.h"
11010
 
11011
#if HAVE_DLFCN_H
11012
#include 
11013
#endif
11014
 
11015
#include 
11016
 
11017
#ifdef RTLD_GLOBAL
11018
#  define LT_DLGLOBAL           RTLD_GLOBAL
11019
#else
11020
#  ifdef DL_GLOBAL
11021
#    define LT_DLGLOBAL         DL_GLOBAL
11022
#  else
11023
#    define LT_DLGLOBAL         0
11024
#  endif
11025
#endif
11026
 
11027
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11028
   find out it does not work in some platform. */
11029
#ifndef LT_DLLAZY_OR_NOW
11030
#  ifdef RTLD_LAZY
11031
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11032
#  else
11033
#    ifdef DL_LAZY
11034
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11035
#    else
11036
#      ifdef RTLD_NOW
11037
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11038
#      else
11039
#        ifdef DL_NOW
11040
#          define LT_DLLAZY_OR_NOW      DL_NOW
11041
#        else
11042
#          define LT_DLLAZY_OR_NOW      0
11043
#        endif
11044
#      endif
11045
#    endif
11046
#  endif
11047
#endif
11048
 
11049
void fnord() { int i=42;}
11050
int main ()
11051
{
11052
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11053
  int status = $lt_dlunknown;
11054
 
11055
  if (self)
11056
    {
11057
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11058
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11059
      /* dlclose (self); */
11060
    }
11061
  else
11062
    puts (dlerror ());
11063
 
11064
  return status;
11065
}
11066
_LT_EOF
11067
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11068
  (eval $ac_link) 2>&5
11069
  ac_status=$?
11070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11072
    (./conftest; exit; ) >&5 2>/dev/null
11073
    lt_status=$?
11074
    case x$lt_status in
11075
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11076
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11077
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11078
    esac
11079
  else :
11080
    # compilation failed
11081
    lt_cv_dlopen_self=no
11082
  fi
11083
fi
11084
rm -fr conftest*
11085
 
11086
 
11087
fi
11088
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11089
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11090
 
11091
    if test "x$lt_cv_dlopen_self" = xyes; then
11092
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11093
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11094
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11095
if test "${lt_cv_dlopen_self_static+set}" = set; then
11096
  echo $ECHO_N "(cached) $ECHO_C" >&6
11097
else
11098
          if test "$cross_compiling" = yes; then :
11099
  lt_cv_dlopen_self_static=cross
11100
else
11101
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11102
  lt_status=$lt_dlunknown
11103
  cat > conftest.$ac_ext <<_LT_EOF
11104
#line 11104 "configure"
11105
#include "confdefs.h"
11106
 
11107
#if HAVE_DLFCN_H
11108
#include 
11109
#endif
11110
 
11111
#include 
11112
 
11113
#ifdef RTLD_GLOBAL
11114
#  define LT_DLGLOBAL           RTLD_GLOBAL
11115
#else
11116
#  ifdef DL_GLOBAL
11117
#    define LT_DLGLOBAL         DL_GLOBAL
11118
#  else
11119
#    define LT_DLGLOBAL         0
11120
#  endif
11121
#endif
11122
 
11123
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11124
   find out it does not work in some platform. */
11125
#ifndef LT_DLLAZY_OR_NOW
11126
#  ifdef RTLD_LAZY
11127
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11128
#  else
11129
#    ifdef DL_LAZY
11130
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11131
#    else
11132
#      ifdef RTLD_NOW
11133
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11134
#      else
11135
#        ifdef DL_NOW
11136
#          define LT_DLLAZY_OR_NOW      DL_NOW
11137
#        else
11138
#          define LT_DLLAZY_OR_NOW      0
11139
#        endif
11140
#      endif
11141
#    endif
11142
#  endif
11143
#endif
11144
 
11145
void fnord() { int i=42;}
11146
int main ()
11147
{
11148
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11149
  int status = $lt_dlunknown;
11150
 
11151
  if (self)
11152
    {
11153
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11154
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11155
      /* dlclose (self); */
11156
    }
11157
  else
11158
    puts (dlerror ());
11159
 
11160
  return status;
11161
}
11162
_LT_EOF
11163
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11164
  (eval $ac_link) 2>&5
11165
  ac_status=$?
11166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11168
    (./conftest; exit; ) >&5 2>/dev/null
11169
    lt_status=$?
11170
    case x$lt_status in
11171
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11172
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11173
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11174
    esac
11175
  else :
11176
    # compilation failed
11177
    lt_cv_dlopen_self_static=no
11178
  fi
11179
fi
11180
rm -fr conftest*
11181
 
11182
 
11183
fi
11184
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11185
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11186
    fi
11187
 
11188
    CPPFLAGS="$save_CPPFLAGS"
11189
    LDFLAGS="$save_LDFLAGS"
11190
    LIBS="$save_LIBS"
11191
    ;;
11192
  esac
11193
 
11194
  case $lt_cv_dlopen_self in
11195
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11196
  *) enable_dlopen_self=unknown ;;
11197
  esac
11198
 
11199
  case $lt_cv_dlopen_self_static in
11200
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11201
  *) enable_dlopen_self_static=unknown ;;
11202
  esac
11203
fi
11204
 
11205
 
11206
 
11207
 
11208
 
11209
 
11210
 
11211
 
11212
 
11213
 
11214
 
11215
 
11216
 
11217
 
11218
 
11219
 
11220
 
11221
striplib=
11222
old_striplib=
11223
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11224
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11225
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11226
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11227
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11228
  echo "$as_me:$LINENO: result: yes" >&5
11229
echo "${ECHO_T}yes" >&6
11230
else
11231
# FIXME - insert some real tests, host_os isn't really good enough
11232
  case $host_os in
11233
  darwin*)
11234
    if test -n "$STRIP" ; then
11235
      striplib="$STRIP -x"
11236
      old_striplib="$STRIP -S"
11237
      echo "$as_me:$LINENO: result: yes" >&5
11238
echo "${ECHO_T}yes" >&6
11239
    else
11240
      echo "$as_me:$LINENO: result: no" >&5
11241
echo "${ECHO_T}no" >&6
11242
    fi
11243
    ;;
11244
  *)
11245
    echo "$as_me:$LINENO: result: no" >&5
11246
echo "${ECHO_T}no" >&6
11247
    ;;
11248
  esac
11249
fi
11250
 
11251
 
11252
 
11253
 
11254
 
11255
 
11256
 
11257
 
11258
 
11259
 
11260
 
11261
 
11262
  # Report which library types will actually be built
11263
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11264
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11265
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
11266
echo "${ECHO_T}$can_build_shared" >&6
11267
 
11268
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11269
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11270
  test "$can_build_shared" = "no" && enable_shared=no
11271
 
11272
  # On AIX, shared libraries and static libraries use the same namespace, and
11273
  # are all built from PIC.
11274
  case $host_os in
11275
  aix3*)
11276
    test "$enable_shared" = yes && enable_static=no
11277
    if test -n "$RANLIB"; then
11278
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11279
      postinstall_cmds='$RANLIB $lib'
11280
    fi
11281
    ;;
11282
 
11283
  aix[4-9]*)
11284
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11285
      test "$enable_shared" = yes && enable_static=no
11286
    fi
11287
    ;;
11288
  esac
11289
  echo "$as_me:$LINENO: result: $enable_shared" >&5
11290
echo "${ECHO_T}$enable_shared" >&6
11291
 
11292
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11293
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11294
  # Make sure either enable_shared or enable_static is yes.
11295
  test "$enable_shared" = yes || enable_static=yes
11296
  echo "$as_me:$LINENO: result: $enable_static" >&5
11297
echo "${ECHO_T}$enable_static" >&6
11298
 
11299
 
11300
 
11301
 
11302
fi
11303
ac_ext=c
11304
ac_cpp='$CPP $CPPFLAGS'
11305
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11306
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11307
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11308
 
11309
CC="$lt_save_CC"
11310
 
11311
 
11312
 
11313
 
11314
 
11315
 
11316
 
11317
 
11318
 
11319
 
11320
 
11321
 
11322
 
11323
                  ac_config_commands="$ac_config_commands libtool"
11324
 
11325
 
11326
 
11327
 
11328
# Only expand once:
11329
 
11330
 
11331
fi
11332
 
11333
if test -n "${machine_dir}"; then
11334
  case ${machine_dir} in
11335
        i386)
11336
 
11337
subdirs="$subdirs i386"
11338
 ;;
11339
  esac;
11340
fi
11341
 
11342
CRT0=
11343
if test -n "${machine_dir}"; then
11344
  CRT0=crt0.o
11345
fi
11346
 
11347
 
11348
 
11349
 
11350
if test x${machine_dir} != x; then
11351
  HAVE_MACHINE_DIR_TRUE=
11352
  HAVE_MACHINE_DIR_FALSE='#'
11353
else
11354
  HAVE_MACHINE_DIR_TRUE='#'
11355
  HAVE_MACHINE_DIR_FALSE=
11356
fi
11357
 
11358
 
11359
          ac_config_files="$ac_config_files Makefile"
11360
 
11361
cat >confcache <<\_ACEOF
11362
# This file is a shell script that caches the results of configure
11363
# tests run on this system so they can be shared between configure
11364
# scripts and configure runs, see configure's option --config-cache.
11365
# It is not useful on other systems.  If it contains results you don't
11366
# want to keep, you may remove or edit it.
11367
#
11368
# config.status only pays attention to the cache file if you give it
11369
# the --recheck option to rerun configure.
11370
#
11371
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11372
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11373
# following values.
11374
 
11375
_ACEOF
11376
 
11377
# The following way of writing the cache mishandles newlines in values,
11378
# but we know of no workaround that is simple, portable, and efficient.
11379
# So, don't put newlines in cache variables' values.
11380
# Ultrix sh set writes to stderr and can't be redirected directly,
11381
# and sets the high bit in the cache file unless we assign to the vars.
11382
{
11383
  (set) 2>&1 |
11384
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11385
    *ac_space=\ *)
11386
      # `set' does not quote correctly, so add quotes (double-quote
11387
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11388
      sed -n \
11389
        "s/'/'\\\\''/g;
11390
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11391
      ;;
11392
    *)
11393
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11394
      sed -n \
11395
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11396
      ;;
11397
    esac;
11398
} |
11399
  sed '
11400
     t clear
11401
     : clear
11402
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11403
     t end
11404
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11405
     : end' >>confcache
11406
if diff $cache_file confcache >/dev/null 2>&1; then :; else
11407
  if test -w $cache_file; then
11408
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11409
    cat confcache >$cache_file
11410
  else
11411
    echo "not updating unwritable cache $cache_file"
11412
  fi
11413
fi
11414
rm -f confcache
11415
 
11416
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11417
# Let make expand exec_prefix.
11418
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11419
 
11420
# VPATH may cause trouble with some makes, so we remove $(srcdir),
11421
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11422
# trailing colons and then remove the whole line if VPATH becomes empty
11423
# (actually we leave an empty line to preserve line numbers).
11424
if test "x$srcdir" = x.; then
11425
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11426
s/:*\$(srcdir):*/:/;
11427
s/:*\${srcdir}:*/:/;
11428
s/:*@srcdir@:*/:/;
11429
s/^\([^=]*=[     ]*\):*/\1/;
11430
s/:*$//;
11431
s/^[^=]*=[       ]*$//;
11432
}'
11433
fi
11434
 
11435
# Transform confdefs.h into DEFS.
11436
# Protect against shell expansion while executing Makefile rules.
11437
# Protect against Makefile macro expansion.
11438
#
11439
# If the first sed substitution is executed (which looks for macros that
11440
# take arguments), then we branch to the quote section.  Otherwise,
11441
# look for a macro that doesn't take arguments.
11442
cat >confdef2opt.sed <<\_ACEOF
11443
t clear
11444
: clear
11445
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
11446
t quote
11447
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
11448
t quote
11449
d
11450
: quote
11451
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
11452
s,\[,\\&,g
11453
s,\],\\&,g
11454
s,\$,$$,g
11455
p
11456
_ACEOF
11457
# We use echo to avoid assuming a particular line-breaking character.
11458
# The extra dot is to prevent the shell from consuming trailing
11459
# line-breaks from the sub-command output.  A line-break within
11460
# single-quotes doesn't work because, if this script is created in a
11461
# platform that uses two characters for line-breaks (e.g., DOS), tr
11462
# would break.
11463
ac_LF_and_DOT=`echo; echo .`
11464
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11465
rm -f confdef2opt.sed
11466
 
11467
 
11468
ac_libobjs=
11469
ac_ltlibobjs=
11470
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11471
  # 1. Remove the extension, and $U if already installed.
11472
  ac_i=`echo "$ac_i" |
11473
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11474
  # 2. Add them.
11475
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11476
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11477
done
11478
LIBOBJS=$ac_libobjs
11479
 
11480
LTLIBOBJS=$ac_ltlibobjs
11481
 
11482
 
11483
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
11484
  { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11485
Usually this means the macro was only invoked conditionally." >&5
11486
echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11487
Usually this means the macro was only invoked conditionally." >&2;}
11488
   { (exit 1); exit 1; }; }
11489
fi
11490
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11491
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11492
Usually this means the macro was only invoked conditionally." >&5
11493
echo "$as_me: error: conditional \"AMDEP\" was never defined.
11494
Usually this means the macro was only invoked conditionally." >&2;}
11495
   { (exit 1); exit 1; }; }
11496
fi
11497
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11498
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11499
Usually this means the macro was only invoked conditionally." >&5
11500
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11501
Usually this means the macro was only invoked conditionally." >&2;}
11502
   { (exit 1); exit 1; }; }
11503
fi
11504
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11505
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11506
Usually this means the macro was only invoked conditionally." >&5
11507
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11508
Usually this means the macro was only invoked conditionally." >&2;}
11509
   { (exit 1); exit 1; }; }
11510
fi
11511
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
11512
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
11513
Usually this means the macro was only invoked conditionally." >&5
11514
echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
11515
Usually this means the macro was only invoked conditionally." >&2;}
11516
   { (exit 1); exit 1; }; }
11517
fi
11518
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
11519
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
11520
Usually this means the macro was only invoked conditionally." >&5
11521
echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
11522
Usually this means the macro was only invoked conditionally." >&2;}
11523
   { (exit 1); exit 1; }; }
11524
fi
11525
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
11526
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
11527
Usually this means the macro was only invoked conditionally." >&5
11528
echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
11529
Usually this means the macro was only invoked conditionally." >&2;}
11530
   { (exit 1); exit 1; }; }
11531
fi
11532
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
11533
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
11534
Usually this means the macro was only invoked conditionally." >&5
11535
echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
11536
Usually this means the macro was only invoked conditionally." >&2;}
11537
   { (exit 1); exit 1; }; }
11538
fi
11539
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
11540
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
11541
Usually this means the macro was only invoked conditionally." >&5
11542
echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
11543
Usually this means the macro was only invoked conditionally." >&2;}
11544
   { (exit 1); exit 1; }; }
11545
fi
11546
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
11547
  { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
11548
Usually this means the macro was only invoked conditionally." >&5
11549
echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
11550
Usually this means the macro was only invoked conditionally." >&2;}
11551
   { (exit 1); exit 1; }; }
11552
fi
11553
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11554
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11555
Usually this means the macro was only invoked conditionally." >&5
11556
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11557
Usually this means the macro was only invoked conditionally." >&2;}
11558
   { (exit 1); exit 1; }; }
11559
fi
11560
if test -z "${HAVE_MACHINE_DIR_TRUE}" && test -z "${HAVE_MACHINE_DIR_FALSE}"; then
11561
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_MACHINE_DIR\" was never defined.
11562
Usually this means the macro was only invoked conditionally." >&5
11563
echo "$as_me: error: conditional \"HAVE_MACHINE_DIR\" was never defined.
11564
Usually this means the macro was only invoked conditionally." >&2;}
11565
   { (exit 1); exit 1; }; }
11566
fi
11567
 
11568
: ${CONFIG_STATUS=./config.status}
11569
ac_clean_files_save=$ac_clean_files
11570
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11571
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11572
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11573
cat >$CONFIG_STATUS <<_ACEOF
11574
#! $SHELL
11575
# Generated by $as_me.
11576
# Run this file to recreate the current configuration.
11577
# Compiler output produced by configure, useful for debugging
11578
# configure, is in config.log if it exists.
11579
 
11580
debug=false
11581
ac_cs_recheck=false
11582
ac_cs_silent=false
11583
SHELL=\${CONFIG_SHELL-$SHELL}
11584
_ACEOF
11585
 
11586
cat >>$CONFIG_STATUS <<\_ACEOF
11587
## --------------------- ##
11588
## M4sh Initialization.  ##
11589
## --------------------- ##
11590
 
11591
# Be Bourne compatible
11592
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11593
  emulate sh
11594
  NULLCMD=:
11595
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11596
  # is contrary to our usage.  Disable this feature.
11597
  alias -g '${1+"$@"}'='"$@"'
11598
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11599
  set -o posix
11600
fi
11601
DUALCASE=1; export DUALCASE # for MKS sh
11602
 
11603
# Support unset when possible.
11604
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11605
  as_unset=unset
11606
else
11607
  as_unset=false
11608
fi
11609
 
11610
 
11611
# Work around bugs in pre-3.0 UWIN ksh.
11612
$as_unset ENV MAIL MAILPATH
11613
PS1='$ '
11614
PS2='> '
11615
PS4='+ '
11616
 
11617
# NLS nuisances.
11618
for as_var in \
11619
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11620
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11621
  LC_TELEPHONE LC_TIME
11622
do
11623
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11624
    eval $as_var=C; export $as_var
11625
  else
11626
    $as_unset $as_var
11627
  fi
11628
done
11629
 
11630
# Required to use basename.
11631
if expr a : '\(a\)' >/dev/null 2>&1; then
11632
  as_expr=expr
11633
else
11634
  as_expr=false
11635
fi
11636
 
11637
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11638
  as_basename=basename
11639
else
11640
  as_basename=false
11641
fi
11642
 
11643
 
11644
# Name of the executable.
11645
as_me=`$as_basename "$0" ||
11646
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11647
         X"$0" : 'X\(//\)$' \| \
11648
         X"$0" : 'X\(/\)$' \| \
11649
         .     : '\(.\)' 2>/dev/null ||
11650
echo X/"$0" |
11651
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11652
          /^X\/\(\/\/\)$/{ s//\1/; q; }
11653
          /^X\/\(\/\).*/{ s//\1/; q; }
11654
          s/.*/./; q'`
11655
 
11656
 
11657
# PATH needs CR, and LINENO needs CR and PATH.
11658
# Avoid depending upon Character Ranges.
11659
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11660
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11661
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11662
as_cr_digits='0123456789'
11663
as_cr_alnum=$as_cr_Letters$as_cr_digits
11664
 
11665
# The user is always right.
11666
if test "${PATH_SEPARATOR+set}" != set; then
11667
  echo "#! /bin/sh" >conf$$.sh
11668
  echo  "exit 0"   >>conf$$.sh
11669
  chmod +x conf$$.sh
11670
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11671
    PATH_SEPARATOR=';'
11672
  else
11673
    PATH_SEPARATOR=:
11674
  fi
11675
  rm -f conf$$.sh
11676
fi
11677
 
11678
 
11679
  as_lineno_1=$LINENO
11680
  as_lineno_2=$LINENO
11681
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11682
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11683
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11684
  # Find who we are.  Look in the path if we contain no path at all
11685
  # relative or not.
11686
  case $0 in
11687
    *[\\/]* ) as_myself=$0 ;;
11688
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11689
for as_dir in $PATH
11690
do
11691
  IFS=$as_save_IFS
11692
  test -z "$as_dir" && as_dir=.
11693
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11694
done
11695
 
11696
       ;;
11697
  esac
11698
  # We did not find ourselves, most probably we were run as `sh COMMAND'
11699
  # in which case we are not to be found in the path.
11700
  if test "x$as_myself" = x; then
11701
    as_myself=$0
11702
  fi
11703
  if test ! -f "$as_myself"; then
11704
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11705
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11706
   { (exit 1); exit 1; }; }
11707
  fi
11708
  case $CONFIG_SHELL in
11709
  '')
11710
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11711
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11712
do
11713
  IFS=$as_save_IFS
11714
  test -z "$as_dir" && as_dir=.
11715
  for as_base in sh bash ksh sh5; do
11716
         case $as_dir in
11717
         /*)
11718
           if ("$as_dir/$as_base" -c '
11719
  as_lineno_1=$LINENO
11720
  as_lineno_2=$LINENO
11721
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11722
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11723
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11724
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11725
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11726
             CONFIG_SHELL=$as_dir/$as_base
11727
             export CONFIG_SHELL
11728
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11729
           fi;;
11730
         esac
11731
       done
11732
done
11733
;;
11734
  esac
11735
 
11736
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11737
  # uniformly replaced by the line number.  The first 'sed' inserts a
11738
  # line-number line before each line; the second 'sed' does the real
11739
  # work.  The second script uses 'N' to pair each line-number line
11740
  # with the numbered line, and appends trailing '-' during
11741
  # substitution so that $LINENO is not a special case at line end.
11742
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11743
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11744
  sed '=' <$as_myself |
11745
    sed '
11746
      N
11747
      s,$,-,
11748
      : loop
11749
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11750
      t loop
11751
      s,-$,,
11752
      s,^['$as_cr_digits']*\n,,
11753
    ' >$as_me.lineno &&
11754
  chmod +x $as_me.lineno ||
11755
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11756
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11757
   { (exit 1); exit 1; }; }
11758
 
11759
  # Don't try to exec as it changes $[0], causing all sort of problems
11760
  # (the dirname of $[0] is not the place where we might find the
11761
  # original and so on.  Autoconf is especially sensible to this).
11762
  . ./$as_me.lineno
11763
  # Exit status is that of the last command.
11764
  exit
11765
}
11766
 
11767
 
11768
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11769
  *c*,-n*) ECHO_N= ECHO_C='
11770
' ECHO_T='      ' ;;
11771
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11772
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11773
esac
11774
 
11775
if expr a : '\(a\)' >/dev/null 2>&1; then
11776
  as_expr=expr
11777
else
11778
  as_expr=false
11779
fi
11780
 
11781
rm -f conf$$ conf$$.exe conf$$.file
11782
echo >conf$$.file
11783
if ln -s conf$$.file conf$$ 2>/dev/null; then
11784
  # We could just check for DJGPP; but this test a) works b) is more generic
11785
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11786
  if test -f conf$$.exe; then
11787
    # Don't use ln at all; we don't have any links
11788
    as_ln_s='cp -p'
11789
  else
11790
    as_ln_s='ln -s'
11791
  fi
11792
elif ln conf$$.file conf$$ 2>/dev/null; then
11793
  as_ln_s=ln
11794
else
11795
  as_ln_s='cp -p'
11796
fi
11797
rm -f conf$$ conf$$.exe conf$$.file
11798
 
11799
if mkdir -p . 2>/dev/null; then
11800
  as_mkdir_p=:
11801
else
11802
  test -d ./-p && rmdir ./-p
11803
  as_mkdir_p=false
11804
fi
11805
 
11806
as_executable_p="test -f"
11807
 
11808
# Sed expression to map a string onto a valid CPP name.
11809
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11810
 
11811
# Sed expression to map a string onto a valid variable name.
11812
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11813
 
11814
 
11815
# IFS
11816
# We need space, tab and new line, in precisely that order.
11817
as_nl='
11818
'
11819
IFS="   $as_nl"
11820
 
11821
# CDPATH.
11822
$as_unset CDPATH
11823
 
11824
exec 6>&1
11825
 
11826
# Open the log real soon, to keep \$[0] and so on meaningful, and to
11827
# report actual input values of CONFIG_FILES etc. instead of their
11828
# values after options handling.  Logging --version etc. is OK.
11829
exec 5>>config.log
11830
{
11831
  echo
11832
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11833
## Running $as_me. ##
11834
_ASBOX
11835
} >&5
11836
cat >&5 <<_CSEOF
11837
 
11838
This file was extended by newlib $as_me 1.17.0, which was
11839
generated by GNU Autoconf 2.59.  Invocation command line was
11840
 
11841
  CONFIG_FILES    = $CONFIG_FILES
11842
  CONFIG_HEADERS  = $CONFIG_HEADERS
11843
  CONFIG_LINKS    = $CONFIG_LINKS
11844
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11845
  $ $0 $@
11846
 
11847
_CSEOF
11848
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11849
echo >&5
11850
_ACEOF
11851
 
11852
# Files that config.status was made for.
11853
if test -n "$ac_config_files"; then
11854
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11855
fi
11856
 
11857
if test -n "$ac_config_headers"; then
11858
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11859
fi
11860
 
11861
if test -n "$ac_config_links"; then
11862
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11863
fi
11864
 
11865
if test -n "$ac_config_commands"; then
11866
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11867
fi
11868
 
11869
cat >>$CONFIG_STATUS <<\_ACEOF
11870
 
11871
ac_cs_usage="\
11872
\`$as_me' instantiates files from templates according to the
11873
current configuration.
11874
 
11875
Usage: $0 [OPTIONS] [FILE]...
11876
 
11877
  -h, --help       print this help, then exit
11878
  -V, --version    print version number, then exit
11879
  -q, --quiet      do not print progress messages
11880
  -d, --debug      don't remove temporary files
11881
      --recheck    update $as_me by reconfiguring in the same conditions
11882
  --file=FILE[:TEMPLATE]
11883
                   instantiate the configuration file FILE
11884
 
11885
Configuration files:
11886
$config_files
11887
 
11888
Configuration commands:
11889
$config_commands
11890
 
11891
Report bugs to ."
11892
_ACEOF
11893
 
11894
cat >>$CONFIG_STATUS <<_ACEOF
11895
ac_cs_version="\\
11896
newlib config.status 1.17.0
11897
configured by $0, generated by GNU Autoconf 2.59,
11898
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11899
 
11900
Copyright (C) 2003 Free Software Foundation, Inc.
11901
This config.status script is free software; the Free Software Foundation
11902
gives unlimited permission to copy, distribute and modify it."
11903
srcdir=$srcdir
11904
INSTALL="$INSTALL"
11905
_ACEOF
11906
 
11907
cat >>$CONFIG_STATUS <<\_ACEOF
11908
# If no file are specified by the user, then we need to provide default
11909
# value.  By we need to know if files were specified by the user.
11910
ac_need_defaults=:
11911
while test $# != 0
11912
do
11913
  case $1 in
11914
  --*=*)
11915
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
11916
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11917
    ac_shift=:
11918
    ;;
11919
  -*)
11920
    ac_option=$1
11921
    ac_optarg=$2
11922
    ac_shift=shift
11923
    ;;
11924
  *) # This is not an option, so the user has probably given explicit
11925
     # arguments.
11926
     ac_option=$1
11927
     ac_need_defaults=false;;
11928
  esac
11929
 
11930
  case $ac_option in
11931
  # Handling of the options.
11932
_ACEOF
11933
cat >>$CONFIG_STATUS <<\_ACEOF
11934
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11935
    ac_cs_recheck=: ;;
11936
  --version | --vers* | -V )
11937
    echo "$ac_cs_version"; exit 0 ;;
11938
  --he | --h)
11939
    # Conflict between --help and --header
11940
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
11941
Try \`$0 --help' for more information." >&5
11942
echo "$as_me: error: ambiguous option: $1
11943
Try \`$0 --help' for more information." >&2;}
11944
   { (exit 1); exit 1; }; };;
11945
  --help | --hel | -h )
11946
    echo "$ac_cs_usage"; exit 0 ;;
11947
  --debug | --d* | -d )
11948
    debug=: ;;
11949
  --file | --fil | --fi | --f )
11950
    $ac_shift
11951
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11952
    ac_need_defaults=false;;
11953
  --header | --heade | --head | --hea )
11954
    $ac_shift
11955
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11956
    ac_need_defaults=false;;
11957
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11958
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11959
    ac_cs_silent=: ;;
11960
 
11961
  # This is an error.
11962
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11963
Try \`$0 --help' for more information." >&5
11964
echo "$as_me: error: unrecognized option: $1
11965
Try \`$0 --help' for more information." >&2;}
11966
   { (exit 1); exit 1; }; } ;;
11967
 
11968
  *) ac_config_targets="$ac_config_targets $1" ;;
11969
 
11970
  esac
11971
  shift
11972
done
11973
 
11974
ac_configure_extra_args=
11975
 
11976
if $ac_cs_silent; then
11977
  exec 6>/dev/null
11978
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11979
fi
11980
 
11981
_ACEOF
11982
cat >>$CONFIG_STATUS <<_ACEOF
11983
if \$ac_cs_recheck; then
11984
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11985
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11986
fi
11987
 
11988
_ACEOF
11989
 
11990
cat >>$CONFIG_STATUS <<_ACEOF
11991
#
11992
# INIT-COMMANDS section.
11993
#
11994
 
11995
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11996
 
11997
 
11998
# The HP-UX ksh and POSIX shell print the target directory to stdout
11999
# if CDPATH is set.
12000
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12001
 
12002
sed_quote_subst='$sed_quote_subst'
12003
double_quote_subst='$double_quote_subst'
12004
delay_variable_subst='$delay_variable_subst'
12005
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12006
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12007
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12008
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12009
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12010
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12011
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12012
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12013
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12014
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12015
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12016
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12017
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12018
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12019
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12020
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12021
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12022
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12023
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12024
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12025
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12026
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12027
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12028
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12029
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12030
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12031
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12032
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12033
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12034
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12035
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12036
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12037
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12038
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12039
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12040
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12041
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12042
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12043
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12044
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12045
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12046
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12047
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12048
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12049
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12050
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12051
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"`'
12052
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"`'
12053
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12054
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12055
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12056
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12057
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12058
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12059
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12060
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12061
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12062
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12063
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12064
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12065
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12066
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12067
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12068
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12069
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12070
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12071
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12072
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12073
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12074
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12075
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12076
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12077
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12078
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12079
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12080
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12081
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12082
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12083
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12084
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12085
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12086
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12087
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12088
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12089
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12090
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12091
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12092
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12093
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12094
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12095
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12096
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12097
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12098
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12099
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12100
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12101
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12102
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12103
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12104
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12105
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12106
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12107
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12108
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12109
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12110
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12111
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12112
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12113
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12114
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12115
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12116
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12117
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12118
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12119
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12120
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12121
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12122
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12123
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12124
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12125
 
12126
LTCC='$LTCC'
12127
LTCFLAGS='$LTCFLAGS'
12128
compiler='$compiler_DEFAULT'
12129
 
12130
# Quote evaled strings.
12131
for var in SED \
12132
GREP \
12133
EGREP \
12134
FGREP \
12135
LD \
12136
NM \
12137
LN_S \
12138
lt_SP2NL \
12139
lt_NL2SP \
12140
reload_flag \
12141
deplibs_check_method \
12142
file_magic_cmd \
12143
AR \
12144
AR_FLAGS \
12145
STRIP \
12146
RANLIB \
12147
CC \
12148
CFLAGS \
12149
compiler \
12150
lt_cv_sys_global_symbol_pipe \
12151
lt_cv_sys_global_symbol_to_cdecl \
12152
lt_cv_sys_global_symbol_to_c_name_address \
12153
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12154
SHELL \
12155
ECHO \
12156
lt_prog_compiler_no_builtin_flag \
12157
lt_prog_compiler_wl \
12158
lt_prog_compiler_pic \
12159
lt_prog_compiler_static \
12160
lt_cv_prog_compiler_c_o \
12161
need_locks \
12162
DSYMUTIL \
12163
NMEDIT \
12164
LIPO \
12165
OTOOL \
12166
OTOOL64 \
12167
shrext_cmds \
12168
export_dynamic_flag_spec \
12169
whole_archive_flag_spec \
12170
compiler_needs_object \
12171
with_gnu_ld \
12172
allow_undefined_flag \
12173
no_undefined_flag \
12174
hardcode_libdir_flag_spec \
12175
hardcode_libdir_flag_spec_ld \
12176
hardcode_libdir_separator \
12177
fix_srcfile_path \
12178
exclude_expsyms \
12179
include_expsyms \
12180
file_list_spec \
12181
variables_saved_for_relink \
12182
libname_spec \
12183
library_names_spec \
12184
soname_spec \
12185
finish_eval \
12186
old_striplib \
12187
striplib; do
12188
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12189
    *[\\\\\\\`\\"\\\$]*)
12190
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12191
      ;;
12192
    *)
12193
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12194
      ;;
12195
    esac
12196
done
12197
 
12198
# Double-quote double-evaled strings.
12199
for var in reload_cmds \
12200
old_postinstall_cmds \
12201
old_postuninstall_cmds \
12202
old_archive_cmds \
12203
extract_expsyms_cmds \
12204
old_archive_from_new_cmds \
12205
old_archive_from_expsyms_cmds \
12206
archive_cmds \
12207
archive_expsym_cmds \
12208
module_cmds \
12209
module_expsym_cmds \
12210
export_symbols_cmds \
12211
prelink_cmds \
12212
postinstall_cmds \
12213
postuninstall_cmds \
12214
finish_cmds \
12215
sys_lib_search_path_spec \
12216
sys_lib_dlsearch_path_spec; do
12217
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12218
    *[\\\\\\\`\\"\\\$]*)
12219
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12220
      ;;
12221
    *)
12222
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12223
      ;;
12224
    esac
12225
done
12226
 
12227
# Fix-up fallback echo if it was mangled by the above quoting rules.
12228
case \$lt_ECHO in
12229
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12230
  ;;
12231
esac
12232
 
12233
ac_aux_dir='$ac_aux_dir'
12234
xsi_shell='$xsi_shell'
12235
lt_shell_append='$lt_shell_append'
12236
 
12237
# See if we are running on zsh, and set the options which allow our
12238
# commands through without removal of \ escapes INIT.
12239
if test -n "\${ZSH_VERSION+set}" ; then
12240
   setopt NO_GLOB_SUBST
12241
fi
12242
 
12243
 
12244
    PACKAGE='$PACKAGE'
12245
    VERSION='$VERSION'
12246
    TIMESTAMP='$TIMESTAMP'
12247
    RM='$RM'
12248
    ofile='$ofile'
12249
 
12250
 
12251
 
12252
 
12253
_ACEOF
12254
 
12255
 
12256
 
12257
cat >>$CONFIG_STATUS <<\_ACEOF
12258
for ac_config_target in $ac_config_targets
12259
do
12260
  case "$ac_config_target" in
12261
  # Handling of arguments.
12262
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12263
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12264
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12265
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12266
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12267
   { (exit 1); exit 1; }; };;
12268
  esac
12269
done
12270
 
12271
# If the user did not use the arguments to specify the items to instantiate,
12272
# then the envvar interface is used.  Set only those that are not.
12273
# We use the long form for the default assignment because of an extremely
12274
# bizarre bug on SunOS 4.1.3.
12275
if $ac_need_defaults; then
12276
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12277
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12278
fi
12279
 
12280
# Have a temporary directory for convenience.  Make it in the build tree
12281
# simply because there is no reason to put it here, and in addition,
12282
# creating and moving files from /tmp can sometimes cause problems.
12283
# Create a temporary directory, and hook for its removal unless debugging.
12284
$debug ||
12285
{
12286
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12287
  trap '{ (exit 1); exit 1; }' 1 2 13 15
12288
}
12289
 
12290
# Create a (secure) tmp directory for tmp files.
12291
 
12292
{
12293
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12294
  test -n "$tmp" && test -d "$tmp"
12295
}  ||
12296
{
12297
  tmp=./confstat$$-$RANDOM
12298
  (umask 077 && mkdir $tmp)
12299
} ||
12300
{
12301
   echo "$me: cannot create a temporary directory in ." >&2
12302
   { (exit 1); exit 1; }
12303
}
12304
 
12305
_ACEOF
12306
 
12307
cat >>$CONFIG_STATUS <<_ACEOF
12308
 
12309
#
12310
# CONFIG_FILES section.
12311
#
12312
 
12313
# No need to generate the scripts if there are no CONFIG_FILES.
12314
# This happens for instance when ./config.status config.h
12315
if test -n "\$CONFIG_FILES"; then
12316
  # Protect against being on the right side of a sed subst in config.status.
12317
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12318
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12319
s,@SHELL@,$SHELL,;t t
12320
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12321
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12322
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12323
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12324
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12325
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12326
s,@exec_prefix@,$exec_prefix,;t t
12327
s,@prefix@,$prefix,;t t
12328
s,@program_transform_name@,$program_transform_name,;t t
12329
s,@bindir@,$bindir,;t t
12330
s,@sbindir@,$sbindir,;t t
12331
s,@libexecdir@,$libexecdir,;t t
12332
s,@datadir@,$datadir,;t t
12333
s,@sysconfdir@,$sysconfdir,;t t
12334
s,@sharedstatedir@,$sharedstatedir,;t t
12335
s,@localstatedir@,$localstatedir,;t t
12336
s,@libdir@,$libdir,;t t
12337
s,@includedir@,$includedir,;t t
12338
s,@oldincludedir@,$oldincludedir,;t t
12339
s,@infodir@,$infodir,;t t
12340
s,@mandir@,$mandir,;t t
12341
s,@build_alias@,$build_alias,;t t
12342
s,@host_alias@,$host_alias,;t t
12343
s,@target_alias@,$target_alias,;t t
12344
s,@DEFS@,$DEFS,;t t
12345
s,@ECHO_C@,$ECHO_C,;t t
12346
s,@ECHO_N@,$ECHO_N,;t t
12347
s,@ECHO_T@,$ECHO_T,;t t
12348
s,@LIBS@,$LIBS,;t t
12349
s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t
12350
s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t
12351
s,@newlib_basedir@,$newlib_basedir,;t t
12352
s,@build@,$build,;t t
12353
s,@build_cpu@,$build_cpu,;t t
12354
s,@build_vendor@,$build_vendor,;t t
12355
s,@build_os@,$build_os,;t t
12356
s,@host@,$host,;t t
12357
s,@host_cpu@,$host_cpu,;t t
12358
s,@host_vendor@,$host_vendor,;t t
12359
s,@host_os@,$host_os,;t t
12360
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12361
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12362
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12363
s,@CYGPATH_W@,$CYGPATH_W,;t t
12364
s,@PACKAGE@,$PACKAGE,;t t
12365
s,@VERSION@,$VERSION,;t t
12366
s,@ACLOCAL@,$ACLOCAL,;t t
12367
s,@AUTOCONF@,$AUTOCONF,;t t
12368
s,@AUTOMAKE@,$AUTOMAKE,;t t
12369
s,@AUTOHEADER@,$AUTOHEADER,;t t
12370
s,@MAKEINFO@,$MAKEINFO,;t t
12371
s,@install_sh@,$install_sh,;t t
12372
s,@STRIP@,$STRIP,;t t
12373
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12374
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12375
s,@mkdir_p@,$mkdir_p,;t t
12376
s,@AWK@,$AWK,;t t
12377
s,@SET_MAKE@,$SET_MAKE,;t t
12378
s,@am__leading_dot@,$am__leading_dot,;t t
12379
s,@AMTAR@,$AMTAR,;t t
12380
s,@am__tar@,$am__tar,;t t
12381
s,@am__untar@,$am__untar,;t t
12382
s,@CC@,$CC,;t t
12383
s,@DEPDIR@,$DEPDIR,;t t
12384
s,@am__include@,$am__include,;t t
12385
s,@am__quote@,$am__quote,;t t
12386
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12387
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12388
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12389
s,@CCDEPMODE@,$CCDEPMODE,;t t
12390
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12391
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12392
s,@AS@,$AS,;t t
12393
s,@ac_ct_AS@,$ac_ct_AS,;t t
12394
s,@AR@,$AR,;t t
12395
s,@ac_ct_AR@,$ac_ct_AR,;t t
12396
s,@RANLIB@,$RANLIB,;t t
12397
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12398
s,@READELF@,$READELF,;t t
12399
s,@ac_ct_READELF@,$ac_ct_READELF,;t t
12400
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12401
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12402
s,@MAINT@,$MAINT,;t t
12403
s,@CCAS@,$CCAS,;t t
12404
s,@CCASFLAGS@,$CCASFLAGS,;t t
12405
s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t
12406
s,@LDFLAGS@,$LDFLAGS,;t t
12407
s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t
12408
s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t
12409
s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t
12410
s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t
12411
s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t
12412
s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t
12413
s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t
12414
s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t
12415
s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t
12416
s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t
12417
s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t
12418
s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t
12419
s,@OBJEXT@,$OBJEXT,;t t
12420
s,@oext@,$oext,;t t
12421
s,@aext@,$aext,;t t
12422
s,@lpfx@,$lpfx,;t t
12423
s,@libm_machine_dir@,$libm_machine_dir,;t t
12424
s,@machine_dir@,$machine_dir,;t t
12425
s,@sys_dir@,$sys_dir,;t t
12426
s,@SED@,$SED,;t t
12427
s,@DLLTOOL@,$DLLTOOL,;t t
12428
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
12429
s,@OBJDUMP@,$OBJDUMP,;t t
12430
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
12431
s,@LIBTOOL@,$LIBTOOL,;t t
12432
s,@CFLAGS@,$CFLAGS,;t t
12433
s,@CPPFLAGS@,$CPPFLAGS,;t t
12434
s,@ac_ct_CC@,$ac_ct_CC,;t t
12435
s,@EXEEXT@,$EXEEXT,;t t
12436
s,@EGREP@,$EGREP,;t t
12437
s,@FGREP@,$FGREP,;t t
12438
s,@GREP@,$GREP,;t t
12439
s,@LD@,$LD,;t t
12440
s,@DUMPBIN@,$DUMPBIN,;t t
12441
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12442
s,@NM@,$NM,;t t
12443
s,@LN_S@,$LN_S,;t t
12444
s,@lt_ECHO@,$lt_ECHO,;t t
12445
s,@DSYMUTIL@,$DSYMUTIL,;t t
12446
s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12447
s,@NMEDIT@,$NMEDIT,;t t
12448
s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12449
s,@LIPO@,$LIPO,;t t
12450
s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12451
s,@OTOOL@,$OTOOL,;t t
12452
s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12453
s,@OTOOL64@,$OTOOL64,;t t
12454
s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
12455
s,@CPP@,$CPP,;t t
12456
s,@subdirs@,$subdirs,;t t
12457
s,@CRT0@,$CRT0,;t t
12458
s,@HAVE_MACHINE_DIR_TRUE@,$HAVE_MACHINE_DIR_TRUE,;t t
12459
s,@HAVE_MACHINE_DIR_FALSE@,$HAVE_MACHINE_DIR_FALSE,;t t
12460
s,@LIBOBJS@,$LIBOBJS,;t t
12461
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12462
CEOF
12463
 
12464
_ACEOF
12465
 
12466
  cat >>$CONFIG_STATUS <<\_ACEOF
12467
  # Split the substitutions into bite-sized pieces for seds with
12468
  # small command number limits, like on Digital OSF/1 and HP-UX.
12469
  ac_max_sed_lines=48
12470
  ac_sed_frag=1 # Number of current file.
12471
  ac_beg=1 # First line for current file.
12472
  ac_end=$ac_max_sed_lines # Line after last line for current file.
12473
  ac_more_lines=:
12474
  ac_sed_cmds=
12475
  while $ac_more_lines; do
12476
    if test $ac_beg -gt 1; then
12477
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12478
    else
12479
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12480
    fi
12481
    if test ! -s $tmp/subs.frag; then
12482
      ac_more_lines=false
12483
    else
12484
      # The purpose of the label and of the branching condition is to
12485
      # speed up the sed processing (if there are no `@' at all, there
12486
      # is no need to browse any of the substitutions).
12487
      # These are the two extra sed commands mentioned above.
12488
      (echo ':t
12489
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12490
      if test -z "$ac_sed_cmds"; then
12491
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12492
      else
12493
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12494
      fi
12495
      ac_sed_frag=`expr $ac_sed_frag + 1`
12496
      ac_beg=$ac_end
12497
      ac_end=`expr $ac_end + $ac_max_sed_lines`
12498
    fi
12499
  done
12500
  if test -z "$ac_sed_cmds"; then
12501
    ac_sed_cmds=cat
12502
  fi
12503
fi # test -n "$CONFIG_FILES"
12504
 
12505
_ACEOF
12506
cat >>$CONFIG_STATUS <<\_ACEOF
12507
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12508
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12509
  case $ac_file in
12510
  - | *:- | *:-:* ) # input from stdin
12511
        cat >$tmp/stdin
12512
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12513
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12514
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12515
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12516
  * )   ac_file_in=$ac_file.in ;;
12517
  esac
12518
 
12519
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12520
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12521
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12522
         X"$ac_file" : 'X\(//\)[^/]' \| \
12523
         X"$ac_file" : 'X\(//\)$' \| \
12524
         X"$ac_file" : 'X\(/\)' \| \
12525
         .     : '\(.\)' 2>/dev/null ||
12526
echo X"$ac_file" |
12527
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12528
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12529
          /^X\(\/\/\)$/{ s//\1/; q; }
12530
          /^X\(\/\).*/{ s//\1/; q; }
12531
          s/.*/./; q'`
12532
  { if $as_mkdir_p; then
12533
    mkdir -p "$ac_dir"
12534
  else
12535
    as_dir="$ac_dir"
12536
    as_dirs=
12537
    while test ! -d "$as_dir"; do
12538
      as_dirs="$as_dir $as_dirs"
12539
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12540
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12541
         X"$as_dir" : 'X\(//\)[^/]' \| \
12542
         X"$as_dir" : 'X\(//\)$' \| \
12543
         X"$as_dir" : 'X\(/\)' \| \
12544
         .     : '\(.\)' 2>/dev/null ||
12545
echo X"$as_dir" |
12546
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12547
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12548
          /^X\(\/\/\)$/{ s//\1/; q; }
12549
          /^X\(\/\).*/{ s//\1/; q; }
12550
          s/.*/./; q'`
12551
    done
12552
    test ! -n "$as_dirs" || mkdir $as_dirs
12553
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12554
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12555
   { (exit 1); exit 1; }; }; }
12556
 
12557
  ac_builddir=.
12558
 
12559
if test "$ac_dir" != .; then
12560
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12561
  # A "../" for each directory in $ac_dir_suffix.
12562
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12563
else
12564
  ac_dir_suffix= ac_top_builddir=
12565
fi
12566
 
12567
case $srcdir in
12568
  .)  # No --srcdir option.  We are building in place.
12569
    ac_srcdir=.
12570
    if test -z "$ac_top_builddir"; then
12571
       ac_top_srcdir=.
12572
    else
12573
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12574
    fi ;;
12575
  [\\/]* | ?:[\\/]* )  # Absolute path.
12576
    ac_srcdir=$srcdir$ac_dir_suffix;
12577
    ac_top_srcdir=$srcdir ;;
12578
  *) # Relative path.
12579
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12580
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12581
esac
12582
 
12583
# Do not use `cd foo && pwd` to compute absolute paths, because
12584
# the directories may not exist.
12585
case `pwd` in
12586
.) ac_abs_builddir="$ac_dir";;
12587
*)
12588
  case "$ac_dir" in
12589
  .) ac_abs_builddir=`pwd`;;
12590
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12591
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12592
  esac;;
12593
esac
12594
case $ac_abs_builddir in
12595
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12596
*)
12597
  case ${ac_top_builddir}. in
12598
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12599
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12600
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12601
  esac;;
12602
esac
12603
case $ac_abs_builddir in
12604
.) ac_abs_srcdir=$ac_srcdir;;
12605
*)
12606
  case $ac_srcdir in
12607
  .) ac_abs_srcdir=$ac_abs_builddir;;
12608
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12609
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12610
  esac;;
12611
esac
12612
case $ac_abs_builddir in
12613
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12614
*)
12615
  case $ac_top_srcdir in
12616
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12617
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12618
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12619
  esac;;
12620
esac
12621
 
12622
 
12623
  case $INSTALL in
12624
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12625
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12626
  esac
12627
 
12628
  if test x"$ac_file" != x-; then
12629
    { echo "$as_me:$LINENO: creating $ac_file" >&5
12630
echo "$as_me: creating $ac_file" >&6;}
12631
    rm -f "$ac_file"
12632
  fi
12633
  # Let's still pretend it is `configure' which instantiates (i.e., don't
12634
  # use $as_me), people would be surprised to read:
12635
  #    /* config.h.  Generated by config.status.  */
12636
  if test x"$ac_file" = x-; then
12637
    configure_input=
12638
  else
12639
    configure_input="$ac_file.  "
12640
  fi
12641
  configure_input=$configure_input"Generated from `echo $ac_file_in |
12642
                                     sed 's,.*/,,'` by configure."
12643
 
12644
  # First look for the input files in the build tree, otherwise in the
12645
  # src tree.
12646
  ac_file_inputs=`IFS=:
12647
    for f in $ac_file_in; do
12648
      case $f in
12649
      -) echo $tmp/stdin ;;
12650
      [\\/$]*)
12651
         # Absolute (can't be DOS-style, as IFS=:)
12652
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12653
echo "$as_me: error: cannot find input file: $f" >&2;}
12654
   { (exit 1); exit 1; }; }
12655
         echo "$f";;
12656
      *) # Relative
12657
         if test -f "$f"; then
12658
           # Build tree
12659
           echo "$f"
12660
         elif test -f "$srcdir/$f"; then
12661
           # Source tree
12662
           echo "$srcdir/$f"
12663
         else
12664
           # /dev/null tree
12665
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12666
echo "$as_me: error: cannot find input file: $f" >&2;}
12667
   { (exit 1); exit 1; }; }
12668
         fi;;
12669
      esac
12670
    done` || { (exit 1); exit 1; }
12671
_ACEOF
12672
cat >>$CONFIG_STATUS <<_ACEOF
12673
  sed "$ac_vpsub
12674
$extrasub
12675
_ACEOF
12676
cat >>$CONFIG_STATUS <<\_ACEOF
12677
:t
12678
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12679
s,@configure_input@,$configure_input,;t t
12680
s,@srcdir@,$ac_srcdir,;t t
12681
s,@abs_srcdir@,$ac_abs_srcdir,;t t
12682
s,@top_srcdir@,$ac_top_srcdir,;t t
12683
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12684
s,@builddir@,$ac_builddir,;t t
12685
s,@abs_builddir@,$ac_abs_builddir,;t t
12686
s,@top_builddir@,$ac_top_builddir,;t t
12687
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12688
s,@INSTALL@,$ac_INSTALL,;t t
12689
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12690
  rm -f $tmp/stdin
12691
  if test x"$ac_file" != x-; then
12692
    mv $tmp/out $ac_file
12693
  else
12694
    cat $tmp/out
12695
    rm -f $tmp/out
12696
  fi
12697
 
12698
done
12699
_ACEOF
12700
cat >>$CONFIG_STATUS <<\_ACEOF
12701
 
12702
#
12703
# CONFIG_COMMANDS section.
12704
#
12705
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12706
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12707
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12708
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12709
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12710
         X"$ac_dest" : 'X\(//\)[^/]' \| \
12711
         X"$ac_dest" : 'X\(//\)$' \| \
12712
         X"$ac_dest" : 'X\(/\)' \| \
12713
         .     : '\(.\)' 2>/dev/null ||
12714
echo X"$ac_dest" |
12715
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12716
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12717
          /^X\(\/\/\)$/{ s//\1/; q; }
12718
          /^X\(\/\).*/{ s//\1/; q; }
12719
          s/.*/./; q'`
12720
  { if $as_mkdir_p; then
12721
    mkdir -p "$ac_dir"
12722
  else
12723
    as_dir="$ac_dir"
12724
    as_dirs=
12725
    while test ! -d "$as_dir"; do
12726
      as_dirs="$as_dir $as_dirs"
12727
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12728
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12729
         X"$as_dir" : 'X\(//\)[^/]' \| \
12730
         X"$as_dir" : 'X\(//\)$' \| \
12731
         X"$as_dir" : 'X\(/\)' \| \
12732
         .     : '\(.\)' 2>/dev/null ||
12733
echo X"$as_dir" |
12734
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12735
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12736
          /^X\(\/\/\)$/{ s//\1/; q; }
12737
          /^X\(\/\).*/{ s//\1/; q; }
12738
          s/.*/./; q'`
12739
    done
12740
    test ! -n "$as_dirs" || mkdir $as_dirs
12741
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12742
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12743
   { (exit 1); exit 1; }; }; }
12744
 
12745
  ac_builddir=.
12746
 
12747
if test "$ac_dir" != .; then
12748
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12749
  # A "../" for each directory in $ac_dir_suffix.
12750
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12751
else
12752
  ac_dir_suffix= ac_top_builddir=
12753
fi
12754
 
12755
case $srcdir in
12756
  .)  # No --srcdir option.  We are building in place.
12757
    ac_srcdir=.
12758
    if test -z "$ac_top_builddir"; then
12759
       ac_top_srcdir=.
12760
    else
12761
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12762
    fi ;;
12763
  [\\/]* | ?:[\\/]* )  # Absolute path.
12764
    ac_srcdir=$srcdir$ac_dir_suffix;
12765
    ac_top_srcdir=$srcdir ;;
12766
  *) # Relative path.
12767
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12768
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12769
esac
12770
 
12771
# Do not use `cd foo && pwd` to compute absolute paths, because
12772
# the directories may not exist.
12773
case `pwd` in
12774
.) ac_abs_builddir="$ac_dir";;
12775
*)
12776
  case "$ac_dir" in
12777
  .) ac_abs_builddir=`pwd`;;
12778
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12779
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12780
  esac;;
12781
esac
12782
case $ac_abs_builddir in
12783
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12784
*)
12785
  case ${ac_top_builddir}. in
12786
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12787
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12788
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12789
  esac;;
12790
esac
12791
case $ac_abs_builddir in
12792
.) ac_abs_srcdir=$ac_srcdir;;
12793
*)
12794
  case $ac_srcdir in
12795
  .) ac_abs_srcdir=$ac_abs_builddir;;
12796
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12797
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12798
  esac;;
12799
esac
12800
case $ac_abs_builddir in
12801
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12802
*)
12803
  case $ac_top_srcdir in
12804
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12805
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12806
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12807
  esac;;
12808
esac
12809
 
12810
 
12811
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12812
echo "$as_me: executing $ac_dest commands" >&6;}
12813
  case $ac_dest in
12814
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12815
  # Strip MF so we end up with the name of the file.
12816
  mf=`echo "$mf" | sed -e 's/:.*$//'`
12817
  # Check whether this is an Automake generated Makefile or not.
12818
  # We used to match only the files named `Makefile.in', but
12819
  # some people rename them; so instead we look at the file content.
12820
  # Grep'ing the first line is not enough: some people post-process
12821
  # each Makefile.in and add a new line on top of each file to say so.
12822
  # So let's grep whole file.
12823
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12824
    dirpart=`(dirname "$mf") 2>/dev/null ||
12825
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12826
         X"$mf" : 'X\(//\)[^/]' \| \
12827
         X"$mf" : 'X\(//\)$' \| \
12828
         X"$mf" : 'X\(/\)' \| \
12829
         .     : '\(.\)' 2>/dev/null ||
12830
echo X"$mf" |
12831
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12832
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12833
          /^X\(\/\/\)$/{ s//\1/; q; }
12834
          /^X\(\/\).*/{ s//\1/; q; }
12835
          s/.*/./; q'`
12836
  else
12837
    continue
12838
  fi
12839
  # Extract the definition of DEPDIR, am__include, and am__quote
12840
  # from the Makefile without running `make'.
12841
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12842
  test -z "$DEPDIR" && continue
12843
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
12844
  test -z "am__include" && continue
12845
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12846
  # When using ansi2knr, U may be empty or an underscore; expand it
12847
  U=`sed -n 's/^U = //p' < "$mf"`
12848
  # Find all dependency output files, they are included files with
12849
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
12850
  # simplest approach to changing $(DEPDIR) to its actual value in the
12851
  # expansion.
12852
  for file in `sed -n "
12853
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12854
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12855
    # Make sure the directory exists.
12856
    test -f "$dirpart/$file" && continue
12857
    fdir=`(dirname "$file") 2>/dev/null ||
12858
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12859
         X"$file" : 'X\(//\)[^/]' \| \
12860
         X"$file" : 'X\(//\)$' \| \
12861
         X"$file" : 'X\(/\)' \| \
12862
         .     : '\(.\)' 2>/dev/null ||
12863
echo X"$file" |
12864
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12865
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12866
          /^X\(\/\/\)$/{ s//\1/; q; }
12867
          /^X\(\/\).*/{ s//\1/; q; }
12868
          s/.*/./; q'`
12869
    { if $as_mkdir_p; then
12870
    mkdir -p $dirpart/$fdir
12871
  else
12872
    as_dir=$dirpart/$fdir
12873
    as_dirs=
12874
    while test ! -d "$as_dir"; do
12875
      as_dirs="$as_dir $as_dirs"
12876
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12877
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12878
         X"$as_dir" : 'X\(//\)[^/]' \| \
12879
         X"$as_dir" : 'X\(//\)$' \| \
12880
         X"$as_dir" : 'X\(/\)' \| \
12881
         .     : '\(.\)' 2>/dev/null ||
12882
echo X"$as_dir" |
12883
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12884
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12885
          /^X\(\/\/\)$/{ s//\1/; q; }
12886
          /^X\(\/\).*/{ s//\1/; q; }
12887
          s/.*/./; q'`
12888
    done
12889
    test ! -n "$as_dirs" || mkdir $as_dirs
12890
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12891
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12892
   { (exit 1); exit 1; }; }; }
12893
 
12894
    # echo "creating $dirpart/$file"
12895
    echo '# dummy' > "$dirpart/$file"
12896
  done
12897
done
12898
 ;;
12899
    libtool )
12900
 
12901
    # See if we are running on zsh, and set the options which allow our
12902
    # commands through without removal of \ escapes.
12903
    if test -n "${ZSH_VERSION+set}" ; then
12904
      setopt NO_GLOB_SUBST
12905
    fi
12906
 
12907
    cfgfile="${ofile}T"
12908
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12909
    $RM "$cfgfile"
12910
 
12911
    cat <<_LT_EOF >> "$cfgfile"
12912
#! $SHELL
12913
 
12914
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12915
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12916
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12917
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12918
#
12919
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12920
#                 2006, 2007, 2008 Free Software Foundation, Inc.
12921
#   Written by Gordon Matzigkeit, 1996
12922
#
12923
#   This file is part of GNU Libtool.
12924
#
12925
# GNU Libtool is free software; you can redistribute it and/or
12926
# modify it under the terms of the GNU General Public License as
12927
# published by the Free Software Foundation; either version 2 of
12928
# the License, or (at your option) any later version.
12929
#
12930
# As a special exception to the GNU General Public License,
12931
# if you distribute this file as part of a program or library that
12932
# is built using GNU Libtool, you may include this file under the
12933
# same distribution terms that you use for the rest of that program.
12934
#
12935
# GNU Libtool is distributed in the hope that it will be useful,
12936
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12937
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12938
# GNU General Public License for more details.
12939
#
12940
# You should have received a copy of the GNU General Public License
12941
# along with GNU Libtool; see the file COPYING.  If not, a copy
12942
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12943
# obtained by writing to the Free Software Foundation, Inc.,
12944
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12945
 
12946
 
12947
# The names of the tagged configurations supported by this script.
12948
available_tags=""
12949
 
12950
# ### BEGIN LIBTOOL CONFIG
12951
 
12952
# A sed program that does not truncate output.
12953
SED=$lt_SED
12954
 
12955
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12956
Xsed="\$SED -e 1s/^X//"
12957
 
12958
# Assembler program.
12959
AS=$AS
12960
 
12961
# DLL creation program.
12962
DLLTOOL=$DLLTOOL
12963
 
12964
# Object dumper program.
12965
OBJDUMP=$OBJDUMP
12966
 
12967
# Which release of libtool.m4 was used?
12968
macro_version=$macro_version
12969
macro_revision=$macro_revision
12970
 
12971
# Whether or not to build shared libraries.
12972
build_libtool_libs=$enable_shared
12973
 
12974
# Whether or not to build static libraries.
12975
build_old_libs=$enable_static
12976
 
12977
# What type of objects to build.
12978
pic_mode=$pic_mode
12979
 
12980
# Whether or not to optimize for fast installation.
12981
fast_install=$enable_fast_install
12982
 
12983
# The host system.
12984
host_alias=$host_alias
12985
host=$host
12986
host_os=$host_os
12987
 
12988
# The build system.
12989
build_alias=$build_alias
12990
build=$build
12991
build_os=$build_os
12992
 
12993
# A grep program that handles long lines.
12994
GREP=$lt_GREP
12995
 
12996
# An ERE matcher.
12997
EGREP=$lt_EGREP
12998
 
12999
# A literal string matcher.
13000
FGREP=$lt_FGREP
13001
 
13002
# A BSD- or MS-compatible name lister.
13003
NM=$lt_NM
13004
 
13005
# Whether we need soft or hard links.
13006
LN_S=$lt_LN_S
13007
 
13008
# What is the maximum length of a command?
13009
max_cmd_len=$max_cmd_len
13010
 
13011
# Object file suffix (normally "o").
13012
objext=$ac_objext
13013
 
13014
# Executable file suffix (normally "").
13015
exeext=$exeext
13016
 
13017
# whether the shell understands "unset".
13018
lt_unset=$lt_unset
13019
 
13020
# turn spaces into newlines.
13021
SP2NL=$lt_lt_SP2NL
13022
 
13023
# turn newlines into spaces.
13024
NL2SP=$lt_lt_NL2SP
13025
 
13026
# How to create reloadable object files.
13027
reload_flag=$lt_reload_flag
13028
reload_cmds=$lt_reload_cmds
13029
 
13030
# Method to check whether dependent libraries are shared objects.
13031
deplibs_check_method=$lt_deplibs_check_method
13032
 
13033
# Command to use when deplibs_check_method == "file_magic".
13034
file_magic_cmd=$lt_file_magic_cmd
13035
 
13036
# The archiver.
13037
AR=$lt_AR
13038
AR_FLAGS=$lt_AR_FLAGS
13039
 
13040
# A symbol stripping program.
13041
STRIP=$lt_STRIP
13042
 
13043
# Commands used to install an old-style archive.
13044
RANLIB=$lt_RANLIB
13045
old_postinstall_cmds=$lt_old_postinstall_cmds
13046
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13047
 
13048
# A C compiler.
13049
LTCC=$lt_CC
13050
 
13051
# LTCC compiler flags.
13052
LTCFLAGS=$lt_CFLAGS
13053
 
13054
# Take the output of nm and produce a listing of raw symbols and C names.
13055
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13056
 
13057
# Transform the output of nm in a proper C declaration.
13058
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13059
 
13060
# Transform the output of nm in a C name address pair.
13061
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13062
 
13063
# Transform the output of nm in a C name address pair when lib prefix is needed.
13064
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13065
 
13066
# The name of the directory that contains temporary libtool files.
13067
objdir=$objdir
13068
 
13069
# Shell to use when invoking shell scripts.
13070
SHELL=$lt_SHELL
13071
 
13072
# An echo program that does not interpret backslashes.
13073
ECHO=$lt_ECHO
13074
 
13075
# Used to examine libraries when file_magic_cmd begins with "file".
13076
MAGIC_CMD=$MAGIC_CMD
13077
 
13078
# Must we lock files when doing compilation?
13079
need_locks=$lt_need_locks
13080
 
13081
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13082
DSYMUTIL=$lt_DSYMUTIL
13083
 
13084
# Tool to change global to local symbols on Mac OS X.
13085
NMEDIT=$lt_NMEDIT
13086
 
13087
# Tool to manipulate fat objects and archives on Mac OS X.
13088
LIPO=$lt_LIPO
13089
 
13090
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13091
OTOOL=$lt_OTOOL
13092
 
13093
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13094
OTOOL64=$lt_OTOOL64
13095
 
13096
# Old archive suffix (normally "a").
13097
libext=$libext
13098
 
13099
# Shared library suffix (normally ".so").
13100
shrext_cmds=$lt_shrext_cmds
13101
 
13102
# The commands to extract the exported symbol list from a shared archive.
13103
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13104
 
13105
# Variables whose values should be saved in libtool wrapper scripts and
13106
# restored at link time.
13107
variables_saved_for_relink=$lt_variables_saved_for_relink
13108
 
13109
# Do we need the "lib" prefix for modules?
13110
need_lib_prefix=$need_lib_prefix
13111
 
13112
# Do we need a version for libraries?
13113
need_version=$need_version
13114
 
13115
# Library versioning type.
13116
version_type=$version_type
13117
 
13118
# Shared library runtime path variable.
13119
runpath_var=$runpath_var
13120
 
13121
# Shared library path variable.
13122
shlibpath_var=$shlibpath_var
13123
 
13124
# Is shlibpath searched before the hard-coded library search path?
13125
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13126
 
13127
# Format of library name prefix.
13128
libname_spec=$lt_libname_spec
13129
 
13130
# List of archive names.  First name is the real one, the rest are links.
13131
# The last name is the one that the linker finds with -lNAME
13132
library_names_spec=$lt_library_names_spec
13133
 
13134
# The coded name of the library, if different from the real name.
13135
soname_spec=$lt_soname_spec
13136
 
13137
# Command to use after installation of a shared archive.
13138
postinstall_cmds=$lt_postinstall_cmds
13139
 
13140
# Command to use after uninstallation of a shared archive.
13141
postuninstall_cmds=$lt_postuninstall_cmds
13142
 
13143
# Commands used to finish a libtool library installation in a directory.
13144
finish_cmds=$lt_finish_cmds
13145
 
13146
# As "finish_cmds", except a single script fragment to be evaled but
13147
# not shown.
13148
finish_eval=$lt_finish_eval
13149
 
13150
# Whether we should hardcode library paths into libraries.
13151
hardcode_into_libs=$hardcode_into_libs
13152
 
13153
# Compile-time system search path for libraries.
13154
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13155
 
13156
# Run-time system search path for libraries.
13157
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13158
 
13159
# Whether dlopen is supported.
13160
dlopen_support=$enable_dlopen
13161
 
13162
# Whether dlopen of programs is supported.
13163
dlopen_self=$enable_dlopen_self
13164
 
13165
# Whether dlopen of statically linked programs is supported.
13166
dlopen_self_static=$enable_dlopen_self_static
13167
 
13168
# Commands to strip libraries.
13169
old_striplib=$lt_old_striplib
13170
striplib=$lt_striplib
13171
 
13172
 
13173
# The linker used to build libraries.
13174
LD=$lt_LD
13175
 
13176
# Commands used to build an old-style archive.
13177
old_archive_cmds=$lt_old_archive_cmds
13178
 
13179
# A language specific compiler.
13180
CC=$lt_compiler
13181
 
13182
# Is the compiler the GNU compiler?
13183
with_gcc=$GCC
13184
 
13185
# Compiler flag to turn off builtin functions.
13186
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13187
 
13188
# How to pass a linker flag through the compiler.
13189
wl=$lt_lt_prog_compiler_wl
13190
 
13191
# Additional compiler flags for building library objects.
13192
pic_flag=$lt_lt_prog_compiler_pic
13193
 
13194
# Compiler flag to prevent dynamic linking.
13195
link_static_flag=$lt_lt_prog_compiler_static
13196
 
13197
# Does compiler simultaneously support -c and -o options?
13198
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13199
 
13200
# Whether or not to add -lc for building shared libraries.
13201
build_libtool_need_lc=$archive_cmds_need_lc
13202
 
13203
# Whether or not to disallow shared libs when runtime libs are static.
13204
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13205
 
13206
# Compiler flag to allow reflexive dlopens.
13207
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13208
 
13209
# Compiler flag to generate shared objects directly from archives.
13210
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13211
 
13212
# Whether the compiler copes with passing no objects directly.
13213
compiler_needs_object=$lt_compiler_needs_object
13214
 
13215
# Create an old-style archive from a shared archive.
13216
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13217
 
13218
# Create a temporary old-style archive to link instead of a shared archive.
13219
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13220
 
13221
# Commands used to build a shared archive.
13222
archive_cmds=$lt_archive_cmds
13223
archive_expsym_cmds=$lt_archive_expsym_cmds
13224
 
13225
# Commands used to build a loadable module if different from building
13226
# a shared archive.
13227
module_cmds=$lt_module_cmds
13228
module_expsym_cmds=$lt_module_expsym_cmds
13229
 
13230
# Whether we are building with GNU ld or not.
13231
with_gnu_ld=$lt_with_gnu_ld
13232
 
13233
# Flag that allows shared libraries with undefined symbols to be built.
13234
allow_undefined_flag=$lt_allow_undefined_flag
13235
 
13236
# Flag that enforces no undefined symbols.
13237
no_undefined_flag=$lt_no_undefined_flag
13238
 
13239
# Flag to hardcode \$libdir into a binary during linking.
13240
# This must work even if \$libdir does not exist
13241
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13242
 
13243
# If ld is used when linking, flag to hardcode \$libdir into a binary
13244
# during linking.  This must work even if \$libdir does not exist.
13245
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13246
 
13247
# Whether we need a single "-rpath" flag with a separated argument.
13248
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13249
 
13250
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13251
# DIR into the resulting binary.
13252
hardcode_direct=$hardcode_direct
13253
 
13254
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13255
# DIR into the resulting binary and the resulting library dependency is
13256
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13257
# library is relocated.
13258
hardcode_direct_absolute=$hardcode_direct_absolute
13259
 
13260
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13261
# into the resulting binary.
13262
hardcode_minus_L=$hardcode_minus_L
13263
 
13264
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13265
# into the resulting binary.
13266
hardcode_shlibpath_var=$hardcode_shlibpath_var
13267
 
13268
# Set to "yes" if building a shared library automatically hardcodes DIR
13269
# into the library and all subsequent libraries and executables linked
13270
# against it.
13271
hardcode_automatic=$hardcode_automatic
13272
 
13273
# Set to yes if linker adds runtime paths of dependent libraries
13274
# to runtime path list.
13275
inherit_rpath=$inherit_rpath
13276
 
13277
# Whether libtool must link a program against all its dependency libraries.
13278
link_all_deplibs=$link_all_deplibs
13279
 
13280
# Fix the shell variable \$srcfile for the compiler.
13281
fix_srcfile_path=$lt_fix_srcfile_path
13282
 
13283
# Set to "yes" if exported symbols are required.
13284
always_export_symbols=$always_export_symbols
13285
 
13286
# The commands to list exported symbols.
13287
export_symbols_cmds=$lt_export_symbols_cmds
13288
 
13289
# Symbols that should not be listed in the preloaded symbols.
13290
exclude_expsyms=$lt_exclude_expsyms
13291
 
13292
# Symbols that must always be exported.
13293
include_expsyms=$lt_include_expsyms
13294
 
13295
# Commands necessary for linking programs (against libraries) with templates.
13296
prelink_cmds=$lt_prelink_cmds
13297
 
13298
# Specify filename containing input files.
13299
file_list_spec=$lt_file_list_spec
13300
 
13301
# How to hardcode a shared library path into an executable.
13302
hardcode_action=$hardcode_action
13303
 
13304
# ### END LIBTOOL CONFIG
13305
 
13306
_LT_EOF
13307
 
13308
  case $host_os in
13309
  aix3*)
13310
    cat <<\_LT_EOF >> "$cfgfile"
13311
# AIX sometimes has problems with the GCC collect2 program.  For some
13312
# reason, if we set the COLLECT_NAMES environment variable, the problems
13313
# vanish in a puff of smoke.
13314
if test "X${COLLECT_NAMES+set}" != Xset; then
13315
  COLLECT_NAMES=
13316
  export COLLECT_NAMES
13317
fi
13318
_LT_EOF
13319
    ;;
13320
  esac
13321
 
13322
 
13323
ltmain="$ac_aux_dir/ltmain.sh"
13324
 
13325
 
13326
  # We use sed instead of cat because bash on DJGPP gets confused if
13327
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13328
  # text mode, it properly converts lines to CR/LF.  This bash problem
13329
  # is reportedly fixed, but why not run on old versions too?
13330
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13331
    || (rm -f "$cfgfile"; exit 1)
13332
 
13333
  case $xsi_shell in
13334
  yes)
13335
    cat << \_LT_EOF >> "$cfgfile"
13336
 
13337
# func_dirname file append nondir_replacement
13338
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13339
# otherwise set result to NONDIR_REPLACEMENT.
13340
func_dirname ()
13341
{
13342
  case ${1} in
13343
    */*) func_dirname_result="${1%/*}${2}" ;;
13344
    *  ) func_dirname_result="${3}" ;;
13345
  esac
13346
}
13347
 
13348
# func_basename file
13349
func_basename ()
13350
{
13351
  func_basename_result="${1##*/}"
13352
}
13353
 
13354
# func_dirname_and_basename file append nondir_replacement
13355
# perform func_basename and func_dirname in a single function
13356
# call:
13357
#   dirname:  Compute the dirname of FILE.  If nonempty,
13358
#             add APPEND to the result, otherwise set result
13359
#             to NONDIR_REPLACEMENT.
13360
#             value returned in "$func_dirname_result"
13361
#   basename: Compute filename of FILE.
13362
#             value retuned in "$func_basename_result"
13363
# Implementation must be kept synchronized with func_dirname
13364
# and func_basename. For efficiency, we do not delegate to
13365
# those functions but instead duplicate the functionality here.
13366
func_dirname_and_basename ()
13367
{
13368
  case ${1} in
13369
    */*) func_dirname_result="${1%/*}${2}" ;;
13370
    *  ) func_dirname_result="${3}" ;;
13371
  esac
13372
  func_basename_result="${1##*/}"
13373
}
13374
 
13375
# func_stripname prefix suffix name
13376
# strip PREFIX and SUFFIX off of NAME.
13377
# PREFIX and SUFFIX must not contain globbing or regex special
13378
# characters, hashes, percent signs, but SUFFIX may contain a leading
13379
# dot (in which case that matches only a dot).
13380
func_stripname ()
13381
{
13382
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13383
  # positional parameters, so assign one to ordinary parameter first.
13384
  func_stripname_result=${3}
13385
  func_stripname_result=${func_stripname_result#"${1}"}
13386
  func_stripname_result=${func_stripname_result%"${2}"}
13387
}
13388
 
13389
# func_opt_split
13390
func_opt_split ()
13391
{
13392
  func_opt_split_opt=${1%%=*}
13393
  func_opt_split_arg=${1#*=}
13394
}
13395
 
13396
# func_lo2o object
13397
func_lo2o ()
13398
{
13399
  case ${1} in
13400
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13401
    *)    func_lo2o_result=${1} ;;
13402
  esac
13403
}
13404
 
13405
# func_xform libobj-or-source
13406
func_xform ()
13407
{
13408
  func_xform_result=${1%.*}.lo
13409
}
13410
 
13411
# func_arith arithmetic-term...
13412
func_arith ()
13413
{
13414
  func_arith_result=$(( $* ))
13415
}
13416
 
13417
# func_len string
13418
# STRING may not start with a hyphen.
13419
func_len ()
13420
{
13421
  func_len_result=${#1}
13422
}
13423
 
13424
_LT_EOF
13425
    ;;
13426
  *) # Bourne compatible functions.
13427
    cat << \_LT_EOF >> "$cfgfile"
13428
 
13429
# func_dirname file append nondir_replacement
13430
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13431
# otherwise set result to NONDIR_REPLACEMENT.
13432
func_dirname ()
13433
{
13434
  # Extract subdirectory from the argument.
13435
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13436
  if test "X$func_dirname_result" = "X${1}"; then
13437
    func_dirname_result="${3}"
13438
  else
13439
    func_dirname_result="$func_dirname_result${2}"
13440
  fi
13441
}
13442
 
13443
# func_basename file
13444
func_basename ()
13445
{
13446
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13447
}
13448
 
13449
 
13450
# func_stripname prefix suffix name
13451
# strip PREFIX and SUFFIX off of NAME.
13452
# PREFIX and SUFFIX must not contain globbing or regex special
13453
# characters, hashes, percent signs, but SUFFIX may contain a leading
13454
# dot (in which case that matches only a dot).
13455
# func_strip_suffix prefix name
13456
func_stripname ()
13457
{
13458
  case ${2} in
13459
    .*) func_stripname_result=`$ECHO "X${3}" \
13460
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13461
    *)  func_stripname_result=`$ECHO "X${3}" \
13462
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13463
  esac
13464
}
13465
 
13466
# sed scripts:
13467
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13468
my_sed_long_arg='1s/^-[^=]*=//'
13469
 
13470
# func_opt_split
13471
func_opt_split ()
13472
{
13473
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13474
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13475
}
13476
 
13477
# func_lo2o object
13478
func_lo2o ()
13479
{
13480
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13481
}
13482
 
13483
# func_xform libobj-or-source
13484
func_xform ()
13485
{
13486
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13487
}
13488
 
13489
# func_arith arithmetic-term...
13490
func_arith ()
13491
{
13492
  func_arith_result=`expr "$@"`
13493
}
13494
 
13495
# func_len string
13496
# STRING may not start with a hyphen.
13497
func_len ()
13498
{
13499
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13500
}
13501
 
13502
_LT_EOF
13503
esac
13504
 
13505
case $lt_shell_append in
13506
  yes)
13507
    cat << \_LT_EOF >> "$cfgfile"
13508
 
13509
# func_append var value
13510
# Append VALUE to the end of shell variable VAR.
13511
func_append ()
13512
{
13513
  eval "$1+=\$2"
13514
}
13515
_LT_EOF
13516
    ;;
13517
  *)
13518
    cat << \_LT_EOF >> "$cfgfile"
13519
 
13520
# func_append var value
13521
# Append VALUE to the end of shell variable VAR.
13522
func_append ()
13523
{
13524
  eval "$1=\$$1\$2"
13525
}
13526
 
13527
_LT_EOF
13528
    ;;
13529
  esac
13530
 
13531
 
13532
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13533
    || (rm -f "$cfgfile"; exit 1)
13534
 
13535
  mv -f "$cfgfile" "$ofile" ||
13536
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13537
  chmod +x "$ofile"
13538
 
13539
 ;;
13540
  esac
13541
done
13542
_ACEOF
13543
 
13544
cat >>$CONFIG_STATUS <<\_ACEOF
13545
 
13546
{ (exit 0); exit 0; }
13547
_ACEOF
13548
chmod +x $CONFIG_STATUS
13549
ac_clean_files=$ac_clean_files_save
13550
 
13551
 
13552
# configure is writing to config.log, and then calls config.status.
13553
# config.status does its own redirection, appending to config.log.
13554
# Unfortunately, on DOS this fails, as config.log is still kept open
13555
# by configure, so config.status won't be able to write to it; its
13556
# output is simply discarded.  So we exec the FD to /dev/null,
13557
# effectively closing config.log, so it can be properly (re)opened and
13558
# appended to by config.status.  When coming back to configure, we
13559
# need to make the FD available again.
13560
if test "$no_create" != yes; then
13561
  ac_cs_success=:
13562
  ac_config_status_args=
13563
  test "$silent" = yes &&
13564
    ac_config_status_args="$ac_config_status_args --quiet"
13565
  exec 5>/dev/null
13566
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13567
  exec 5>>config.log
13568
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13569
  # would make configure fail if this is the last instruction.
13570
  $ac_cs_success || { (exit 1); exit 1; }
13571
fi
13572
 
13573
#
13574
# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
13575
#
13576
if test "$no_recursion" != yes; then
13577
 
13578
  # Remove --cache-file and --srcdir arguments so they do not pile up.
13579
  ac_sub_configure_args=
13580
  ac_prev=
13581
  eval "set x $ac_configure_args"
13582
  shift
13583
  for ac_arg
13584
  do
13585
    if test -n "$ac_prev"; then
13586
      ac_prev=
13587
      continue
13588
    fi
13589
    case $ac_arg in
13590
    -cache-file | --cache-file | --cache-fil | --cache-fi \
13591
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13592
      ac_prev=cache_file ;;
13593
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13594
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13595
    | --c=*)
13596
      ;;
13597
    --config-cache | -C)
13598
      ;;
13599
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13600
      ac_prev=srcdir ;;
13601
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13602
      ;;
13603
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13604
      ac_prev=prefix ;;
13605
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13606
      ;;
13607
    *)
13608
      case $ac_arg in
13609
      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13610
      esac
13611
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
13612
    esac
13613
  done
13614
 
13615
  # Always prepend --prefix to ensure using the same prefix
13616
  # in subdir configurations.
13617
  ac_arg="--prefix=$prefix"
13618
  case $ac_arg in
13619
  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13620
  esac
13621
  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
13622
 
13623
  ac_popdir=`pwd`
13624
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
13625
 
13626
    # Do not complain, so a configure script can configure whichever
13627
    # parts of a large source tree are present.
13628
    test -d "$srcdir/$ac_dir" || continue
13629
 
13630
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
13631
echo "$as_me: configuring in $ac_dir" >&6;}
13632
    { if $as_mkdir_p; then
13633
    mkdir -p "$ac_dir"
13634
  else
13635
    as_dir="$ac_dir"
13636
    as_dirs=
13637
    while test ! -d "$as_dir"; do
13638
      as_dirs="$as_dir $as_dirs"
13639
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13640
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13641
         X"$as_dir" : 'X\(//\)[^/]' \| \
13642
         X"$as_dir" : 'X\(//\)$' \| \
13643
         X"$as_dir" : 'X\(/\)' \| \
13644
         .     : '\(.\)' 2>/dev/null ||
13645
echo X"$as_dir" |
13646
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13647
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13648
          /^X\(\/\/\)$/{ s//\1/; q; }
13649
          /^X\(\/\).*/{ s//\1/; q; }
13650
          s/.*/./; q'`
13651
    done
13652
    test ! -n "$as_dirs" || mkdir $as_dirs
13653
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13654
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13655
   { (exit 1); exit 1; }; }; }
13656
 
13657
    ac_builddir=.
13658
 
13659
if test "$ac_dir" != .; then
13660
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13661
  # A "../" for each directory in $ac_dir_suffix.
13662
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13663
else
13664
  ac_dir_suffix= ac_top_builddir=
13665
fi
13666
 
13667
case $srcdir in
13668
  .)  # No --srcdir option.  We are building in place.
13669
    ac_srcdir=.
13670
    if test -z "$ac_top_builddir"; then
13671
       ac_top_srcdir=.
13672
    else
13673
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13674
    fi ;;
13675
  [\\/]* | ?:[\\/]* )  # Absolute path.
13676
    ac_srcdir=$srcdir$ac_dir_suffix;
13677
    ac_top_srcdir=$srcdir ;;
13678
  *) # Relative path.
13679
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13680
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13681
esac
13682
 
13683
# Do not use `cd foo && pwd` to compute absolute paths, because
13684
# the directories may not exist.
13685
case `pwd` in
13686
.) ac_abs_builddir="$ac_dir";;
13687
*)
13688
  case "$ac_dir" in
13689
  .) ac_abs_builddir=`pwd`;;
13690
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13691
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13692
  esac;;
13693
esac
13694
case $ac_abs_builddir in
13695
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13696
*)
13697
  case ${ac_top_builddir}. in
13698
  .) ac_abs_top_builddir=$ac_abs_builddir;;
13699
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13700
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13701
  esac;;
13702
esac
13703
case $ac_abs_builddir in
13704
.) ac_abs_srcdir=$ac_srcdir;;
13705
*)
13706
  case $ac_srcdir in
13707
  .) ac_abs_srcdir=$ac_abs_builddir;;
13708
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13709
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13710
  esac;;
13711
esac
13712
case $ac_abs_builddir in
13713
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13714
*)
13715
  case $ac_top_srcdir in
13716
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13717
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13718
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13719
  esac;;
13720
esac
13721
 
13722
 
13723
    cd "$ac_dir"
13724
 
13725
    # Check for guested configure; otherwise get Cygnus style configure.
13726
    if test -f "$ac_srcdir/configure.gnu"; then
13727
      ac_sub_configure=$ac_srcdir/configure.gnu
13728
    elif test -f "$ac_srcdir/configure"; then
13729
      ac_sub_configure=$ac_srcdir/configure
13730
    elif test -f "$ac_srcdir/configure.in"; then
13731
      # This should be Cygnus configure.
13732
      ac_sub_configure=$ac_aux_dir/configure
13733
    else
13734
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
13735
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13736
      ac_sub_configure=
13737
    fi
13738
 
13739
    # The recursion is here.
13740
    if test -n "$ac_sub_configure"; then
13741
      # Make the cache file name correct relative to the subdirectory.
13742
      case $cache_file in
13743
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
13744
      *) # Relative path.
13745
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
13746
      esac
13747
 
13748
      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
13749
echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
13750
      # The eval makes quoting arguments work.
13751
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
13752
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
13753
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
13754
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
13755
   { (exit 1); exit 1; }; }
13756
    fi
13757
 
13758
    cd "$ac_popdir"
13759
  done
13760
fi
13761
 

powered by: WebSVN 2.1.0

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