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

Subversion Repositories openrisc_me

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

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_subdirs_all="$ac_subdirs_all spu"
463
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 machlib HAVE_LIBM_MACHINE_DIR_TRUE HAVE_LIBM_MACHINE_DIR_FALSE LIBOBJS LTLIBOBJS'
464
ac_subst_files=''
465
 
466
# Initialize some variables set by options.
467
ac_init_help=
468
ac_init_version=false
469
# The variables have the same names as the options, with
470
# dashes changed to underlines.
471
cache_file=/dev/null
472
exec_prefix=NONE
473
no_create=
474
no_recursion=
475
prefix=NONE
476
program_prefix=NONE
477
program_suffix=NONE
478
program_transform_name=s,x,x,
479
silent=
480
site=
481
srcdir=
482
verbose=
483
x_includes=NONE
484
x_libraries=NONE
485
 
486
# Installation directory options.
487
# These are left unexpanded so users can "make install exec_prefix=/foo"
488
# and all the variables that are supposed to be based on exec_prefix
489
# by default will actually change.
490
# Use braces instead of parens because sh, perl, etc. also accept them.
491
bindir='${exec_prefix}/bin'
492
sbindir='${exec_prefix}/sbin'
493
libexecdir='${exec_prefix}/libexec'
494
datadir='${prefix}/share'
495
sysconfdir='${prefix}/etc'
496
sharedstatedir='${prefix}/com'
497
localstatedir='${prefix}/var'
498
libdir='${exec_prefix}/lib'
499
includedir='${prefix}/include'
500
oldincludedir='/usr/include'
501
infodir='${prefix}/info'
502
mandir='${prefix}/man'
503
 
504
ac_prev=
505
for ac_option
506
do
507
  # If the previous option needs an argument, assign it.
508
  if test -n "$ac_prev"; then
509
    eval "$ac_prev=\$ac_option"
510
    ac_prev=
511
    continue
512
  fi
513
 
514
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515
 
516
  # Accept the important Cygnus configure options, so we can diagnose typos.
517
 
518
  case $ac_option in
519
 
520
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
521
    ac_prev=bindir ;;
522
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
523
    bindir=$ac_optarg ;;
524
 
525
  -build | --build | --buil | --bui | --bu)
526
    ac_prev=build_alias ;;
527
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
528
    build_alias=$ac_optarg ;;
529
 
530
  -cache-file | --cache-file | --cache-fil | --cache-fi \
531
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
532
    ac_prev=cache_file ;;
533
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
534
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
535
    cache_file=$ac_optarg ;;
536
 
537
  --config-cache | -C)
538
    cache_file=config.cache ;;
539
 
540
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541
    ac_prev=datadir ;;
542
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543
  | --da=*)
544
    datadir=$ac_optarg ;;
545
 
546
  -disable-* | --disable-*)
547
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
548
    # Reject names that are not valid shell variable names.
549
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
550
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
551
   { (exit 1); exit 1; }; }
552
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
553
    eval "enable_$ac_feature=no" ;;
554
 
555
  -enable-* | --enable-*)
556
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
557
    # Reject names that are not valid shell variable names.
558
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560
   { (exit 1); exit 1; }; }
561
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562
    case $ac_option in
563
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
564
      *) ac_optarg=yes ;;
565
    esac
566
    eval "enable_$ac_feature='$ac_optarg'" ;;
567
 
568
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
569
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
570
  | --exec | --exe | --ex)
571
    ac_prev=exec_prefix ;;
572
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
573
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
574
  | --exec=* | --exe=* | --ex=*)
575
    exec_prefix=$ac_optarg ;;
576
 
577
  -gas | --gas | --ga | --g)
578
    # Obsolete; use --with-gas.
579
    with_gas=yes ;;
580
 
581
  -help | --help | --hel | --he | -h)
582
    ac_init_help=long ;;
583
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
584
    ac_init_help=recursive ;;
585
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
586
    ac_init_help=short ;;
587
 
588
  -host | --host | --hos | --ho)
589
    ac_prev=host_alias ;;
590
  -host=* | --host=* | --hos=* | --ho=*)
591
    host_alias=$ac_optarg ;;
592
 
593
  -includedir | --includedir | --includedi | --included | --include \
594
  | --includ | --inclu | --incl | --inc)
595
    ac_prev=includedir ;;
596
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
597
  | --includ=* | --inclu=* | --incl=* | --inc=*)
598
    includedir=$ac_optarg ;;
599
 
600
  -infodir | --infodir | --infodi | --infod | --info | --inf)
601
    ac_prev=infodir ;;
602
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
603
    infodir=$ac_optarg ;;
604
 
605
  -libdir | --libdir | --libdi | --libd)
606
    ac_prev=libdir ;;
607
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
608
    libdir=$ac_optarg ;;
609
 
610
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
611
  | --libexe | --libex | --libe)
612
    ac_prev=libexecdir ;;
613
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
614
  | --libexe=* | --libex=* | --libe=*)
615
    libexecdir=$ac_optarg ;;
616
 
617
  -localstatedir | --localstatedir | --localstatedi | --localstated \
618
  | --localstate | --localstat | --localsta | --localst \
619
  | --locals | --local | --loca | --loc | --lo)
620
    ac_prev=localstatedir ;;
621
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
622
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
623
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
624
    localstatedir=$ac_optarg ;;
625
 
626
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627
    ac_prev=mandir ;;
628
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
629
    mandir=$ac_optarg ;;
630
 
631
  -nfp | --nfp | --nf)
632
    # Obsolete; use --without-fp.
633
    with_fp=no ;;
634
 
635
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
636
  | --no-cr | --no-c | -n)
637
    no_create=yes ;;
638
 
639
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
640
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
641
    no_recursion=yes ;;
642
 
643
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
644
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
645
  | --oldin | --oldi | --old | --ol | --o)
646
    ac_prev=oldincludedir ;;
647
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
648
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
649
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
650
    oldincludedir=$ac_optarg ;;
651
 
652
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653
    ac_prev=prefix ;;
654
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
655
    prefix=$ac_optarg ;;
656
 
657
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
658
  | --program-pre | --program-pr | --program-p)
659
    ac_prev=program_prefix ;;
660
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
661
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
662
    program_prefix=$ac_optarg ;;
663
 
664
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
665
  | --program-suf | --program-su | --program-s)
666
    ac_prev=program_suffix ;;
667
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
668
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
669
    program_suffix=$ac_optarg ;;
670
 
671
  -program-transform-name | --program-transform-name \
672
  | --program-transform-nam | --program-transform-na \
673
  | --program-transform-n | --program-transform- \
674
  | --program-transform | --program-transfor \
675
  | --program-transfo | --program-transf \
676
  | --program-trans | --program-tran \
677
  | --progr-tra | --program-tr | --program-t)
678
    ac_prev=program_transform_name ;;
679
  -program-transform-name=* | --program-transform-name=* \
680
  | --program-transform-nam=* | --program-transform-na=* \
681
  | --program-transform-n=* | --program-transform-=* \
682
  | --program-transform=* | --program-transfor=* \
683
  | --program-transfo=* | --program-transf=* \
684
  | --program-trans=* | --program-tran=* \
685
  | --progr-tra=* | --program-tr=* | --program-t=*)
686
    program_transform_name=$ac_optarg ;;
687
 
688
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
689
  | -silent | --silent | --silen | --sile | --sil)
690
    silent=yes ;;
691
 
692
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693
    ac_prev=sbindir ;;
694
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695
  | --sbi=* | --sb=*)
696
    sbindir=$ac_optarg ;;
697
 
698
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
699
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
700
  | --sharedst | --shareds | --shared | --share | --shar \
701
  | --sha | --sh)
702
    ac_prev=sharedstatedir ;;
703
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
704
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
705
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706
  | --sha=* | --sh=*)
707
    sharedstatedir=$ac_optarg ;;
708
 
709
  -site | --site | --sit)
710
    ac_prev=site ;;
711
  -site=* | --site=* | --sit=*)
712
    site=$ac_optarg ;;
713
 
714
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715
    ac_prev=srcdir ;;
716
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
717
    srcdir=$ac_optarg ;;
718
 
719
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
720
  | --syscon | --sysco | --sysc | --sys | --sy)
721
    ac_prev=sysconfdir ;;
722
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
723
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
724
    sysconfdir=$ac_optarg ;;
725
 
726
  -target | --target | --targe | --targ | --tar | --ta | --t)
727
    ac_prev=target_alias ;;
728
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
729
    target_alias=$ac_optarg ;;
730
 
731
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
732
    verbose=yes ;;
733
 
734
  -version | --version | --versio | --versi | --vers | -V)
735
    ac_init_version=: ;;
736
 
737
  -with-* | --with-*)
738
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
739
    # Reject names that are not valid shell variable names.
740
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
741
      { echo "$as_me: error: invalid package name: $ac_package" >&2
742
   { (exit 1); exit 1; }; }
743
    ac_package=`echo $ac_package| sed 's/-/_/g'`
744
    case $ac_option in
745
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
746
      *) ac_optarg=yes ;;
747
    esac
748
    eval "with_$ac_package='$ac_optarg'" ;;
749
 
750
  -without-* | --without-*)
751
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
752
    # Reject names that are not valid shell variable names.
753
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754
      { echo "$as_me: error: invalid package name: $ac_package" >&2
755
   { (exit 1); exit 1; }; }
756
    ac_package=`echo $ac_package | sed 's/-/_/g'`
757
    eval "with_$ac_package=no" ;;
758
 
759
  --x)
760
    # Obsolete; use --with-x.
761
    with_x=yes ;;
762
 
763
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
764
  | --x-incl | --x-inc | --x-in | --x-i)
765
    ac_prev=x_includes ;;
766
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
767
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
768
    x_includes=$ac_optarg ;;
769
 
770
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
771
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
772
    ac_prev=x_libraries ;;
773
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
774
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
775
    x_libraries=$ac_optarg ;;
776
 
777
  -*) { echo "$as_me: error: unrecognized option: $ac_option
778
Try \`$0 --help' for more information." >&2
779
   { (exit 1); exit 1; }; }
780
    ;;
781
 
782
  *=*)
783
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
784
    # Reject names that are not valid shell variable names.
785
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
786
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
787
   { (exit 1); exit 1; }; }
788
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
789
    eval "$ac_envvar='$ac_optarg'"
790
    export $ac_envvar ;;
791
 
792
  *)
793
    # FIXME: should be removed in autoconf 3.0.
794
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
795
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
796
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
797
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798
    ;;
799
 
800
  esac
801
done
802
 
803
if test -n "$ac_prev"; then
804
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
805
  { echo "$as_me: error: missing argument to $ac_option" >&2
806
   { (exit 1); exit 1; }; }
807
fi
808
 
809
# Be sure to have absolute paths.
810
for ac_var in exec_prefix prefix
811
do
812
  eval ac_val=$`echo $ac_var`
813
  case $ac_val in
814
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
815
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
816
   { (exit 1); exit 1; }; };;
817
  esac
818
done
819
 
820
# Be sure to have absolute paths.
821
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
822
              localstatedir libdir includedir oldincludedir infodir mandir
823
do
824
  eval ac_val=$`echo $ac_var`
825
  case $ac_val in
826
    [\\/$]* | ?:[\\/]* ) ;;
827
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828
   { (exit 1); exit 1; }; };;
829
  esac
830
done
831
 
832
# There might be people who depend on the old broken behavior: `$host'
833
# used to hold the argument of --host etc.
834
# FIXME: To remove some day.
835
build=$build_alias
836
host=$host_alias
837
target=$target_alias
838
 
839
# FIXME: To remove some day.
840
if test "x$host_alias" != x; then
841
  if test "x$build_alias" = x; then
842
    cross_compiling=maybe
843
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
844
    If a cross compiler is detected then cross compile mode will be used." >&2
845
  elif test "x$build_alias" != "x$host_alias"; then
846
    cross_compiling=yes
847
  fi
848
fi
849
 
850
ac_tool_prefix=
851
test -n "$host_alias" && ac_tool_prefix=$host_alias-
852
 
853
test "$silent" = yes && exec 6>/dev/null
854
 
855
 
856
# Find the source files, if location was not specified.
857
if test -z "$srcdir"; then
858
  ac_srcdir_defaulted=yes
859
  # Try the directory containing this script, then its parent.
860
  ac_confdir=`(dirname "$0") 2>/dev/null ||
861
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
862
         X"$0" : 'X\(//\)[^/]' \| \
863
         X"$0" : 'X\(//\)$' \| \
864
         X"$0" : 'X\(/\)' \| \
865
         .     : '\(.\)' 2>/dev/null ||
866
echo X"$0" |
867
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
868
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
869
          /^X\(\/\/\)$/{ s//\1/; q; }
870
          /^X\(\/\).*/{ s//\1/; q; }
871
          s/.*/./; q'`
872
  srcdir=$ac_confdir
873
  if test ! -r $srcdir/$ac_unique_file; then
874
    srcdir=..
875
  fi
876
else
877
  ac_srcdir_defaulted=no
878
fi
879
if test ! -r $srcdir/$ac_unique_file; then
880
  if test "$ac_srcdir_defaulted" = yes; then
881
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
882
   { (exit 1); exit 1; }; }
883
  else
884
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
885
   { (exit 1); exit 1; }; }
886
  fi
887
fi
888
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
889
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
890
   { (exit 1); exit 1; }; }
891
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
892
ac_env_build_alias_set=${build_alias+set}
893
ac_env_build_alias_value=$build_alias
894
ac_cv_env_build_alias_set=${build_alias+set}
895
ac_cv_env_build_alias_value=$build_alias
896
ac_env_host_alias_set=${host_alias+set}
897
ac_env_host_alias_value=$host_alias
898
ac_cv_env_host_alias_set=${host_alias+set}
899
ac_cv_env_host_alias_value=$host_alias
900
ac_env_target_alias_set=${target_alias+set}
901
ac_env_target_alias_value=$target_alias
902
ac_cv_env_target_alias_set=${target_alias+set}
903
ac_cv_env_target_alias_value=$target_alias
904
ac_env_CCAS_set=${CCAS+set}
905
ac_env_CCAS_value=$CCAS
906
ac_cv_env_CCAS_set=${CCAS+set}
907
ac_cv_env_CCAS_value=$CCAS
908
ac_env_CCASFLAGS_set=${CCASFLAGS+set}
909
ac_env_CCASFLAGS_value=$CCASFLAGS
910
ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
911
ac_cv_env_CCASFLAGS_value=$CCASFLAGS
912
ac_env_CC_set=${CC+set}
913
ac_env_CC_value=$CC
914
ac_cv_env_CC_set=${CC+set}
915
ac_cv_env_CC_value=$CC
916
ac_env_CFLAGS_set=${CFLAGS+set}
917
ac_env_CFLAGS_value=$CFLAGS
918
ac_cv_env_CFLAGS_set=${CFLAGS+set}
919
ac_cv_env_CFLAGS_value=$CFLAGS
920
ac_env_LDFLAGS_set=${LDFLAGS+set}
921
ac_env_LDFLAGS_value=$LDFLAGS
922
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923
ac_cv_env_LDFLAGS_value=$LDFLAGS
924
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925
ac_env_CPPFLAGS_value=$CPPFLAGS
926
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928
ac_env_CPP_set=${CPP+set}
929
ac_env_CPP_value=$CPP
930
ac_cv_env_CPP_set=${CPP+set}
931
ac_cv_env_CPP_value=$CPP
932
 
933
#
934
# Report the --help message.
935
#
936
if test "$ac_init_help" = "long"; then
937
  # Omit some internal or obsolete options to make the list less imposing.
938
  # This message is too long to be a string in the A/UX 3.1 sh.
939
  cat <<_ACEOF
940
\`configure' configures newlib 1.17.0 to adapt to many kinds of systems.
941
 
942
Usage: $0 [OPTION]... [VAR=VALUE]...
943
 
944
To assign environment variables (e.g., CC, CFLAGS...), specify them as
945
VAR=VALUE.  See below for descriptions of some of the useful variables.
946
 
947
Defaults for the options are specified in brackets.
948
 
949
Configuration:
950
  -h, --help              display this help and exit
951
      --help=short        display options specific to this package
952
      --help=recursive    display the short help of all the included packages
953
  -V, --version           display version information and exit
954
  -q, --quiet, --silent   do not print \`checking...' messages
955
      --cache-file=FILE   cache test results in FILE [disabled]
956
  -C, --config-cache      alias for \`--cache-file=config.cache'
957
  -n, --no-create         do not create output files
958
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
959
 
960
_ACEOF
961
 
962
  cat <<_ACEOF
963
Installation directories:
964
  --prefix=PREFIX         install architecture-independent files in PREFIX
965
                          [$ac_default_prefix]
966
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
967
                          [PREFIX]
968
 
969
By default, \`make install' will install all the files in
970
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
971
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
972
for instance \`--prefix=\$HOME'.
973
 
974
For better control, use the options below.
975
 
976
Fine tuning of the installation directories:
977
  --bindir=DIR           user executables [EPREFIX/bin]
978
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
979
  --libexecdir=DIR       program executables [EPREFIX/libexec]
980
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
981
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
982
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
983
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
984
  --libdir=DIR           object code libraries [EPREFIX/lib]
985
  --includedir=DIR       C header files [PREFIX/include]
986
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
987
  --infodir=DIR          info documentation [PREFIX/info]
988
  --mandir=DIR           man documentation [PREFIX/man]
989
_ACEOF
990
 
991
  cat <<\_ACEOF
992
 
993
Program names:
994
  --program-prefix=PREFIX            prepend PREFIX to installed program names
995
  --program-suffix=SUFFIX            append SUFFIX to installed program names
996
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
997
 
998
System types:
999
  --build=BUILD     configure for building on BUILD [guessed]
1000
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1001
_ACEOF
1002
fi
1003
 
1004
if test -n "$ac_init_help"; then
1005
  case $ac_init_help in
1006
     short | recursive ) echo "Configuration of newlib 1.17.0:";;
1007
   esac
1008
  cat <<\_ACEOF
1009
 
1010
Optional Features:
1011
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1012
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1013
  --enable-multilib         build many library versions (default)
1014
  --enable-target-optspace  optimize for space
1015
  --enable-malloc-debugging indicate malloc debugging requested
1016
  --enable-newlib-multithread        enable support for multiple threads
1017
  --enable-newlib-iconv     enable iconv library support
1018
  --enable-newlib-elix-level         supply desired elix library level (1-4)
1019
  --disable-newlib-io-float disable printf/scanf family float support
1020
  --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1021
  --disable-dependency-tracking  speeds up one-time build
1022
  --enable-dependency-tracking   do not reject slow dependency extractors
1023
  --enable-maintainer-mode  enable make rules and dependencies not useful
1024
                          (and sometimes confusing) to the casual installer
1025
  --enable-shared[=PKGS]
1026
                          build shared libraries [default=yes]
1027
  --enable-static[=PKGS]
1028
                          build static libraries [default=yes]
1029
  --enable-fast-install[=PKGS]
1030
                          optimize for fast installation [default=yes]
1031
  --disable-libtool-lock  avoid locking (might break parallel builds)
1032
 
1033
Optional Packages:
1034
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1035
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1036
  --with-pic              try to use only PIC/non-PIC objects [default=use
1037
                          both]
1038
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1039
 
1040
Some influential environment variables:
1041
  CCAS        assembler compiler command (defaults to CC)
1042
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1043
  CC          C compiler command
1044
  CFLAGS      C compiler flags
1045
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1046
              nonstandard directory 
1047
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
1048
              headers in a nonstandard directory 
1049
  CPP         C preprocessor
1050
 
1051
Use these variables to override the choices made by `configure' or to help
1052
it to find libraries and programs with nonstandard names/locations.
1053
 
1054
_ACEOF
1055
fi
1056
 
1057
if test "$ac_init_help" = "recursive"; then
1058
  # If there are subdirs, report their specific --help.
1059
  ac_popdir=`pwd`
1060
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1061
    test -d $ac_dir || continue
1062
    ac_builddir=.
1063
 
1064
if test "$ac_dir" != .; then
1065
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1066
  # A "../" for each directory in $ac_dir_suffix.
1067
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1068
else
1069
  ac_dir_suffix= ac_top_builddir=
1070
fi
1071
 
1072
case $srcdir in
1073
  .)  # No --srcdir option.  We are building in place.
1074
    ac_srcdir=.
1075
    if test -z "$ac_top_builddir"; then
1076
       ac_top_srcdir=.
1077
    else
1078
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1079
    fi ;;
1080
  [\\/]* | ?:[\\/]* )  # Absolute path.
1081
    ac_srcdir=$srcdir$ac_dir_suffix;
1082
    ac_top_srcdir=$srcdir ;;
1083
  *) # Relative path.
1084
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1085
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1086
esac
1087
 
1088
# Do not use `cd foo && pwd` to compute absolute paths, because
1089
# the directories may not exist.
1090
case `pwd` in
1091
.) ac_abs_builddir="$ac_dir";;
1092
*)
1093
  case "$ac_dir" in
1094
  .) ac_abs_builddir=`pwd`;;
1095
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1096
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1097
  esac;;
1098
esac
1099
case $ac_abs_builddir in
1100
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1101
*)
1102
  case ${ac_top_builddir}. in
1103
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1104
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1105
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1106
  esac;;
1107
esac
1108
case $ac_abs_builddir in
1109
.) ac_abs_srcdir=$ac_srcdir;;
1110
*)
1111
  case $ac_srcdir in
1112
  .) ac_abs_srcdir=$ac_abs_builddir;;
1113
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1114
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1115
  esac;;
1116
esac
1117
case $ac_abs_builddir in
1118
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1119
*)
1120
  case $ac_top_srcdir in
1121
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1122
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1123
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1124
  esac;;
1125
esac
1126
 
1127
    cd $ac_dir
1128
    # Check for guested configure; otherwise get Cygnus style configure.
1129
    if test -f $ac_srcdir/configure.gnu; then
1130
      echo
1131
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1132
    elif test -f $ac_srcdir/configure; then
1133
      echo
1134
      $SHELL $ac_srcdir/configure  --help=recursive
1135
    elif test -f $ac_srcdir/configure.ac ||
1136
           test -f $ac_srcdir/configure.in; then
1137
      echo
1138
      $ac_configure --help
1139
    else
1140
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1141
    fi
1142
    cd $ac_popdir
1143
  done
1144
fi
1145
 
1146
test -n "$ac_init_help" && exit 0
1147
if $ac_init_version; then
1148
  cat <<\_ACEOF
1149
newlib configure 1.17.0
1150
generated by GNU Autoconf 2.59
1151
 
1152
Copyright (C) 2003 Free Software Foundation, Inc.
1153
This configure script is free software; the Free Software Foundation
1154
gives unlimited permission to copy, distribute and modify it.
1155
_ACEOF
1156
  exit 0
1157
fi
1158
exec 5>config.log
1159
cat >&5 <<_ACEOF
1160
This file contains any messages produced by compilers while
1161
running configure, to aid debugging if configure makes a mistake.
1162
 
1163
It was created by newlib $as_me 1.17.0, which was
1164
generated by GNU Autoconf 2.59.  Invocation command line was
1165
 
1166
  $ $0 $@
1167
 
1168
_ACEOF
1169
{
1170
cat <<_ASUNAME
1171
## --------- ##
1172
## Platform. ##
1173
## --------- ##
1174
 
1175
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1176
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1177
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1178
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1179
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1180
 
1181
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1182
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1183
 
1184
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1185
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1186
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1187
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1188
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1189
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1190
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1191
 
1192
_ASUNAME
1193
 
1194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1195
for as_dir in $PATH
1196
do
1197
  IFS=$as_save_IFS
1198
  test -z "$as_dir" && as_dir=.
1199
  echo "PATH: $as_dir"
1200
done
1201
 
1202
} >&5
1203
 
1204
cat >&5 <<_ACEOF
1205
 
1206
 
1207
## ----------- ##
1208
## Core tests. ##
1209
## ----------- ##
1210
 
1211
_ACEOF
1212
 
1213
 
1214
# Keep a trace of the command line.
1215
# Strip out --no-create and --no-recursion so they do not pile up.
1216
# Strip out --silent because we don't want to record it for future runs.
1217
# Also quote any args containing shell meta-characters.
1218
# Make two passes to allow for proper duplicate-argument suppression.
1219
ac_configure_args=
1220
ac_configure_args0=
1221
ac_configure_args1=
1222
ac_sep=
1223
ac_must_keep_next=false
1224
for ac_pass in 1 2
1225
do
1226
  for ac_arg
1227
  do
1228
    case $ac_arg in
1229
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1230
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231
    | -silent | --silent | --silen | --sile | --sil)
1232
      continue ;;
1233
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1235
    esac
1236
    case $ac_pass in
1237
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1238
    2)
1239
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1240
      if test $ac_must_keep_next = true; then
1241
        ac_must_keep_next=false # Got value, back to normal.
1242
      else
1243
        case $ac_arg in
1244
          *=* | --config-cache | -C | -disable-* | --disable-* \
1245
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1246
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1247
          | -with-* | --with-* | -without-* | --without-* | --x)
1248
            case "$ac_configure_args0 " in
1249
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1250
            esac
1251
            ;;
1252
          -* ) ac_must_keep_next=true ;;
1253
        esac
1254
      fi
1255
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1256
      # Get rid of the leading space.
1257
      ac_sep=" "
1258
      ;;
1259
    esac
1260
  done
1261
done
1262
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1263
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1264
 
1265
# When interrupted or exit'd, cleanup temporary files, and complete
1266
# config.log.  We remove comments because anyway the quotes in there
1267
# would cause problems or look ugly.
1268
# WARNING: Be sure not to use single quotes in there, as some shells,
1269
# such as our DU 5.0 friend, will then `close' the trap.
1270
trap 'exit_status=$?
1271
  # Save into config.log some information that might help in debugging.
1272
  {
1273
    echo
1274
 
1275
    cat <<\_ASBOX
1276
## ---------------- ##
1277
## Cache variables. ##
1278
## ---------------- ##
1279
_ASBOX
1280
    echo
1281
    # The following way of writing the cache mishandles newlines in values,
1282
{
1283
  (set) 2>&1 |
1284
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1285
    *ac_space=\ *)
1286
      sed -n \
1287
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1288
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1289
      ;;
1290
    *)
1291
      sed -n \
1292
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1293
      ;;
1294
    esac;
1295
}
1296
    echo
1297
 
1298
    cat <<\_ASBOX
1299
## ----------------- ##
1300
## Output variables. ##
1301
## ----------------- ##
1302
_ASBOX
1303
    echo
1304
    for ac_var in $ac_subst_vars
1305
    do
1306
      eval ac_val=$`echo $ac_var`
1307
      echo "$ac_var='"'"'$ac_val'"'"'"
1308
    done | sort
1309
    echo
1310
 
1311
    if test -n "$ac_subst_files"; then
1312
      cat <<\_ASBOX
1313
## ------------- ##
1314
## Output files. ##
1315
## ------------- ##
1316
_ASBOX
1317
      echo
1318
      for ac_var in $ac_subst_files
1319
      do
1320
        eval ac_val=$`echo $ac_var`
1321
        echo "$ac_var='"'"'$ac_val'"'"'"
1322
      done | sort
1323
      echo
1324
    fi
1325
 
1326
    if test -s confdefs.h; then
1327
      cat <<\_ASBOX
1328
## ----------- ##
1329
## confdefs.h. ##
1330
## ----------- ##
1331
_ASBOX
1332
      echo
1333
      sed "/^$/d" confdefs.h | sort
1334
      echo
1335
    fi
1336
    test "$ac_signal" != 0 &&
1337
      echo "$as_me: caught signal $ac_signal"
1338
    echo "$as_me: exit $exit_status"
1339
  } >&5
1340
  rm -f core *.core &&
1341
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1342
    exit $exit_status
1343
     ' 0
1344
for ac_signal in 1 2 13 15; do
1345
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1346
done
1347
ac_signal=0
1348
 
1349
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1350
rm -rf conftest* confdefs.h
1351
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1352
echo >confdefs.h
1353
 
1354
# Predefined preprocessor variables.
1355
 
1356
cat >>confdefs.h <<_ACEOF
1357
#define PACKAGE_NAME "$PACKAGE_NAME"
1358
_ACEOF
1359
 
1360
 
1361
cat >>confdefs.h <<_ACEOF
1362
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1363
_ACEOF
1364
 
1365
 
1366
cat >>confdefs.h <<_ACEOF
1367
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1368
_ACEOF
1369
 
1370
 
1371
cat >>confdefs.h <<_ACEOF
1372
#define PACKAGE_STRING "$PACKAGE_STRING"
1373
_ACEOF
1374
 
1375
 
1376
cat >>confdefs.h <<_ACEOF
1377
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1378
_ACEOF
1379
 
1380
 
1381
# Let the site file select an alternate cache file if it wants to.
1382
# Prefer explicitly selected file to automatically selected ones.
1383
if test -z "$CONFIG_SITE"; then
1384
  if test "x$prefix" != xNONE; then
1385
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1386
  else
1387
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1388
  fi
1389
fi
1390
for ac_site_file in $CONFIG_SITE; do
1391
  if test -r "$ac_site_file"; then
1392
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1393
echo "$as_me: loading site script $ac_site_file" >&6;}
1394
    sed 's/^/| /' "$ac_site_file" >&5
1395
    . "$ac_site_file"
1396
  fi
1397
done
1398
 
1399
if test -r "$cache_file"; then
1400
  # Some versions of bash will fail to source /dev/null (special
1401
  # files actually), so we avoid doing that.
1402
  if test -f "$cache_file"; then
1403
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1404
echo "$as_me: loading cache $cache_file" >&6;}
1405
    case $cache_file in
1406
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1407
      *)                      . ./$cache_file;;
1408
    esac
1409
  fi
1410
else
1411
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1412
echo "$as_me: creating cache $cache_file" >&6;}
1413
  >$cache_file
1414
fi
1415
 
1416
# Check that the precious variables saved in the cache have kept the same
1417
# value.
1418
ac_cache_corrupted=false
1419
for ac_var in `(set) 2>&1 |
1420
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1421
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1422
  eval ac_new_set=\$ac_env_${ac_var}_set
1423
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1424
  eval ac_new_val="\$ac_env_${ac_var}_value"
1425
  case $ac_old_set,$ac_new_set in
1426
    set,)
1427
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1428
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1429
      ac_cache_corrupted=: ;;
1430
    ,set)
1431
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1432
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1433
      ac_cache_corrupted=: ;;
1434
    ,);;
1435
    *)
1436
      if test "x$ac_old_val" != "x$ac_new_val"; then
1437
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1438
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1439
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1440
echo "$as_me:   former value:  $ac_old_val" >&2;}
1441
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1442
echo "$as_me:   current value: $ac_new_val" >&2;}
1443
        ac_cache_corrupted=:
1444
      fi;;
1445
  esac
1446
  # Pass precious variables to config.status.
1447
  if test "$ac_new_set" = set; then
1448
    case $ac_new_val in
1449
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1450
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1451
    *) ac_arg=$ac_var=$ac_new_val ;;
1452
    esac
1453
    case " $ac_configure_args " in
1454
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1455
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1456
    esac
1457
  fi
1458
done
1459
if $ac_cache_corrupted; then
1460
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1461
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1462
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1463
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1464
   { (exit 1); exit 1; }; }
1465
fi
1466
 
1467
ac_ext=c
1468
ac_cpp='$CPP $CPPFLAGS'
1469
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472
 
1473
 
1474
 
1475
 
1476
 
1477
 
1478
 
1479
 
1480
 
1481
 
1482
 
1483
 
1484
 
1485
 
1486
 
1487
 
1488
 
1489
 
1490
 
1491
 
1492
 
1493
 
1494
 
1495
 
1496
 
1497
 
1498
 
1499
 
1500
 
1501
ac_aux_dir=
1502
for ac_dir in ../../.. $srcdir/../../..; do
1503
  if test -f $ac_dir/install-sh; then
1504
    ac_aux_dir=$ac_dir
1505
    ac_install_sh="$ac_aux_dir/install-sh -c"
1506
    break
1507
  elif test -f $ac_dir/install.sh; then
1508
    ac_aux_dir=$ac_dir
1509
    ac_install_sh="$ac_aux_dir/install.sh -c"
1510
    break
1511
  elif test -f $ac_dir/shtool; then
1512
    ac_aux_dir=$ac_dir
1513
    ac_install_sh="$ac_aux_dir/shtool install -c"
1514
    break
1515
  fi
1516
done
1517
if test -z "$ac_aux_dir"; then
1518
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../.. $srcdir/../../.." >&5
1519
echo "$as_me: error: cannot find install-sh or install.sh in ../../.. $srcdir/../../.." >&2;}
1520
   { (exit 1); exit 1; }; }
1521
fi
1522
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1525
 
1526
 
1527
 
1528
# Make sure we can run config.sub.
1529
$ac_config_sub sun4 >/dev/null 2>&1 ||
1530
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1531
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1532
   { (exit 1); exit 1; }; }
1533
 
1534
echo "$as_me:$LINENO: checking build system type" >&5
1535
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1536
if test "${ac_cv_build+set}" = set; then
1537
  echo $ECHO_N "(cached) $ECHO_C" >&6
1538
else
1539
  ac_cv_build_alias=$build_alias
1540
test -z "$ac_cv_build_alias" &&
1541
  ac_cv_build_alias=`$ac_config_guess`
1542
test -z "$ac_cv_build_alias" &&
1543
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1544
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1545
   { (exit 1); exit 1; }; }
1546
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1547
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1548
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1549
   { (exit 1); exit 1; }; }
1550
 
1551
fi
1552
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1553
echo "${ECHO_T}$ac_cv_build" >&6
1554
build=$ac_cv_build
1555
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1556
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1557
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1558
 
1559
 
1560
am__api_version="1.9"
1561
# Find a good install program.  We prefer a C program (faster),
1562
# so one script is as good as another.  But avoid the broken or
1563
# incompatible versions:
1564
# SysV /etc/install, /usr/sbin/install
1565
# SunOS /usr/etc/install
1566
# IRIX /sbin/install
1567
# AIX /bin/install
1568
# AmigaOS /C/install, which installs bootblocks on floppy discs
1569
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1570
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1571
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1572
# OS/2's system install, which has a completely different semantic
1573
# ./install, which can be erroneously created by make from ./install.sh.
1574
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1575
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1576
if test -z "$INSTALL"; then
1577
if test "${ac_cv_path_install+set}" = set; then
1578
  echo $ECHO_N "(cached) $ECHO_C" >&6
1579
else
1580
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581
for as_dir in $PATH
1582
do
1583
  IFS=$as_save_IFS
1584
  test -z "$as_dir" && as_dir=.
1585
  # Account for people who put trailing slashes in PATH elements.
1586
case $as_dir/ in
1587
  ./ | .// | /cC/* | \
1588
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1589
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1590
  /usr/ucb/* ) ;;
1591
  *)
1592
    # OSF1 and SCO ODT 3.0 have their own names for install.
1593
    # Don't use installbsd from OSF since it installs stuff as root
1594
    # by default.
1595
    for ac_prog in ginstall scoinst install; do
1596
      for ac_exec_ext in '' $ac_executable_extensions; do
1597
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1598
          if test $ac_prog = install &&
1599
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1600
            # AIX install.  It has an incompatible calling convention.
1601
            :
1602
          elif test $ac_prog = install &&
1603
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1604
            # program-specific install script used by HP pwplus--don't use.
1605
            :
1606
          else
1607
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1608
            break 3
1609
          fi
1610
        fi
1611
      done
1612
    done
1613
    ;;
1614
esac
1615
done
1616
 
1617
 
1618
fi
1619
  if test "${ac_cv_path_install+set}" = set; then
1620
    INSTALL=$ac_cv_path_install
1621
  else
1622
    # As a last resort, use the slow shell script.  We don't cache a
1623
    # path for INSTALL within a source directory, because that will
1624
    # break other packages using the cache if that directory is
1625
    # removed, or if the path is relative.
1626
    INSTALL=$ac_install_sh
1627
  fi
1628
fi
1629
echo "$as_me:$LINENO: result: $INSTALL" >&5
1630
echo "${ECHO_T}$INSTALL" >&6
1631
 
1632
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1633
# It thinks the first close brace ends the variable substitution.
1634
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1635
 
1636
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1637
 
1638
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1639
 
1640
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1641
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1642
# Just in case
1643
sleep 1
1644
echo timestamp > conftest.file
1645
# Do `set' in a subshell so we don't clobber the current shell's
1646
# arguments.  Must try -L first in case configure is actually a
1647
# symlink; some systems play weird games with the mod time of symlinks
1648
# (eg FreeBSD returns the mod time of the symlink's containing
1649
# directory).
1650
if (
1651
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1652
   if test "$*" = "X"; then
1653
      # -L didn't work.
1654
      set X `ls -t $srcdir/configure conftest.file`
1655
   fi
1656
   rm -f conftest.file
1657
   if test "$*" != "X $srcdir/configure conftest.file" \
1658
      && test "$*" != "X conftest.file $srcdir/configure"; then
1659
 
1660
      # If neither matched, then we have a broken ls.  This can happen
1661
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1662
      # broken ls alias from the environment.  This has actually
1663
      # happened.  Such a system could not be considered "sane".
1664
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1665
alias in your environment" >&5
1666
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1667
alias in your environment" >&2;}
1668
   { (exit 1); exit 1; }; }
1669
   fi
1670
 
1671
   test "$2" = conftest.file
1672
   )
1673
then
1674
   # Ok.
1675
   :
1676
else
1677
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1678
Check your system clock" >&5
1679
echo "$as_me: error: newly created file is older than distributed files!
1680
Check your system clock" >&2;}
1681
   { (exit 1); exit 1; }; }
1682
fi
1683
echo "$as_me:$LINENO: result: yes" >&5
1684
echo "${ECHO_T}yes" >&6
1685
test "$program_prefix" != NONE &&
1686
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1687
# Use a double $ so make ignores it.
1688
test "$program_suffix" != NONE &&
1689
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1690
# Double any \ or $.  echo might interpret backslashes.
1691
# By default was `s,x,x', remove it if useless.
1692
cat <<\_ACEOF >conftest.sed
1693
s/[\\$]/&&/g;s/;s,x,x,$//
1694
_ACEOF
1695
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1696
rm conftest.sed
1697
 
1698
# expand $ac_aux_dir to an absolute path
1699
am_aux_dir=`cd $ac_aux_dir && pwd`
1700
 
1701
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1702
# Use eval to expand $SHELL
1703
if eval "$MISSING --run true"; then
1704
  am_missing_run="$MISSING --run "
1705
else
1706
  am_missing_run=
1707
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1708
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1709
fi
1710
 
1711
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1712
  # We used to keeping the `.' as first argument, in order to
1713
  # allow $(mkdir_p) to be used without argument.  As in
1714
  #   $(mkdir_p) $(somedir)
1715
  # where $(somedir) is conditionally defined.  However this is wrong
1716
  # for two reasons:
1717
  #  1. if the package is installed by a user who cannot write `.'
1718
  #     make install will fail,
1719
  #  2. the above comment should most certainly read
1720
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1721
  #     so it does not work when $(somedir) is undefined and
1722
  #     $(DESTDIR) is not.
1723
  #  To support the latter case, we have to write
1724
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1725
  #  so the `.' trick is pointless.
1726
  mkdir_p='mkdir -p --'
1727
else
1728
  # On NextStep and OpenStep, the `mkdir' command does not
1729
  # recognize any option.  It will interpret all options as
1730
  # directories to create, and then abort because `.' already
1731
  # exists.
1732
  for d in ./-p ./--version;
1733
  do
1734
    test -d $d && rmdir $d
1735
  done
1736
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1737
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1738
    mkdir_p='$(mkinstalldirs)'
1739
  else
1740
    mkdir_p='$(install_sh) -d'
1741
  fi
1742
fi
1743
 
1744
for ac_prog in gawk mawk nawk awk
1745
do
1746
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1747
set dummy $ac_prog; ac_word=$2
1748
echo "$as_me:$LINENO: checking for $ac_word" >&5
1749
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750
if test "${ac_cv_prog_AWK+set}" = set; then
1751
  echo $ECHO_N "(cached) $ECHO_C" >&6
1752
else
1753
  if test -n "$AWK"; then
1754
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1755
else
1756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757
for as_dir in $PATH
1758
do
1759
  IFS=$as_save_IFS
1760
  test -z "$as_dir" && as_dir=.
1761
  for ac_exec_ext in '' $ac_executable_extensions; do
1762
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763
    ac_cv_prog_AWK="$ac_prog"
1764
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765
    break 2
1766
  fi
1767
done
1768
done
1769
 
1770
fi
1771
fi
1772
AWK=$ac_cv_prog_AWK
1773
if test -n "$AWK"; then
1774
  echo "$as_me:$LINENO: result: $AWK" >&5
1775
echo "${ECHO_T}$AWK" >&6
1776
else
1777
  echo "$as_me:$LINENO: result: no" >&5
1778
echo "${ECHO_T}no" >&6
1779
fi
1780
 
1781
  test -n "$AWK" && break
1782
done
1783
 
1784
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1785
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1786
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1787
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1788
  echo $ECHO_N "(cached) $ECHO_C" >&6
1789
else
1790
  cat >conftest.make <<\_ACEOF
1791
all:
1792
        @echo 'ac_maketemp="$(MAKE)"'
1793
_ACEOF
1794
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1795
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1796
if test -n "$ac_maketemp"; then
1797
  eval ac_cv_prog_make_${ac_make}_set=yes
1798
else
1799
  eval ac_cv_prog_make_${ac_make}_set=no
1800
fi
1801
rm -f conftest.make
1802
fi
1803
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1804
  echo "$as_me:$LINENO: result: yes" >&5
1805
echo "${ECHO_T}yes" >&6
1806
  SET_MAKE=
1807
else
1808
  echo "$as_me:$LINENO: result: no" >&5
1809
echo "${ECHO_T}no" >&6
1810
  SET_MAKE="MAKE=${MAKE-make}"
1811
fi
1812
 
1813
rm -rf .tst 2>/dev/null
1814
mkdir .tst 2>/dev/null
1815
if test -d .tst; then
1816
  am__leading_dot=.
1817
else
1818
  am__leading_dot=_
1819
fi
1820
rmdir .tst 2>/dev/null
1821
 
1822
DEPDIR="${am__leading_dot}deps"
1823
 
1824
          ac_config_commands="$ac_config_commands depfiles"
1825
 
1826
 
1827
am_make=${MAKE-make}
1828
cat > confinc << 'END'
1829
am__doit:
1830
        @echo done
1831
.PHONY: am__doit
1832
END
1833
# If we don't find an include directive, just comment out the code.
1834
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1835
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1836
am__include="#"
1837
am__quote=
1838
_am_result=none
1839
# First try GNU make style include.
1840
echo "include confinc" > confmf
1841
# We grep out `Entering directory' and `Leaving directory'
1842
# messages which can occur if `w' ends up in MAKEFLAGS.
1843
# In particular we don't look at `^make:' because GNU make might
1844
# be invoked under some other name (usually "gmake"), in which
1845
# case it prints its new name instead of `make'.
1846
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1847
   am__include=include
1848
   am__quote=
1849
   _am_result=GNU
1850
fi
1851
# Now try BSD make style include.
1852
if test "$am__include" = "#"; then
1853
   echo '.include "confinc"' > confmf
1854
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1855
      am__include=.include
1856
      am__quote="\""
1857
      _am_result=BSD
1858
   fi
1859
fi
1860
 
1861
 
1862
echo "$as_me:$LINENO: result: $_am_result" >&5
1863
echo "${ECHO_T}$_am_result" >&6
1864
rm -f confinc confmf
1865
 
1866
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1867
if test "${enable_dependency_tracking+set}" = set; then
1868
  enableval="$enable_dependency_tracking"
1869
 
1870
fi;
1871
if test "x$enable_dependency_tracking" != xno; then
1872
  am_depcomp="$ac_aux_dir/depcomp"
1873
  AMDEPBACKSLASH='\'
1874
fi
1875
 
1876
 
1877
if test "x$enable_dependency_tracking" != xno; then
1878
  AMDEP_TRUE=
1879
  AMDEP_FALSE='#'
1880
else
1881
  AMDEP_TRUE='#'
1882
  AMDEP_FALSE=
1883
fi
1884
 
1885
 
1886
 
1887
 
1888
# Check whether --enable-multilib or --disable-multilib was given.
1889
if test "${enable_multilib+set}" = set; then
1890
  enableval="$enable_multilib"
1891
  case "${enableval}" in
1892
  yes) multilib=yes ;;
1893
  no)  multilib=no ;;
1894
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1895
echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1896
   { (exit 1); exit 1; }; } ;;
1897
 esac
1898
else
1899
  multilib=yes
1900
fi;
1901
# Check whether --enable-target-optspace or --disable-target-optspace was given.
1902
if test "${enable_target_optspace+set}" = set; then
1903
  enableval="$enable_target_optspace"
1904
  case "${enableval}" in
1905
  yes) target_optspace=yes ;;
1906
  no)  target_optspace=no ;;
1907
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
1908
echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
1909
   { (exit 1); exit 1; }; } ;;
1910
 esac
1911
else
1912
  target_optspace=
1913
fi;
1914
# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given.
1915
if test "${enable_malloc_debugging+set}" = set; then
1916
  enableval="$enable_malloc_debugging"
1917
  case "${enableval}" in
1918
  yes) malloc_debugging=yes ;;
1919
  no)  malloc_debugging=no ;;
1920
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
1921
echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
1922
   { (exit 1); exit 1; }; } ;;
1923
 esac
1924
else
1925
  malloc_debugging=
1926
fi;
1927
# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given.
1928
if test "${enable_newlib_multithread+set}" = set; then
1929
  enableval="$enable_newlib_multithread"
1930
  case "${enableval}" in
1931
  yes) newlib_multithread=yes ;;
1932
  no)  newlib_multithread=no ;;
1933
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
1934
echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
1935
   { (exit 1); exit 1; }; } ;;
1936
 esac
1937
else
1938
  newlib_multithread=yes
1939
fi;
1940
# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given.
1941
if test "${enable_newlib_iconv+set}" = set; then
1942
  enableval="$enable_newlib_iconv"
1943
  if test "${newlib_iconv+set}" != set; then
1944
   case "${enableval}" in
1945
     yes) newlib_iconv=yes ;;
1946
     no)  newlib_iconv=no ;;
1947
     *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
1948
echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
1949
   { (exit 1); exit 1; }; } ;;
1950
   esac
1951
 fi
1952
else
1953
  newlib_iconv=${newlib_iconv}
1954
fi;
1955
# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given.
1956
if test "${enable_newlib_elix_level+set}" = set; then
1957
  enableval="$enable_newlib_elix_level"
1958
  case "${enableval}" in
1959
  0)   newlib_elix_level=0 ;;
1960
  1)   newlib_elix_level=1 ;;
1961
  2)   newlib_elix_level=2 ;;
1962
  3)   newlib_elix_level=3 ;;
1963
  4)   newlib_elix_level=4 ;;
1964
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
1965
echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
1966
   { (exit 1); exit 1; }; } ;;
1967
 esac
1968
else
1969
  newlib_elix_level=0
1970
fi;
1971
# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given.
1972
if test "${enable_newlib_io_float+set}" = set; then
1973
  enableval="$enable_newlib_io_float"
1974
  case "${enableval}" in
1975
  yes) newlib_io_float=yes ;;
1976
  no)  newlib_io_float=no ;;
1977
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
1978
echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
1979
   { (exit 1); exit 1; }; } ;;
1980
 esac
1981
else
1982
  newlib_io_float=yes
1983
fi;
1984
# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given.
1985
if test "${enable_newlib_supplied_syscalls+set}" = set; then
1986
  enableval="$enable_newlib_supplied_syscalls"
1987
  case "${enableval}" in
1988
  yes) newlib_may_supply_syscalls=yes ;;
1989
  no)  newlib_may_supply_syscalls=no ;;
1990
  *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
1991
echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
1992
   { (exit 1); exit 1; }; } ;;
1993
 esac
1994
else
1995
  newlib_may_supply_syscalls=yes
1996
fi;
1997
 
1998
 
1999
if test x${newlib_may_supply_syscalls} = xyes; then
2000
  MAY_SUPPLY_SYSCALLS_TRUE=
2001
  MAY_SUPPLY_SYSCALLS_FALSE='#'
2002
else
2003
  MAY_SUPPLY_SYSCALLS_TRUE='#'
2004
  MAY_SUPPLY_SYSCALLS_FALSE=
2005
fi
2006
 
2007
 
2008
 
2009
test -z "${with_target_subdir}" && with_target_subdir=.
2010
 
2011
if test "${srcdir}" = "."; then
2012
  if test "${with_target_subdir}" != "."; then
2013
    newlib_basedir="${srcdir}/${with_multisrctop}../../.."
2014
  else
2015
    newlib_basedir="${srcdir}/${with_multisrctop}../.."
2016
  fi
2017
else
2018
  newlib_basedir="${srcdir}/../.."
2019
fi
2020
 
2021
 
2022
echo "$as_me:$LINENO: checking host system type" >&5
2023
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2024
if test "${ac_cv_host+set}" = set; then
2025
  echo $ECHO_N "(cached) $ECHO_C" >&6
2026
else
2027
  ac_cv_host_alias=$host_alias
2028
test -z "$ac_cv_host_alias" &&
2029
  ac_cv_host_alias=$ac_cv_build_alias
2030
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2031
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2032
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2033
   { (exit 1); exit 1; }; }
2034
 
2035
fi
2036
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2037
echo "${ECHO_T}$ac_cv_host" >&6
2038
host=$ac_cv_host
2039
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2040
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2041
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2042
 
2043
 
2044
 
2045
# test to see if srcdir already configured
2046
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2047
   test -f $srcdir/config.status; then
2048
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2049
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2050
   { (exit 1); exit 1; }; }
2051
fi
2052
 
2053
# test whether we have cygpath
2054
if test -z "$CYGPATH_W"; then
2055
  if (cygpath --version) >/dev/null 2>/dev/null; then
2056
    CYGPATH_W='cygpath -w'
2057
  else
2058
    CYGPATH_W=echo
2059
  fi
2060
fi
2061
 
2062
 
2063
# Define the identity of the package.
2064
 PACKAGE='newlib'
2065
 VERSION='1.17.0'
2066
 
2067
 
2068
# Some tools Automake needs.
2069
 
2070
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2071
 
2072
 
2073
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2074
 
2075
 
2076
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2077
 
2078
 
2079
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2080
 
2081
 
2082
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2083
 
2084
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2085
 
2086
# Installed binaries are usually stripped using `strip' when the user
2087
# run `make install-strip'.  However `strip' might not be the right
2088
# tool to use in cross-compilation environments, therefore Automake
2089
# will honor the `STRIP' environment variable to overrule this program.
2090
if test "$cross_compiling" != no; then
2091
  if test -n "$ac_tool_prefix"; then
2092
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2093
set dummy ${ac_tool_prefix}strip; ac_word=$2
2094
echo "$as_me:$LINENO: checking for $ac_word" >&5
2095
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096
if test "${ac_cv_prog_STRIP+set}" = set; then
2097
  echo $ECHO_N "(cached) $ECHO_C" >&6
2098
else
2099
  if test -n "$STRIP"; then
2100
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2101
else
2102
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103
for as_dir in $PATH
2104
do
2105
  IFS=$as_save_IFS
2106
  test -z "$as_dir" && as_dir=.
2107
  for ac_exec_ext in '' $ac_executable_extensions; do
2108
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2110
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111
    break 2
2112
  fi
2113
done
2114
done
2115
 
2116
fi
2117
fi
2118
STRIP=$ac_cv_prog_STRIP
2119
if test -n "$STRIP"; then
2120
  echo "$as_me:$LINENO: result: $STRIP" >&5
2121
echo "${ECHO_T}$STRIP" >&6
2122
else
2123
  echo "$as_me:$LINENO: result: no" >&5
2124
echo "${ECHO_T}no" >&6
2125
fi
2126
 
2127
fi
2128
if test -z "$ac_cv_prog_STRIP"; then
2129
  ac_ct_STRIP=$STRIP
2130
  # Extract the first word of "strip", so it can be a program name with args.
2131
set dummy strip; ac_word=$2
2132
echo "$as_me:$LINENO: checking for $ac_word" >&5
2133
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2135
  echo $ECHO_N "(cached) $ECHO_C" >&6
2136
else
2137
  if test -n "$ac_ct_STRIP"; then
2138
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2139
else
2140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141
for as_dir in $PATH
2142
do
2143
  IFS=$as_save_IFS
2144
  test -z "$as_dir" && as_dir=.
2145
  for ac_exec_ext in '' $ac_executable_extensions; do
2146
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147
    ac_cv_prog_ac_ct_STRIP="strip"
2148
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149
    break 2
2150
  fi
2151
done
2152
done
2153
 
2154
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2155
fi
2156
fi
2157
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2158
if test -n "$ac_ct_STRIP"; then
2159
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2160
echo "${ECHO_T}$ac_ct_STRIP" >&6
2161
else
2162
  echo "$as_me:$LINENO: result: no" >&5
2163
echo "${ECHO_T}no" >&6
2164
fi
2165
 
2166
  STRIP=$ac_ct_STRIP
2167
else
2168
  STRIP="$ac_cv_prog_STRIP"
2169
fi
2170
 
2171
fi
2172
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2173
 
2174
# We need awk for the "check" target.  The system "awk" is bad on
2175
# some platforms.
2176
# Always define AMTAR for backward compatibility.
2177
 
2178
AMTAR=${AMTAR-"${am_missing_run}tar"}
2179
 
2180
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2181
 
2182
 
2183
 
2184
 
2185
 
2186
 
2187
# FIXME: We temporarily define our own version of AC_PROG_CC.  This is
2188
# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
2189
# are probably using a cross compiler, which will not be able to fully
2190
# link an executable.  This should really be fixed in autoconf
2191
# itself.
2192
 
2193
 
2194
 
2195
 
2196
 
2197
 
2198
 
2199
# Extract the first word of "gcc", so it can be a program name with args.
2200
set dummy gcc; ac_word=$2
2201
echo "$as_me:$LINENO: checking for $ac_word" >&5
2202
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203
if test "${ac_cv_prog_CC+set}" = set; then
2204
  echo $ECHO_N "(cached) $ECHO_C" >&6
2205
else
2206
  if test -n "$CC"; then
2207
  ac_cv_prog_CC="$CC" # Let the user override the test.
2208
else
2209
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210
for as_dir in $PATH
2211
do
2212
  IFS=$as_save_IFS
2213
  test -z "$as_dir" && as_dir=.
2214
  for ac_exec_ext in '' $ac_executable_extensions; do
2215
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2216
    ac_cv_prog_CC="gcc"
2217
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218
    break 2
2219
  fi
2220
done
2221
done
2222
 
2223
fi
2224
fi
2225
CC=$ac_cv_prog_CC
2226
if test -n "$CC"; then
2227
  echo "$as_me:$LINENO: result: $CC" >&5
2228
echo "${ECHO_T}$CC" >&6
2229
else
2230
  echo "$as_me:$LINENO: result: no" >&5
2231
echo "${ECHO_T}no" >&6
2232
fi
2233
 
2234
 
2235
depcc="$CC"   am_compiler_list=
2236
 
2237
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2238
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2239
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2240
  echo $ECHO_N "(cached) $ECHO_C" >&6
2241
else
2242
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2243
  # We make a subdir and do the tests there.  Otherwise we can end up
2244
  # making bogus files that we don't know about and never remove.  For
2245
  # instance it was reported that on HP-UX the gcc test will end up
2246
  # making a dummy file named `D' -- because `-MD' means `put the output
2247
  # in D'.
2248
  mkdir conftest.dir
2249
  # Copy depcomp to subdir because otherwise we won't find it if we're
2250
  # using a relative directory.
2251
  cp "$am_depcomp" conftest.dir
2252
  cd conftest.dir
2253
  # We will build objects and dependencies in a subdirectory because
2254
  # it helps to detect inapplicable dependency modes.  For instance
2255
  # both Tru64's cc and ICC support -MD to output dependencies as a
2256
  # side effect of compilation, but ICC will put the dependencies in
2257
  # the current directory while Tru64 will put them in the object
2258
  # directory.
2259
  mkdir sub
2260
 
2261
  am_cv_CC_dependencies_compiler_type=none
2262
  if test "$am_compiler_list" = ""; then
2263
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2264
  fi
2265
  for depmode in $am_compiler_list; do
2266
    # Setup a source with many dependencies, because some compilers
2267
    # like to wrap large dependency lists on column 80 (with \), and
2268
    # we should not choose a depcomp mode which is confused by this.
2269
    #
2270
    # We need to recreate these files for each test, as the compiler may
2271
    # overwrite some of them when testing with obscure command lines.
2272
    # This happens at least with the AIX C compiler.
2273
    : > sub/conftest.c
2274
    for i in 1 2 3 4 5 6; do
2275
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2276
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2277
      # Solaris 8's {/usr,}/bin/sh.
2278
      touch sub/conftst$i.h
2279
    done
2280
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2281
 
2282
    case $depmode in
2283
    nosideeffect)
2284
      # after this tag, mechanisms are not by side-effect, so they'll
2285
      # only be used when explicitly requested
2286
      if test "x$enable_dependency_tracking" = xyes; then
2287
        continue
2288
      else
2289
        break
2290
      fi
2291
      ;;
2292
    none) break ;;
2293
    esac
2294
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2295
    # mode.  It turns out that the SunPro C++ compiler does not properly
2296
    # handle `-M -o', and we need to detect this.
2297
    if depmode=$depmode \
2298
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2299
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2300
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2301
         >/dev/null 2>conftest.err &&
2302
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2303
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2304
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2305
      # icc doesn't choke on unknown options, it will just issue warnings
2306
      # or remarks (even with -Werror).  So we grep stderr for any message
2307
      # that says an option was ignored or not supported.
2308
      # When given -MP, icc 7.0 and 7.1 complain thusly:
2309
      #   icc: Command line warning: ignoring option '-M'; no argument required
2310
      # The diagnosis changed in icc 8.0:
2311
      #   icc: Command line remark: option '-MP' not supported
2312
      if (grep 'ignoring option' conftest.err ||
2313
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2314
        am_cv_CC_dependencies_compiler_type=$depmode
2315
        break
2316
      fi
2317
    fi
2318
  done
2319
 
2320
  cd ..
2321
  rm -rf conftest.dir
2322
else
2323
  am_cv_CC_dependencies_compiler_type=none
2324
fi
2325
 
2326
fi
2327
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2328
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2329
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2330
 
2331
 
2332
 
2333
if
2334
  test "x$enable_dependency_tracking" != xno \
2335
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2336
  am__fastdepCC_TRUE=
2337
  am__fastdepCC_FALSE='#'
2338
else
2339
  am__fastdepCC_TRUE='#'
2340
  am__fastdepCC_FALSE=
2341
fi
2342
 
2343
 
2344
if test -z "$CC"; then
2345
  # Extract the first word of "cc", so it can be a program name with args.
2346
set dummy cc; ac_word=$2
2347
echo "$as_me:$LINENO: checking for $ac_word" >&5
2348
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2349
if test "${ac_cv_prog_CC+set}" = set; then
2350
  echo $ECHO_N "(cached) $ECHO_C" >&6
2351
else
2352
  if test -n "$CC"; then
2353
  ac_cv_prog_CC="$CC" # Let the user override the test.
2354
else
2355
  ac_prog_rejected=no
2356
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357
for as_dir in $PATH
2358
do
2359
  IFS=$as_save_IFS
2360
  test -z "$as_dir" && as_dir=.
2361
  for ac_exec_ext in '' $ac_executable_extensions; do
2362
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2363
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2364
       ac_prog_rejected=yes
2365
       continue
2366
     fi
2367
    ac_cv_prog_CC="cc"
2368
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369
    break 2
2370
  fi
2371
done
2372
done
2373
 
2374
if test $ac_prog_rejected = yes; then
2375
  # We found a bogon in the path, so make sure we never use it.
2376
  set dummy $ac_cv_prog_CC
2377
  shift
2378
  if test $# != 0; then
2379
    # We chose a different compiler from the bogus one.
2380
    # However, it has the same basename, so the bogon will be chosen
2381
    # first if we set CC to just the basename; use the full file name.
2382
    shift
2383
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2384
  fi
2385
fi
2386
fi
2387
fi
2388
CC=$ac_cv_prog_CC
2389
if test -n "$CC"; then
2390
  echo "$as_me:$LINENO: result: $CC" >&5
2391
echo "${ECHO_T}$CC" >&6
2392
else
2393
  echo "$as_me:$LINENO: result: no" >&5
2394
echo "${ECHO_T}no" >&6
2395
fi
2396
 
2397
  test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
2398
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2399
   { (exit 1); exit 1; }; }
2400
fi
2401
 
2402
echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
2403
echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" >&6
2404
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2405
  echo $ECHO_N "(cached) $ECHO_C" >&6
2406
else
2407
  cat > conftest.c <
2408
#ifdef __GNUC__
2409
  yes;
2410
#endif
2411
EOF
2412
if { ac_try='${CC-cc} -E conftest.c'
2413
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414
  (eval $ac_try) 2>&5
2415
  ac_status=$?
2416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417
  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2418
  ac_cv_c_compiler_gnu=yes
2419
else
2420
  ac_cv_c_compiler_gnu=no
2421
fi
2422
fi
2423
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2424
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2425
 
2426
if test $ac_cv_c_compiler_gnu = yes; then
2427
  GCC=yes
2428
  ac_test_CFLAGS="${CFLAGS+set}"
2429
  ac_save_CFLAGS="$CFLAGS"
2430
  CFLAGS=
2431
  ac_test_CFLAGS=${CFLAGS+set}
2432
ac_save_CFLAGS=$CFLAGS
2433
CFLAGS="-g"
2434
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2435
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2436
if test "${ac_cv_prog_cc_g+set}" = set; then
2437
  echo $ECHO_N "(cached) $ECHO_C" >&6
2438
else
2439
  cat >conftest.$ac_ext <<_ACEOF
2440
/* confdefs.h.  */
2441
_ACEOF
2442
cat confdefs.h >>conftest.$ac_ext
2443
cat >>conftest.$ac_ext <<_ACEOF
2444
/* end confdefs.h.  */
2445
 
2446
int
2447
main ()
2448
{
2449
 
2450
  ;
2451
  return 0;
2452
}
2453
_ACEOF
2454
rm -f conftest.$ac_objext
2455
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456
  (eval $ac_compile) 2>conftest.er1
2457
  ac_status=$?
2458
  grep -v '^ *+' conftest.er1 >conftest.err
2459
  rm -f conftest.er1
2460
  cat conftest.err >&5
2461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462
  (exit $ac_status); } &&
2463
         { ac_try='test -z "$ac_c_werror_flag"
2464
                         || test ! -s conftest.err'
2465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466
  (eval $ac_try) 2>&5
2467
  ac_status=$?
2468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469
  (exit $ac_status); }; } &&
2470
         { ac_try='test -s conftest.$ac_objext'
2471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472
  (eval $ac_try) 2>&5
2473
  ac_status=$?
2474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475
  (exit $ac_status); }; }; then
2476
  ac_cv_prog_cc_g=yes
2477
else
2478
  echo "$as_me: failed program was:" >&5
2479
sed 's/^/| /' conftest.$ac_ext >&5
2480
 
2481
ac_cv_prog_cc_g=no
2482
fi
2483
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484
fi
2485
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2486
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2487
if test "$ac_test_CFLAGS" = set; then
2488
  CFLAGS=$ac_save_CFLAGS
2489
elif test $ac_cv_prog_cc_g = yes; then
2490
  if test "$GCC" = yes; then
2491
    CFLAGS="-g -O2"
2492
  else
2493
    CFLAGS="-g"
2494
  fi
2495
else
2496
  if test "$GCC" = yes; then
2497
    CFLAGS="-O2"
2498
  else
2499
    CFLAGS=
2500
  fi
2501
fi
2502
  if test "$ac_test_CFLAGS" = set; then
2503
    CFLAGS="$ac_save_CFLAGS"
2504
  elif test $ac_cv_prog_cc_g = yes; then
2505
    CFLAGS="-g -O2"
2506
  else
2507
    CFLAGS="-O2"
2508
  fi
2509
else
2510
  GCC=
2511
  test "${CFLAGS+set}" = set || CFLAGS="-g"
2512
fi
2513
 
2514
 
2515
if test -n "$ac_tool_prefix"; then
2516
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2517
set dummy ${ac_tool_prefix}as; ac_word=$2
2518
echo "$as_me:$LINENO: checking for $ac_word" >&5
2519
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2520
if test "${ac_cv_prog_AS+set}" = set; then
2521
  echo $ECHO_N "(cached) $ECHO_C" >&6
2522
else
2523
  if test -n "$AS"; then
2524
  ac_cv_prog_AS="$AS" # Let the user override the test.
2525
else
2526
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527
for as_dir in $PATH
2528
do
2529
  IFS=$as_save_IFS
2530
  test -z "$as_dir" && as_dir=.
2531
  for ac_exec_ext in '' $ac_executable_extensions; do
2532
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2533
    ac_cv_prog_AS="${ac_tool_prefix}as"
2534
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535
    break 2
2536
  fi
2537
done
2538
done
2539
 
2540
fi
2541
fi
2542
AS=$ac_cv_prog_AS
2543
if test -n "$AS"; then
2544
  echo "$as_me:$LINENO: result: $AS" >&5
2545
echo "${ECHO_T}$AS" >&6
2546
else
2547
  echo "$as_me:$LINENO: result: no" >&5
2548
echo "${ECHO_T}no" >&6
2549
fi
2550
 
2551
fi
2552
if test -z "$ac_cv_prog_AS"; then
2553
  ac_ct_AS=$AS
2554
  # Extract the first word of "as", so it can be a program name with args.
2555
set dummy as; ac_word=$2
2556
echo "$as_me:$LINENO: checking for $ac_word" >&5
2557
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2558
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2559
  echo $ECHO_N "(cached) $ECHO_C" >&6
2560
else
2561
  if test -n "$ac_ct_AS"; then
2562
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2563
else
2564
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565
for as_dir in $PATH
2566
do
2567
  IFS=$as_save_IFS
2568
  test -z "$as_dir" && as_dir=.
2569
  for ac_exec_ext in '' $ac_executable_extensions; do
2570
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571
    ac_cv_prog_ac_ct_AS="as"
2572
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573
    break 2
2574
  fi
2575
done
2576
done
2577
 
2578
fi
2579
fi
2580
ac_ct_AS=$ac_cv_prog_ac_ct_AS
2581
if test -n "$ac_ct_AS"; then
2582
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
2583
echo "${ECHO_T}$ac_ct_AS" >&6
2584
else
2585
  echo "$as_me:$LINENO: result: no" >&5
2586
echo "${ECHO_T}no" >&6
2587
fi
2588
 
2589
  AS=$ac_ct_AS
2590
else
2591
  AS="$ac_cv_prog_AS"
2592
fi
2593
 
2594
if test -n "$ac_tool_prefix"; then
2595
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2596
set dummy ${ac_tool_prefix}ar; ac_word=$2
2597
echo "$as_me:$LINENO: checking for $ac_word" >&5
2598
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2599
if test "${ac_cv_prog_AR+set}" = set; then
2600
  echo $ECHO_N "(cached) $ECHO_C" >&6
2601
else
2602
  if test -n "$AR"; then
2603
  ac_cv_prog_AR="$AR" # Let the user override the test.
2604
else
2605
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606
for as_dir in $PATH
2607
do
2608
  IFS=$as_save_IFS
2609
  test -z "$as_dir" && as_dir=.
2610
  for ac_exec_ext in '' $ac_executable_extensions; do
2611
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2612
    ac_cv_prog_AR="${ac_tool_prefix}ar"
2613
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614
    break 2
2615
  fi
2616
done
2617
done
2618
 
2619
fi
2620
fi
2621
AR=$ac_cv_prog_AR
2622
if test -n "$AR"; then
2623
  echo "$as_me:$LINENO: result: $AR" >&5
2624
echo "${ECHO_T}$AR" >&6
2625
else
2626
  echo "$as_me:$LINENO: result: no" >&5
2627
echo "${ECHO_T}no" >&6
2628
fi
2629
 
2630
fi
2631
if test -z "$ac_cv_prog_AR"; then
2632
  ac_ct_AR=$AR
2633
  # Extract the first word of "ar", so it can be a program name with args.
2634
set dummy ar; ac_word=$2
2635
echo "$as_me:$LINENO: checking for $ac_word" >&5
2636
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2637
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2638
  echo $ECHO_N "(cached) $ECHO_C" >&6
2639
else
2640
  if test -n "$ac_ct_AR"; then
2641
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2642
else
2643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644
for as_dir in $PATH
2645
do
2646
  IFS=$as_save_IFS
2647
  test -z "$as_dir" && as_dir=.
2648
  for ac_exec_ext in '' $ac_executable_extensions; do
2649
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650
    ac_cv_prog_ac_ct_AR="ar"
2651
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652
    break 2
2653
  fi
2654
done
2655
done
2656
 
2657
fi
2658
fi
2659
ac_ct_AR=$ac_cv_prog_ac_ct_AR
2660
if test -n "$ac_ct_AR"; then
2661
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2662
echo "${ECHO_T}$ac_ct_AR" >&6
2663
else
2664
  echo "$as_me:$LINENO: result: no" >&5
2665
echo "${ECHO_T}no" >&6
2666
fi
2667
 
2668
  AR=$ac_ct_AR
2669
else
2670
  AR="$ac_cv_prog_AR"
2671
fi
2672
 
2673
if test -n "$ac_tool_prefix"; then
2674
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2675
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2676
echo "$as_me:$LINENO: checking for $ac_word" >&5
2677
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678
if test "${ac_cv_prog_RANLIB+set}" = set; then
2679
  echo $ECHO_N "(cached) $ECHO_C" >&6
2680
else
2681
  if test -n "$RANLIB"; then
2682
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2683
else
2684
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685
for as_dir in $PATH
2686
do
2687
  IFS=$as_save_IFS
2688
  test -z "$as_dir" && as_dir=.
2689
  for ac_exec_ext in '' $ac_executable_extensions; do
2690
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2692
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693
    break 2
2694
  fi
2695
done
2696
done
2697
 
2698
fi
2699
fi
2700
RANLIB=$ac_cv_prog_RANLIB
2701
if test -n "$RANLIB"; then
2702
  echo "$as_me:$LINENO: result: $RANLIB" >&5
2703
echo "${ECHO_T}$RANLIB" >&6
2704
else
2705
  echo "$as_me:$LINENO: result: no" >&5
2706
echo "${ECHO_T}no" >&6
2707
fi
2708
 
2709
fi
2710
if test -z "$ac_cv_prog_RANLIB"; then
2711
  ac_ct_RANLIB=$RANLIB
2712
  # Extract the first word of "ranlib", so it can be a program name with args.
2713
set dummy ranlib; ac_word=$2
2714
echo "$as_me:$LINENO: checking for $ac_word" >&5
2715
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2716
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2717
  echo $ECHO_N "(cached) $ECHO_C" >&6
2718
else
2719
  if test -n "$ac_ct_RANLIB"; then
2720
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2721
else
2722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723
for as_dir in $PATH
2724
do
2725
  IFS=$as_save_IFS
2726
  test -z "$as_dir" && as_dir=.
2727
  for ac_exec_ext in '' $ac_executable_extensions; do
2728
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729
    ac_cv_prog_ac_ct_RANLIB="ranlib"
2730
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2731
    break 2
2732
  fi
2733
done
2734
done
2735
 
2736
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2737
fi
2738
fi
2739
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2740
if test -n "$ac_ct_RANLIB"; then
2741
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2742
echo "${ECHO_T}$ac_ct_RANLIB" >&6
2743
else
2744
  echo "$as_me:$LINENO: result: no" >&5
2745
echo "${ECHO_T}no" >&6
2746
fi
2747
 
2748
  RANLIB=$ac_ct_RANLIB
2749
else
2750
  RANLIB="$ac_cv_prog_RANLIB"
2751
fi
2752
 
2753
if test -n "$ac_tool_prefix"; then
2754
  # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2755
set dummy ${ac_tool_prefix}readelf; ac_word=$2
2756
echo "$as_me:$LINENO: checking for $ac_word" >&5
2757
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2758
if test "${ac_cv_prog_READELF+set}" = set; then
2759
  echo $ECHO_N "(cached) $ECHO_C" >&6
2760
else
2761
  if test -n "$READELF"; then
2762
  ac_cv_prog_READELF="$READELF" # Let the user override the test.
2763
else
2764
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765
for as_dir in $PATH
2766
do
2767
  IFS=$as_save_IFS
2768
  test -z "$as_dir" && as_dir=.
2769
  for ac_exec_ext in '' $ac_executable_extensions; do
2770
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2771
    ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2772
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773
    break 2
2774
  fi
2775
done
2776
done
2777
 
2778
fi
2779
fi
2780
READELF=$ac_cv_prog_READELF
2781
if test -n "$READELF"; then
2782
  echo "$as_me:$LINENO: result: $READELF" >&5
2783
echo "${ECHO_T}$READELF" >&6
2784
else
2785
  echo "$as_me:$LINENO: result: no" >&5
2786
echo "${ECHO_T}no" >&6
2787
fi
2788
 
2789
fi
2790
if test -z "$ac_cv_prog_READELF"; then
2791
  ac_ct_READELF=$READELF
2792
  # Extract the first word of "readelf", so it can be a program name with args.
2793
set dummy readelf; ac_word=$2
2794
echo "$as_me:$LINENO: checking for $ac_word" >&5
2795
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2796
if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
2797
  echo $ECHO_N "(cached) $ECHO_C" >&6
2798
else
2799
  if test -n "$ac_ct_READELF"; then
2800
  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2801
else
2802
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803
for as_dir in $PATH
2804
do
2805
  IFS=$as_save_IFS
2806
  test -z "$as_dir" && as_dir=.
2807
  for ac_exec_ext in '' $ac_executable_extensions; do
2808
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2809
    ac_cv_prog_ac_ct_READELF="readelf"
2810
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811
    break 2
2812
  fi
2813
done
2814
done
2815
 
2816
  test -z "$ac_cv_prog_ac_ct_READELF" && ac_cv_prog_ac_ct_READELF=":"
2817
fi
2818
fi
2819
ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2820
if test -n "$ac_ct_READELF"; then
2821
  echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
2822
echo "${ECHO_T}$ac_ct_READELF" >&6
2823
else
2824
  echo "$as_me:$LINENO: result: no" >&5
2825
echo "${ECHO_T}no" >&6
2826
fi
2827
 
2828
  READELF=$ac_ct_READELF
2829
else
2830
  READELF="$ac_cv_prog_READELF"
2831
fi
2832
 
2833
 
2834
# Find a good install program.  We prefer a C program (faster),
2835
# so one script is as good as another.  But avoid the broken or
2836
# incompatible versions:
2837
# SysV /etc/install, /usr/sbin/install
2838
# SunOS /usr/etc/install
2839
# IRIX /sbin/install
2840
# AIX /bin/install
2841
# AmigaOS /C/install, which installs bootblocks on floppy discs
2842
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2843
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2844
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2845
# OS/2's system install, which has a completely different semantic
2846
# ./install, which can be erroneously created by make from ./install.sh.
2847
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2848
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2849
if test -z "$INSTALL"; then
2850
if test "${ac_cv_path_install+set}" = set; then
2851
  echo $ECHO_N "(cached) $ECHO_C" >&6
2852
else
2853
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854
for as_dir in $PATH
2855
do
2856
  IFS=$as_save_IFS
2857
  test -z "$as_dir" && as_dir=.
2858
  # Account for people who put trailing slashes in PATH elements.
2859
case $as_dir/ in
2860
  ./ | .// | /cC/* | \
2861
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2862
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2863
  /usr/ucb/* ) ;;
2864
  *)
2865
    # OSF1 and SCO ODT 3.0 have their own names for install.
2866
    # Don't use installbsd from OSF since it installs stuff as root
2867
    # by default.
2868
    for ac_prog in ginstall scoinst install; do
2869
      for ac_exec_ext in '' $ac_executable_extensions; do
2870
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2871
          if test $ac_prog = install &&
2872
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2873
            # AIX install.  It has an incompatible calling convention.
2874
            :
2875
          elif test $ac_prog = install &&
2876
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2877
            # program-specific install script used by HP pwplus--don't use.
2878
            :
2879
          else
2880
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2881
            break 3
2882
          fi
2883
        fi
2884
      done
2885
    done
2886
    ;;
2887
esac
2888
done
2889
 
2890
 
2891
fi
2892
  if test "${ac_cv_path_install+set}" = set; then
2893
    INSTALL=$ac_cv_path_install
2894
  else
2895
    # As a last resort, use the slow shell script.  We don't cache a
2896
    # path for INSTALL within a source directory, because that will
2897
    # break other packages using the cache if that directory is
2898
    # removed, or if the path is relative.
2899
    INSTALL=$ac_install_sh
2900
  fi
2901
fi
2902
echo "$as_me:$LINENO: result: $INSTALL" >&5
2903
echo "${ECHO_T}$INSTALL" >&6
2904
 
2905
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2906
# It thinks the first close brace ends the variable substitution.
2907
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2908
 
2909
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2910
 
2911
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2912
 
2913
 
2914
# Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
2915
ac_given_INSTALL=$INSTALL
2916
 
2917
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2918
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2919
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2920
if test "${enable_maintainer_mode+set}" = set; then
2921
  enableval="$enable_maintainer_mode"
2922
  USE_MAINTAINER_MODE=$enableval
2923
else
2924
  USE_MAINTAINER_MODE=no
2925
fi;
2926
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2927
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2928
 
2929
 
2930
if test $USE_MAINTAINER_MODE = yes; then
2931
  MAINTAINER_MODE_TRUE=
2932
  MAINTAINER_MODE_FALSE='#'
2933
else
2934
  MAINTAINER_MODE_TRUE='#'
2935
  MAINTAINER_MODE_FALSE=
2936
fi
2937
 
2938
  MAINT=$MAINTAINER_MODE_TRUE
2939
 
2940
 
2941
# By default we simply use the C compiler to build assembly code.
2942
 
2943
test "${CCAS+set}" = set || CCAS=$CC
2944
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2945
 
2946
 
2947
 
2948
 
2949
# We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
2950
# at least currently, we never actually build a program, so we never
2951
# need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
2952
# fails, because we are probably configuring with a cross compiler
2953
# which can't create executables.  So we include AC_EXEEXT to keep
2954
# automake happy, but we don't execute it, since we don't care about
2955
# the result.
2956
if false; then
2957
 
2958
  dummy_var=1
2959
fi
2960
 
2961
. ${newlib_basedir}/configure.host
2962
 
2963
newlib_cflags="${newlib_cflags} -fno-builtin"
2964
 
2965
NEWLIB_CFLAGS=${newlib_cflags}
2966
 
2967
 
2968
LDFLAGS=${ldflags}
2969
 
2970
 
2971
 
2972
 
2973
if test x${newlib_elix_level} = x0; then
2974
  ELIX_LEVEL_0_TRUE=
2975
  ELIX_LEVEL_0_FALSE='#'
2976
else
2977
  ELIX_LEVEL_0_TRUE='#'
2978
  ELIX_LEVEL_0_FALSE=
2979
fi
2980
 
2981
 
2982
 
2983
if test x${newlib_elix_level} = x1; then
2984
  ELIX_LEVEL_1_TRUE=
2985
  ELIX_LEVEL_1_FALSE='#'
2986
else
2987
  ELIX_LEVEL_1_TRUE='#'
2988
  ELIX_LEVEL_1_FALSE=
2989
fi
2990
 
2991
 
2992
 
2993
if test x${newlib_elix_level} = x2; then
2994
  ELIX_LEVEL_2_TRUE=
2995
  ELIX_LEVEL_2_FALSE='#'
2996
else
2997
  ELIX_LEVEL_2_TRUE='#'
2998
  ELIX_LEVEL_2_FALSE=
2999
fi
3000
 
3001
 
3002
 
3003
if test x${newlib_elix_level} = x3; then
3004
  ELIX_LEVEL_3_TRUE=
3005
  ELIX_LEVEL_3_FALSE='#'
3006
else
3007
  ELIX_LEVEL_3_TRUE='#'
3008
  ELIX_LEVEL_3_FALSE=
3009
fi
3010
 
3011
 
3012
 
3013
if test x${newlib_elix_level} = x4; then
3014
  ELIX_LEVEL_4_TRUE=
3015
  ELIX_LEVEL_4_FALSE='#'
3016
else
3017
  ELIX_LEVEL_4_TRUE='#'
3018
  ELIX_LEVEL_4_FALSE=
3019
fi
3020
 
3021
 
3022
 
3023
 
3024
if test x${use_libtool} = xyes; then
3025
  USE_LIBTOOL_TRUE=
3026
  USE_LIBTOOL_FALSE='#'
3027
else
3028
  USE_LIBTOOL_TRUE='#'
3029
  USE_LIBTOOL_FALSE=
3030
fi
3031
 
3032
 
3033
# Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3034
# use oext, which is set in configure.host based on the target platform.
3035
OBJEXT=${oext}
3036
 
3037
 
3038
 
3039
 
3040
 
3041
 
3042
 
3043
 
3044
 
3045
 
3046
 
3047
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3048
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3049
if test "${lt_cv_path_SED+set}" = set; then
3050
  echo $ECHO_N "(cached) $ECHO_C" >&6
3051
else
3052
  # Loop through the user's path and test for sed and gsed.
3053
# Then use that list of sed's as ones to test for truncation.
3054
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055
for as_dir in $PATH
3056
do
3057
  IFS=$as_save_IFS
3058
  test -z "$as_dir" && as_dir=.
3059
  for lt_ac_prog in sed gsed; do
3060
    for ac_exec_ext in '' $ac_executable_extensions; do
3061
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3062
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3063
      fi
3064
    done
3065
  done
3066
done
3067
IFS=$as_save_IFS
3068
lt_ac_max=0
3069
lt_ac_count=0
3070
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3071
# along with /bin/sed that truncates output.
3072
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3073
  test ! -f $lt_ac_sed && continue
3074
  cat /dev/null > conftest.in
3075
  lt_ac_count=0
3076
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3077
  # Check for GNU sed and select it if it is found.
3078
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3079
    lt_cv_path_SED=$lt_ac_sed
3080
    break
3081
  fi
3082
  while true; do
3083
    cat conftest.in conftest.in >conftest.tmp
3084
    mv conftest.tmp conftest.in
3085
    cp conftest.in conftest.nl
3086
    echo >>conftest.nl
3087
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3088
    cmp -s conftest.out conftest.nl || break
3089
    # 10000 chars as input seems more than enough
3090
    test $lt_ac_count -gt 10 && break
3091
    lt_ac_count=`expr $lt_ac_count + 1`
3092
    if test $lt_ac_count -gt $lt_ac_max; then
3093
      lt_ac_max=$lt_ac_count
3094
      lt_cv_path_SED=$lt_ac_sed
3095
    fi
3096
  done
3097
done
3098
 
3099
fi
3100
 
3101
SED=$lt_cv_path_SED
3102
 
3103
echo "$as_me:$LINENO: result: $SED" >&5
3104
echo "${ECHO_T}$SED" >&6
3105
 
3106
test -z "$SED" && SED=sed
3107
Xsed="$SED -e 1s/^X//"
3108
 
3109
 
3110
 
3111
 
3112
 
3113
 
3114
 
3115
 
3116
 
3117
 
3118
 
3119
if test "${use_libtool}" = "yes"; then
3120
enable_win32_dll=yes
3121
 
3122
case $host in
3123
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
3124
  if test -n "$ac_tool_prefix"; then
3125
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3126
set dummy ${ac_tool_prefix}as; ac_word=$2
3127
echo "$as_me:$LINENO: checking for $ac_word" >&5
3128
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3129
if test "${ac_cv_prog_AS+set}" = set; then
3130
  echo $ECHO_N "(cached) $ECHO_C" >&6
3131
else
3132
  if test -n "$AS"; then
3133
  ac_cv_prog_AS="$AS" # Let the user override the test.
3134
else
3135
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136
for as_dir in $PATH
3137
do
3138
  IFS=$as_save_IFS
3139
  test -z "$as_dir" && as_dir=.
3140
  for ac_exec_ext in '' $ac_executable_extensions; do
3141
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142
    ac_cv_prog_AS="${ac_tool_prefix}as"
3143
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3144
    break 2
3145
  fi
3146
done
3147
done
3148
 
3149
fi
3150
fi
3151
AS=$ac_cv_prog_AS
3152
if test -n "$AS"; then
3153
  echo "$as_me:$LINENO: result: $AS" >&5
3154
echo "${ECHO_T}$AS" >&6
3155
else
3156
  echo "$as_me:$LINENO: result: no" >&5
3157
echo "${ECHO_T}no" >&6
3158
fi
3159
 
3160
fi
3161
if test -z "$ac_cv_prog_AS"; then
3162
  ac_ct_AS=$AS
3163
  # Extract the first word of "as", so it can be a program name with args.
3164
set dummy as; ac_word=$2
3165
echo "$as_me:$LINENO: checking for $ac_word" >&5
3166
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3167
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3168
  echo $ECHO_N "(cached) $ECHO_C" >&6
3169
else
3170
  if test -n "$ac_ct_AS"; then
3171
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3172
else
3173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174
for as_dir in $PATH
3175
do
3176
  IFS=$as_save_IFS
3177
  test -z "$as_dir" && as_dir=.
3178
  for ac_exec_ext in '' $ac_executable_extensions; do
3179
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180
    ac_cv_prog_ac_ct_AS="as"
3181
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182
    break 2
3183
  fi
3184
done
3185
done
3186
 
3187
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3188
fi
3189
fi
3190
ac_ct_AS=$ac_cv_prog_ac_ct_AS
3191
if test -n "$ac_ct_AS"; then
3192
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3193
echo "${ECHO_T}$ac_ct_AS" >&6
3194
else
3195
  echo "$as_me:$LINENO: result: no" >&5
3196
echo "${ECHO_T}no" >&6
3197
fi
3198
 
3199
  AS=$ac_ct_AS
3200
else
3201
  AS="$ac_cv_prog_AS"
3202
fi
3203
 
3204
  if test -n "$ac_tool_prefix"; then
3205
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3206
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3207
echo "$as_me:$LINENO: checking for $ac_word" >&5
3208
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3209
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3210
  echo $ECHO_N "(cached) $ECHO_C" >&6
3211
else
3212
  if test -n "$DLLTOOL"; then
3213
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3214
else
3215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216
for as_dir in $PATH
3217
do
3218
  IFS=$as_save_IFS
3219
  test -z "$as_dir" && as_dir=.
3220
  for ac_exec_ext in '' $ac_executable_extensions; do
3221
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3223
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3224
    break 2
3225
  fi
3226
done
3227
done
3228
 
3229
fi
3230
fi
3231
DLLTOOL=$ac_cv_prog_DLLTOOL
3232
if test -n "$DLLTOOL"; then
3233
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3234
echo "${ECHO_T}$DLLTOOL" >&6
3235
else
3236
  echo "$as_me:$LINENO: result: no" >&5
3237
echo "${ECHO_T}no" >&6
3238
fi
3239
 
3240
fi
3241
if test -z "$ac_cv_prog_DLLTOOL"; then
3242
  ac_ct_DLLTOOL=$DLLTOOL
3243
  # Extract the first word of "dlltool", so it can be a program name with args.
3244
set dummy dlltool; ac_word=$2
3245
echo "$as_me:$LINENO: checking for $ac_word" >&5
3246
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3248
  echo $ECHO_N "(cached) $ECHO_C" >&6
3249
else
3250
  if test -n "$ac_ct_DLLTOOL"; then
3251
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3252
else
3253
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254
for as_dir in $PATH
3255
do
3256
  IFS=$as_save_IFS
3257
  test -z "$as_dir" && as_dir=.
3258
  for ac_exec_ext in '' $ac_executable_extensions; do
3259
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3261
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262
    break 2
3263
  fi
3264
done
3265
done
3266
 
3267
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3268
fi
3269
fi
3270
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3271
if test -n "$ac_ct_DLLTOOL"; then
3272
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3273
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3274
else
3275
  echo "$as_me:$LINENO: result: no" >&5
3276
echo "${ECHO_T}no" >&6
3277
fi
3278
 
3279
  DLLTOOL=$ac_ct_DLLTOOL
3280
else
3281
  DLLTOOL="$ac_cv_prog_DLLTOOL"
3282
fi
3283
 
3284
  if test -n "$ac_tool_prefix"; then
3285
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3286
set dummy ${ac_tool_prefix}objdump; ac_word=$2
3287
echo "$as_me:$LINENO: checking for $ac_word" >&5
3288
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3289
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3290
  echo $ECHO_N "(cached) $ECHO_C" >&6
3291
else
3292
  if test -n "$OBJDUMP"; then
3293
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3294
else
3295
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296
for as_dir in $PATH
3297
do
3298
  IFS=$as_save_IFS
3299
  test -z "$as_dir" && as_dir=.
3300
  for ac_exec_ext in '' $ac_executable_extensions; do
3301
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3303
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3304
    break 2
3305
  fi
3306
done
3307
done
3308
 
3309
fi
3310
fi
3311
OBJDUMP=$ac_cv_prog_OBJDUMP
3312
if test -n "$OBJDUMP"; then
3313
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3314
echo "${ECHO_T}$OBJDUMP" >&6
3315
else
3316
  echo "$as_me:$LINENO: result: no" >&5
3317
echo "${ECHO_T}no" >&6
3318
fi
3319
 
3320
fi
3321
if test -z "$ac_cv_prog_OBJDUMP"; then
3322
  ac_ct_OBJDUMP=$OBJDUMP
3323
  # Extract the first word of "objdump", so it can be a program name with args.
3324
set dummy objdump; ac_word=$2
3325
echo "$as_me:$LINENO: checking for $ac_word" >&5
3326
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3327
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3328
  echo $ECHO_N "(cached) $ECHO_C" >&6
3329
else
3330
  if test -n "$ac_ct_OBJDUMP"; then
3331
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3332
else
3333
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334
for as_dir in $PATH
3335
do
3336
  IFS=$as_save_IFS
3337
  test -z "$as_dir" && as_dir=.
3338
  for ac_exec_ext in '' $ac_executable_extensions; do
3339
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
3341
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3342
    break 2
3343
  fi
3344
done
3345
done
3346
 
3347
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3348
fi
3349
fi
3350
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3351
if test -n "$ac_ct_OBJDUMP"; then
3352
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
3353
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3354
else
3355
  echo "$as_me:$LINENO: result: no" >&5
3356
echo "${ECHO_T}no" >&6
3357
fi
3358
 
3359
  OBJDUMP=$ac_ct_OBJDUMP
3360
else
3361
  OBJDUMP="$ac_cv_prog_OBJDUMP"
3362
fi
3363
 
3364
  ;;
3365
esac
3366
 
3367
test -z "$AS" && AS=as
3368
 
3369
 
3370
 
3371
 
3372
 
3373
test -z "$DLLTOOL" && DLLTOOL=dlltool
3374
 
3375
 
3376
 
3377
 
3378
 
3379
test -z "$OBJDUMP" && OBJDUMP=objdump
3380
 
3381
 
3382
 
3383
 
3384
 
3385
 
3386
 
3387
case `pwd` in
3388
  *\ * | *\     *)
3389
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3390
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3391
esac
3392
 
3393
 
3394
 
3395
macro_version='2.2.6'
3396
macro_revision='1.3012'
3397
 
3398
 
3399
 
3400
 
3401
 
3402
 
3403
 
3404
 
3405
 
3406
 
3407
 
3408
 
3409
 
3410
ltmain="$ac_aux_dir/ltmain.sh"
3411
 
3412
ac_ext=c
3413
ac_cpp='$CPP $CPPFLAGS'
3414
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417
if test -n "$ac_tool_prefix"; then
3418
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3419
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3420
echo "$as_me:$LINENO: checking for $ac_word" >&5
3421
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422
if test "${ac_cv_prog_CC+set}" = set; then
3423
  echo $ECHO_N "(cached) $ECHO_C" >&6
3424
else
3425
  if test -n "$CC"; then
3426
  ac_cv_prog_CC="$CC" # Let the user override the test.
3427
else
3428
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429
for as_dir in $PATH
3430
do
3431
  IFS=$as_save_IFS
3432
  test -z "$as_dir" && as_dir=.
3433
  for ac_exec_ext in '' $ac_executable_extensions; do
3434
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3435
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3436
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3437
    break 2
3438
  fi
3439
done
3440
done
3441
 
3442
fi
3443
fi
3444
CC=$ac_cv_prog_CC
3445
if test -n "$CC"; then
3446
  echo "$as_me:$LINENO: result: $CC" >&5
3447
echo "${ECHO_T}$CC" >&6
3448
else
3449
  echo "$as_me:$LINENO: result: no" >&5
3450
echo "${ECHO_T}no" >&6
3451
fi
3452
 
3453
fi
3454
if test -z "$ac_cv_prog_CC"; then
3455
  ac_ct_CC=$CC
3456
  # Extract the first word of "gcc", so it can be a program name with args.
3457
set dummy gcc; ac_word=$2
3458
echo "$as_me:$LINENO: checking for $ac_word" >&5
3459
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3461
  echo $ECHO_N "(cached) $ECHO_C" >&6
3462
else
3463
  if test -n "$ac_ct_CC"; then
3464
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3465
else
3466
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467
for as_dir in $PATH
3468
do
3469
  IFS=$as_save_IFS
3470
  test -z "$as_dir" && as_dir=.
3471
  for ac_exec_ext in '' $ac_executable_extensions; do
3472
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473
    ac_cv_prog_ac_ct_CC="gcc"
3474
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475
    break 2
3476
  fi
3477
done
3478
done
3479
 
3480
fi
3481
fi
3482
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3483
if test -n "$ac_ct_CC"; then
3484
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3485
echo "${ECHO_T}$ac_ct_CC" >&6
3486
else
3487
  echo "$as_me:$LINENO: result: no" >&5
3488
echo "${ECHO_T}no" >&6
3489
fi
3490
 
3491
  CC=$ac_ct_CC
3492
else
3493
  CC="$ac_cv_prog_CC"
3494
fi
3495
 
3496
if test -z "$CC"; then
3497
  if test -n "$ac_tool_prefix"; then
3498
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3499
set dummy ${ac_tool_prefix}cc; ac_word=$2
3500
echo "$as_me:$LINENO: checking for $ac_word" >&5
3501
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502
if test "${ac_cv_prog_CC+set}" = set; then
3503
  echo $ECHO_N "(cached) $ECHO_C" >&6
3504
else
3505
  if test -n "$CC"; then
3506
  ac_cv_prog_CC="$CC" # Let the user override the test.
3507
else
3508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509
for as_dir in $PATH
3510
do
3511
  IFS=$as_save_IFS
3512
  test -z "$as_dir" && as_dir=.
3513
  for ac_exec_ext in '' $ac_executable_extensions; do
3514
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3516
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3517
    break 2
3518
  fi
3519
done
3520
done
3521
 
3522
fi
3523
fi
3524
CC=$ac_cv_prog_CC
3525
if test -n "$CC"; then
3526
  echo "$as_me:$LINENO: result: $CC" >&5
3527
echo "${ECHO_T}$CC" >&6
3528
else
3529
  echo "$as_me:$LINENO: result: no" >&5
3530
echo "${ECHO_T}no" >&6
3531
fi
3532
 
3533
fi
3534
if test -z "$ac_cv_prog_CC"; then
3535
  ac_ct_CC=$CC
3536
  # Extract the first word of "cc", so it can be a program name with args.
3537
set dummy cc; ac_word=$2
3538
echo "$as_me:$LINENO: checking for $ac_word" >&5
3539
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3540
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3541
  echo $ECHO_N "(cached) $ECHO_C" >&6
3542
else
3543
  if test -n "$ac_ct_CC"; then
3544
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3545
else
3546
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547
for as_dir in $PATH
3548
do
3549
  IFS=$as_save_IFS
3550
  test -z "$as_dir" && as_dir=.
3551
  for ac_exec_ext in '' $ac_executable_extensions; do
3552
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553
    ac_cv_prog_ac_ct_CC="cc"
3554
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555
    break 2
3556
  fi
3557
done
3558
done
3559
 
3560
fi
3561
fi
3562
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563
if test -n "$ac_ct_CC"; then
3564
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3565
echo "${ECHO_T}$ac_ct_CC" >&6
3566
else
3567
  echo "$as_me:$LINENO: result: no" >&5
3568
echo "${ECHO_T}no" >&6
3569
fi
3570
 
3571
  CC=$ac_ct_CC
3572
else
3573
  CC="$ac_cv_prog_CC"
3574
fi
3575
 
3576
fi
3577
if test -z "$CC"; then
3578
  # Extract the first word of "cc", so it can be a program name with args.
3579
set dummy cc; ac_word=$2
3580
echo "$as_me:$LINENO: checking for $ac_word" >&5
3581
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582
if test "${ac_cv_prog_CC+set}" = set; then
3583
  echo $ECHO_N "(cached) $ECHO_C" >&6
3584
else
3585
  if test -n "$CC"; then
3586
  ac_cv_prog_CC="$CC" # Let the user override the test.
3587
else
3588
  ac_prog_rejected=no
3589
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590
for as_dir in $PATH
3591
do
3592
  IFS=$as_save_IFS
3593
  test -z "$as_dir" && as_dir=.
3594
  for ac_exec_ext in '' $ac_executable_extensions; do
3595
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3597
       ac_prog_rejected=yes
3598
       continue
3599
     fi
3600
    ac_cv_prog_CC="cc"
3601
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3602
    break 2
3603
  fi
3604
done
3605
done
3606
 
3607
if test $ac_prog_rejected = yes; then
3608
  # We found a bogon in the path, so make sure we never use it.
3609
  set dummy $ac_cv_prog_CC
3610
  shift
3611
  if test $# != 0; then
3612
    # We chose a different compiler from the bogus one.
3613
    # However, it has the same basename, so the bogon will be chosen
3614
    # first if we set CC to just the basename; use the full file name.
3615
    shift
3616
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3617
  fi
3618
fi
3619
fi
3620
fi
3621
CC=$ac_cv_prog_CC
3622
if test -n "$CC"; then
3623
  echo "$as_me:$LINENO: result: $CC" >&5
3624
echo "${ECHO_T}$CC" >&6
3625
else
3626
  echo "$as_me:$LINENO: result: no" >&5
3627
echo "${ECHO_T}no" >&6
3628
fi
3629
 
3630
fi
3631
if test -z "$CC"; then
3632
  if test -n "$ac_tool_prefix"; then
3633
  for ac_prog in cl
3634
  do
3635
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3636
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3637
echo "$as_me:$LINENO: checking for $ac_word" >&5
3638
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3639
if test "${ac_cv_prog_CC+set}" = set; then
3640
  echo $ECHO_N "(cached) $ECHO_C" >&6
3641
else
3642
  if test -n "$CC"; then
3643
  ac_cv_prog_CC="$CC" # Let the user override the test.
3644
else
3645
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646
for as_dir in $PATH
3647
do
3648
  IFS=$as_save_IFS
3649
  test -z "$as_dir" && as_dir=.
3650
  for ac_exec_ext in '' $ac_executable_extensions; do
3651
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3652
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3653
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654
    break 2
3655
  fi
3656
done
3657
done
3658
 
3659
fi
3660
fi
3661
CC=$ac_cv_prog_CC
3662
if test -n "$CC"; then
3663
  echo "$as_me:$LINENO: result: $CC" >&5
3664
echo "${ECHO_T}$CC" >&6
3665
else
3666
  echo "$as_me:$LINENO: result: no" >&5
3667
echo "${ECHO_T}no" >&6
3668
fi
3669
 
3670
    test -n "$CC" && break
3671
  done
3672
fi
3673
if test -z "$CC"; then
3674
  ac_ct_CC=$CC
3675
  for ac_prog in cl
3676
do
3677
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3678
set dummy $ac_prog; ac_word=$2
3679
echo "$as_me:$LINENO: checking for $ac_word" >&5
3680
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3681
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3682
  echo $ECHO_N "(cached) $ECHO_C" >&6
3683
else
3684
  if test -n "$ac_ct_CC"; then
3685
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3686
else
3687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688
for as_dir in $PATH
3689
do
3690
  IFS=$as_save_IFS
3691
  test -z "$as_dir" && as_dir=.
3692
  for ac_exec_ext in '' $ac_executable_extensions; do
3693
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3694
    ac_cv_prog_ac_ct_CC="$ac_prog"
3695
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3696
    break 2
3697
  fi
3698
done
3699
done
3700
 
3701
fi
3702
fi
3703
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3704
if test -n "$ac_ct_CC"; then
3705
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3706
echo "${ECHO_T}$ac_ct_CC" >&6
3707
else
3708
  echo "$as_me:$LINENO: result: no" >&5
3709
echo "${ECHO_T}no" >&6
3710
fi
3711
 
3712
  test -n "$ac_ct_CC" && break
3713
done
3714
 
3715
  CC=$ac_ct_CC
3716
fi
3717
 
3718
fi
3719
 
3720
 
3721
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3722
See \`config.log' for more details." >&5
3723
echo "$as_me: error: no acceptable C compiler found in \$PATH
3724
See \`config.log' for more details." >&2;}
3725
   { (exit 1); exit 1; }; }
3726
 
3727
# Provide some information about the compiler.
3728
echo "$as_me:$LINENO:" \
3729
     "checking for C compiler version" >&5
3730
ac_compiler=`set X $ac_compile; echo $2`
3731
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3732
  (eval $ac_compiler --version &5) 2>&5
3733
  ac_status=$?
3734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735
  (exit $ac_status); }
3736
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3737
  (eval $ac_compiler -v &5) 2>&5
3738
  ac_status=$?
3739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740
  (exit $ac_status); }
3741
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3742
  (eval $ac_compiler -V &5) 2>&5
3743
  ac_status=$?
3744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745
  (exit $ac_status); }
3746
 
3747
cat >conftest.$ac_ext <<_ACEOF
3748
/* confdefs.h.  */
3749
_ACEOF
3750
cat confdefs.h >>conftest.$ac_ext
3751
cat >>conftest.$ac_ext <<_ACEOF
3752
/* end confdefs.h.  */
3753
 
3754
int
3755
main ()
3756
{
3757
 
3758
  ;
3759
  return 0;
3760
}
3761
_ACEOF
3762
ac_clean_files_save=$ac_clean_files
3763
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3764
# Try to create an executable without -o first, disregard a.out.
3765
# It will help us diagnose broken compilers, and finding out an intuition
3766
# of exeext.
3767
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3768
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3769
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3770
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3771
  (eval $ac_link_default) 2>&5
3772
  ac_status=$?
3773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774
  (exit $ac_status); }; then
3775
  # Find the output, starting from the most likely.  This scheme is
3776
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3777
# resort.
3778
 
3779
# Be careful to initialize this variable, since it used to be cached.
3780
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3781
ac_cv_exeext=
3782
# b.out is created by i960 compilers.
3783
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3784
do
3785
  test -f "$ac_file" || continue
3786
  case $ac_file in
3787
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3788
        ;;
3789
    conftest.$ac_ext )
3790
        # This is the source file.
3791
        ;;
3792
    [ab].out )
3793
        # We found the default executable, but exeext='' is most
3794
        # certainly right.
3795
        break;;
3796
    *.* )
3797
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3798
        # FIXME: I believe we export ac_cv_exeext for Libtool,
3799
        # but it would be cool to find out if it's true.  Does anybody
3800
        # maintain Libtool? --akim.
3801
        export ac_cv_exeext
3802
        break;;
3803
    * )
3804
        break;;
3805
  esac
3806
done
3807
else
3808
  echo "$as_me: failed program was:" >&5
3809
sed 's/^/| /' conftest.$ac_ext >&5
3810
 
3811
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3812
See \`config.log' for more details." >&5
3813
echo "$as_me: error: C compiler cannot create executables
3814
See \`config.log' for more details." >&2;}
3815
   { (exit 77); exit 77; }; }
3816
fi
3817
 
3818
ac_exeext=$ac_cv_exeext
3819
echo "$as_me:$LINENO: result: $ac_file" >&5
3820
echo "${ECHO_T}$ac_file" >&6
3821
 
3822
# Check the compiler produces executables we can run.  If not, either
3823
# the compiler is broken, or we cross compile.
3824
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3825
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3826
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3827
# If not cross compiling, check that we can run a simple program.
3828
if test "$cross_compiling" != yes; then
3829
  if { ac_try='./$ac_file'
3830
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831
  (eval $ac_try) 2>&5
3832
  ac_status=$?
3833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834
  (exit $ac_status); }; }; then
3835
    cross_compiling=no
3836
  else
3837
    if test "$cross_compiling" = maybe; then
3838
        cross_compiling=yes
3839
    else
3840
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3841
If you meant to cross compile, use \`--host'.
3842
See \`config.log' for more details." >&5
3843
echo "$as_me: error: cannot run C compiled programs.
3844
If you meant to cross compile, use \`--host'.
3845
See \`config.log' for more details." >&2;}
3846
   { (exit 1); exit 1; }; }
3847
    fi
3848
  fi
3849
fi
3850
echo "$as_me:$LINENO: result: yes" >&5
3851
echo "${ECHO_T}yes" >&6
3852
 
3853
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3854
ac_clean_files=$ac_clean_files_save
3855
# Check the compiler produces executables we can run.  If not, either
3856
# the compiler is broken, or we cross compile.
3857
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3858
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3859
echo "$as_me:$LINENO: result: $cross_compiling" >&5
3860
echo "${ECHO_T}$cross_compiling" >&6
3861
 
3862
echo "$as_me:$LINENO: checking for suffix of executables" >&5
3863
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3864
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3865
  (eval $ac_link) 2>&5
3866
  ac_status=$?
3867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868
  (exit $ac_status); }; then
3869
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3870
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3871
# work properly (i.e., refer to `conftest.exe'), while it won't with
3872
# `rm'.
3873
for ac_file in conftest.exe conftest conftest.*; do
3874
  test -f "$ac_file" || continue
3875
  case $ac_file in
3876
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3877
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3878
          export ac_cv_exeext
3879
          break;;
3880
    * ) break;;
3881
  esac
3882
done
3883
else
3884
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3885
See \`config.log' for more details." >&5
3886
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3887
See \`config.log' for more details." >&2;}
3888
   { (exit 1); exit 1; }; }
3889
fi
3890
 
3891
rm -f conftest$ac_cv_exeext
3892
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3893
echo "${ECHO_T}$ac_cv_exeext" >&6
3894
 
3895
rm -f conftest.$ac_ext
3896
EXEEXT=$ac_cv_exeext
3897
ac_exeext=$EXEEXT
3898
echo "$as_me:$LINENO: checking for suffix of object files" >&5
3899
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3900
if test "${ac_cv_objext+set}" = set; then
3901
  echo $ECHO_N "(cached) $ECHO_C" >&6
3902
else
3903
  cat >conftest.$ac_ext <<_ACEOF
3904
/* confdefs.h.  */
3905
_ACEOF
3906
cat confdefs.h >>conftest.$ac_ext
3907
cat >>conftest.$ac_ext <<_ACEOF
3908
/* end confdefs.h.  */
3909
 
3910
int
3911
main ()
3912
{
3913
 
3914
  ;
3915
  return 0;
3916
}
3917
_ACEOF
3918
rm -f conftest.o conftest.obj
3919
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3920
  (eval $ac_compile) 2>&5
3921
  ac_status=$?
3922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923
  (exit $ac_status); }; then
3924
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3925
  case $ac_file in
3926
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3927
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3928
       break;;
3929
  esac
3930
done
3931
else
3932
  echo "$as_me: failed program was:" >&5
3933
sed 's/^/| /' conftest.$ac_ext >&5
3934
 
3935
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3936
See \`config.log' for more details." >&5
3937
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3938
See \`config.log' for more details." >&2;}
3939
   { (exit 1); exit 1; }; }
3940
fi
3941
 
3942
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3943
fi
3944
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3945
echo "${ECHO_T}$ac_cv_objext" >&6
3946
OBJEXT=$ac_cv_objext
3947
ac_objext=$OBJEXT
3948
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3949
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3950
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3951
  echo $ECHO_N "(cached) $ECHO_C" >&6
3952
else
3953
  cat >conftest.$ac_ext <<_ACEOF
3954
/* confdefs.h.  */
3955
_ACEOF
3956
cat confdefs.h >>conftest.$ac_ext
3957
cat >>conftest.$ac_ext <<_ACEOF
3958
/* end confdefs.h.  */
3959
 
3960
int
3961
main ()
3962
{
3963
#ifndef __GNUC__
3964
       choke me
3965
#endif
3966
 
3967
  ;
3968
  return 0;
3969
}
3970
_ACEOF
3971
rm -f conftest.$ac_objext
3972
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973
  (eval $ac_compile) 2>conftest.er1
3974
  ac_status=$?
3975
  grep -v '^ *+' conftest.er1 >conftest.err
3976
  rm -f conftest.er1
3977
  cat conftest.err >&5
3978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979
  (exit $ac_status); } &&
3980
         { ac_try='test -z "$ac_c_werror_flag"
3981
                         || test ! -s conftest.err'
3982
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983
  (eval $ac_try) 2>&5
3984
  ac_status=$?
3985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986
  (exit $ac_status); }; } &&
3987
         { ac_try='test -s conftest.$ac_objext'
3988
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989
  (eval $ac_try) 2>&5
3990
  ac_status=$?
3991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992
  (exit $ac_status); }; }; then
3993
  ac_compiler_gnu=yes
3994
else
3995
  echo "$as_me: failed program was:" >&5
3996
sed 's/^/| /' conftest.$ac_ext >&5
3997
 
3998
ac_compiler_gnu=no
3999
fi
4000
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4001
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4002
 
4003
fi
4004
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4005
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4006
GCC=`test $ac_compiler_gnu = yes && echo yes`
4007
ac_test_CFLAGS=${CFLAGS+set}
4008
ac_save_CFLAGS=$CFLAGS
4009
CFLAGS="-g"
4010
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4011
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4012
if test "${ac_cv_prog_cc_g+set}" = set; then
4013
  echo $ECHO_N "(cached) $ECHO_C" >&6
4014
else
4015
  cat >conftest.$ac_ext <<_ACEOF
4016
/* confdefs.h.  */
4017
_ACEOF
4018
cat confdefs.h >>conftest.$ac_ext
4019
cat >>conftest.$ac_ext <<_ACEOF
4020
/* end confdefs.h.  */
4021
 
4022
int
4023
main ()
4024
{
4025
 
4026
  ;
4027
  return 0;
4028
}
4029
_ACEOF
4030
rm -f conftest.$ac_objext
4031
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4032
  (eval $ac_compile) 2>conftest.er1
4033
  ac_status=$?
4034
  grep -v '^ *+' conftest.er1 >conftest.err
4035
  rm -f conftest.er1
4036
  cat conftest.err >&5
4037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038
  (exit $ac_status); } &&
4039
         { ac_try='test -z "$ac_c_werror_flag"
4040
                         || test ! -s conftest.err'
4041
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042
  (eval $ac_try) 2>&5
4043
  ac_status=$?
4044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045
  (exit $ac_status); }; } &&
4046
         { ac_try='test -s conftest.$ac_objext'
4047
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048
  (eval $ac_try) 2>&5
4049
  ac_status=$?
4050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051
  (exit $ac_status); }; }; then
4052
  ac_cv_prog_cc_g=yes
4053
else
4054
  echo "$as_me: failed program was:" >&5
4055
sed 's/^/| /' conftest.$ac_ext >&5
4056
 
4057
ac_cv_prog_cc_g=no
4058
fi
4059
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4060
fi
4061
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4062
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4063
if test "$ac_test_CFLAGS" = set; then
4064
  CFLAGS=$ac_save_CFLAGS
4065
elif test $ac_cv_prog_cc_g = yes; then
4066
  if test "$GCC" = yes; then
4067
    CFLAGS="-g -O2"
4068
  else
4069
    CFLAGS="-g"
4070
  fi
4071
else
4072
  if test "$GCC" = yes; then
4073
    CFLAGS="-O2"
4074
  else
4075
    CFLAGS=
4076
  fi
4077
fi
4078
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4079
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4080
if test "${ac_cv_prog_cc_stdc+set}" = set; then
4081
  echo $ECHO_N "(cached) $ECHO_C" >&6
4082
else
4083
  ac_cv_prog_cc_stdc=no
4084
ac_save_CC=$CC
4085
cat >conftest.$ac_ext <<_ACEOF
4086
/* confdefs.h.  */
4087
_ACEOF
4088
cat confdefs.h >>conftest.$ac_ext
4089
cat >>conftest.$ac_ext <<_ACEOF
4090
/* end confdefs.h.  */
4091
#include 
4092
#include 
4093
#include 
4094
#include 
4095
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4096
struct buf { int x; };
4097
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4098
static char *e (p, i)
4099
     char **p;
4100
     int i;
4101
{
4102
  return p[i];
4103
}
4104
static char *f (char * (*g) (char **, int), char **p, ...)
4105
{
4106
  char *s;
4107
  va_list v;
4108
  va_start (v,p);
4109
  s = g (p, va_arg (v,int));
4110
  va_end (v);
4111
  return s;
4112
}
4113
 
4114
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4115
   function prototypes and stuff, but not '\xHH' hex character constants.
4116
   These don't provoke an error unfortunately, instead are silently treated
4117
   as 'x'.  The following induces an error, until -std1 is added to get
4118
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4119
   array size at least.  It's necessary to write '\x00'==0 to get something
4120
   that's true only with -std1.  */
4121
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4122
 
4123
int test (int i, double x);
4124
struct s1 {int (*f) (int a);};
4125
struct s2 {int (*f) (double a);};
4126
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4127
int argc;
4128
char **argv;
4129
int
4130
main ()
4131
{
4132
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4133
  ;
4134
  return 0;
4135
}
4136
_ACEOF
4137
# Don't try gcc -ansi; that turns off useful extensions and
4138
# breaks some systems' header files.
4139
# AIX                   -qlanglvl=ansi
4140
# Ultrix and OSF/1      -std1
4141
# HP-UX 10.20 and later -Ae
4142
# HP-UX older versions  -Aa -D_HPUX_SOURCE
4143
# SVR4                  -Xc -D__EXTENSIONS__
4144
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4145
do
4146
  CC="$ac_save_CC $ac_arg"
4147
  rm -f conftest.$ac_objext
4148
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149
  (eval $ac_compile) 2>conftest.er1
4150
  ac_status=$?
4151
  grep -v '^ *+' conftest.er1 >conftest.err
4152
  rm -f conftest.er1
4153
  cat conftest.err >&5
4154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155
  (exit $ac_status); } &&
4156
         { ac_try='test -z "$ac_c_werror_flag"
4157
                         || test ! -s conftest.err'
4158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159
  (eval $ac_try) 2>&5
4160
  ac_status=$?
4161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162
  (exit $ac_status); }; } &&
4163
         { ac_try='test -s conftest.$ac_objext'
4164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165
  (eval $ac_try) 2>&5
4166
  ac_status=$?
4167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168
  (exit $ac_status); }; }; then
4169
  ac_cv_prog_cc_stdc=$ac_arg
4170
break
4171
else
4172
  echo "$as_me: failed program was:" >&5
4173
sed 's/^/| /' conftest.$ac_ext >&5
4174
 
4175
fi
4176
rm -f conftest.err conftest.$ac_objext
4177
done
4178
rm -f conftest.$ac_ext conftest.$ac_objext
4179
CC=$ac_save_CC
4180
 
4181
fi
4182
 
4183
case "x$ac_cv_prog_cc_stdc" in
4184
  x|xno)
4185
    echo "$as_me:$LINENO: result: none needed" >&5
4186
echo "${ECHO_T}none needed" >&6 ;;
4187
  *)
4188
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4189
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4190
    CC="$CC $ac_cv_prog_cc_stdc" ;;
4191
esac
4192
 
4193
# Some people use a C++ compiler to compile C.  Since we use `exit',
4194
# in C++ we need to declare it.  In case someone uses the same compiler
4195
# for both compiling C and C++ we need to have the C++ compiler decide
4196
# the declaration of exit, since it's the most demanding environment.
4197
cat >conftest.$ac_ext <<_ACEOF
4198
#ifndef __cplusplus
4199
  choke me
4200
#endif
4201
_ACEOF
4202
rm -f conftest.$ac_objext
4203
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4204
  (eval $ac_compile) 2>conftest.er1
4205
  ac_status=$?
4206
  grep -v '^ *+' conftest.er1 >conftest.err
4207
  rm -f conftest.er1
4208
  cat conftest.err >&5
4209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210
  (exit $ac_status); } &&
4211
         { ac_try='test -z "$ac_c_werror_flag"
4212
                         || test ! -s conftest.err'
4213
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214
  (eval $ac_try) 2>&5
4215
  ac_status=$?
4216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217
  (exit $ac_status); }; } &&
4218
         { ac_try='test -s conftest.$ac_objext'
4219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220
  (eval $ac_try) 2>&5
4221
  ac_status=$?
4222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223
  (exit $ac_status); }; }; then
4224
  for ac_declaration in \
4225
   '' \
4226
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4227
   'extern "C" void std::exit (int); using std::exit;' \
4228
   'extern "C" void exit (int) throw ();' \
4229
   'extern "C" void exit (int);' \
4230
   'void exit (int);'
4231
do
4232
  cat >conftest.$ac_ext <<_ACEOF
4233
/* confdefs.h.  */
4234
_ACEOF
4235
cat confdefs.h >>conftest.$ac_ext
4236
cat >>conftest.$ac_ext <<_ACEOF
4237
/* end confdefs.h.  */
4238
$ac_declaration
4239
#include 
4240
int
4241
main ()
4242
{
4243
exit (42);
4244
  ;
4245
  return 0;
4246
}
4247
_ACEOF
4248
rm -f conftest.$ac_objext
4249
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4250
  (eval $ac_compile) 2>conftest.er1
4251
  ac_status=$?
4252
  grep -v '^ *+' conftest.er1 >conftest.err
4253
  rm -f conftest.er1
4254
  cat conftest.err >&5
4255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256
  (exit $ac_status); } &&
4257
         { ac_try='test -z "$ac_c_werror_flag"
4258
                         || test ! -s conftest.err'
4259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260
  (eval $ac_try) 2>&5
4261
  ac_status=$?
4262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263
  (exit $ac_status); }; } &&
4264
         { ac_try='test -s conftest.$ac_objext'
4265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266
  (eval $ac_try) 2>&5
4267
  ac_status=$?
4268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269
  (exit $ac_status); }; }; then
4270
  :
4271
else
4272
  echo "$as_me: failed program was:" >&5
4273
sed 's/^/| /' conftest.$ac_ext >&5
4274
 
4275
continue
4276
fi
4277
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4278
  cat >conftest.$ac_ext <<_ACEOF
4279
/* confdefs.h.  */
4280
_ACEOF
4281
cat confdefs.h >>conftest.$ac_ext
4282
cat >>conftest.$ac_ext <<_ACEOF
4283
/* end confdefs.h.  */
4284
$ac_declaration
4285
int
4286
main ()
4287
{
4288
exit (42);
4289
  ;
4290
  return 0;
4291
}
4292
_ACEOF
4293
rm -f conftest.$ac_objext
4294
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4295
  (eval $ac_compile) 2>conftest.er1
4296
  ac_status=$?
4297
  grep -v '^ *+' conftest.er1 >conftest.err
4298
  rm -f conftest.er1
4299
  cat conftest.err >&5
4300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301
  (exit $ac_status); } &&
4302
         { ac_try='test -z "$ac_c_werror_flag"
4303
                         || test ! -s conftest.err'
4304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305
  (eval $ac_try) 2>&5
4306
  ac_status=$?
4307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308
  (exit $ac_status); }; } &&
4309
         { ac_try='test -s conftest.$ac_objext'
4310
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311
  (eval $ac_try) 2>&5
4312
  ac_status=$?
4313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314
  (exit $ac_status); }; }; then
4315
  break
4316
else
4317
  echo "$as_me: failed program was:" >&5
4318
sed 's/^/| /' conftest.$ac_ext >&5
4319
 
4320
fi
4321
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4322
done
4323
rm -f conftest*
4324
if test -n "$ac_declaration"; then
4325
  echo '#ifdef __cplusplus' >>confdefs.h
4326
  echo $ac_declaration      >>confdefs.h
4327
  echo '#endif'             >>confdefs.h
4328
fi
4329
 
4330
else
4331
  echo "$as_me: failed program was:" >&5
4332
sed 's/^/| /' conftest.$ac_ext >&5
4333
 
4334
fi
4335
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4336
ac_ext=c
4337
ac_cpp='$CPP $CPPFLAGS'
4338
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341
 
4342
depcc="$CC"   am_compiler_list=
4343
 
4344
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4345
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4346
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4347
  echo $ECHO_N "(cached) $ECHO_C" >&6
4348
else
4349
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4350
  # We make a subdir and do the tests there.  Otherwise we can end up
4351
  # making bogus files that we don't know about and never remove.  For
4352
  # instance it was reported that on HP-UX the gcc test will end up
4353
  # making a dummy file named `D' -- because `-MD' means `put the output
4354
  # in D'.
4355
  mkdir conftest.dir
4356
  # Copy depcomp to subdir because otherwise we won't find it if we're
4357
  # using a relative directory.
4358
  cp "$am_depcomp" conftest.dir
4359
  cd conftest.dir
4360
  # We will build objects and dependencies in a subdirectory because
4361
  # it helps to detect inapplicable dependency modes.  For instance
4362
  # both Tru64's cc and ICC support -MD to output dependencies as a
4363
  # side effect of compilation, but ICC will put the dependencies in
4364
  # the current directory while Tru64 will put them in the object
4365
  # directory.
4366
  mkdir sub
4367
 
4368
  am_cv_CC_dependencies_compiler_type=none
4369
  if test "$am_compiler_list" = ""; then
4370
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4371
  fi
4372
  for depmode in $am_compiler_list; do
4373
    # Setup a source with many dependencies, because some compilers
4374
    # like to wrap large dependency lists on column 80 (with \), and
4375
    # we should not choose a depcomp mode which is confused by this.
4376
    #
4377
    # We need to recreate these files for each test, as the compiler may
4378
    # overwrite some of them when testing with obscure command lines.
4379
    # This happens at least with the AIX C compiler.
4380
    : > sub/conftest.c
4381
    for i in 1 2 3 4 5 6; do
4382
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4383
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4384
      # Solaris 8's {/usr,}/bin/sh.
4385
      touch sub/conftst$i.h
4386
    done
4387
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4388
 
4389
    case $depmode in
4390
    nosideeffect)
4391
      # after this tag, mechanisms are not by side-effect, so they'll
4392
      # only be used when explicitly requested
4393
      if test "x$enable_dependency_tracking" = xyes; then
4394
        continue
4395
      else
4396
        break
4397
      fi
4398
      ;;
4399
    none) break ;;
4400
    esac
4401
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4402
    # mode.  It turns out that the SunPro C++ compiler does not properly
4403
    # handle `-M -o', and we need to detect this.
4404
    if depmode=$depmode \
4405
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4406
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4407
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4408
         >/dev/null 2>conftest.err &&
4409
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4410
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4411
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4412
      # icc doesn't choke on unknown options, it will just issue warnings
4413
      # or remarks (even with -Werror).  So we grep stderr for any message
4414
      # that says an option was ignored or not supported.
4415
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4416
      #   icc: Command line warning: ignoring option '-M'; no argument required
4417
      # The diagnosis changed in icc 8.0:
4418
      #   icc: Command line remark: option '-MP' not supported
4419
      if (grep 'ignoring option' conftest.err ||
4420
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4421
        am_cv_CC_dependencies_compiler_type=$depmode
4422
        break
4423
      fi
4424
    fi
4425
  done
4426
 
4427
  cd ..
4428
  rm -rf conftest.dir
4429
else
4430
  am_cv_CC_dependencies_compiler_type=none
4431
fi
4432
 
4433
fi
4434
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4435
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4436
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4437
 
4438
 
4439
 
4440
if
4441
  test "x$enable_dependency_tracking" != xno \
4442
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4443
  am__fastdepCC_TRUE=
4444
  am__fastdepCC_FALSE='#'
4445
else
4446
  am__fastdepCC_TRUE='#'
4447
  am__fastdepCC_FALSE=
4448
fi
4449
 
4450
 
4451
echo "$as_me:$LINENO: checking for egrep" >&5
4452
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4453
if test "${ac_cv_prog_egrep+set}" = set; then
4454
  echo $ECHO_N "(cached) $ECHO_C" >&6
4455
else
4456
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4457
    then ac_cv_prog_egrep='grep -E'
4458
    else ac_cv_prog_egrep='egrep'
4459
    fi
4460
fi
4461
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4462
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4463
 EGREP=$ac_cv_prog_egrep
4464
 
4465
 
4466
echo "$as_me:$LINENO: checking for fgrep" >&5
4467
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4468
if test "${ac_cv_prog_fgrep+set}" = set; then
4469
  echo $ECHO_N "(cached) $ECHO_C" >&6
4470
else
4471
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4472
    then ac_cv_prog_fgrep='grep -F'
4473
    else ac_cv_prog_fgrep='fgrep'
4474
    fi
4475
fi
4476
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4477
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4478
 FGREP=$ac_cv_prog_fgrep
4479
 
4480
 
4481
test -z "$GREP" && GREP=grep
4482
 
4483
 
4484
 
4485
 
4486
 
4487
 
4488
 
4489
 
4490
 
4491
 
4492
 
4493
 
4494
 
4495
 
4496
 
4497
 
4498
 
4499
 
4500
 
4501
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4502
if test "${with_gnu_ld+set}" = set; then
4503
  withval="$with_gnu_ld"
4504
  test "$withval" = no || with_gnu_ld=yes
4505
else
4506
  with_gnu_ld=no
4507
fi;
4508
ac_prog=ld
4509
if test "$GCC" = yes; then
4510
  # Check if gcc -print-prog-name=ld gives a path.
4511
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4512
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4513
  case $host in
4514
  *-*-mingw*)
4515
    # gcc leaves a trailing carriage return which upsets mingw
4516
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4517
  *)
4518
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4519
  esac
4520
  case $ac_prog in
4521
    # Accept absolute paths.
4522
    [\\/]* | ?:[\\/]*)
4523
      re_direlt='/[^/][^/]*/\.\./'
4524
      # Canonicalize the pathname of ld
4525
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4526
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4527
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4528
      done
4529
      test -z "$LD" && LD="$ac_prog"
4530
      ;;
4531
  "")
4532
    # If it fails, then pretend we aren't using GCC.
4533
    ac_prog=ld
4534
    ;;
4535
  *)
4536
    # If it is relative, then search for the first ld in PATH.
4537
    with_gnu_ld=unknown
4538
    ;;
4539
  esac
4540
elif test "$with_gnu_ld" = yes; then
4541
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4542
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4543
else
4544
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4545
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4546
fi
4547
if test "${lt_cv_path_LD+set}" = set; then
4548
  echo $ECHO_N "(cached) $ECHO_C" >&6
4549
else
4550
  if test -z "$LD"; then
4551
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4552
  for ac_dir in $PATH; do
4553
    IFS="$lt_save_ifs"
4554
    test -z "$ac_dir" && ac_dir=.
4555
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4556
      lt_cv_path_LD="$ac_dir/$ac_prog"
4557
      # Check to see if the program is GNU ld.  I'd rather use --version,
4558
      # but apparently some variants of GNU ld only accept -v.
4559
      # Break only if it was the GNU/non-GNU ld that we prefer.
4560
      case `"$lt_cv_path_LD" -v 2>&1 
4561
      *GNU* | *'with BFD'*)
4562
        test "$with_gnu_ld" != no && break
4563
        ;;
4564
      *)
4565
        test "$with_gnu_ld" != yes && break
4566
        ;;
4567
      esac
4568
    fi
4569
  done
4570
  IFS="$lt_save_ifs"
4571
else
4572
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4573
fi
4574
fi
4575
 
4576
LD="$lt_cv_path_LD"
4577
if test -n "$LD"; then
4578
  echo "$as_me:$LINENO: result: $LD" >&5
4579
echo "${ECHO_T}$LD" >&6
4580
else
4581
  echo "$as_me:$LINENO: result: no" >&5
4582
echo "${ECHO_T}no" >&6
4583
fi
4584
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4585
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4586
   { (exit 1); exit 1; }; }
4587
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4588
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4589
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4590
  echo $ECHO_N "(cached) $ECHO_C" >&6
4591
else
4592
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4593
case `$LD -v 2>&1 
4594
*GNU* | *'with BFD'*)
4595
  lt_cv_prog_gnu_ld=yes
4596
  ;;
4597
*)
4598
  lt_cv_prog_gnu_ld=no
4599
  ;;
4600
esac
4601
fi
4602
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4603
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4604
with_gnu_ld=$lt_cv_prog_gnu_ld
4605
 
4606
 
4607
 
4608
 
4609
 
4610
 
4611
 
4612
 
4613
 
4614
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4615
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4616
if test "${lt_cv_path_NM+set}" = set; then
4617
  echo $ECHO_N "(cached) $ECHO_C" >&6
4618
else
4619
  if test -n "$NM"; then
4620
  # Let the user override the test.
4621
  lt_cv_path_NM="$NM"
4622
else
4623
  lt_nm_to_check="${ac_tool_prefix}nm"
4624
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4625
    lt_nm_to_check="$lt_nm_to_check nm"
4626
  fi
4627
  for lt_tmp_nm in $lt_nm_to_check; do
4628
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4629
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4630
      IFS="$lt_save_ifs"
4631
      test -z "$ac_dir" && ac_dir=.
4632
      tmp_nm="$ac_dir/$lt_tmp_nm"
4633
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4634
        # Check to see if the nm accepts a BSD-compat flag.
4635
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4636
        #   nm: unknown option "B" ignored
4637
        # Tru64's nm complains that /dev/null is an invalid object file
4638
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4639
        */dev/null* | *'Invalid file or object type'*)
4640
          lt_cv_path_NM="$tmp_nm -B"
4641
          break
4642
          ;;
4643
        *)
4644
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4645
          */dev/null*)
4646
            lt_cv_path_NM="$tmp_nm -p"
4647
            break
4648
            ;;
4649
          *)
4650
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4651
            continue # so that we can try to find one that supports BSD flags
4652
            ;;
4653
          esac
4654
          ;;
4655
        esac
4656
      fi
4657
    done
4658
    IFS="$lt_save_ifs"
4659
  done
4660
  : ${lt_cv_path_NM=no}
4661
fi
4662
fi
4663
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4664
echo "${ECHO_T}$lt_cv_path_NM" >&6
4665
if test "$lt_cv_path_NM" != "no"; then
4666
  NM="$lt_cv_path_NM"
4667
else
4668
  # Didn't find any BSD compatible name lister, look for dumpbin.
4669
  if test -n "$ac_tool_prefix"; then
4670
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4671
  do
4672
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4673
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4674
echo "$as_me:$LINENO: checking for $ac_word" >&5
4675
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4676
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4677
  echo $ECHO_N "(cached) $ECHO_C" >&6
4678
else
4679
  if test -n "$DUMPBIN"; then
4680
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4681
else
4682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683
for as_dir in $PATH
4684
do
4685
  IFS=$as_save_IFS
4686
  test -z "$as_dir" && as_dir=.
4687
  for ac_exec_ext in '' $ac_executable_extensions; do
4688
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4690
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691
    break 2
4692
  fi
4693
done
4694
done
4695
 
4696
fi
4697
fi
4698
DUMPBIN=$ac_cv_prog_DUMPBIN
4699
if test -n "$DUMPBIN"; then
4700
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4701
echo "${ECHO_T}$DUMPBIN" >&6
4702
else
4703
  echo "$as_me:$LINENO: result: no" >&5
4704
echo "${ECHO_T}no" >&6
4705
fi
4706
 
4707
    test -n "$DUMPBIN" && break
4708
  done
4709
fi
4710
if test -z "$DUMPBIN"; then
4711
  ac_ct_DUMPBIN=$DUMPBIN
4712
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4713
do
4714
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4715
set dummy $ac_prog; ac_word=$2
4716
echo "$as_me:$LINENO: checking for $ac_word" >&5
4717
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4718
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4719
  echo $ECHO_N "(cached) $ECHO_C" >&6
4720
else
4721
  if test -n "$ac_ct_DUMPBIN"; then
4722
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4723
else
4724
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725
for as_dir in $PATH
4726
do
4727
  IFS=$as_save_IFS
4728
  test -z "$as_dir" && as_dir=.
4729
  for ac_exec_ext in '' $ac_executable_extensions; do
4730
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4731
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4732
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733
    break 2
4734
  fi
4735
done
4736
done
4737
 
4738
fi
4739
fi
4740
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4741
if test -n "$ac_ct_DUMPBIN"; then
4742
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4743
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4744
else
4745
  echo "$as_me:$LINENO: result: no" >&5
4746
echo "${ECHO_T}no" >&6
4747
fi
4748
 
4749
  test -n "$ac_ct_DUMPBIN" && break
4750
done
4751
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4752
 
4753
  DUMPBIN=$ac_ct_DUMPBIN
4754
fi
4755
 
4756
 
4757
  if test "$DUMPBIN" != ":"; then
4758
    NM="$DUMPBIN"
4759
  fi
4760
fi
4761
test -z "$NM" && NM=nm
4762
 
4763
 
4764
 
4765
 
4766
 
4767
 
4768
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4769
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4770
if test "${lt_cv_nm_interface+set}" = set; then
4771
  echo $ECHO_N "(cached) $ECHO_C" >&6
4772
else
4773
  lt_cv_nm_interface="BSD nm"
4774
  echo "int some_variable = 0;" > conftest.$ac_ext
4775
  (eval echo "\"\$as_me:4775: $ac_compile\"" >&5)
4776
  (eval "$ac_compile" 2>conftest.err)
4777
  cat conftest.err >&5
4778
  (eval echo "\"\$as_me:4778: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4779
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4780
  cat conftest.err >&5
4781
  (eval echo "\"\$as_me:4781: output\"" >&5)
4782
  cat conftest.out >&5
4783
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4784
    lt_cv_nm_interface="MS dumpbin"
4785
  fi
4786
  rm -f conftest*
4787
fi
4788
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4789
echo "${ECHO_T}$lt_cv_nm_interface" >&6
4790
 
4791
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4792
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4793
LN_S=$as_ln_s
4794
if test "$LN_S" = "ln -s"; then
4795
  echo "$as_me:$LINENO: result: yes" >&5
4796
echo "${ECHO_T}yes" >&6
4797
else
4798
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4799
echo "${ECHO_T}no, using $LN_S" >&6
4800
fi
4801
 
4802
# find the maximum length of command line arguments
4803
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4804
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4805
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4806
  echo $ECHO_N "(cached) $ECHO_C" >&6
4807
else
4808
    i=0
4809
  teststring="ABCD"
4810
 
4811
  case $build_os in
4812
  msdosdjgpp*)
4813
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4814
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4815
    # during glob expansion).  Even if it were fixed, the result of this
4816
    # check would be larger than it should be.
4817
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4818
    ;;
4819
 
4820
  gnu*)
4821
    # Under GNU Hurd, this test is not required because there is
4822
    # no limit to the length of command line arguments.
4823
    # Libtool will interpret -1 as no limit whatsoever
4824
    lt_cv_sys_max_cmd_len=-1;
4825
    ;;
4826
 
4827
  cygwin* | mingw* | cegcc*)
4828
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4829
    # about 5 minutes as the teststring grows exponentially.
4830
    # Worse, since 9x/ME are not pre-emptively multitasking,
4831
    # you end up with a "frozen" computer, even though with patience
4832
    # the test eventually succeeds (with a max line length of 256k).
4833
    # Instead, let's just punt: use the minimum linelength reported by
4834
    # all of the supported platforms: 8192 (on NT/2K/XP).
4835
    lt_cv_sys_max_cmd_len=8192;
4836
    ;;
4837
 
4838
  amigaos*)
4839
    # On AmigaOS with pdksh, this test takes hours, literally.
4840
    # So we just punt and use a minimum line length of 8192.
4841
    lt_cv_sys_max_cmd_len=8192;
4842
    ;;
4843
 
4844
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4845
    # This has been around since 386BSD, at least.  Likely further.
4846
    if test -x /sbin/sysctl; then
4847
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4848
    elif test -x /usr/sbin/sysctl; then
4849
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4850
    else
4851
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4852
    fi
4853
    # And add a safety zone
4854
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4855
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4856
    ;;
4857
 
4858
  interix*)
4859
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4860
    lt_cv_sys_max_cmd_len=196608
4861
    ;;
4862
 
4863
  osf*)
4864
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4865
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4866
    # nice to cause kernel panics so lets avoid the loop below.
4867
    # First set a reasonable default.
4868
    lt_cv_sys_max_cmd_len=16384
4869
    #
4870
    if test -x /sbin/sysconfig; then
4871
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4872
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4873
      esac
4874
    fi
4875
    ;;
4876
  sco3.2v5*)
4877
    lt_cv_sys_max_cmd_len=102400
4878
    ;;
4879
  sysv5* | sco5v6* | sysv4.2uw2*)
4880
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4881
    if test -n "$kargmax"; then
4882
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4883
    else
4884
      lt_cv_sys_max_cmd_len=32768
4885
    fi
4886
    ;;
4887
  *)
4888
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4889
    if test -n "$lt_cv_sys_max_cmd_len"; then
4890
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4891
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4892
    else
4893
      # Make teststring a little bigger before we do anything with it.
4894
      # a 1K string should be a reasonable start.
4895
      for i in 1 2 3 4 5 6 7 8 ; do
4896
        teststring=$teststring$teststring
4897
      done
4898
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4899
      # If test is not a shell built-in, we'll probably end up computing a
4900
      # maximum length that is only half of the actual maximum length, but
4901
      # we can't tell.
4902
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4903
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4904
              test $i != 17 # 1/2 MB should be enough
4905
      do
4906
        i=`expr $i + 1`
4907
        teststring=$teststring$teststring
4908
      done
4909
      # Only check the string length outside the loop.
4910
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4911
      teststring=
4912
      # Add a significant safety factor because C++ compilers can tack on
4913
      # massive amounts of additional arguments before passing them to the
4914
      # linker.  It appears as though 1/2 is a usable value.
4915
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4916
    fi
4917
    ;;
4918
  esac
4919
 
4920
fi
4921
 
4922
if test -n $lt_cv_sys_max_cmd_len ; then
4923
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4924
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4925
else
4926
  echo "$as_me:$LINENO: result: none" >&5
4927
echo "${ECHO_T}none" >&6
4928
fi
4929
max_cmd_len=$lt_cv_sys_max_cmd_len
4930
 
4931
 
4932
 
4933
 
4934
 
4935
 
4936
: ${CP="cp -f"}
4937
: ${MV="mv -f"}
4938
: ${RM="rm -f"}
4939
 
4940
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4941
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4942
# Try some XSI features
4943
xsi_shell=no
4944
( _lt_dummy="a/b/c"
4945
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4946
      = c,a/b,, \
4947
    && eval 'test $(( 1 + 1 )) -eq 2 \
4948
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4949
  && xsi_shell=yes
4950
echo "$as_me:$LINENO: result: $xsi_shell" >&5
4951
echo "${ECHO_T}$xsi_shell" >&6
4952
 
4953
 
4954
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4955
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4956
lt_shell_append=no
4957
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4958
    >/dev/null 2>&1 \
4959
  && lt_shell_append=yes
4960
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4961
echo "${ECHO_T}$lt_shell_append" >&6
4962
 
4963
 
4964
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4965
  lt_unset=unset
4966
else
4967
  lt_unset=false
4968
fi
4969
 
4970
 
4971
 
4972
 
4973
 
4974
# test EBCDIC or ASCII
4975
case `echo X|tr X '\101'` in
4976
 A) # ASCII based system
4977
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4978
  lt_SP2NL='tr \040 \012'
4979
  lt_NL2SP='tr \015\012 \040\040'
4980
  ;;
4981
 *) # EBCDIC based system
4982
  lt_SP2NL='tr \100 \n'
4983
  lt_NL2SP='tr \r\n \100\100'
4984
  ;;
4985
esac
4986
 
4987
 
4988
 
4989
 
4990
 
4991
 
4992
 
4993
 
4994
 
4995
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4996
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4997
if test "${lt_cv_ld_reload_flag+set}" = set; then
4998
  echo $ECHO_N "(cached) $ECHO_C" >&6
4999
else
5000
  lt_cv_ld_reload_flag='-r'
5001
fi
5002
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5003
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5004
reload_flag=$lt_cv_ld_reload_flag
5005
case $reload_flag in
5006
"" | " "*) ;;
5007
*) reload_flag=" $reload_flag" ;;
5008
esac
5009
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5010
case $host_os in
5011
  darwin*)
5012
    if test "$GCC" = yes; then
5013
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5014
    else
5015
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5016
    fi
5017
    ;;
5018
esac
5019
 
5020
 
5021
 
5022
 
5023
 
5024
 
5025
 
5026
 
5027
 
5028
if test -n "$ac_tool_prefix"; then
5029
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5030
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5031
echo "$as_me:$LINENO: checking for $ac_word" >&5
5032
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5033
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5034
  echo $ECHO_N "(cached) $ECHO_C" >&6
5035
else
5036
  if test -n "$OBJDUMP"; then
5037
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5038
else
5039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040
for as_dir in $PATH
5041
do
5042
  IFS=$as_save_IFS
5043
  test -z "$as_dir" && as_dir=.
5044
  for ac_exec_ext in '' $ac_executable_extensions; do
5045
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5046
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5047
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048
    break 2
5049
  fi
5050
done
5051
done
5052
 
5053
fi
5054
fi
5055
OBJDUMP=$ac_cv_prog_OBJDUMP
5056
if test -n "$OBJDUMP"; then
5057
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5058
echo "${ECHO_T}$OBJDUMP" >&6
5059
else
5060
  echo "$as_me:$LINENO: result: no" >&5
5061
echo "${ECHO_T}no" >&6
5062
fi
5063
 
5064
fi
5065
if test -z "$ac_cv_prog_OBJDUMP"; then
5066
  ac_ct_OBJDUMP=$OBJDUMP
5067
  # Extract the first word of "objdump", so it can be a program name with args.
5068
set dummy objdump; ac_word=$2
5069
echo "$as_me:$LINENO: checking for $ac_word" >&5
5070
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5071
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5072
  echo $ECHO_N "(cached) $ECHO_C" >&6
5073
else
5074
  if test -n "$ac_ct_OBJDUMP"; then
5075
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5076
else
5077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078
for as_dir in $PATH
5079
do
5080
  IFS=$as_save_IFS
5081
  test -z "$as_dir" && as_dir=.
5082
  for ac_exec_ext in '' $ac_executable_extensions; do
5083
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5085
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086
    break 2
5087
  fi
5088
done
5089
done
5090
 
5091
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5092
fi
5093
fi
5094
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5095
if test -n "$ac_ct_OBJDUMP"; then
5096
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5097
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5098
else
5099
  echo "$as_me:$LINENO: result: no" >&5
5100
echo "${ECHO_T}no" >&6
5101
fi
5102
 
5103
  OBJDUMP=$ac_ct_OBJDUMP
5104
else
5105
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5106
fi
5107
 
5108
test -z "$OBJDUMP" && OBJDUMP=objdump
5109
 
5110
 
5111
 
5112
 
5113
 
5114
 
5115
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5116
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5117
if test "${lt_cv_deplibs_check_method+set}" = set; then
5118
  echo $ECHO_N "(cached) $ECHO_C" >&6
5119
else
5120
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5121
lt_cv_file_magic_test_file=
5122
lt_cv_deplibs_check_method='unknown'
5123
# Need to set the preceding variable on all platforms that support
5124
# interlibrary dependencies.
5125
# 'none' -- dependencies not supported.
5126
# `unknown' -- same as none, but documents that we really don't know.
5127
# 'pass_all' -- all dependencies passed with no checks.
5128
# 'test_compile' -- check by making test program.
5129
# 'file_magic [[regex]]' -- check by looking for files in library path
5130
# which responds to the $file_magic_cmd with a given extended regex.
5131
# If you have `file' or equivalent on your system and you're not sure
5132
# whether `pass_all' will *always* work, you probably want this one.
5133
 
5134
case $host_os in
5135
aix[4-9]*)
5136
  lt_cv_deplibs_check_method=pass_all
5137
  ;;
5138
 
5139
beos*)
5140
  lt_cv_deplibs_check_method=pass_all
5141
  ;;
5142
 
5143
bsdi[45]*)
5144
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5145
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5146
  lt_cv_file_magic_test_file=/shlib/libc.so
5147
  ;;
5148
 
5149
cygwin*)
5150
  # func_win32_libid is a shell function defined in ltmain.sh
5151
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5152
  lt_cv_file_magic_cmd='func_win32_libid'
5153
  ;;
5154
 
5155
mingw* | pw32*)
5156
  # Base MSYS/MinGW do not provide the 'file' command needed by
5157
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5158
  # unless we find 'file', for example because we are cross-compiling.
5159
  if ( file / ) >/dev/null 2>&1; then
5160
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5161
    lt_cv_file_magic_cmd='func_win32_libid'
5162
  else
5163
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5164
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5165
  fi
5166
  ;;
5167
 
5168
cegcc)
5169
  # use the weaker test based on 'objdump'. See mingw*.
5170
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5171
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5172
  ;;
5173
 
5174
darwin* | rhapsody*)
5175
  lt_cv_deplibs_check_method=pass_all
5176
  ;;
5177
 
5178
freebsd* | dragonfly*)
5179
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5180
    case $host_cpu in
5181
    i*86 )
5182
      # Not sure whether the presence of OpenBSD here was a mistake.
5183
      # Let's accept both of them until this is cleared up.
5184
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5185
      lt_cv_file_magic_cmd=/usr/bin/file
5186
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5187
      ;;
5188
    esac
5189
  else
5190
    lt_cv_deplibs_check_method=pass_all
5191
  fi
5192
  ;;
5193
 
5194
gnu*)
5195
  lt_cv_deplibs_check_method=pass_all
5196
  ;;
5197
 
5198
hpux10.20* | hpux11*)
5199
  lt_cv_file_magic_cmd=/usr/bin/file
5200
  case $host_cpu in
5201
  ia64*)
5202
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5203
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5204
    ;;
5205
  hppa*64*)
5206
    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]'
5207
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5208
    ;;
5209
  *)
5210
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5211
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5212
    ;;
5213
  esac
5214
  ;;
5215
 
5216
interix[3-9]*)
5217
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5218
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5219
  ;;
5220
 
5221
irix5* | irix6* | nonstopux*)
5222
  case $LD in
5223
  *-32|*"-32 ") libmagic=32-bit;;
5224
  *-n32|*"-n32 ") libmagic=N32;;
5225
  *-64|*"-64 ") libmagic=64-bit;;
5226
  *) libmagic=never-match;;
5227
  esac
5228
  lt_cv_deplibs_check_method=pass_all
5229
  ;;
5230
 
5231
# This must be Linux ELF.
5232
linux* | k*bsd*-gnu)
5233
  lt_cv_deplibs_check_method=pass_all
5234
  ;;
5235
 
5236
netbsd*)
5237
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5238
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5239
  else
5240
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5241
  fi
5242
  ;;
5243
 
5244
newos6*)
5245
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5246
  lt_cv_file_magic_cmd=/usr/bin/file
5247
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5248
  ;;
5249
 
5250
*nto* | *qnx*)
5251
  lt_cv_deplibs_check_method=pass_all
5252
  ;;
5253
 
5254
openbsd*)
5255
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5256
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5257
  else
5258
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5259
  fi
5260
  ;;
5261
 
5262
osf3* | osf4* | osf5*)
5263
  lt_cv_deplibs_check_method=pass_all
5264
  ;;
5265
 
5266
rdos*)
5267
  lt_cv_deplibs_check_method=pass_all
5268
  ;;
5269
 
5270
solaris*)
5271
  lt_cv_deplibs_check_method=pass_all
5272
  ;;
5273
 
5274
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5275
  lt_cv_deplibs_check_method=pass_all
5276
  ;;
5277
 
5278
sysv4 | sysv4.3*)
5279
  case $host_vendor in
5280
  motorola)
5281
    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]'
5282
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5283
    ;;
5284
  ncr)
5285
    lt_cv_deplibs_check_method=pass_all
5286
    ;;
5287
  sequent)
5288
    lt_cv_file_magic_cmd='/bin/file'
5289
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5290
    ;;
5291
  sni)
5292
    lt_cv_file_magic_cmd='/bin/file'
5293
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5294
    lt_cv_file_magic_test_file=/lib/libc.so
5295
    ;;
5296
  siemens)
5297
    lt_cv_deplibs_check_method=pass_all
5298
    ;;
5299
  pc)
5300
    lt_cv_deplibs_check_method=pass_all
5301
    ;;
5302
  esac
5303
  ;;
5304
 
5305
tpf*)
5306
  lt_cv_deplibs_check_method=pass_all
5307
  ;;
5308
esac
5309
 
5310
fi
5311
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5312
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5313
file_magic_cmd=$lt_cv_file_magic_cmd
5314
deplibs_check_method=$lt_cv_deplibs_check_method
5315
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5316
 
5317
 
5318
 
5319
 
5320
 
5321
 
5322
 
5323
 
5324
 
5325
 
5326
 
5327
 
5328
if test -n "$ac_tool_prefix"; then
5329
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5330
set dummy ${ac_tool_prefix}ar; ac_word=$2
5331
echo "$as_me:$LINENO: checking for $ac_word" >&5
5332
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5333
if test "${ac_cv_prog_AR+set}" = set; then
5334
  echo $ECHO_N "(cached) $ECHO_C" >&6
5335
else
5336
  if test -n "$AR"; then
5337
  ac_cv_prog_AR="$AR" # Let the user override the test.
5338
else
5339
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340
for as_dir in $PATH
5341
do
5342
  IFS=$as_save_IFS
5343
  test -z "$as_dir" && as_dir=.
5344
  for ac_exec_ext in '' $ac_executable_extensions; do
5345
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5346
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5347
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348
    break 2
5349
  fi
5350
done
5351
done
5352
 
5353
fi
5354
fi
5355
AR=$ac_cv_prog_AR
5356
if test -n "$AR"; then
5357
  echo "$as_me:$LINENO: result: $AR" >&5
5358
echo "${ECHO_T}$AR" >&6
5359
else
5360
  echo "$as_me:$LINENO: result: no" >&5
5361
echo "${ECHO_T}no" >&6
5362
fi
5363
 
5364
fi
5365
if test -z "$ac_cv_prog_AR"; then
5366
  ac_ct_AR=$AR
5367
  # Extract the first word of "ar", so it can be a program name with args.
5368
set dummy ar; ac_word=$2
5369
echo "$as_me:$LINENO: checking for $ac_word" >&5
5370
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5371
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5372
  echo $ECHO_N "(cached) $ECHO_C" >&6
5373
else
5374
  if test -n "$ac_ct_AR"; then
5375
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5376
else
5377
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378
for as_dir in $PATH
5379
do
5380
  IFS=$as_save_IFS
5381
  test -z "$as_dir" && as_dir=.
5382
  for ac_exec_ext in '' $ac_executable_extensions; do
5383
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384
    ac_cv_prog_ac_ct_AR="ar"
5385
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386
    break 2
5387
  fi
5388
done
5389
done
5390
 
5391
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5392
fi
5393
fi
5394
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5395
if test -n "$ac_ct_AR"; then
5396
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5397
echo "${ECHO_T}$ac_ct_AR" >&6
5398
else
5399
  echo "$as_me:$LINENO: result: no" >&5
5400
echo "${ECHO_T}no" >&6
5401
fi
5402
 
5403
  AR=$ac_ct_AR
5404
else
5405
  AR="$ac_cv_prog_AR"
5406
fi
5407
 
5408
test -z "$AR" && AR=ar
5409
test -z "$AR_FLAGS" && AR_FLAGS=cru
5410
 
5411
 
5412
 
5413
 
5414
 
5415
 
5416
 
5417
 
5418
 
5419
 
5420
 
5421
if test -n "$ac_tool_prefix"; then
5422
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5423
set dummy ${ac_tool_prefix}strip; ac_word=$2
5424
echo "$as_me:$LINENO: checking for $ac_word" >&5
5425
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5426
if test "${ac_cv_prog_STRIP+set}" = set; then
5427
  echo $ECHO_N "(cached) $ECHO_C" >&6
5428
else
5429
  if test -n "$STRIP"; then
5430
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5431
else
5432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433
for as_dir in $PATH
5434
do
5435
  IFS=$as_save_IFS
5436
  test -z "$as_dir" && as_dir=.
5437
  for ac_exec_ext in '' $ac_executable_extensions; do
5438
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5440
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5441
    break 2
5442
  fi
5443
done
5444
done
5445
 
5446
fi
5447
fi
5448
STRIP=$ac_cv_prog_STRIP
5449
if test -n "$STRIP"; then
5450
  echo "$as_me:$LINENO: result: $STRIP" >&5
5451
echo "${ECHO_T}$STRIP" >&6
5452
else
5453
  echo "$as_me:$LINENO: result: no" >&5
5454
echo "${ECHO_T}no" >&6
5455
fi
5456
 
5457
fi
5458
if test -z "$ac_cv_prog_STRIP"; then
5459
  ac_ct_STRIP=$STRIP
5460
  # Extract the first word of "strip", so it can be a program name with args.
5461
set dummy strip; ac_word=$2
5462
echo "$as_me:$LINENO: checking for $ac_word" >&5
5463
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5464
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5465
  echo $ECHO_N "(cached) $ECHO_C" >&6
5466
else
5467
  if test -n "$ac_ct_STRIP"; then
5468
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5469
else
5470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471
for as_dir in $PATH
5472
do
5473
  IFS=$as_save_IFS
5474
  test -z "$as_dir" && as_dir=.
5475
  for ac_exec_ext in '' $ac_executable_extensions; do
5476
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477
    ac_cv_prog_ac_ct_STRIP="strip"
5478
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479
    break 2
5480
  fi
5481
done
5482
done
5483
 
5484
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5485
fi
5486
fi
5487
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5488
if test -n "$ac_ct_STRIP"; then
5489
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5490
echo "${ECHO_T}$ac_ct_STRIP" >&6
5491
else
5492
  echo "$as_me:$LINENO: result: no" >&5
5493
echo "${ECHO_T}no" >&6
5494
fi
5495
 
5496
  STRIP=$ac_ct_STRIP
5497
else
5498
  STRIP="$ac_cv_prog_STRIP"
5499
fi
5500
 
5501
test -z "$STRIP" && STRIP=:
5502
 
5503
 
5504
 
5505
 
5506
 
5507
 
5508
if test -n "$ac_tool_prefix"; then
5509
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5510
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5511
echo "$as_me:$LINENO: checking for $ac_word" >&5
5512
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5513
if test "${ac_cv_prog_RANLIB+set}" = set; then
5514
  echo $ECHO_N "(cached) $ECHO_C" >&6
5515
else
5516
  if test -n "$RANLIB"; then
5517
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5518
else
5519
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520
for as_dir in $PATH
5521
do
5522
  IFS=$as_save_IFS
5523
  test -z "$as_dir" && as_dir=.
5524
  for ac_exec_ext in '' $ac_executable_extensions; do
5525
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5526
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5527
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5528
    break 2
5529
  fi
5530
done
5531
done
5532
 
5533
fi
5534
fi
5535
RANLIB=$ac_cv_prog_RANLIB
5536
if test -n "$RANLIB"; then
5537
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5538
echo "${ECHO_T}$RANLIB" >&6
5539
else
5540
  echo "$as_me:$LINENO: result: no" >&5
5541
echo "${ECHO_T}no" >&6
5542
fi
5543
 
5544
fi
5545
if test -z "$ac_cv_prog_RANLIB"; then
5546
  ac_ct_RANLIB=$RANLIB
5547
  # Extract the first word of "ranlib", so it can be a program name with args.
5548
set dummy ranlib; ac_word=$2
5549
echo "$as_me:$LINENO: checking for $ac_word" >&5
5550
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5551
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5552
  echo $ECHO_N "(cached) $ECHO_C" >&6
5553
else
5554
  if test -n "$ac_ct_RANLIB"; then
5555
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5556
else
5557
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558
for as_dir in $PATH
5559
do
5560
  IFS=$as_save_IFS
5561
  test -z "$as_dir" && as_dir=.
5562
  for ac_exec_ext in '' $ac_executable_extensions; do
5563
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5565
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566
    break 2
5567
  fi
5568
done
5569
done
5570
 
5571
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5572
fi
5573
fi
5574
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5575
if test -n "$ac_ct_RANLIB"; then
5576
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5577
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5578
else
5579
  echo "$as_me:$LINENO: result: no" >&5
5580
echo "${ECHO_T}no" >&6
5581
fi
5582
 
5583
  RANLIB=$ac_ct_RANLIB
5584
else
5585
  RANLIB="$ac_cv_prog_RANLIB"
5586
fi
5587
 
5588
test -z "$RANLIB" && RANLIB=:
5589
 
5590
 
5591
 
5592
 
5593
 
5594
 
5595
# Determine commands to create old-style static archives.
5596
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5597
old_postinstall_cmds='chmod 644 $oldlib'
5598
old_postuninstall_cmds=
5599
 
5600
if test -n "$RANLIB"; then
5601
  case $host_os in
5602
  openbsd*)
5603
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5604
    ;;
5605
  *)
5606
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5607
    ;;
5608
  esac
5609
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5610
fi
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
 
5645
# If no C compiler was specified, use CC.
5646
LTCC=${LTCC-"$CC"}
5647
 
5648
# If no C compiler flags were specified, use CFLAGS.
5649
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5650
 
5651
# Allow CC to be a program name with arguments.
5652
compiler=$CC
5653
 
5654
 
5655
# Check for command to grab the raw symbol name followed by C symbol from nm.
5656
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5657
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5658
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5659
  echo $ECHO_N "(cached) $ECHO_C" >&6
5660
else
5661
 
5662
# These are sane defaults that work on at least a few old systems.
5663
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5664
 
5665
# Character class describing NM global symbol codes.
5666
symcode='[BCDEGRST]'
5667
 
5668
# Regexp to match symbols that can be accessed directly from C.
5669
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5670
 
5671
# Define system-specific variables.
5672
case $host_os in
5673
aix*)
5674
  symcode='[BCDT]'
5675
  ;;
5676
cygwin* | mingw* | pw32* | cegcc*)
5677
  symcode='[ABCDGISTW]'
5678
  ;;
5679
hpux*)
5680
  if test "$host_cpu" = ia64; then
5681
    symcode='[ABCDEGRST]'
5682
  fi
5683
  ;;
5684
irix* | nonstopux*)
5685
  symcode='[BCDEGRST]'
5686
  ;;
5687
osf*)
5688
  symcode='[BCDEGQRST]'
5689
  ;;
5690
solaris*)
5691
  symcode='[BDRT]'
5692
  ;;
5693
sco3.2v5*)
5694
  symcode='[DT]'
5695
  ;;
5696
sysv4.2uw2*)
5697
  symcode='[DT]'
5698
  ;;
5699
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5700
  symcode='[ABDT]'
5701
  ;;
5702
sysv4)
5703
  symcode='[DFNSTU]'
5704
  ;;
5705
esac
5706
 
5707
# If we're using GNU nm, then use its standard symbol codes.
5708
case `$NM -V 2>&1` in
5709
*GNU* | *'with BFD'*)
5710
  symcode='[ABCDGIRSTW]' ;;
5711
esac
5712
 
5713
# Transform an extracted symbol line into a proper C declaration.
5714
# Some systems (esp. on ia64) link data and code symbols differently,
5715
# so use this general approach.
5716
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5717
 
5718
# Transform an extracted symbol line into symbol name and symbol address
5719
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5720
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'"
5721
 
5722
# Handle CRLF in mingw tool chain
5723
opt_cr=
5724
case $build_os in
5725
mingw*)
5726
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5727
  ;;
5728
esac
5729
 
5730
# Try without a prefix underscore, then with it.
5731
for ac_symprfx in "" "_"; do
5732
 
5733
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5734
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5735
 
5736
  # Write the raw and C identifiers.
5737
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5738
    # Fake it for dumpbin and say T for any non-static function
5739
    # and D for any global variable.
5740
    # Also find C++ and __fastcall symbols from MSVC++,
5741
    # which start with @ or ?.
5742
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5743
"     {last_section=section; section=\$ 3};"\
5744
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5745
"     \$ 0!~/External *\|/{next};"\
5746
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5747
"     {if(hide[section]) next};"\
5748
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5749
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5750
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5751
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5752
"     ' prfx=^$ac_symprfx"
5753
  else
5754
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5755
  fi
5756
 
5757
  # Check to see that the pipe works correctly.
5758
  pipe_works=no
5759
 
5760
  rm -f conftest*
5761
  cat > conftest.$ac_ext <<_LT_EOF
5762
#ifdef __cplusplus
5763
extern "C" {
5764
#endif
5765
char nm_test_var;
5766
void nm_test_func(void);
5767
void nm_test_func(void){}
5768
#ifdef __cplusplus
5769
}
5770
#endif
5771
int main(){nm_test_var='a';nm_test_func();return(0);}
5772
_LT_EOF
5773
 
5774
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775
  (eval $ac_compile) 2>&5
5776
  ac_status=$?
5777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778
  (exit $ac_status); }; then
5779
    # Now try to grab the symbols.
5780
    nlist=conftest.nm
5781
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5782
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5783
  ac_status=$?
5784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785
  (exit $ac_status); } && test -s "$nlist"; then
5786
      # Try sorting and uniquifying the output.
5787
      if sort "$nlist" | uniq > "$nlist"T; then
5788
        mv -f "$nlist"T "$nlist"
5789
      else
5790
        rm -f "$nlist"T
5791
      fi
5792
 
5793
      # Make sure that we snagged all the symbols we need.
5794
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5795
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5796
          cat <<_LT_EOF > conftest.$ac_ext
5797
#ifdef __cplusplus
5798
extern "C" {
5799
#endif
5800
 
5801
_LT_EOF
5802
          # Now generate the symbol file.
5803
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5804
 
5805
          cat <<_LT_EOF >> conftest.$ac_ext
5806
 
5807
/* The mapping between symbol names and symbols.  */
5808
const struct {
5809
  const char *name;
5810
  void       *address;
5811
}
5812
lt__PROGRAM__LTX_preloaded_symbols[] =
5813
{
5814
  { "@PROGRAM@", (void *) 0 },
5815
_LT_EOF
5816
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5817
          cat <<\_LT_EOF >> conftest.$ac_ext
5818
  {0, (void *) 0}
5819
};
5820
 
5821
/* This works around a problem in FreeBSD linker */
5822
#ifdef FREEBSD_WORKAROUND
5823
static const void *lt_preloaded_setup() {
5824
  return lt__PROGRAM__LTX_preloaded_symbols;
5825
}
5826
#endif
5827
 
5828
#ifdef __cplusplus
5829
}
5830
#endif
5831
_LT_EOF
5832
          # Now try linking the two files.
5833
          mv conftest.$ac_objext conftstm.$ac_objext
5834
          lt_save_LIBS="$LIBS"
5835
          lt_save_CFLAGS="$CFLAGS"
5836
          LIBS="conftstm.$ac_objext"
5837
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5838
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839
  (eval $ac_link) 2>&5
5840
  ac_status=$?
5841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5843
            pipe_works=yes
5844
          fi
5845
          LIBS="$lt_save_LIBS"
5846
          CFLAGS="$lt_save_CFLAGS"
5847
        else
5848
          echo "cannot find nm_test_func in $nlist" >&5
5849
        fi
5850
      else
5851
        echo "cannot find nm_test_var in $nlist" >&5
5852
      fi
5853
    else
5854
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5855
    fi
5856
  else
5857
    echo "$progname: failed program was:" >&5
5858
    cat conftest.$ac_ext >&5
5859
  fi
5860
  rm -rf conftest* conftst*
5861
 
5862
  # Do not use the global_symbol_pipe unless it works.
5863
  if test "$pipe_works" = yes; then
5864
    break
5865
  else
5866
    lt_cv_sys_global_symbol_pipe=
5867
  fi
5868
done
5869
 
5870
fi
5871
 
5872
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5873
  lt_cv_sys_global_symbol_to_cdecl=
5874
fi
5875
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5876
  echo "$as_me:$LINENO: result: failed" >&5
5877
echo "${ECHO_T}failed" >&6
5878
else
5879
  echo "$as_me:$LINENO: result: ok" >&5
5880
echo "${ECHO_T}ok" >&6
5881
fi
5882
 
5883
 
5884
 
5885
 
5886
 
5887
 
5888
 
5889
 
5890
 
5891
 
5892
 
5893
 
5894
 
5895
 
5896
 
5897
 
5898
 
5899
 
5900
 
5901
 
5902
 
5903
 
5904
 
5905
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5906
if test "${enable_libtool_lock+set}" = set; then
5907
  enableval="$enable_libtool_lock"
5908
 
5909
fi;
5910
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5911
 
5912
# Some flags need to be propagated to the compiler or linker for good
5913
# libtool support.
5914
case $host in
5915
ia64-*-hpux*)
5916
  # Find out which ABI we are using.
5917
  echo 'int i;' > conftest.$ac_ext
5918
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5919
  (eval $ac_compile) 2>&5
5920
  ac_status=$?
5921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922
  (exit $ac_status); }; then
5923
    case `/usr/bin/file conftest.$ac_objext` in
5924
      *ELF-32*)
5925
        HPUX_IA64_MODE="32"
5926
        ;;
5927
      *ELF-64*)
5928
        HPUX_IA64_MODE="64"
5929
        ;;
5930
    esac
5931
  fi
5932
  rm -rf conftest*
5933
  ;;
5934
*-*-irix6*)
5935
  # Find out which ABI we are using.
5936
  echo '#line 5936 "configure"' > conftest.$ac_ext
5937
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938
  (eval $ac_compile) 2>&5
5939
  ac_status=$?
5940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941
  (exit $ac_status); }; then
5942
    if test "$lt_cv_prog_gnu_ld" = yes; then
5943
      case `/usr/bin/file conftest.$ac_objext` in
5944
        *32-bit*)
5945
          LD="${LD-ld} -melf32bsmip"
5946
          ;;
5947
        *N32*)
5948
          LD="${LD-ld} -melf32bmipn32"
5949
          ;;
5950
        *64-bit*)
5951
          LD="${LD-ld} -melf64bmip"
5952
        ;;
5953
      esac
5954
    else
5955
      case `/usr/bin/file conftest.$ac_objext` in
5956
        *32-bit*)
5957
          LD="${LD-ld} -32"
5958
          ;;
5959
        *N32*)
5960
          LD="${LD-ld} -n32"
5961
          ;;
5962
        *64-bit*)
5963
          LD="${LD-ld} -64"
5964
          ;;
5965
      esac
5966
    fi
5967
  fi
5968
  rm -rf conftest*
5969
  ;;
5970
 
5971
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5972
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5973
  # Find out which ABI we are using.
5974
  echo 'int i;' > conftest.$ac_ext
5975
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976
  (eval $ac_compile) 2>&5
5977
  ac_status=$?
5978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979
  (exit $ac_status); }; then
5980
    case `/usr/bin/file conftest.o` in
5981
      *32-bit*)
5982
        case $host in
5983
          x86_64-*kfreebsd*-gnu)
5984
            LD="${LD-ld} -m elf_i386_fbsd"
5985
            ;;
5986
          x86_64-*linux*)
5987
            LD="${LD-ld} -m elf_i386"
5988
            ;;
5989
          ppc64-*linux*|powerpc64-*linux*)
5990
            LD="${LD-ld} -m elf32ppclinux"
5991
            ;;
5992
          s390x-*linux*)
5993
            LD="${LD-ld} -m elf_s390"
5994
            ;;
5995
          sparc64-*linux*)
5996
            LD="${LD-ld} -m elf32_sparc"
5997
            ;;
5998
        esac
5999
        ;;
6000
      *64-bit*)
6001
        case $host in
6002
          x86_64-*kfreebsd*-gnu)
6003
            LD="${LD-ld} -m elf_x86_64_fbsd"
6004
            ;;
6005
          x86_64-*linux*)
6006
            LD="${LD-ld} -m elf_x86_64"
6007
            ;;
6008
          ppc*-*linux*|powerpc*-*linux*)
6009
            LD="${LD-ld} -m elf64ppc"
6010
            ;;
6011
          s390*-*linux*|s390*-*tpf*)
6012
            LD="${LD-ld} -m elf64_s390"
6013
            ;;
6014
          sparc*-*linux*)
6015
            LD="${LD-ld} -m elf64_sparc"
6016
            ;;
6017
        esac
6018
        ;;
6019
    esac
6020
  fi
6021
  rm -rf conftest*
6022
  ;;
6023
 
6024
*-*-sco3.2v5*)
6025
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6026
  SAVE_CFLAGS="$CFLAGS"
6027
  CFLAGS="$CFLAGS -belf"
6028
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6029
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6030
if test "${lt_cv_cc_needs_belf+set}" = set; then
6031
  echo $ECHO_N "(cached) $ECHO_C" >&6
6032
else
6033
  ac_ext=c
6034
ac_cpp='$CPP $CPPFLAGS'
6035
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6036
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6038
 
6039
     cat >conftest.$ac_ext <<_ACEOF
6040
/* confdefs.h.  */
6041
_ACEOF
6042
cat confdefs.h >>conftest.$ac_ext
6043
cat >>conftest.$ac_ext <<_ACEOF
6044
/* end confdefs.h.  */
6045
 
6046
int
6047
main ()
6048
{
6049
 
6050
  ;
6051
  return 0;
6052
}
6053
_ACEOF
6054
rm -f conftest.$ac_objext conftest$ac_exeext
6055
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6056
  (eval $ac_link) 2>conftest.er1
6057
  ac_status=$?
6058
  grep -v '^ *+' conftest.er1 >conftest.err
6059
  rm -f conftest.er1
6060
  cat conftest.err >&5
6061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062
  (exit $ac_status); } &&
6063
         { ac_try='test -z "$ac_c_werror_flag"
6064
                         || test ! -s conftest.err'
6065
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066
  (eval $ac_try) 2>&5
6067
  ac_status=$?
6068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069
  (exit $ac_status); }; } &&
6070
         { ac_try='test -s conftest$ac_exeext'
6071
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072
  (eval $ac_try) 2>&5
6073
  ac_status=$?
6074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075
  (exit $ac_status); }; }; then
6076
  lt_cv_cc_needs_belf=yes
6077
else
6078
  echo "$as_me: failed program was:" >&5
6079
sed 's/^/| /' conftest.$ac_ext >&5
6080
 
6081
lt_cv_cc_needs_belf=no
6082
fi
6083
rm -f conftest.err conftest.$ac_objext \
6084
      conftest$ac_exeext conftest.$ac_ext
6085
     ac_ext=c
6086
ac_cpp='$CPP $CPPFLAGS'
6087
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6088
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6089
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6090
 
6091
fi
6092
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6093
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6094
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6095
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6096
    CFLAGS="$SAVE_CFLAGS"
6097
  fi
6098
  ;;
6099
sparc*-*solaris*)
6100
  # Find out which ABI we are using.
6101
  echo 'int i;' > conftest.$ac_ext
6102
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103
  (eval $ac_compile) 2>&5
6104
  ac_status=$?
6105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106
  (exit $ac_status); }; then
6107
    case `/usr/bin/file conftest.o` in
6108
    *64-bit*)
6109
      case $lt_cv_prog_gnu_ld in
6110
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6111
      *)
6112
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6113
          LD="${LD-ld} -64"
6114
        fi
6115
        ;;
6116
      esac
6117
      ;;
6118
    esac
6119
  fi
6120
  rm -rf conftest*
6121
  ;;
6122
esac
6123
 
6124
need_locks="$enable_libtool_lock"
6125
 
6126
 
6127
  case $host_os in
6128
    rhapsody* | darwin*)
6129
    if test -n "$ac_tool_prefix"; then
6130
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6131
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6132
echo "$as_me:$LINENO: checking for $ac_word" >&5
6133
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6134
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6135
  echo $ECHO_N "(cached) $ECHO_C" >&6
6136
else
6137
  if test -n "$DSYMUTIL"; then
6138
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6139
else
6140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141
for as_dir in $PATH
6142
do
6143
  IFS=$as_save_IFS
6144
  test -z "$as_dir" && as_dir=.
6145
  for ac_exec_ext in '' $ac_executable_extensions; do
6146
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6147
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6148
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6149
    break 2
6150
  fi
6151
done
6152
done
6153
 
6154
fi
6155
fi
6156
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6157
if test -n "$DSYMUTIL"; then
6158
  echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6159
echo "${ECHO_T}$DSYMUTIL" >&6
6160
else
6161
  echo "$as_me:$LINENO: result: no" >&5
6162
echo "${ECHO_T}no" >&6
6163
fi
6164
 
6165
fi
6166
if test -z "$ac_cv_prog_DSYMUTIL"; then
6167
  ac_ct_DSYMUTIL=$DSYMUTIL
6168
  # Extract the first word of "dsymutil", so it can be a program name with args.
6169
set dummy dsymutil; ac_word=$2
6170
echo "$as_me:$LINENO: checking for $ac_word" >&5
6171
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6172
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6173
  echo $ECHO_N "(cached) $ECHO_C" >&6
6174
else
6175
  if test -n "$ac_ct_DSYMUTIL"; then
6176
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6177
else
6178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179
for as_dir in $PATH
6180
do
6181
  IFS=$as_save_IFS
6182
  test -z "$as_dir" && as_dir=.
6183
  for ac_exec_ext in '' $ac_executable_extensions; do
6184
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6185
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6186
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187
    break 2
6188
  fi
6189
done
6190
done
6191
 
6192
  test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6193
fi
6194
fi
6195
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6196
if test -n "$ac_ct_DSYMUTIL"; then
6197
  echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6198
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6199
else
6200
  echo "$as_me:$LINENO: result: no" >&5
6201
echo "${ECHO_T}no" >&6
6202
fi
6203
 
6204
  DSYMUTIL=$ac_ct_DSYMUTIL
6205
else
6206
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6207
fi
6208
 
6209
    if test -n "$ac_tool_prefix"; then
6210
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6211
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6212
echo "$as_me:$LINENO: checking for $ac_word" >&5
6213
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6214
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6215
  echo $ECHO_N "(cached) $ECHO_C" >&6
6216
else
6217
  if test -n "$NMEDIT"; then
6218
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6219
else
6220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221
for as_dir in $PATH
6222
do
6223
  IFS=$as_save_IFS
6224
  test -z "$as_dir" && as_dir=.
6225
  for ac_exec_ext in '' $ac_executable_extensions; do
6226
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6228
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229
    break 2
6230
  fi
6231
done
6232
done
6233
 
6234
fi
6235
fi
6236
NMEDIT=$ac_cv_prog_NMEDIT
6237
if test -n "$NMEDIT"; then
6238
  echo "$as_me:$LINENO: result: $NMEDIT" >&5
6239
echo "${ECHO_T}$NMEDIT" >&6
6240
else
6241
  echo "$as_me:$LINENO: result: no" >&5
6242
echo "${ECHO_T}no" >&6
6243
fi
6244
 
6245
fi
6246
if test -z "$ac_cv_prog_NMEDIT"; then
6247
  ac_ct_NMEDIT=$NMEDIT
6248
  # Extract the first word of "nmedit", so it can be a program name with args.
6249
set dummy nmedit; ac_word=$2
6250
echo "$as_me:$LINENO: checking for $ac_word" >&5
6251
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6252
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6253
  echo $ECHO_N "(cached) $ECHO_C" >&6
6254
else
6255
  if test -n "$ac_ct_NMEDIT"; then
6256
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6257
else
6258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259
for as_dir in $PATH
6260
do
6261
  IFS=$as_save_IFS
6262
  test -z "$as_dir" && as_dir=.
6263
  for ac_exec_ext in '' $ac_executable_extensions; do
6264
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6266
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267
    break 2
6268
  fi
6269
done
6270
done
6271
 
6272
  test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6273
fi
6274
fi
6275
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6276
if test -n "$ac_ct_NMEDIT"; then
6277
  echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6278
echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6279
else
6280
  echo "$as_me:$LINENO: result: no" >&5
6281
echo "${ECHO_T}no" >&6
6282
fi
6283
 
6284
  NMEDIT=$ac_ct_NMEDIT
6285
else
6286
  NMEDIT="$ac_cv_prog_NMEDIT"
6287
fi
6288
 
6289
    if test -n "$ac_tool_prefix"; then
6290
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6291
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6292
echo "$as_me:$LINENO: checking for $ac_word" >&5
6293
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6294
if test "${ac_cv_prog_LIPO+set}" = set; then
6295
  echo $ECHO_N "(cached) $ECHO_C" >&6
6296
else
6297
  if test -n "$LIPO"; then
6298
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6299
else
6300
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301
for as_dir in $PATH
6302
do
6303
  IFS=$as_save_IFS
6304
  test -z "$as_dir" && as_dir=.
6305
  for ac_exec_ext in '' $ac_executable_extensions; do
6306
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6307
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6308
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309
    break 2
6310
  fi
6311
done
6312
done
6313
 
6314
fi
6315
fi
6316
LIPO=$ac_cv_prog_LIPO
6317
if test -n "$LIPO"; then
6318
  echo "$as_me:$LINENO: result: $LIPO" >&5
6319
echo "${ECHO_T}$LIPO" >&6
6320
else
6321
  echo "$as_me:$LINENO: result: no" >&5
6322
echo "${ECHO_T}no" >&6
6323
fi
6324
 
6325
fi
6326
if test -z "$ac_cv_prog_LIPO"; then
6327
  ac_ct_LIPO=$LIPO
6328
  # Extract the first word of "lipo", so it can be a program name with args.
6329
set dummy lipo; ac_word=$2
6330
echo "$as_me:$LINENO: checking for $ac_word" >&5
6331
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6332
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6333
  echo $ECHO_N "(cached) $ECHO_C" >&6
6334
else
6335
  if test -n "$ac_ct_LIPO"; then
6336
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6337
else
6338
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339
for as_dir in $PATH
6340
do
6341
  IFS=$as_save_IFS
6342
  test -z "$as_dir" && as_dir=.
6343
  for ac_exec_ext in '' $ac_executable_extensions; do
6344
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6345
    ac_cv_prog_ac_ct_LIPO="lipo"
6346
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347
    break 2
6348
  fi
6349
done
6350
done
6351
 
6352
  test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6353
fi
6354
fi
6355
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6356
if test -n "$ac_ct_LIPO"; then
6357
  echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6358
echo "${ECHO_T}$ac_ct_LIPO" >&6
6359
else
6360
  echo "$as_me:$LINENO: result: no" >&5
6361
echo "${ECHO_T}no" >&6
6362
fi
6363
 
6364
  LIPO=$ac_ct_LIPO
6365
else
6366
  LIPO="$ac_cv_prog_LIPO"
6367
fi
6368
 
6369
    if test -n "$ac_tool_prefix"; then
6370
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6371
set dummy ${ac_tool_prefix}otool; ac_word=$2
6372
echo "$as_me:$LINENO: checking for $ac_word" >&5
6373
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6374
if test "${ac_cv_prog_OTOOL+set}" = set; then
6375
  echo $ECHO_N "(cached) $ECHO_C" >&6
6376
else
6377
  if test -n "$OTOOL"; then
6378
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6379
else
6380
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381
for as_dir in $PATH
6382
do
6383
  IFS=$as_save_IFS
6384
  test -z "$as_dir" && as_dir=.
6385
  for ac_exec_ext in '' $ac_executable_extensions; do
6386
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6388
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389
    break 2
6390
  fi
6391
done
6392
done
6393
 
6394
fi
6395
fi
6396
OTOOL=$ac_cv_prog_OTOOL
6397
if test -n "$OTOOL"; then
6398
  echo "$as_me:$LINENO: result: $OTOOL" >&5
6399
echo "${ECHO_T}$OTOOL" >&6
6400
else
6401
  echo "$as_me:$LINENO: result: no" >&5
6402
echo "${ECHO_T}no" >&6
6403
fi
6404
 
6405
fi
6406
if test -z "$ac_cv_prog_OTOOL"; then
6407
  ac_ct_OTOOL=$OTOOL
6408
  # Extract the first word of "otool", so it can be a program name with args.
6409
set dummy otool; ac_word=$2
6410
echo "$as_me:$LINENO: checking for $ac_word" >&5
6411
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6412
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6413
  echo $ECHO_N "(cached) $ECHO_C" >&6
6414
else
6415
  if test -n "$ac_ct_OTOOL"; then
6416
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6417
else
6418
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419
for as_dir in $PATH
6420
do
6421
  IFS=$as_save_IFS
6422
  test -z "$as_dir" && as_dir=.
6423
  for ac_exec_ext in '' $ac_executable_extensions; do
6424
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425
    ac_cv_prog_ac_ct_OTOOL="otool"
6426
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427
    break 2
6428
  fi
6429
done
6430
done
6431
 
6432
  test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6433
fi
6434
fi
6435
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6436
if test -n "$ac_ct_OTOOL"; then
6437
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6438
echo "${ECHO_T}$ac_ct_OTOOL" >&6
6439
else
6440
  echo "$as_me:$LINENO: result: no" >&5
6441
echo "${ECHO_T}no" >&6
6442
fi
6443
 
6444
  OTOOL=$ac_ct_OTOOL
6445
else
6446
  OTOOL="$ac_cv_prog_OTOOL"
6447
fi
6448
 
6449
    if test -n "$ac_tool_prefix"; then
6450
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6451
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6452
echo "$as_me:$LINENO: checking for $ac_word" >&5
6453
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6454
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6455
  echo $ECHO_N "(cached) $ECHO_C" >&6
6456
else
6457
  if test -n "$OTOOL64"; then
6458
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6459
else
6460
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461
for as_dir in $PATH
6462
do
6463
  IFS=$as_save_IFS
6464
  test -z "$as_dir" && as_dir=.
6465
  for ac_exec_ext in '' $ac_executable_extensions; do
6466
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6467
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6468
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6469
    break 2
6470
  fi
6471
done
6472
done
6473
 
6474
fi
6475
fi
6476
OTOOL64=$ac_cv_prog_OTOOL64
6477
if test -n "$OTOOL64"; then
6478
  echo "$as_me:$LINENO: result: $OTOOL64" >&5
6479
echo "${ECHO_T}$OTOOL64" >&6
6480
else
6481
  echo "$as_me:$LINENO: result: no" >&5
6482
echo "${ECHO_T}no" >&6
6483
fi
6484
 
6485
fi
6486
if test -z "$ac_cv_prog_OTOOL64"; then
6487
  ac_ct_OTOOL64=$OTOOL64
6488
  # Extract the first word of "otool64", so it can be a program name with args.
6489
set dummy otool64; ac_word=$2
6490
echo "$as_me:$LINENO: checking for $ac_word" >&5
6491
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6492
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6493
  echo $ECHO_N "(cached) $ECHO_C" >&6
6494
else
6495
  if test -n "$ac_ct_OTOOL64"; then
6496
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6497
else
6498
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499
for as_dir in $PATH
6500
do
6501
  IFS=$as_save_IFS
6502
  test -z "$as_dir" && as_dir=.
6503
  for ac_exec_ext in '' $ac_executable_extensions; do
6504
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6506
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507
    break 2
6508
  fi
6509
done
6510
done
6511
 
6512
  test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6513
fi
6514
fi
6515
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6516
if test -n "$ac_ct_OTOOL64"; then
6517
  echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6518
echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6519
else
6520
  echo "$as_me:$LINENO: result: no" >&5
6521
echo "${ECHO_T}no" >&6
6522
fi
6523
 
6524
  OTOOL64=$ac_ct_OTOOL64
6525
else
6526
  OTOOL64="$ac_cv_prog_OTOOL64"
6527
fi
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
 
6555
    echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6556
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6557
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6558
  echo $ECHO_N "(cached) $ECHO_C" >&6
6559
else
6560
  lt_cv_apple_cc_single_mod=no
6561
      if test -z "${LT_MULTI_MODULE}"; then
6562
        # By default we will add the -single_module flag. You can override
6563
        # by either setting the environment variable LT_MULTI_MODULE
6564
        # non-empty at configure time, or by adding -multi_module to the
6565
        # link flags.
6566
        rm -rf libconftest.dylib*
6567
        echo "int foo(void){return 1;}" > conftest.c
6568
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6569
-dynamiclib -Wl,-single_module conftest.c" >&5
6570
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6571
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6572
        _lt_result=$?
6573
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6574
          lt_cv_apple_cc_single_mod=yes
6575
        else
6576
          cat conftest.err >&5
6577
        fi
6578
        rm -rf libconftest.dylib*
6579
        rm -f conftest.*
6580
      fi
6581
fi
6582
echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6583
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6584
    echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6585
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6586
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6587
  echo $ECHO_N "(cached) $ECHO_C" >&6
6588
else
6589
  lt_cv_ld_exported_symbols_list=no
6590
      save_LDFLAGS=$LDFLAGS
6591
      echo "_main" > conftest.sym
6592
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6593
      cat >conftest.$ac_ext <<_ACEOF
6594
/* confdefs.h.  */
6595
_ACEOF
6596
cat confdefs.h >>conftest.$ac_ext
6597
cat >>conftest.$ac_ext <<_ACEOF
6598
/* end confdefs.h.  */
6599
 
6600
int
6601
main ()
6602
{
6603
 
6604
  ;
6605
  return 0;
6606
}
6607
_ACEOF
6608
rm -f conftest.$ac_objext conftest$ac_exeext
6609
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6610
  (eval $ac_link) 2>conftest.er1
6611
  ac_status=$?
6612
  grep -v '^ *+' conftest.er1 >conftest.err
6613
  rm -f conftest.er1
6614
  cat conftest.err >&5
6615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616
  (exit $ac_status); } &&
6617
         { ac_try='test -z "$ac_c_werror_flag"
6618
                         || test ! -s conftest.err'
6619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620
  (eval $ac_try) 2>&5
6621
  ac_status=$?
6622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623
  (exit $ac_status); }; } &&
6624
         { ac_try='test -s conftest$ac_exeext'
6625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626
  (eval $ac_try) 2>&5
6627
  ac_status=$?
6628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629
  (exit $ac_status); }; }; then
6630
  lt_cv_ld_exported_symbols_list=yes
6631
else
6632
  echo "$as_me: failed program was:" >&5
6633
sed 's/^/| /' conftest.$ac_ext >&5
6634
 
6635
lt_cv_ld_exported_symbols_list=no
6636
fi
6637
rm -f conftest.err conftest.$ac_objext \
6638
      conftest$ac_exeext conftest.$ac_ext
6639
        LDFLAGS="$save_LDFLAGS"
6640
 
6641
fi
6642
echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6643
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6644
    case $host_os in
6645
    rhapsody* | darwin1.[012])
6646
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6647
    darwin1.*)
6648
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6649
    darwin*) # darwin 5.x on
6650
      # if running on 10.5 or later, the deployment target defaults
6651
      # to the OS version, if on x86, and 10.4, the deployment
6652
      # target defaults to 10.4. Don't you love it?
6653
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6654
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6655
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6656
        10.[012]*)
6657
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6658
        10.*)
6659
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6660
      esac
6661
    ;;
6662
  esac
6663
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6664
      _lt_dar_single_mod='$single_module'
6665
    fi
6666
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6667
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6668
    else
6669
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6670
    fi
6671
    if test "$DSYMUTIL" != ":"; then
6672
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6673
    else
6674
      _lt_dsymutil=
6675
    fi
6676
    ;;
6677
  esac
6678
 
6679
ac_ext=c
6680
ac_cpp='$CPP $CPPFLAGS'
6681
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6682
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6683
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6684
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6685
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6686
# On Suns, sometimes $CPP names a directory.
6687
if test -n "$CPP" && test -d "$CPP"; then
6688
  CPP=
6689
fi
6690
if test -z "$CPP"; then
6691
  if test "${ac_cv_prog_CPP+set}" = set; then
6692
  echo $ECHO_N "(cached) $ECHO_C" >&6
6693
else
6694
      # Double quotes because CPP needs to be expanded
6695
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6696
    do
6697
      ac_preproc_ok=false
6698
for ac_c_preproc_warn_flag in '' yes
6699
do
6700
  # Use a header file that comes with gcc, so configuring glibc
6701
  # with a fresh cross-compiler works.
6702
  # Prefer  to  if __STDC__ is defined, since
6703
  #  exists even on freestanding compilers.
6704
  # On the NeXT, cc -E runs the code through the compiler's parser,
6705
  # not just through cpp. "Syntax error" is here to catch this case.
6706
  cat >conftest.$ac_ext <<_ACEOF
6707
/* confdefs.h.  */
6708
_ACEOF
6709
cat confdefs.h >>conftest.$ac_ext
6710
cat >>conftest.$ac_ext <<_ACEOF
6711
/* end confdefs.h.  */
6712
#ifdef __STDC__
6713
# include 
6714
#else
6715
# include 
6716
#endif
6717
                     Syntax error
6718
_ACEOF
6719
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6720
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6721
  ac_status=$?
6722
  grep -v '^ *+' conftest.er1 >conftest.err
6723
  rm -f conftest.er1
6724
  cat conftest.err >&5
6725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726
  (exit $ac_status); } >/dev/null; then
6727
  if test -s conftest.err; then
6728
    ac_cpp_err=$ac_c_preproc_warn_flag
6729
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6730
  else
6731
    ac_cpp_err=
6732
  fi
6733
else
6734
  ac_cpp_err=yes
6735
fi
6736
if test -z "$ac_cpp_err"; then
6737
  :
6738
else
6739
  echo "$as_me: failed program was:" >&5
6740
sed 's/^/| /' conftest.$ac_ext >&5
6741
 
6742
  # Broken: fails on valid input.
6743
continue
6744
fi
6745
rm -f conftest.err conftest.$ac_ext
6746
 
6747
  # OK, works on sane cases.  Now check whether non-existent headers
6748
  # can be detected and how.
6749
  cat >conftest.$ac_ext <<_ACEOF
6750
/* confdefs.h.  */
6751
_ACEOF
6752
cat confdefs.h >>conftest.$ac_ext
6753
cat >>conftest.$ac_ext <<_ACEOF
6754
/* end confdefs.h.  */
6755
#include 
6756
_ACEOF
6757
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6758
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6759
  ac_status=$?
6760
  grep -v '^ *+' conftest.er1 >conftest.err
6761
  rm -f conftest.er1
6762
  cat conftest.err >&5
6763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764
  (exit $ac_status); } >/dev/null; then
6765
  if test -s conftest.err; then
6766
    ac_cpp_err=$ac_c_preproc_warn_flag
6767
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6768
  else
6769
    ac_cpp_err=
6770
  fi
6771
else
6772
  ac_cpp_err=yes
6773
fi
6774
if test -z "$ac_cpp_err"; then
6775
  # Broken: success on invalid input.
6776
continue
6777
else
6778
  echo "$as_me: failed program was:" >&5
6779
sed 's/^/| /' conftest.$ac_ext >&5
6780
 
6781
  # Passes both tests.
6782
ac_preproc_ok=:
6783
break
6784
fi
6785
rm -f conftest.err conftest.$ac_ext
6786
 
6787
done
6788
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6789
rm -f conftest.err conftest.$ac_ext
6790
if $ac_preproc_ok; then
6791
  break
6792
fi
6793
 
6794
    done
6795
    ac_cv_prog_CPP=$CPP
6796
 
6797
fi
6798
  CPP=$ac_cv_prog_CPP
6799
else
6800
  ac_cv_prog_CPP=$CPP
6801
fi
6802
echo "$as_me:$LINENO: result: $CPP" >&5
6803
echo "${ECHO_T}$CPP" >&6
6804
ac_preproc_ok=false
6805
for ac_c_preproc_warn_flag in '' yes
6806
do
6807
  # Use a header file that comes with gcc, so configuring glibc
6808
  # with a fresh cross-compiler works.
6809
  # Prefer  to  if __STDC__ is defined, since
6810
  #  exists even on freestanding compilers.
6811
  # On the NeXT, cc -E runs the code through the compiler's parser,
6812
  # not just through cpp. "Syntax error" is here to catch this case.
6813
  cat >conftest.$ac_ext <<_ACEOF
6814
/* confdefs.h.  */
6815
_ACEOF
6816
cat confdefs.h >>conftest.$ac_ext
6817
cat >>conftest.$ac_ext <<_ACEOF
6818
/* end confdefs.h.  */
6819
#ifdef __STDC__
6820
# include 
6821
#else
6822
# include 
6823
#endif
6824
                     Syntax error
6825
_ACEOF
6826
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6827
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6828
  ac_status=$?
6829
  grep -v '^ *+' conftest.er1 >conftest.err
6830
  rm -f conftest.er1
6831
  cat conftest.err >&5
6832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833
  (exit $ac_status); } >/dev/null; then
6834
  if test -s conftest.err; then
6835
    ac_cpp_err=$ac_c_preproc_warn_flag
6836
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6837
  else
6838
    ac_cpp_err=
6839
  fi
6840
else
6841
  ac_cpp_err=yes
6842
fi
6843
if test -z "$ac_cpp_err"; then
6844
  :
6845
else
6846
  echo "$as_me: failed program was:" >&5
6847
sed 's/^/| /' conftest.$ac_ext >&5
6848
 
6849
  # Broken: fails on valid input.
6850
continue
6851
fi
6852
rm -f conftest.err conftest.$ac_ext
6853
 
6854
  # OK, works on sane cases.  Now check whether non-existent headers
6855
  # can be detected and how.
6856
  cat >conftest.$ac_ext <<_ACEOF
6857
/* confdefs.h.  */
6858
_ACEOF
6859
cat confdefs.h >>conftest.$ac_ext
6860
cat >>conftest.$ac_ext <<_ACEOF
6861
/* end confdefs.h.  */
6862
#include 
6863
_ACEOF
6864
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6865
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6866
  ac_status=$?
6867
  grep -v '^ *+' conftest.er1 >conftest.err
6868
  rm -f conftest.er1
6869
  cat conftest.err >&5
6870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871
  (exit $ac_status); } >/dev/null; then
6872
  if test -s conftest.err; then
6873
    ac_cpp_err=$ac_c_preproc_warn_flag
6874
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6875
  else
6876
    ac_cpp_err=
6877
  fi
6878
else
6879
  ac_cpp_err=yes
6880
fi
6881
if test -z "$ac_cpp_err"; then
6882
  # Broken: success on invalid input.
6883
continue
6884
else
6885
  echo "$as_me: failed program was:" >&5
6886
sed 's/^/| /' conftest.$ac_ext >&5
6887
 
6888
  # Passes both tests.
6889
ac_preproc_ok=:
6890
break
6891
fi
6892
rm -f conftest.err conftest.$ac_ext
6893
 
6894
done
6895
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6896
rm -f conftest.err conftest.$ac_ext
6897
if $ac_preproc_ok; then
6898
  :
6899
else
6900
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6901
See \`config.log' for more details." >&5
6902
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6903
See \`config.log' for more details." >&2;}
6904
   { (exit 1); exit 1; }; }
6905
fi
6906
 
6907
ac_ext=c
6908
ac_cpp='$CPP $CPPFLAGS'
6909
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6910
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6911
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6912
 
6913
 
6914
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6915
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6916
if test "${ac_cv_header_stdc+set}" = set; then
6917
  echo $ECHO_N "(cached) $ECHO_C" >&6
6918
else
6919
  cat >conftest.$ac_ext <<_ACEOF
6920
/* confdefs.h.  */
6921
_ACEOF
6922
cat confdefs.h >>conftest.$ac_ext
6923
cat >>conftest.$ac_ext <<_ACEOF
6924
/* end confdefs.h.  */
6925
#include 
6926
#include 
6927
#include 
6928
#include 
6929
 
6930
int
6931
main ()
6932
{
6933
 
6934
  ;
6935
  return 0;
6936
}
6937
_ACEOF
6938
rm -f conftest.$ac_objext
6939
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6940
  (eval $ac_compile) 2>conftest.er1
6941
  ac_status=$?
6942
  grep -v '^ *+' conftest.er1 >conftest.err
6943
  rm -f conftest.er1
6944
  cat conftest.err >&5
6945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946
  (exit $ac_status); } &&
6947
         { ac_try='test -z "$ac_c_werror_flag"
6948
                         || test ! -s conftest.err'
6949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950
  (eval $ac_try) 2>&5
6951
  ac_status=$?
6952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953
  (exit $ac_status); }; } &&
6954
         { ac_try='test -s conftest.$ac_objext'
6955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956
  (eval $ac_try) 2>&5
6957
  ac_status=$?
6958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959
  (exit $ac_status); }; }; then
6960
  ac_cv_header_stdc=yes
6961
else
6962
  echo "$as_me: failed program was:" >&5
6963
sed 's/^/| /' conftest.$ac_ext >&5
6964
 
6965
ac_cv_header_stdc=no
6966
fi
6967
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6968
 
6969
if test $ac_cv_header_stdc = yes; then
6970
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6971
  cat >conftest.$ac_ext <<_ACEOF
6972
/* confdefs.h.  */
6973
_ACEOF
6974
cat confdefs.h >>conftest.$ac_ext
6975
cat >>conftest.$ac_ext <<_ACEOF
6976
/* end confdefs.h.  */
6977
#include 
6978
 
6979
_ACEOF
6980
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6981
  $EGREP "memchr" >/dev/null 2>&1; then
6982
  :
6983
else
6984
  ac_cv_header_stdc=no
6985
fi
6986
rm -f conftest*
6987
 
6988
fi
6989
 
6990
if test $ac_cv_header_stdc = yes; then
6991
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6992
  cat >conftest.$ac_ext <<_ACEOF
6993
/* confdefs.h.  */
6994
_ACEOF
6995
cat confdefs.h >>conftest.$ac_ext
6996
cat >>conftest.$ac_ext <<_ACEOF
6997
/* end confdefs.h.  */
6998
#include 
6999
 
7000
_ACEOF
7001
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7002
  $EGREP "free" >/dev/null 2>&1; then
7003
  :
7004
else
7005
  ac_cv_header_stdc=no
7006
fi
7007
rm -f conftest*
7008
 
7009
fi
7010
 
7011
if test $ac_cv_header_stdc = yes; then
7012
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7013
  if test "$cross_compiling" = yes; then
7014
  :
7015
else
7016
  cat >conftest.$ac_ext <<_ACEOF
7017
/* confdefs.h.  */
7018
_ACEOF
7019
cat confdefs.h >>conftest.$ac_ext
7020
cat >>conftest.$ac_ext <<_ACEOF
7021
/* end confdefs.h.  */
7022
#include 
7023
#if ((' ' & 0x0FF) == 0x020)
7024
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7025
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7026
#else
7027
# define ISLOWER(c) \
7028
                   (('a' <= (c) && (c) <= 'i') \
7029
                     || ('j' <= (c) && (c) <= 'r') \
7030
                     || ('s' <= (c) && (c) <= 'z'))
7031
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7032
#endif
7033
 
7034
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7035
int
7036
main ()
7037
{
7038
  int i;
7039
  for (i = 0; i < 256; i++)
7040
    if (XOR (islower (i), ISLOWER (i))
7041
        || toupper (i) != TOUPPER (i))
7042
      exit(2);
7043
  exit (0);
7044
}
7045
_ACEOF
7046
rm -f conftest$ac_exeext
7047
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7048
  (eval $ac_link) 2>&5
7049
  ac_status=$?
7050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7052
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053
  (eval $ac_try) 2>&5
7054
  ac_status=$?
7055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056
  (exit $ac_status); }; }; then
7057
  :
7058
else
7059
  echo "$as_me: program exited with status $ac_status" >&5
7060
echo "$as_me: failed program was:" >&5
7061
sed 's/^/| /' conftest.$ac_ext >&5
7062
 
7063
( exit $ac_status )
7064
ac_cv_header_stdc=no
7065
fi
7066
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7067
fi
7068
fi
7069
fi
7070
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7071
echo "${ECHO_T}$ac_cv_header_stdc" >&6
7072
if test $ac_cv_header_stdc = yes; then
7073
 
7074
cat >>confdefs.h <<\_ACEOF
7075
#define STDC_HEADERS 1
7076
_ACEOF
7077
 
7078
fi
7079
 
7080
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7081
 
7082
 
7083
 
7084
 
7085
 
7086
 
7087
 
7088
 
7089
 
7090
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7091
                  inttypes.h stdint.h unistd.h
7092
do
7093
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7094
echo "$as_me:$LINENO: checking for $ac_header" >&5
7095
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7096
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7097
  echo $ECHO_N "(cached) $ECHO_C" >&6
7098
else
7099
  cat >conftest.$ac_ext <<_ACEOF
7100
/* confdefs.h.  */
7101
_ACEOF
7102
cat confdefs.h >>conftest.$ac_ext
7103
cat >>conftest.$ac_ext <<_ACEOF
7104
/* end confdefs.h.  */
7105
$ac_includes_default
7106
 
7107
#include <$ac_header>
7108
_ACEOF
7109
rm -f conftest.$ac_objext
7110
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111
  (eval $ac_compile) 2>conftest.er1
7112
  ac_status=$?
7113
  grep -v '^ *+' conftest.er1 >conftest.err
7114
  rm -f conftest.er1
7115
  cat conftest.err >&5
7116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117
  (exit $ac_status); } &&
7118
         { ac_try='test -z "$ac_c_werror_flag"
7119
                         || test ! -s conftest.err'
7120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121
  (eval $ac_try) 2>&5
7122
  ac_status=$?
7123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124
  (exit $ac_status); }; } &&
7125
         { ac_try='test -s conftest.$ac_objext'
7126
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127
  (eval $ac_try) 2>&5
7128
  ac_status=$?
7129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130
  (exit $ac_status); }; }; then
7131
  eval "$as_ac_Header=yes"
7132
else
7133
  echo "$as_me: failed program was:" >&5
7134
sed 's/^/| /' conftest.$ac_ext >&5
7135
 
7136
eval "$as_ac_Header=no"
7137
fi
7138
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7139
fi
7140
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7141
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7142
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7143
  cat >>confdefs.h <<_ACEOF
7144
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7145
_ACEOF
7146
 
7147
fi
7148
 
7149
done
7150
 
7151
 
7152
 
7153
for ac_header in dlfcn.h
7154
do
7155
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7156
echo "$as_me:$LINENO: checking for $ac_header" >&5
7157
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7158
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7159
  echo $ECHO_N "(cached) $ECHO_C" >&6
7160
else
7161
  cat >conftest.$ac_ext <<_ACEOF
7162
/* confdefs.h.  */
7163
_ACEOF
7164
cat confdefs.h >>conftest.$ac_ext
7165
cat >>conftest.$ac_ext <<_ACEOF
7166
/* end confdefs.h.  */
7167
$ac_includes_default
7168
 
7169
#include <$ac_header>
7170
_ACEOF
7171
rm -f conftest.$ac_objext
7172
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7173
  (eval $ac_compile) 2>conftest.er1
7174
  ac_status=$?
7175
  grep -v '^ *+' conftest.er1 >conftest.err
7176
  rm -f conftest.er1
7177
  cat conftest.err >&5
7178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179
  (exit $ac_status); } &&
7180
         { ac_try='test -z "$ac_c_werror_flag"
7181
                         || test ! -s conftest.err'
7182
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183
  (eval $ac_try) 2>&5
7184
  ac_status=$?
7185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186
  (exit $ac_status); }; } &&
7187
         { ac_try='test -s conftest.$ac_objext'
7188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189
  (eval $ac_try) 2>&5
7190
  ac_status=$?
7191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192
  (exit $ac_status); }; }; then
7193
  eval "$as_ac_Header=yes"
7194
else
7195
  echo "$as_me: failed program was:" >&5
7196
sed 's/^/| /' conftest.$ac_ext >&5
7197
 
7198
eval "$as_ac_Header=no"
7199
fi
7200
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7201
fi
7202
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7203
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7204
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7205
  cat >>confdefs.h <<_ACEOF
7206
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7207
_ACEOF
7208
 
7209
fi
7210
 
7211
done
7212
 
7213
 
7214
 
7215
# Set options
7216
 
7217
 
7218
 
7219
        enable_dlopen=no
7220
 
7221
 
7222
 
7223
            # Check whether --enable-shared or --disable-shared was given.
7224
if test "${enable_shared+set}" = set; then
7225
  enableval="$enable_shared"
7226
  p=${PACKAGE-default}
7227
    case $enableval in
7228
    yes) enable_shared=yes ;;
7229
    no) enable_shared=no ;;
7230
    *)
7231
      enable_shared=no
7232
      # Look at the argument we got.  We use all the common list separators.
7233
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7234
      for pkg in $enableval; do
7235
        IFS="$lt_save_ifs"
7236
        if test "X$pkg" = "X$p"; then
7237
          enable_shared=yes
7238
        fi
7239
      done
7240
      IFS="$lt_save_ifs"
7241
      ;;
7242
    esac
7243
else
7244
  enable_shared=yes
7245
fi;
7246
 
7247
 
7248
 
7249
 
7250
 
7251
 
7252
 
7253
 
7254
  # Check whether --enable-static or --disable-static was given.
7255
if test "${enable_static+set}" = set; then
7256
  enableval="$enable_static"
7257
  p=${PACKAGE-default}
7258
    case $enableval in
7259
    yes) enable_static=yes ;;
7260
    no) enable_static=no ;;
7261
    *)
7262
     enable_static=no
7263
      # Look at the argument we got.  We use all the common list separators.
7264
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7265
      for pkg in $enableval; do
7266
        IFS="$lt_save_ifs"
7267
        if test "X$pkg" = "X$p"; then
7268
          enable_static=yes
7269
        fi
7270
      done
7271
      IFS="$lt_save_ifs"
7272
      ;;
7273
    esac
7274
else
7275
  enable_static=yes
7276
fi;
7277
 
7278
 
7279
 
7280
 
7281
 
7282
 
7283
 
7284
 
7285
 
7286
# Check whether --with-pic or --without-pic was given.
7287
if test "${with_pic+set}" = set; then
7288
  withval="$with_pic"
7289
  pic_mode="$withval"
7290
else
7291
  pic_mode=default
7292
fi;
7293
 
7294
test -z "$pic_mode" && pic_mode=default
7295
 
7296
 
7297
 
7298
 
7299
 
7300
 
7301
 
7302
  # Check whether --enable-fast-install or --disable-fast-install was given.
7303
if test "${enable_fast_install+set}" = set; then
7304
  enableval="$enable_fast_install"
7305
  p=${PACKAGE-default}
7306
    case $enableval in
7307
    yes) enable_fast_install=yes ;;
7308
    no) enable_fast_install=no ;;
7309
    *)
7310
      enable_fast_install=no
7311
      # Look at the argument we got.  We use all the common list separators.
7312
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7313
      for pkg in $enableval; do
7314
        IFS="$lt_save_ifs"
7315
        if test "X$pkg" = "X$p"; then
7316
          enable_fast_install=yes
7317
        fi
7318
      done
7319
      IFS="$lt_save_ifs"
7320
      ;;
7321
    esac
7322
else
7323
  enable_fast_install=yes
7324
fi;
7325
 
7326
 
7327
 
7328
 
7329
 
7330
 
7331
 
7332
 
7333
 
7334
 
7335
# This can be used to rebuild libtool when needed
7336
LIBTOOL_DEPS="$ltmain"
7337
 
7338
# Always use our own libtool.
7339
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
 
7365
test -z "$LN_S" && LN_S="ln -s"
7366
 
7367
 
7368
 
7369
 
7370
 
7371
 
7372
 
7373
 
7374
 
7375
 
7376
 
7377
 
7378
 
7379
 
7380
if test -n "${ZSH_VERSION+set}" ; then
7381
   setopt NO_GLOB_SUBST
7382
fi
7383
 
7384
echo "$as_me:$LINENO: checking for objdir" >&5
7385
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7386
if test "${lt_cv_objdir+set}" = set; then
7387
  echo $ECHO_N "(cached) $ECHO_C" >&6
7388
else
7389
  rm -f .libs 2>/dev/null
7390
mkdir .libs 2>/dev/null
7391
if test -d .libs; then
7392
  lt_cv_objdir=.libs
7393
else
7394
  # MS-DOS does not allow filenames that begin with a dot.
7395
  lt_cv_objdir=_libs
7396
fi
7397
rmdir .libs 2>/dev/null
7398
fi
7399
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7400
echo "${ECHO_T}$lt_cv_objdir" >&6
7401
objdir=$lt_cv_objdir
7402
 
7403
 
7404
 
7405
 
7406
 
7407
cat >>confdefs.h <<_ACEOF
7408
#define LT_OBJDIR "$lt_cv_objdir/"
7409
_ACEOF
7410
 
7411
 
7412
 
7413
 
7414
 
7415
 
7416
 
7417
 
7418
 
7419
 
7420
 
7421
 
7422
 
7423
 
7424
 
7425
 
7426
 
7427
case $host_os in
7428
aix3*)
7429
  # AIX sometimes has problems with the GCC collect2 program.  For some
7430
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7431
  # vanish in a puff of smoke.
7432
  if test "X${COLLECT_NAMES+set}" != Xset; then
7433
    COLLECT_NAMES=
7434
    export COLLECT_NAMES
7435
  fi
7436
  ;;
7437
esac
7438
 
7439
# Sed substitution that helps us do robust quoting.  It backslashifies
7440
# metacharacters that are still active within double-quoted strings.
7441
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7442
 
7443
# Same as above, but do not quote variable references.
7444
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7445
 
7446
# Sed substitution to delay expansion of an escaped shell variable in a
7447
# double_quote_subst'ed string.
7448
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7449
 
7450
# Sed substitution to delay expansion of an escaped single quote.
7451
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7452
 
7453
# Sed substitution to avoid accidental globbing in evaled expressions
7454
no_glob_subst='s/\*/\\\*/g'
7455
 
7456
# Global variables:
7457
ofile=libtool
7458
can_build_shared=yes
7459
 
7460
# All known linkers require a `.a' archive for static linking (except MSVC,
7461
# which needs '.lib').
7462
libext=a
7463
 
7464
with_gnu_ld="$lt_cv_prog_gnu_ld"
7465
 
7466
old_CC="$CC"
7467
old_CFLAGS="$CFLAGS"
7468
 
7469
# Set sane defaults for various variables
7470
test -z "$CC" && CC=cc
7471
test -z "$LTCC" && LTCC=$CC
7472
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7473
test -z "$LD" && LD=ld
7474
test -z "$ac_objext" && ac_objext=o
7475
 
7476
for cc_temp in $compiler""; do
7477
  case $cc_temp in
7478
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7479
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7480
    \-*) ;;
7481
    *) break;;
7482
  esac
7483
done
7484
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7485
 
7486
 
7487
# Only perform the check for file, if the check method requires it
7488
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7489
case $deplibs_check_method in
7490
file_magic*)
7491
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7492
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7493
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7494
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7495
  echo $ECHO_N "(cached) $ECHO_C" >&6
7496
else
7497
  case $MAGIC_CMD in
7498
[\\/*] |  ?:[\\/]*)
7499
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7500
  ;;
7501
*)
7502
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7503
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7504
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7505
  for ac_dir in $ac_dummy; do
7506
    IFS="$lt_save_ifs"
7507
    test -z "$ac_dir" && ac_dir=.
7508
    if test -f $ac_dir/${ac_tool_prefix}file; then
7509
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7510
      if test -n "$file_magic_test_file"; then
7511
        case $deplibs_check_method in
7512
        "file_magic "*)
7513
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7514
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7515
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7516
            $EGREP "$file_magic_regex" > /dev/null; then
7517
            :
7518
          else
7519
            cat <<_LT_EOF 1>&2
7520
 
7521
*** Warning: the command libtool uses to detect shared libraries,
7522
*** $file_magic_cmd, produces output that libtool cannot recognize.
7523
*** The result is that libtool may fail to recognize shared libraries
7524
*** as such.  This will affect the creation of libtool libraries that
7525
*** depend on shared libraries, but programs linked with such libtool
7526
*** libraries will work regardless of this problem.  Nevertheless, you
7527
*** may want to report the problem to your system manager and/or to
7528
*** bug-libtool@gnu.org
7529
 
7530
_LT_EOF
7531
          fi ;;
7532
        esac
7533
      fi
7534
      break
7535
    fi
7536
  done
7537
  IFS="$lt_save_ifs"
7538
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7539
  ;;
7540
esac
7541
fi
7542
 
7543
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7544
if test -n "$MAGIC_CMD"; then
7545
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7546
echo "${ECHO_T}$MAGIC_CMD" >&6
7547
else
7548
  echo "$as_me:$LINENO: result: no" >&5
7549
echo "${ECHO_T}no" >&6
7550
fi
7551
 
7552
 
7553
 
7554
 
7555
 
7556
if test -z "$lt_cv_path_MAGIC_CMD"; then
7557
  if test -n "$ac_tool_prefix"; then
7558
    echo "$as_me:$LINENO: checking for file" >&5
7559
echo $ECHO_N "checking for file... $ECHO_C" >&6
7560
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7561
  echo $ECHO_N "(cached) $ECHO_C" >&6
7562
else
7563
  case $MAGIC_CMD in
7564
[\\/*] |  ?:[\\/]*)
7565
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7566
  ;;
7567
*)
7568
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7569
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7570
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7571
  for ac_dir in $ac_dummy; do
7572
    IFS="$lt_save_ifs"
7573
    test -z "$ac_dir" && ac_dir=.
7574
    if test -f $ac_dir/file; then
7575
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7576
      if test -n "$file_magic_test_file"; then
7577
        case $deplibs_check_method in
7578
        "file_magic "*)
7579
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7580
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7581
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7582
            $EGREP "$file_magic_regex" > /dev/null; then
7583
            :
7584
          else
7585
            cat <<_LT_EOF 1>&2
7586
 
7587
*** Warning: the command libtool uses to detect shared libraries,
7588
*** $file_magic_cmd, produces output that libtool cannot recognize.
7589
*** The result is that libtool may fail to recognize shared libraries
7590
*** as such.  This will affect the creation of libtool libraries that
7591
*** depend on shared libraries, but programs linked with such libtool
7592
*** libraries will work regardless of this problem.  Nevertheless, you
7593
*** may want to report the problem to your system manager and/or to
7594
*** bug-libtool@gnu.org
7595
 
7596
_LT_EOF
7597
          fi ;;
7598
        esac
7599
      fi
7600
      break
7601
    fi
7602
  done
7603
  IFS="$lt_save_ifs"
7604
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7605
  ;;
7606
esac
7607
fi
7608
 
7609
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7610
if test -n "$MAGIC_CMD"; then
7611
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7612
echo "${ECHO_T}$MAGIC_CMD" >&6
7613
else
7614
  echo "$as_me:$LINENO: result: no" >&5
7615
echo "${ECHO_T}no" >&6
7616
fi
7617
 
7618
 
7619
  else
7620
    MAGIC_CMD=:
7621
  fi
7622
fi
7623
 
7624
  fi
7625
  ;;
7626
esac
7627
 
7628
# Use C for the default configuration in the libtool script
7629
 
7630
lt_save_CC="$CC"
7631
ac_ext=c
7632
ac_cpp='$CPP $CPPFLAGS'
7633
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7634
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7635
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7636
 
7637
 
7638
# Source file extension for C test sources.
7639
ac_ext=c
7640
 
7641
# Object file extension for compiled C test sources.
7642
objext=o
7643
objext=$objext
7644
 
7645
# Code to be used in simple compile tests
7646
lt_simple_compile_test_code="int some_variable = 0;"
7647
 
7648
# Code to be used in simple link tests
7649
lt_simple_link_test_code='int main(){return(0);}'
7650
 
7651
 
7652
 
7653
 
7654
 
7655
 
7656
 
7657
# If no C compiler was specified, use CC.
7658
LTCC=${LTCC-"$CC"}
7659
 
7660
# If no C compiler flags were specified, use CFLAGS.
7661
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7662
 
7663
# Allow CC to be a program name with arguments.
7664
compiler=$CC
7665
 
7666
# Save the default compiler, since it gets overwritten when the other
7667
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7668
compiler_DEFAULT=$CC
7669
 
7670
# save warnings/boilerplate of simple test code
7671
ac_outfile=conftest.$ac_objext
7672
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7673
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7674
_lt_compiler_boilerplate=`cat conftest.err`
7675
$RM conftest*
7676
 
7677
ac_outfile=conftest.$ac_objext
7678
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7679
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7680
_lt_linker_boilerplate=`cat conftest.err`
7681
$RM -r conftest*
7682
 
7683
 
7684
## CAVEAT EMPTOR:
7685
## There is no encapsulation within the following macros, do not change
7686
## the running order or otherwise move them around unless you know exactly
7687
## what you are doing...
7688
if test -n "$compiler"; then
7689
 
7690
lt_prog_compiler_no_builtin_flag=
7691
 
7692
if test "$GCC" = yes; then
7693
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7694
 
7695
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7696
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7697
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7698
  echo $ECHO_N "(cached) $ECHO_C" >&6
7699
else
7700
  lt_cv_prog_compiler_rtti_exceptions=no
7701
   ac_outfile=conftest.$ac_objext
7702
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7703
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7704
   # Insert the option either (1) after the last *FLAGS variable, or
7705
   # (2) before a word containing "conftest.", or (3) at the end.
7706
   # Note that $ac_compile itself does not contain backslashes and begins
7707
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7708
   # The option is referenced via a variable to avoid confusing sed.
7709
   lt_compile=`echo "$ac_compile" | $SED \
7710
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7711
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7712
   -e 's:$: $lt_compiler_flag:'`
7713
   (eval echo "\"\$as_me:7713: $lt_compile\"" >&5)
7714
   (eval "$lt_compile" 2>conftest.err)
7715
   ac_status=$?
7716
   cat conftest.err >&5
7717
   echo "$as_me:7717: \$? = $ac_status" >&5
7718
   if (exit $ac_status) && test -s "$ac_outfile"; then
7719
     # The compiler can only warn and ignore the option if not recognized
7720
     # So say no if there are warnings other than the usual output.
7721
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7722
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7723
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7724
       lt_cv_prog_compiler_rtti_exceptions=yes
7725
     fi
7726
   fi
7727
   $RM conftest*
7728
 
7729
fi
7730
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7731
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7732
 
7733
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7734
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7735
else
7736
    :
7737
fi
7738
 
7739
fi
7740
 
7741
 
7742
 
7743
 
7744
 
7745
 
7746
  lt_prog_compiler_wl=
7747
lt_prog_compiler_pic=
7748
lt_prog_compiler_static=
7749
 
7750
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7751
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7752
 
7753
  if test "$GCC" = yes; then
7754
    lt_prog_compiler_wl='-Wl,'
7755
    lt_prog_compiler_static='-static'
7756
 
7757
    case $host_os in
7758
      aix*)
7759
      # All AIX code is PIC.
7760
      if test "$host_cpu" = ia64; then
7761
        # AIX 5 now supports IA64 processor
7762
        lt_prog_compiler_static='-Bstatic'
7763
      fi
7764
      ;;
7765
 
7766
    amigaos*)
7767
      case $host_cpu in
7768
      powerpc)
7769
            # see comment about AmigaOS4 .so support
7770
            lt_prog_compiler_pic='-fPIC'
7771
        ;;
7772
      m68k)
7773
            # FIXME: we need at least 68020 code to build shared libraries, but
7774
            # adding the `-m68020' flag to GCC prevents building anything better,
7775
            # like `-m68040'.
7776
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7777
        ;;
7778
      esac
7779
      ;;
7780
 
7781
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7782
      # PIC is the default for these OSes.
7783
      ;;
7784
 
7785
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7786
      # This hack is so that the source file can tell whether it is being
7787
      # built for inclusion in a dll (and should export symbols for example).
7788
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7789
      # (--disable-auto-import) libraries
7790
      lt_prog_compiler_pic='-DDLL_EXPORT'
7791
      ;;
7792
 
7793
    darwin* | rhapsody*)
7794
      # PIC is the default on this platform
7795
      # Common symbols not allowed in MH_DYLIB files
7796
      lt_prog_compiler_pic='-fno-common'
7797
      ;;
7798
 
7799
    hpux*)
7800
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7801
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7802
      # sets the default TLS model and affects inlining.
7803
      case $host_cpu in
7804
      hppa*64*)
7805
        # +Z the default
7806
        ;;
7807
      *)
7808
        lt_prog_compiler_pic='-fPIC'
7809
        ;;
7810
      esac
7811
      ;;
7812
 
7813
    interix[3-9]*)
7814
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7815
      # Instead, we relocate shared libraries at runtime.
7816
      ;;
7817
 
7818
    msdosdjgpp*)
7819
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7820
      # on systems that don't support them.
7821
      lt_prog_compiler_can_build_shared=no
7822
      enable_shared=no
7823
      ;;
7824
 
7825
    *nto* | *qnx*)
7826
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7827
      # it will coredump.
7828
      lt_prog_compiler_pic='-fPIC -shared'
7829
      ;;
7830
 
7831
    sysv4*MP*)
7832
      if test -d /usr/nec; then
7833
        lt_prog_compiler_pic=-Kconform_pic
7834
      fi
7835
      ;;
7836
 
7837
    *)
7838
      lt_prog_compiler_pic='-fPIC'
7839
      ;;
7840
    esac
7841
  else
7842
    # PORTME Check for flag to pass linker flags through the system compiler.
7843
    case $host_os in
7844
    aix*)
7845
      lt_prog_compiler_wl='-Wl,'
7846
      if test "$host_cpu" = ia64; then
7847
        # AIX 5 now supports IA64 processor
7848
        lt_prog_compiler_static='-Bstatic'
7849
      else
7850
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7851
      fi
7852
      ;;
7853
 
7854
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7855
      # This hack is so that the source file can tell whether it is being
7856
      # built for inclusion in a dll (and should export symbols for example).
7857
      lt_prog_compiler_pic='-DDLL_EXPORT'
7858
      ;;
7859
 
7860
    hpux9* | hpux10* | hpux11*)
7861
      lt_prog_compiler_wl='-Wl,'
7862
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7863
      # not for PA HP-UX.
7864
      case $host_cpu in
7865
      hppa*64*|ia64*)
7866
        # +Z the default
7867
        ;;
7868
      *)
7869
        lt_prog_compiler_pic='+Z'
7870
        ;;
7871
      esac
7872
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7873
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7874
      ;;
7875
 
7876
    irix5* | irix6* | nonstopux*)
7877
      lt_prog_compiler_wl='-Wl,'
7878
      # PIC (with -KPIC) is the default.
7879
      lt_prog_compiler_static='-non_shared'
7880
      ;;
7881
 
7882
    linux* | k*bsd*-gnu)
7883
      case $cc_basename in
7884
      # old Intel for x86_64 which still supported -KPIC.
7885
      ecc*)
7886
        lt_prog_compiler_wl='-Wl,'
7887
        lt_prog_compiler_pic='-KPIC'
7888
        lt_prog_compiler_static='-static'
7889
        ;;
7890
      # icc used to be incompatible with GCC.
7891
      # ICC 10 doesn't accept -KPIC any more.
7892
      icc* | ifort*)
7893
        lt_prog_compiler_wl='-Wl,'
7894
        lt_prog_compiler_pic='-fPIC'
7895
        lt_prog_compiler_static='-static'
7896
        ;;
7897
      # Lahey Fortran 8.1.
7898
      lf95*)
7899
        lt_prog_compiler_wl='-Wl,'
7900
        lt_prog_compiler_pic='--shared'
7901
        lt_prog_compiler_static='--static'
7902
        ;;
7903
      pgcc* | pgf77* | pgf90* | pgf95*)
7904
        # Portland Group compilers (*not* the Pentium gcc compiler,
7905
        # which looks to be a dead project)
7906
        lt_prog_compiler_wl='-Wl,'
7907
        lt_prog_compiler_pic='-fpic'
7908
        lt_prog_compiler_static='-Bstatic'
7909
        ;;
7910
      ccc*)
7911
        lt_prog_compiler_wl='-Wl,'
7912
        # All Alpha code is PIC.
7913
        lt_prog_compiler_static='-non_shared'
7914
        ;;
7915
      xl*)
7916
        # IBM XL C 8.0/Fortran 10.1 on PPC
7917
        lt_prog_compiler_wl='-Wl,'
7918
        lt_prog_compiler_pic='-qpic'
7919
        lt_prog_compiler_static='-qstaticlink'
7920
        ;;
7921
      *)
7922
        case `$CC -V 2>&1 | sed 5q` in
7923
        *Sun\ C*)
7924
          # Sun C 5.9
7925
          lt_prog_compiler_pic='-KPIC'
7926
          lt_prog_compiler_static='-Bstatic'
7927
          lt_prog_compiler_wl='-Wl,'
7928
          ;;
7929
        *Sun\ F*)
7930
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7931
          lt_prog_compiler_pic='-KPIC'
7932
          lt_prog_compiler_static='-Bstatic'
7933
          lt_prog_compiler_wl=''
7934
          ;;
7935
        esac
7936
        ;;
7937
      esac
7938
      ;;
7939
 
7940
    newsos6)
7941
      lt_prog_compiler_pic='-KPIC'
7942
      lt_prog_compiler_static='-Bstatic'
7943
      ;;
7944
 
7945
    *nto* | *qnx*)
7946
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7947
      # it will coredump.
7948
      lt_prog_compiler_pic='-fPIC -shared'
7949
      ;;
7950
 
7951
    osf3* | osf4* | osf5*)
7952
      lt_prog_compiler_wl='-Wl,'
7953
      # All OSF/1 code is PIC.
7954
      lt_prog_compiler_static='-non_shared'
7955
      ;;
7956
 
7957
    rdos*)
7958
      lt_prog_compiler_static='-non_shared'
7959
      ;;
7960
 
7961
    solaris*)
7962
      lt_prog_compiler_pic='-KPIC'
7963
      lt_prog_compiler_static='-Bstatic'
7964
      case $cc_basename in
7965
      f77* | f90* | f95*)
7966
        lt_prog_compiler_wl='-Qoption ld ';;
7967
      *)
7968
        lt_prog_compiler_wl='-Wl,';;
7969
      esac
7970
      ;;
7971
 
7972
    sunos4*)
7973
      lt_prog_compiler_wl='-Qoption ld '
7974
      lt_prog_compiler_pic='-PIC'
7975
      lt_prog_compiler_static='-Bstatic'
7976
      ;;
7977
 
7978
    sysv4 | sysv4.2uw2* | sysv4.3*)
7979
      lt_prog_compiler_wl='-Wl,'
7980
      lt_prog_compiler_pic='-KPIC'
7981
      lt_prog_compiler_static='-Bstatic'
7982
      ;;
7983
 
7984
    sysv4*MP*)
7985
      if test -d /usr/nec ;then
7986
        lt_prog_compiler_pic='-Kconform_pic'
7987
        lt_prog_compiler_static='-Bstatic'
7988
      fi
7989
      ;;
7990
 
7991
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7992
      lt_prog_compiler_wl='-Wl,'
7993
      lt_prog_compiler_pic='-KPIC'
7994
      lt_prog_compiler_static='-Bstatic'
7995
      ;;
7996
 
7997
    unicos*)
7998
      lt_prog_compiler_wl='-Wl,'
7999
      lt_prog_compiler_can_build_shared=no
8000
      ;;
8001
 
8002
    uts4*)
8003
      lt_prog_compiler_pic='-pic'
8004
      lt_prog_compiler_static='-Bstatic'
8005
      ;;
8006
 
8007
    *)
8008
      lt_prog_compiler_can_build_shared=no
8009
      ;;
8010
    esac
8011
  fi
8012
 
8013
case $host_os in
8014
  # For platforms which do not support PIC, -DPIC is meaningless:
8015
  *djgpp*)
8016
    lt_prog_compiler_pic=
8017
    ;;
8018
  *)
8019
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8020
    ;;
8021
esac
8022
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8023
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8024
 
8025
 
8026
 
8027
 
8028
 
8029
 
8030
#
8031
# Check to make sure the PIC flag actually works.
8032
#
8033
if test -n "$lt_prog_compiler_pic"; then
8034
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8035
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8036
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8037
  echo $ECHO_N "(cached) $ECHO_C" >&6
8038
else
8039
  lt_cv_prog_compiler_pic_works=no
8040
   ac_outfile=conftest.$ac_objext
8041
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8042
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8043
   # Insert the option either (1) after the last *FLAGS variable, or
8044
   # (2) before a word containing "conftest.", or (3) at the end.
8045
   # Note that $ac_compile itself does not contain backslashes and begins
8046
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8047
   # The option is referenced via a variable to avoid confusing sed.
8048
   lt_compile=`echo "$ac_compile" | $SED \
8049
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8050
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8051
   -e 's:$: $lt_compiler_flag:'`
8052
   (eval echo "\"\$as_me:8052: $lt_compile\"" >&5)
8053
   (eval "$lt_compile" 2>conftest.err)
8054
   ac_status=$?
8055
   cat conftest.err >&5
8056
   echo "$as_me:8056: \$? = $ac_status" >&5
8057
   if (exit $ac_status) && test -s "$ac_outfile"; then
8058
     # The compiler can only warn and ignore the option if not recognized
8059
     # So say no if there are warnings other than the usual output.
8060
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8061
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8062
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8063
       lt_cv_prog_compiler_pic_works=yes
8064
     fi
8065
   fi
8066
   $RM conftest*
8067
 
8068
fi
8069
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8070
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8071
 
8072
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8073
    case $lt_prog_compiler_pic in
8074
     "" | " "*) ;;
8075
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8076
     esac
8077
else
8078
    lt_prog_compiler_pic=
8079
     lt_prog_compiler_can_build_shared=no
8080
fi
8081
 
8082
fi
8083
 
8084
 
8085
 
8086
 
8087
 
8088
 
8089
#
8090
# Check to make sure the static flag actually works.
8091
#
8092
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8093
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8094
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8095
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8096
  echo $ECHO_N "(cached) $ECHO_C" >&6
8097
else
8098
  lt_cv_prog_compiler_static_works=no
8099
   save_LDFLAGS="$LDFLAGS"
8100
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8101
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8102
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8103
     # The linker can only warn and ignore the option if not recognized
8104
     # So say no if there are warnings
8105
     if test -s conftest.err; then
8106
       # Append any errors to the config.log.
8107
       cat conftest.err 1>&5
8108
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8109
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8110
       if diff conftest.exp conftest.er2 >/dev/null; then
8111
         lt_cv_prog_compiler_static_works=yes
8112
       fi
8113
     else
8114
       lt_cv_prog_compiler_static_works=yes
8115
     fi
8116
   fi
8117
   $RM -r conftest*
8118
   LDFLAGS="$save_LDFLAGS"
8119
 
8120
fi
8121
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8122
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8123
 
8124
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8125
    :
8126
else
8127
    lt_prog_compiler_static=
8128
fi
8129
 
8130
 
8131
 
8132
 
8133
 
8134
 
8135
 
8136
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8137
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8138
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8139
  echo $ECHO_N "(cached) $ECHO_C" >&6
8140
else
8141
  lt_cv_prog_compiler_c_o=no
8142
   $RM -r conftest 2>/dev/null
8143
   mkdir conftest
8144
   cd conftest
8145
   mkdir out
8146
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8147
 
8148
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8149
   # Insert the option either (1) after the last *FLAGS variable, or
8150
   # (2) before a word containing "conftest.", or (3) at the end.
8151
   # Note that $ac_compile itself does not contain backslashes and begins
8152
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8153
   lt_compile=`echo "$ac_compile" | $SED \
8154
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8155
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8156
   -e 's:$: $lt_compiler_flag:'`
8157
   (eval echo "\"\$as_me:8157: $lt_compile\"" >&5)
8158
   (eval "$lt_compile" 2>out/conftest.err)
8159
   ac_status=$?
8160
   cat out/conftest.err >&5
8161
   echo "$as_me:8161: \$? = $ac_status" >&5
8162
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8163
   then
8164
     # The compiler can only warn and ignore the option if not recognized
8165
     # So say no if there are warnings
8166
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8167
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8168
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8169
       lt_cv_prog_compiler_c_o=yes
8170
     fi
8171
   fi
8172
   chmod u+w . 2>&5
8173
   $RM conftest*
8174
   # SGI C++ compiler will create directory out/ii_files/ for
8175
   # template instantiation
8176
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8177
   $RM out/* && rmdir out
8178
   cd ..
8179
   $RM -r conftest
8180
   $RM conftest*
8181
 
8182
fi
8183
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8184
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8185
 
8186
 
8187
 
8188
 
8189
 
8190
 
8191
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8192
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8193
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8194
  echo $ECHO_N "(cached) $ECHO_C" >&6
8195
else
8196
  lt_cv_prog_compiler_c_o=no
8197
   $RM -r conftest 2>/dev/null
8198
   mkdir conftest
8199
   cd conftest
8200
   mkdir out
8201
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8202
 
8203
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8204
   # Insert the option either (1) after the last *FLAGS variable, or
8205
   # (2) before a word containing "conftest.", or (3) at the end.
8206
   # Note that $ac_compile itself does not contain backslashes and begins
8207
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8208
   lt_compile=`echo "$ac_compile" | $SED \
8209
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8210
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8211
   -e 's:$: $lt_compiler_flag:'`
8212
   (eval echo "\"\$as_me:8212: $lt_compile\"" >&5)
8213
   (eval "$lt_compile" 2>out/conftest.err)
8214
   ac_status=$?
8215
   cat out/conftest.err >&5
8216
   echo "$as_me:8216: \$? = $ac_status" >&5
8217
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8218
   then
8219
     # The compiler can only warn and ignore the option if not recognized
8220
     # So say no if there are warnings
8221
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8222
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8223
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8224
       lt_cv_prog_compiler_c_o=yes
8225
     fi
8226
   fi
8227
   chmod u+w . 2>&5
8228
   $RM conftest*
8229
   # SGI C++ compiler will create directory out/ii_files/ for
8230
   # template instantiation
8231
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8232
   $RM out/* && rmdir out
8233
   cd ..
8234
   $RM -r conftest
8235
   $RM conftest*
8236
 
8237
fi
8238
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8239
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8240
 
8241
 
8242
 
8243
 
8244
hard_links="nottested"
8245
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8246
  # do not overwrite the value of need_locks provided by the user
8247
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8248
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8249
  hard_links=yes
8250
  $RM conftest*
8251
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8252
  touch conftest.a
8253
  ln conftest.a conftest.b 2>&5 || hard_links=no
8254
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8255
  echo "$as_me:$LINENO: result: $hard_links" >&5
8256
echo "${ECHO_T}$hard_links" >&6
8257
  if test "$hard_links" = no; then
8258
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8259
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8260
    need_locks=warn
8261
  fi
8262
else
8263
  need_locks=no
8264
fi
8265
 
8266
 
8267
 
8268
 
8269
 
8270
 
8271
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8272
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8273
 
8274
  runpath_var=
8275
  allow_undefined_flag=
8276
  always_export_symbols=no
8277
  archive_cmds=
8278
  archive_expsym_cmds=
8279
  compiler_needs_object=no
8280
  enable_shared_with_static_runtimes=no
8281
  export_dynamic_flag_spec=
8282
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8283
  hardcode_automatic=no
8284
  hardcode_direct=no
8285
  hardcode_direct_absolute=no
8286
  hardcode_libdir_flag_spec=
8287
  hardcode_libdir_flag_spec_ld=
8288
  hardcode_libdir_separator=
8289
  hardcode_minus_L=no
8290
  hardcode_shlibpath_var=unsupported
8291
  inherit_rpath=no
8292
  link_all_deplibs=unknown
8293
  module_cmds=
8294
  module_expsym_cmds=
8295
  old_archive_from_new_cmds=
8296
  old_archive_from_expsyms_cmds=
8297
  thread_safe_flag_spec=
8298
  whole_archive_flag_spec=
8299
  # include_expsyms should be a list of space-separated symbols to be *always*
8300
  # included in the symbol list
8301
  include_expsyms=
8302
  # exclude_expsyms can be an extended regexp of symbols to exclude
8303
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8304
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8305
  # as well as any symbol that contains `d'.
8306
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8307
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8308
  # platforms (ab)use it in PIC code, but their linkers get confused if
8309
  # the symbol is explicitly referenced.  Since portable code cannot
8310
  # rely on this symbol name, it's probably fine to never include it in
8311
  # preloaded symbol tables.
8312
  # Exclude shared library initialization/finalization symbols.
8313
  extract_expsyms_cmds=
8314
 
8315
  case $host_os in
8316
  cygwin* | mingw* | pw32* | cegcc*)
8317
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8318
    # When not using gcc, we currently assume that we are using
8319
    # Microsoft Visual C++.
8320
    if test "$GCC" != yes; then
8321
      with_gnu_ld=no
8322
    fi
8323
    ;;
8324
  interix*)
8325
    # we just hope/assume this is gcc and not c89 (= MSVC++)
8326
    with_gnu_ld=yes
8327
    ;;
8328
  openbsd*)
8329
    with_gnu_ld=no
8330
    ;;
8331
  esac
8332
 
8333
  ld_shlibs=yes
8334
  if test "$with_gnu_ld" = yes; then
8335
    # If archive_cmds runs LD, not CC, wlarc should be empty
8336
    wlarc='${wl}'
8337
 
8338
    # Set some defaults for GNU ld with shared library support. These
8339
    # are reset later if shared libraries are not supported. Putting them
8340
    # here allows them to be overridden if necessary.
8341
    runpath_var=LD_RUN_PATH
8342
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8343
    export_dynamic_flag_spec='${wl}--export-dynamic'
8344
    # ancient GNU ld didn't support --whole-archive et. al.
8345
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8346
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8347
    else
8348
      whole_archive_flag_spec=
8349
    fi
8350
    supports_anon_versioning=no
8351
    case `$LD -v 2>&1` in
8352
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8353
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8354
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8355
      *\ 2.11.*) ;; # other 2.11 versions
8356
      *) supports_anon_versioning=yes ;;
8357
    esac
8358
 
8359
    # See if GNU ld supports shared libraries.
8360
    case $host_os in
8361
    aix[3-9]*)
8362
      # On AIX/PPC, the GNU linker is very broken
8363
      if test "$host_cpu" != ia64; then
8364
        ld_shlibs=no
8365
        cat <<_LT_EOF 1>&2
8366
 
8367
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8368
*** to be unable to reliably create shared libraries on AIX.
8369
*** Therefore, libtool is disabling shared libraries support.  If you
8370
*** really care for shared libraries, you may want to modify your PATH
8371
*** so that a non-GNU linker is found, and then restart.
8372
 
8373
_LT_EOF
8374
      fi
8375
      ;;
8376
 
8377
    amigaos*)
8378
      case $host_cpu in
8379
      powerpc)
8380
            # see comment about AmigaOS4 .so support
8381
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8382
            archive_expsym_cmds=''
8383
        ;;
8384
      m68k)
8385
            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)'
8386
            hardcode_libdir_flag_spec='-L$libdir'
8387
            hardcode_minus_L=yes
8388
        ;;
8389
      esac
8390
      ;;
8391
 
8392
    beos*)
8393
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8394
        allow_undefined_flag=unsupported
8395
        # Joseph Beckenbach  says some releases of gcc
8396
        # support --undefined.  This deserves some investigation.  FIXME
8397
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8398
      else
8399
        ld_shlibs=no
8400
      fi
8401
      ;;
8402
 
8403
    cygwin* | mingw* | pw32* | cegcc*)
8404
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8405
      # as there is no search path for DLLs.
8406
      hardcode_libdir_flag_spec='-L$libdir'
8407
      allow_undefined_flag=unsupported
8408
      always_export_symbols=no
8409
      enable_shared_with_static_runtimes=yes
8410
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8411
 
8412
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8413
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8414
        # If the export-symbols file already is a .def file (1st line
8415
        # is EXPORTS), use it as is; otherwise, prepend...
8416
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8417
          cp $export_symbols $output_objdir/$soname.def;
8418
        else
8419
          echo EXPORTS > $output_objdir/$soname.def;
8420
          cat $export_symbols >> $output_objdir/$soname.def;
8421
        fi~
8422
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8423
      else
8424
        ld_shlibs=no
8425
      fi
8426
      ;;
8427
 
8428
    interix[3-9]*)
8429
      hardcode_direct=no
8430
      hardcode_shlibpath_var=no
8431
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8432
      export_dynamic_flag_spec='${wl}-E'
8433
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8434
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8435
      # default) and relocated if they conflict, which is a slow very memory
8436
      # consuming and fragmenting process.  To avoid this, we pick a random,
8437
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8438
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8439
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8440
      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'
8441
      ;;
8442
 
8443
    gnu* | linux* | tpf* | k*bsd*-gnu)
8444
      tmp_diet=no
8445
      if test "$host_os" = linux-dietlibc; then
8446
        case $cc_basename in
8447
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8448
        esac
8449
      fi
8450
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8451
         && test "$tmp_diet" = no
8452
      then
8453
        tmp_addflag=
8454
        tmp_sharedflag='-shared'
8455
        case $cc_basename,$host_cpu in
8456
        pgcc*)                          # Portland Group C compiler
8457
          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'
8458
          tmp_addflag=' $pic_flag'
8459
          ;;
8460
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8461
          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'
8462
          tmp_addflag=' $pic_flag -Mnomain' ;;
8463
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8464
          tmp_addflag=' -i_dynamic' ;;
8465
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8466
          tmp_addflag=' -i_dynamic -nofor_main' ;;
8467
        ifc* | ifort*)                  # Intel Fortran compiler
8468
          tmp_addflag=' -nofor_main' ;;
8469
        lf95*)                          # Lahey Fortran 8.1
8470
          whole_archive_flag_spec=
8471
          tmp_sharedflag='--shared' ;;
8472
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8473
          tmp_sharedflag='-qmkshrobj'
8474
          tmp_addflag= ;;
8475
        esac
8476
        case `$CC -V 2>&1 | sed 5q` in
8477
        *Sun\ C*)                       # Sun C 5.9
8478
          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'
8479
          compiler_needs_object=yes
8480
          tmp_sharedflag='-G' ;;
8481
        *Sun\ F*)                       # Sun Fortran 8.3
8482
          tmp_sharedflag='-G' ;;
8483
        esac
8484
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8485
 
8486
        if test "x$supports_anon_versioning" = xyes; then
8487
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8488
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8489
            echo "local: *; };" >> $output_objdir/$libname.ver~
8490
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8491
        fi
8492
 
8493
        case $cc_basename in
8494
        xlf*)
8495
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8496
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8497
          hardcode_libdir_flag_spec=
8498
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
8499
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8500
          if test "x$supports_anon_versioning" = xyes; then
8501
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8502
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8503
              echo "local: *; };" >> $output_objdir/$libname.ver~
8504
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8505
          fi
8506
          ;;
8507
        esac
8508
      else
8509
        ld_shlibs=no
8510
      fi
8511
      ;;
8512
 
8513
    netbsd*)
8514
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8515
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8516
        wlarc=
8517
      else
8518
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8519
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8520
      fi
8521
      ;;
8522
 
8523
    solaris*)
8524
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8525
        ld_shlibs=no
8526
        cat <<_LT_EOF 1>&2
8527
 
8528
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8529
*** create shared libraries on Solaris systems.  Therefore, libtool
8530
*** is disabling shared libraries support.  We urge you to upgrade GNU
8531
*** binutils to release 2.9.1 or newer.  Another option is to modify
8532
*** your PATH or compiler configuration so that the native linker is
8533
*** used, and then restart.
8534
 
8535
_LT_EOF
8536
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8537
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8538
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8539
      else
8540
        ld_shlibs=no
8541
      fi
8542
      ;;
8543
 
8544
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8545
      case `$LD -v 2>&1` in
8546
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8547
        ld_shlibs=no
8548
        cat <<_LT_EOF 1>&2
8549
 
8550
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8551
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8552
*** is disabling shared libraries support.  We urge you to upgrade GNU
8553
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8554
*** your PATH or compiler configuration so that the native linker is
8555
*** used, and then restart.
8556
 
8557
_LT_EOF
8558
        ;;
8559
        *)
8560
          # For security reasons, it is highly recommended that you always
8561
          # use absolute paths for naming shared libraries, and exclude the
8562
          # DT_RUNPATH tag from executables and libraries.  But doing so
8563
          # requires that you compile everything twice, which is a pain.
8564
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8565
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8566
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8567
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8568
          else
8569
            ld_shlibs=no
8570
          fi
8571
        ;;
8572
      esac
8573
      ;;
8574
 
8575
    sunos4*)
8576
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8577
      wlarc=
8578
      hardcode_direct=yes
8579
      hardcode_shlibpath_var=no
8580
      ;;
8581
 
8582
    *)
8583
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8584
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8585
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8586
      else
8587
        ld_shlibs=no
8588
      fi
8589
      ;;
8590
    esac
8591
 
8592
    if test "$ld_shlibs" = no; then
8593
      runpath_var=
8594
      hardcode_libdir_flag_spec=
8595
      export_dynamic_flag_spec=
8596
      whole_archive_flag_spec=
8597
    fi
8598
  else
8599
    # PORTME fill in a description of your system's linker (not GNU ld)
8600
    case $host_os in
8601
    aix3*)
8602
      allow_undefined_flag=unsupported
8603
      always_export_symbols=yes
8604
      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'
8605
      # Note: this linker hardcodes the directories in LIBPATH if there
8606
      # are no directories specified by -L.
8607
      hardcode_minus_L=yes
8608
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8609
        # Neither direct hardcoding nor static linking is supported with a
8610
        # broken collect2.
8611
        hardcode_direct=unsupported
8612
      fi
8613
      ;;
8614
 
8615
    aix[4-9]*)
8616
      if test "$host_cpu" = ia64; then
8617
        # On IA64, the linker does run time linking by default, so we don't
8618
        # have to do anything special.
8619
        aix_use_runtimelinking=no
8620
        exp_sym_flag='-Bexport'
8621
        no_entry_flag=""
8622
      else
8623
        # If we're using GNU nm, then we don't want the "-C" option.
8624
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8625
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8626
          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'
8627
        else
8628
          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'
8629
        fi
8630
        aix_use_runtimelinking=no
8631
 
8632
        # Test if we are trying to use run time linking or normal
8633
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8634
        # need to do runtime linking.
8635
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8636
          for ld_flag in $LDFLAGS; do
8637
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8638
            aix_use_runtimelinking=yes
8639
            break
8640
          fi
8641
          done
8642
          ;;
8643
        esac
8644
 
8645
        exp_sym_flag='-bexport'
8646
        no_entry_flag='-bnoentry'
8647
      fi
8648
 
8649
      # When large executables or shared objects are built, AIX ld can
8650
      # have problems creating the table of contents.  If linking a library
8651
      # or program results in "error TOC overflow" add -mminimal-toc to
8652
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8653
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8654
 
8655
      archive_cmds=''
8656
      hardcode_direct=yes
8657
      hardcode_direct_absolute=yes
8658
      hardcode_libdir_separator=':'
8659
      link_all_deplibs=yes
8660
      file_list_spec='${wl}-f,'
8661
 
8662
      if test "$GCC" = yes; then
8663
        case $host_os in aix4.[012]|aix4.[012].*)
8664
        # We only want to do this on AIX 4.2 and lower, the check
8665
        # below for broken collect2 doesn't work under 4.3+
8666
          collect2name=`${CC} -print-prog-name=collect2`
8667
          if test -f "$collect2name" &&
8668
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8669
          then
8670
          # We have reworked collect2
8671
          :
8672
          else
8673
          # We have old collect2
8674
          hardcode_direct=unsupported
8675
          # It fails to find uninstalled libraries when the uninstalled
8676
          # path is not listed in the libpath.  Setting hardcode_minus_L
8677
          # to unsupported forces relinking
8678
          hardcode_minus_L=yes
8679
          hardcode_libdir_flag_spec='-L$libdir'
8680
          hardcode_libdir_separator=
8681
          fi
8682
          ;;
8683
        esac
8684
        shared_flag='-shared'
8685
        if test "$aix_use_runtimelinking" = yes; then
8686
          shared_flag="$shared_flag "'${wl}-G'
8687
        fi
8688
      else
8689
        # not using gcc
8690
        if test "$host_cpu" = ia64; then
8691
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8692
        # chokes on -Wl,-G. The following line is correct:
8693
          shared_flag='-G'
8694
        else
8695
          if test "$aix_use_runtimelinking" = yes; then
8696
            shared_flag='${wl}-G'
8697
          else
8698
            shared_flag='${wl}-bM:SRE'
8699
          fi
8700
        fi
8701
      fi
8702
 
8703
      export_dynamic_flag_spec='${wl}-bexpall'
8704
      # It seems that -bexpall does not export symbols beginning with
8705
      # underscore (_), so it is better to generate a list of symbols to export.
8706
      always_export_symbols=yes
8707
      if test "$aix_use_runtimelinking" = yes; then
8708
        # Warning - without using the other runtime loading flags (-brtl),
8709
        # -berok will link without error, but may produce a broken library.
8710
        allow_undefined_flag='-berok'
8711
        # Determine the default libpath from the value encoded in an
8712
        # empty executable.
8713
        cat >conftest.$ac_ext <<_ACEOF
8714
/* confdefs.h.  */
8715
_ACEOF
8716
cat confdefs.h >>conftest.$ac_ext
8717
cat >>conftest.$ac_ext <<_ACEOF
8718
/* end confdefs.h.  */
8719
 
8720
int
8721
main ()
8722
{
8723
 
8724
  ;
8725
  return 0;
8726
}
8727
_ACEOF
8728
rm -f conftest.$ac_objext conftest$ac_exeext
8729
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8730
  (eval $ac_link) 2>conftest.er1
8731
  ac_status=$?
8732
  grep -v '^ *+' conftest.er1 >conftest.err
8733
  rm -f conftest.er1
8734
  cat conftest.err >&5
8735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736
  (exit $ac_status); } &&
8737
         { ac_try='test -z "$ac_c_werror_flag"
8738
                         || test ! -s conftest.err'
8739
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740
  (eval $ac_try) 2>&5
8741
  ac_status=$?
8742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743
  (exit $ac_status); }; } &&
8744
         { ac_try='test -s conftest$ac_exeext'
8745
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746
  (eval $ac_try) 2>&5
8747
  ac_status=$?
8748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749
  (exit $ac_status); }; }; then
8750
 
8751
lt_aix_libpath_sed='
8752
    /Import File Strings/,/^$/ {
8753
        /^0/ {
8754
            s/^0  *\(.*\)$/\1/
8755
            p
8756
        }
8757
    }'
8758
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8759
# Check for a 64-bit object if we didn't find anything.
8760
if test -z "$aix_libpath"; then
8761
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8762
fi
8763
else
8764
  echo "$as_me: failed program was:" >&5
8765
sed 's/^/| /' conftest.$ac_ext >&5
8766
 
8767
fi
8768
rm -f conftest.err conftest.$ac_objext \
8769
      conftest$ac_exeext conftest.$ac_ext
8770
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8771
 
8772
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8773
        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"
8774
      else
8775
        if test "$host_cpu" = ia64; then
8776
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8777
          allow_undefined_flag="-z nodefs"
8778
          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"
8779
        else
8780
         # Determine the default libpath from the value encoded in an
8781
         # empty executable.
8782
         cat >conftest.$ac_ext <<_ACEOF
8783
/* confdefs.h.  */
8784
_ACEOF
8785
cat confdefs.h >>conftest.$ac_ext
8786
cat >>conftest.$ac_ext <<_ACEOF
8787
/* end confdefs.h.  */
8788
 
8789
int
8790
main ()
8791
{
8792
 
8793
  ;
8794
  return 0;
8795
}
8796
_ACEOF
8797
rm -f conftest.$ac_objext conftest$ac_exeext
8798
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8799
  (eval $ac_link) 2>conftest.er1
8800
  ac_status=$?
8801
  grep -v '^ *+' conftest.er1 >conftest.err
8802
  rm -f conftest.er1
8803
  cat conftest.err >&5
8804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805
  (exit $ac_status); } &&
8806
         { ac_try='test -z "$ac_c_werror_flag"
8807
                         || test ! -s conftest.err'
8808
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809
  (eval $ac_try) 2>&5
8810
  ac_status=$?
8811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812
  (exit $ac_status); }; } &&
8813
         { ac_try='test -s conftest$ac_exeext'
8814
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815
  (eval $ac_try) 2>&5
8816
  ac_status=$?
8817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818
  (exit $ac_status); }; }; then
8819
 
8820
lt_aix_libpath_sed='
8821
    /Import File Strings/,/^$/ {
8822
        /^0/ {
8823
            s/^0  *\(.*\)$/\1/
8824
            p
8825
        }
8826
    }'
8827
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8828
# Check for a 64-bit object if we didn't find anything.
8829
if test -z "$aix_libpath"; then
8830
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8831
fi
8832
else
8833
  echo "$as_me: failed program was:" >&5
8834
sed 's/^/| /' conftest.$ac_ext >&5
8835
 
8836
fi
8837
rm -f conftest.err conftest.$ac_objext \
8838
      conftest$ac_exeext conftest.$ac_ext
8839
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8840
 
8841
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8842
          # Warning - without using the other run time loading flags,
8843
          # -berok will link without error, but may produce a broken library.
8844
          no_undefined_flag=' ${wl}-bernotok'
8845
          allow_undefined_flag=' ${wl}-berok'
8846
          # Exported symbols can be pulled into shared objects from archives
8847
          whole_archive_flag_spec='$convenience'
8848
          archive_cmds_need_lc=yes
8849
          # This is similar to how AIX traditionally builds its shared libraries.
8850
          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'
8851
        fi
8852
      fi
8853
      ;;
8854
 
8855
    amigaos*)
8856
      case $host_cpu in
8857
      powerpc)
8858
            # see comment about AmigaOS4 .so support
8859
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8860
            archive_expsym_cmds=''
8861
        ;;
8862
      m68k)
8863
            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)'
8864
            hardcode_libdir_flag_spec='-L$libdir'
8865
            hardcode_minus_L=yes
8866
        ;;
8867
      esac
8868
      ;;
8869
 
8870
    bsdi[45]*)
8871
      export_dynamic_flag_spec=-rdynamic
8872
      ;;
8873
 
8874
    cygwin* | mingw* | pw32* | cegcc*)
8875
      # When not using gcc, we currently assume that we are using
8876
      # Microsoft Visual C++.
8877
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8878
      # no search path for DLLs.
8879
      hardcode_libdir_flag_spec=' '
8880
      allow_undefined_flag=unsupported
8881
      # Tell ltmain to make .lib files, not .a files.
8882
      libext=lib
8883
      # Tell ltmain to make .dll files, not .so files.
8884
      shrext_cmds=".dll"
8885
      # FIXME: Setting linknames here is a bad hack.
8886
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8887
      # The linker will automatically build a .lib file if we build a DLL.
8888
      old_archive_from_new_cmds='true'
8889
      # FIXME: Should let the user specify the lib program.
8890
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8891
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8892
      enable_shared_with_static_runtimes=yes
8893
      ;;
8894
 
8895
    darwin* | rhapsody*)
8896
 
8897
 
8898
  archive_cmds_need_lc=no
8899
  hardcode_direct=no
8900
  hardcode_automatic=yes
8901
  hardcode_shlibpath_var=unsupported
8902
  whole_archive_flag_spec=''
8903
  link_all_deplibs=yes
8904
  allow_undefined_flag="$_lt_dar_allow_undefined"
8905
  case $cc_basename in
8906
     ifort*) _lt_dar_can_shared=yes ;;
8907
     *) _lt_dar_can_shared=$GCC ;;
8908
  esac
8909
  if test "$_lt_dar_can_shared" = "yes"; then
8910
    output_verbose_link_cmd=echo
8911
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8912
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8913
    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}"
8914
    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}"
8915
 
8916
  else
8917
  ld_shlibs=no
8918
  fi
8919
 
8920
      ;;
8921
 
8922
    dgux*)
8923
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8924
      hardcode_libdir_flag_spec='-L$libdir'
8925
      hardcode_shlibpath_var=no
8926
      ;;
8927
 
8928
    freebsd1*)
8929
      ld_shlibs=no
8930
      ;;
8931
 
8932
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8933
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8934
    # does not break anything, and helps significantly (at the cost of a little
8935
    # extra space).
8936
    freebsd2.2*)
8937
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8938
      hardcode_libdir_flag_spec='-R$libdir'
8939
      hardcode_direct=yes
8940
      hardcode_shlibpath_var=no
8941
      ;;
8942
 
8943
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8944
    freebsd2*)
8945
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8946
      hardcode_direct=yes
8947
      hardcode_minus_L=yes
8948
      hardcode_shlibpath_var=no
8949
      ;;
8950
 
8951
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8952
    freebsd* | dragonfly*)
8953
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8954
      hardcode_libdir_flag_spec='-R$libdir'
8955
      hardcode_direct=yes
8956
      hardcode_shlibpath_var=no
8957
      ;;
8958
 
8959
    hpux9*)
8960
      if test "$GCC" = yes; then
8961
        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'
8962
      else
8963
        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'
8964
      fi
8965
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8966
      hardcode_libdir_separator=:
8967
      hardcode_direct=yes
8968
 
8969
      # hardcode_minus_L: Not really in the search PATH,
8970
      # but as the default location of the library.
8971
      hardcode_minus_L=yes
8972
      export_dynamic_flag_spec='${wl}-E'
8973
      ;;
8974
 
8975
    hpux10*)
8976
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8977
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8978
      else
8979
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8980
      fi
8981
      if test "$with_gnu_ld" = no; then
8982
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8983
        hardcode_libdir_flag_spec_ld='+b $libdir'
8984
        hardcode_libdir_separator=:
8985
        hardcode_direct=yes
8986
        hardcode_direct_absolute=yes
8987
        export_dynamic_flag_spec='${wl}-E'
8988
        # hardcode_minus_L: Not really in the search PATH,
8989
        # but as the default location of the library.
8990
        hardcode_minus_L=yes
8991
      fi
8992
      ;;
8993
 
8994
    hpux11*)
8995
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8996
        case $host_cpu in
8997
        hppa*64*)
8998
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8999
          ;;
9000
        ia64*)
9001
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9002
          ;;
9003
        *)
9004
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9005
          ;;
9006
        esac
9007
      else
9008
        case $host_cpu in
9009
        hppa*64*)
9010
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9011
          ;;
9012
        ia64*)
9013
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9014
          ;;
9015
        *)
9016
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9017
          ;;
9018
        esac
9019
      fi
9020
      if test "$with_gnu_ld" = no; then
9021
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9022
        hardcode_libdir_separator=:
9023
 
9024
        case $host_cpu in
9025
        hppa*64*|ia64*)
9026
          hardcode_direct=no
9027
          hardcode_shlibpath_var=no
9028
          ;;
9029
        *)
9030
          hardcode_direct=yes
9031
          hardcode_direct_absolute=yes
9032
          export_dynamic_flag_spec='${wl}-E'
9033
 
9034
          # hardcode_minus_L: Not really in the search PATH,
9035
          # but as the default location of the library.
9036
          hardcode_minus_L=yes
9037
          ;;
9038
        esac
9039
      fi
9040
      ;;
9041
 
9042
    irix5* | irix6* | nonstopux*)
9043
      if test "$GCC" = yes; then
9044
        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'
9045
        # Try to use the -exported_symbol ld option, if it does not
9046
        # work, assume that -exports_file does not work either and
9047
        # implicitly export all symbols.
9048
        save_LDFLAGS="$LDFLAGS"
9049
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9050
        cat >conftest.$ac_ext <<_ACEOF
9051
int foo(void) {}
9052
_ACEOF
9053
rm -f conftest.$ac_objext conftest$ac_exeext
9054
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055
  (eval $ac_link) 2>conftest.er1
9056
  ac_status=$?
9057
  grep -v '^ *+' conftest.er1 >conftest.err
9058
  rm -f conftest.er1
9059
  cat conftest.err >&5
9060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061
  (exit $ac_status); } &&
9062
         { ac_try='test -z "$ac_c_werror_flag"
9063
                         || test ! -s conftest.err'
9064
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065
  (eval $ac_try) 2>&5
9066
  ac_status=$?
9067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068
  (exit $ac_status); }; } &&
9069
         { ac_try='test -s conftest$ac_exeext'
9070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071
  (eval $ac_try) 2>&5
9072
  ac_status=$?
9073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074
  (exit $ac_status); }; }; then
9075
  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'
9076
 
9077
else
9078
  echo "$as_me: failed program was:" >&5
9079
sed 's/^/| /' conftest.$ac_ext >&5
9080
 
9081
fi
9082
rm -f conftest.err conftest.$ac_objext \
9083
      conftest$ac_exeext conftest.$ac_ext
9084
        LDFLAGS="$save_LDFLAGS"
9085
      else
9086
        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'
9087
        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'
9088
      fi
9089
      archive_cmds_need_lc='no'
9090
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9091
      hardcode_libdir_separator=:
9092
      inherit_rpath=yes
9093
      link_all_deplibs=yes
9094
      ;;
9095
 
9096
    netbsd*)
9097
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9098
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9099
      else
9100
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9101
      fi
9102
      hardcode_libdir_flag_spec='-R$libdir'
9103
      hardcode_direct=yes
9104
      hardcode_shlibpath_var=no
9105
      ;;
9106
 
9107
    newsos6)
9108
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9109
      hardcode_direct=yes
9110
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9111
      hardcode_libdir_separator=:
9112
      hardcode_shlibpath_var=no
9113
      ;;
9114
 
9115
    *nto* | *qnx*)
9116
      ;;
9117
 
9118
    openbsd*)
9119
      if test -f /usr/libexec/ld.so; then
9120
        hardcode_direct=yes
9121
        hardcode_shlibpath_var=no
9122
        hardcode_direct_absolute=yes
9123
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9124
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9125
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9126
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9127
          export_dynamic_flag_spec='${wl}-E'
9128
        else
9129
          case $host_os in
9130
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9131
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9132
             hardcode_libdir_flag_spec='-R$libdir'
9133
             ;;
9134
           *)
9135
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9136
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9137
             ;;
9138
          esac
9139
        fi
9140
      else
9141
        ld_shlibs=no
9142
      fi
9143
      ;;
9144
 
9145
    os2*)
9146
      hardcode_libdir_flag_spec='-L$libdir'
9147
      hardcode_minus_L=yes
9148
      allow_undefined_flag=unsupported
9149
      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'
9150
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9151
      ;;
9152
 
9153
    osf3*)
9154
      if test "$GCC" = yes; then
9155
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9156
        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'
9157
      else
9158
        allow_undefined_flag=' -expect_unresolved \*'
9159
        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'
9160
      fi
9161
      archive_cmds_need_lc='no'
9162
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9163
      hardcode_libdir_separator=:
9164
      ;;
9165
 
9166
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9167
      if test "$GCC" = yes; then
9168
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9169
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-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'
9170
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9171
      else
9172
        allow_undefined_flag=' -expect_unresolved \*'
9173
        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'
9174
        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~
9175
        $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'
9176
 
9177
        # Both c and cxx compiler support -rpath directly
9178
        hardcode_libdir_flag_spec='-rpath $libdir'
9179
      fi
9180
      archive_cmds_need_lc='no'
9181
      hardcode_libdir_separator=:
9182
      ;;
9183
 
9184
    solaris*)
9185
      no_undefined_flag=' -z defs'
9186
      if test "$GCC" = yes; then
9187
        wlarc='${wl}'
9188
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9189
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9190
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9191
      else
9192
        case `$CC -V 2>&1` in
9193
        *"Compilers 5.0"*)
9194
          wlarc=''
9195
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9196
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9197
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9198
          ;;
9199
        *)
9200
          wlarc='${wl}'
9201
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9202
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9203
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9204
          ;;
9205
        esac
9206
      fi
9207
      hardcode_libdir_flag_spec='-R$libdir'
9208
      hardcode_shlibpath_var=no
9209
      case $host_os in
9210
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9211
      *)
9212
        # The compiler driver will combine and reorder linker options,
9213
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
9214
        # but is careful enough not to reorder.
9215
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9216
        if test "$GCC" = yes; then
9217
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9218
        else
9219
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9220
        fi
9221
        ;;
9222
      esac
9223
      link_all_deplibs=yes
9224
      ;;
9225
 
9226
    sunos4*)
9227
      if test "x$host_vendor" = xsequent; then
9228
        # Use $CC to link under sequent, because it throws in some extra .o
9229
        # files that make .init and .fini sections work.
9230
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9231
      else
9232
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9233
      fi
9234
      hardcode_libdir_flag_spec='-L$libdir'
9235
      hardcode_direct=yes
9236
      hardcode_minus_L=yes
9237
      hardcode_shlibpath_var=no
9238
      ;;
9239
 
9240
    sysv4)
9241
      case $host_vendor in
9242
        sni)
9243
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9244
          hardcode_direct=yes # is this really true???
9245
        ;;
9246
        siemens)
9247
          ## LD is ld it makes a PLAMLIB
9248
          ## CC just makes a GrossModule.
9249
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9250
          reload_cmds='$CC -r -o $output$reload_objs'
9251
          hardcode_direct=no
9252
        ;;
9253
        motorola)
9254
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9255
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9256
        ;;
9257
      esac
9258
      runpath_var='LD_RUN_PATH'
9259
      hardcode_shlibpath_var=no
9260
      ;;
9261
 
9262
    sysv4.3*)
9263
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9264
      hardcode_shlibpath_var=no
9265
      export_dynamic_flag_spec='-Bexport'
9266
      ;;
9267
 
9268
    sysv4*MP*)
9269
      if test -d /usr/nec; then
9270
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9271
        hardcode_shlibpath_var=no
9272
        runpath_var=LD_RUN_PATH
9273
        hardcode_runpath_var=yes
9274
        ld_shlibs=yes
9275
      fi
9276
      ;;
9277
 
9278
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9279
      no_undefined_flag='${wl}-z,text'
9280
      archive_cmds_need_lc=no
9281
      hardcode_shlibpath_var=no
9282
      runpath_var='LD_RUN_PATH'
9283
 
9284
      if test "$GCC" = yes; then
9285
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9286
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9287
      else
9288
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9289
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9290
      fi
9291
      ;;
9292
 
9293
    sysv5* | sco3.2v5* | sco5v6*)
9294
      # Note: We can NOT use -z defs as we might desire, because we do not
9295
      # link with -lc, and that would cause any symbols used from libc to
9296
      # always be unresolved, which means just about no library would
9297
      # ever link correctly.  If we're not using GNU ld we use -z text
9298
      # though, which does catch some bad symbols but isn't as heavy-handed
9299
      # as -z defs.
9300
      no_undefined_flag='${wl}-z,text'
9301
      allow_undefined_flag='${wl}-z,nodefs'
9302
      archive_cmds_need_lc=no
9303
      hardcode_shlibpath_var=no
9304
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9305
      hardcode_libdir_separator=':'
9306
      link_all_deplibs=yes
9307
      export_dynamic_flag_spec='${wl}-Bexport'
9308
      runpath_var='LD_RUN_PATH'
9309
 
9310
      if test "$GCC" = yes; then
9311
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9312
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9313
      else
9314
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9315
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9316
      fi
9317
      ;;
9318
 
9319
    uts4*)
9320
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321
      hardcode_libdir_flag_spec='-L$libdir'
9322
      hardcode_shlibpath_var=no
9323
      ;;
9324
 
9325
    *)
9326
      ld_shlibs=no
9327
      ;;
9328
    esac
9329
 
9330
    if test x$host_vendor = xsni; then
9331
      case $host in
9332
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9333
        export_dynamic_flag_spec='${wl}-Blargedynsym'
9334
        ;;
9335
      esac
9336
    fi
9337
  fi
9338
 
9339
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9340
echo "${ECHO_T}$ld_shlibs" >&6
9341
test "$ld_shlibs" = no && can_build_shared=no
9342
 
9343
with_gnu_ld=$with_gnu_ld
9344
 
9345
 
9346
 
9347
 
9348
 
9349
 
9350
 
9351
 
9352
 
9353
 
9354
 
9355
 
9356
 
9357
 
9358
 
9359
#
9360
# Do we need to explicitly link libc?
9361
#
9362
case "x$archive_cmds_need_lc" in
9363
x|xyes)
9364
  # Assume -lc should be added
9365
  archive_cmds_need_lc=yes
9366
 
9367
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9368
    case $archive_cmds in
9369
    *'~'*)
9370
      # FIXME: we may have to deal with multi-command sequences.
9371
      ;;
9372
    '$CC '*)
9373
      # Test whether the compiler implicitly links with -lc since on some
9374
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9375
      # to ld, don't add -lc before -lgcc.
9376
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9377
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9378
      $RM conftest*
9379
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9380
 
9381
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9382
  (eval $ac_compile) 2>&5
9383
  ac_status=$?
9384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385
  (exit $ac_status); } 2>conftest.err; then
9386
        soname=conftest
9387
        lib=conftest
9388
        libobjs=conftest.$ac_objext
9389
        deplibs=
9390
        wl=$lt_prog_compiler_wl
9391
        pic_flag=$lt_prog_compiler_pic
9392
        compiler_flags=-v
9393
        linker_flags=-v
9394
        verstring=
9395
        output_objdir=.
9396
        libname=conftest
9397
        lt_save_allow_undefined_flag=$allow_undefined_flag
9398
        allow_undefined_flag=
9399
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9400
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9401
  ac_status=$?
9402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403
  (exit $ac_status); }
9404
        then
9405
          archive_cmds_need_lc=no
9406
        else
9407
          archive_cmds_need_lc=yes
9408
        fi
9409
        allow_undefined_flag=$lt_save_allow_undefined_flag
9410
      else
9411
        cat conftest.err 1>&5
9412
      fi
9413
      $RM conftest*
9414
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9415
echo "${ECHO_T}$archive_cmds_need_lc" >&6
9416
      ;;
9417
    esac
9418
  fi
9419
  ;;
9420
esac
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
 
9578
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9579
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9580
 
9581
if test "$GCC" = yes; then
9582
  case $host_os in
9583
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9584
    *) lt_awk_arg="/^libraries:/" ;;
9585
  esac
9586
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9587
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9588
    # if the path contains ";" then we assume it to be the separator
9589
    # otherwise default to the standard path separator (i.e. ":") - it is
9590
    # assumed that no part of a normal pathname contains ";" but that should
9591
    # okay in the real world where ";" in dirpaths is itself problematic.
9592
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9593
  else
9594
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9595
  fi
9596
  # Ok, now we have the path, separated by spaces, we can step through it
9597
  # and add multilib dir if necessary.
9598
  lt_tmp_lt_search_path_spec=
9599
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9600
  for lt_sys_path in $lt_search_path_spec; do
9601
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9602
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9603
    else
9604
      test -d "$lt_sys_path" && \
9605
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9606
    fi
9607
  done
9608
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9609
BEGIN {RS=" "; FS="/|\n";} {
9610
  lt_foo="";
9611
  lt_count=0;
9612
  for (lt_i = NF; lt_i > 0; lt_i--) {
9613
    if ($lt_i != "" && $lt_i != ".") {
9614
      if ($lt_i == "..") {
9615
        lt_count++;
9616
      } else {
9617
        if (lt_count == 0) {
9618
          lt_foo="/" $lt_i lt_foo;
9619
        } else {
9620
          lt_count--;
9621
        }
9622
      }
9623
    }
9624
  }
9625
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9626
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9627
}'`
9628
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9629
else
9630
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9631
fi
9632
library_names_spec=
9633
libname_spec='lib$name'
9634
soname_spec=
9635
shrext_cmds=".so"
9636
postinstall_cmds=
9637
postuninstall_cmds=
9638
finish_cmds=
9639
finish_eval=
9640
shlibpath_var=
9641
shlibpath_overrides_runpath=unknown
9642
version_type=none
9643
dynamic_linker="$host_os ld.so"
9644
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9645
need_lib_prefix=unknown
9646
hardcode_into_libs=no
9647
 
9648
# when you set need_version to no, make sure it does not cause -set_version
9649
# flags to be left without arguments
9650
need_version=unknown
9651
 
9652
case $host_os in
9653
aix3*)
9654
  version_type=linux
9655
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9656
  shlibpath_var=LIBPATH
9657
 
9658
  # AIX 3 has no versioning support, so we append a major version to the name.
9659
  soname_spec='${libname}${release}${shared_ext}$major'
9660
  ;;
9661
 
9662
aix[4-9]*)
9663
  version_type=linux
9664
  need_lib_prefix=no
9665
  need_version=no
9666
  hardcode_into_libs=yes
9667
  if test "$host_cpu" = ia64; then
9668
    # AIX 5 supports IA64
9669
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9670
    shlibpath_var=LD_LIBRARY_PATH
9671
  else
9672
    # With GCC up to 2.95.x, collect2 would create an import file
9673
    # for dependence libraries.  The import file would start with
9674
    # the line `#! .'.  This would cause the generated library to
9675
    # depend on `.', always an invalid library.  This was fixed in
9676
    # development snapshots of GCC prior to 3.0.
9677
    case $host_os in
9678
      aix4 | aix4.[01] | aix4.[01].*)
9679
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9680
           echo ' yes '
9681
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9682
        :
9683
      else
9684
        can_build_shared=no
9685
      fi
9686
      ;;
9687
    esac
9688
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9689
    # soname into executable. Probably we can add versioning support to
9690
    # collect2, so additional links can be useful in future.
9691
    if test "$aix_use_runtimelinking" = yes; then
9692
      # If using run time linking (on AIX 4.2 or later) use lib.so
9693
      # instead of lib.a to let people know that these are not
9694
      # typical AIX shared libraries.
9695
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9696
    else
9697
      # We preserve .a as extension for shared libraries through AIX4.2
9698
      # and later when we are not doing run time linking.
9699
      library_names_spec='${libname}${release}.a $libname.a'
9700
      soname_spec='${libname}${release}${shared_ext}$major'
9701
    fi
9702
    shlibpath_var=LIBPATH
9703
  fi
9704
  ;;
9705
 
9706
amigaos*)
9707
  case $host_cpu in
9708
  powerpc)
9709
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9710
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9711
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9712
    ;;
9713
  m68k)
9714
    library_names_spec='$libname.ixlibrary $libname.a'
9715
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9716
    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'
9717
    ;;
9718
  esac
9719
  ;;
9720
 
9721
beos*)
9722
  library_names_spec='${libname}${shared_ext}'
9723
  dynamic_linker="$host_os ld.so"
9724
  shlibpath_var=LIBRARY_PATH
9725
  ;;
9726
 
9727
bsdi[45]*)
9728
  version_type=linux
9729
  need_version=no
9730
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9731
  soname_spec='${libname}${release}${shared_ext}$major'
9732
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9733
  shlibpath_var=LD_LIBRARY_PATH
9734
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9735
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9736
  # the default ld.so.conf also contains /usr/contrib/lib and
9737
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9738
  # libtool to hard-code these into programs
9739
  ;;
9740
 
9741
cygwin* | mingw* | pw32* | cegcc*)
9742
  version_type=windows
9743
  shrext_cmds=".dll"
9744
  need_version=no
9745
  need_lib_prefix=no
9746
 
9747
  case $GCC,$host_os in
9748
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9749
    library_names_spec='$libname.dll.a'
9750
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9751
    postinstall_cmds='base_file=`basename \${file}`~
9752
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9753
      dldir=$destdir/`dirname \$dlpath`~
9754
      test -d \$dldir || mkdir -p \$dldir~
9755
      $install_prog $dir/$dlname \$dldir/$dlname~
9756
      chmod a+x \$dldir/$dlname~
9757
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9758
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9759
      fi'
9760
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9761
      dlpath=$dir/\$dldll~
9762
       $RM \$dlpath'
9763
    shlibpath_overrides_runpath=yes
9764
 
9765
    case $host_os in
9766
    cygwin*)
9767
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9768
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9769
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9770
      ;;
9771
    mingw* | cegcc*)
9772
      # MinGW DLLs use traditional 'lib' prefix
9773
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9774
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9775
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9776
        # It is most probably a Windows format PATH printed by
9777
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9778
        # path with ; separators, and with drive letters. We can handle the
9779
        # drive letters (cygwin fileutils understands them), so leave them,
9780
        # especially as we might pass files found there to a mingw objdump,
9781
        # which wouldn't understand a cygwinified path. Ahh.
9782
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9783
      else
9784
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9785
      fi
9786
      ;;
9787
    pw32*)
9788
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9789
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9790
      ;;
9791
    esac
9792
    ;;
9793
 
9794
  *)
9795
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9796
    ;;
9797
  esac
9798
  dynamic_linker='Win32 ld.exe'
9799
  # FIXME: first we should search . and the directory the executable is in
9800
  shlibpath_var=PATH
9801
  ;;
9802
 
9803
darwin* | rhapsody*)
9804
  dynamic_linker="$host_os dyld"
9805
  version_type=darwin
9806
  need_lib_prefix=no
9807
  need_version=no
9808
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9809
  soname_spec='${libname}${release}${major}$shared_ext'
9810
  shlibpath_overrides_runpath=yes
9811
  shlibpath_var=DYLD_LIBRARY_PATH
9812
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9813
 
9814
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9815
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9816
  ;;
9817
 
9818
dgux*)
9819
  version_type=linux
9820
  need_lib_prefix=no
9821
  need_version=no
9822
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9823
  soname_spec='${libname}${release}${shared_ext}$major'
9824
  shlibpath_var=LD_LIBRARY_PATH
9825
  ;;
9826
 
9827
freebsd1*)
9828
  dynamic_linker=no
9829
  ;;
9830
 
9831
freebsd* | dragonfly*)
9832
  # DragonFly does not have aout.  When/if they implement a new
9833
  # versioning mechanism, adjust this.
9834
  if test -x /usr/bin/objformat; then
9835
    objformat=`/usr/bin/objformat`
9836
  else
9837
    case $host_os in
9838
    freebsd[123]*) objformat=aout ;;
9839
    *) objformat=elf ;;
9840
    esac
9841
  fi
9842
  version_type=freebsd-$objformat
9843
  case $version_type in
9844
    freebsd-elf*)
9845
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9846
      need_version=no
9847
      need_lib_prefix=no
9848
      ;;
9849
    freebsd-*)
9850
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9851
      need_version=yes
9852
      ;;
9853
  esac
9854
  shlibpath_var=LD_LIBRARY_PATH
9855
  case $host_os in
9856
  freebsd2*)
9857
    shlibpath_overrides_runpath=yes
9858
    ;;
9859
  freebsd3.[01]* | freebsdelf3.[01]*)
9860
    shlibpath_overrides_runpath=yes
9861
    hardcode_into_libs=yes
9862
    ;;
9863
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9864
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9865
    shlibpath_overrides_runpath=no
9866
    hardcode_into_libs=yes
9867
    ;;
9868
  *) # from 4.6 on, and DragonFly
9869
    shlibpath_overrides_runpath=yes
9870
    hardcode_into_libs=yes
9871
    ;;
9872
  esac
9873
  ;;
9874
 
9875
gnu*)
9876
  version_type=linux
9877
  need_lib_prefix=no
9878
  need_version=no
9879
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9880
  soname_spec='${libname}${release}${shared_ext}$major'
9881
  shlibpath_var=LD_LIBRARY_PATH
9882
  hardcode_into_libs=yes
9883
  ;;
9884
 
9885
hpux9* | hpux10* | hpux11*)
9886
  # Give a soname corresponding to the major version so that dld.sl refuses to
9887
  # link against other versions.
9888
  version_type=sunos
9889
  need_lib_prefix=no
9890
  need_version=no
9891
  case $host_cpu in
9892
  ia64*)
9893
    shrext_cmds='.so'
9894
    hardcode_into_libs=yes
9895
    dynamic_linker="$host_os dld.so"
9896
    shlibpath_var=LD_LIBRARY_PATH
9897
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9898
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899
    soname_spec='${libname}${release}${shared_ext}$major'
9900
    if test "X$HPUX_IA64_MODE" = X32; then
9901
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9902
    else
9903
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9904
    fi
9905
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9906
    ;;
9907
  hppa*64*)
9908
    shrext_cmds='.sl'
9909
    hardcode_into_libs=yes
9910
    dynamic_linker="$host_os dld.sl"
9911
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9912
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9913
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914
    soname_spec='${libname}${release}${shared_ext}$major'
9915
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9916
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9917
    ;;
9918
  *)
9919
    shrext_cmds='.sl'
9920
    dynamic_linker="$host_os dld.sl"
9921
    shlibpath_var=SHLIB_PATH
9922
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9923
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924
    soname_spec='${libname}${release}${shared_ext}$major'
9925
    ;;
9926
  esac
9927
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9928
  postinstall_cmds='chmod 555 $lib'
9929
  ;;
9930
 
9931
interix[3-9]*)
9932
  version_type=linux
9933
  need_lib_prefix=no
9934
  need_version=no
9935
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9936
  soname_spec='${libname}${release}${shared_ext}$major'
9937
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9938
  shlibpath_var=LD_LIBRARY_PATH
9939
  shlibpath_overrides_runpath=no
9940
  hardcode_into_libs=yes
9941
  ;;
9942
 
9943
irix5* | irix6* | nonstopux*)
9944
  case $host_os in
9945
    nonstopux*) version_type=nonstopux ;;
9946
    *)
9947
        if test "$lt_cv_prog_gnu_ld" = yes; then
9948
                version_type=linux
9949
        else
9950
                version_type=irix
9951
        fi ;;
9952
  esac
9953
  need_lib_prefix=no
9954
  need_version=no
9955
  soname_spec='${libname}${release}${shared_ext}$major'
9956
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9957
  case $host_os in
9958
  irix5* | nonstopux*)
9959
    libsuff= shlibsuff=
9960
    ;;
9961
  *)
9962
    case $LD in # libtool.m4 will add one of these switches to LD
9963
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9964
      libsuff= shlibsuff= libmagic=32-bit;;
9965
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9966
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9967
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9968
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9969
    *) libsuff= shlibsuff= libmagic=never-match;;
9970
    esac
9971
    ;;
9972
  esac
9973
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9974
  shlibpath_overrides_runpath=no
9975
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9976
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9977
  hardcode_into_libs=yes
9978
  ;;
9979
 
9980
# No shared lib support for Linux oldld, aout, or coff.
9981
linux*oldld* | linux*aout* | linux*coff*)
9982
  dynamic_linker=no
9983
  ;;
9984
 
9985
# This must be Linux ELF.
9986
linux* | k*bsd*-gnu)
9987
  version_type=linux
9988
  need_lib_prefix=no
9989
  need_version=no
9990
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991
  soname_spec='${libname}${release}${shared_ext}$major'
9992
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9993
  shlibpath_var=LD_LIBRARY_PATH
9994
  shlibpath_overrides_runpath=no
9995
  # Some binutils ld are patched to set DT_RUNPATH
9996
  save_LDFLAGS=$LDFLAGS
9997
  save_libdir=$libdir
9998
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9999
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10000
  cat >conftest.$ac_ext <<_ACEOF
10001
/* confdefs.h.  */
10002
_ACEOF
10003
cat confdefs.h >>conftest.$ac_ext
10004
cat >>conftest.$ac_ext <<_ACEOF
10005
/* end confdefs.h.  */
10006
 
10007
int
10008
main ()
10009
{
10010
 
10011
  ;
10012
  return 0;
10013
}
10014
_ACEOF
10015
rm -f conftest.$ac_objext conftest$ac_exeext
10016
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10017
  (eval $ac_link) 2>conftest.er1
10018
  ac_status=$?
10019
  grep -v '^ *+' conftest.er1 >conftest.err
10020
  rm -f conftest.er1
10021
  cat conftest.err >&5
10022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023
  (exit $ac_status); } &&
10024
         { ac_try='test -z "$ac_c_werror_flag"
10025
                         || test ! -s conftest.err'
10026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027
  (eval $ac_try) 2>&5
10028
  ac_status=$?
10029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030
  (exit $ac_status); }; } &&
10031
         { ac_try='test -s conftest$ac_exeext'
10032
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033
  (eval $ac_try) 2>&5
10034
  ac_status=$?
10035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036
  (exit $ac_status); }; }; then
10037
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10038
  shlibpath_overrides_runpath=yes
10039
fi
10040
 
10041
else
10042
  echo "$as_me: failed program was:" >&5
10043
sed 's/^/| /' conftest.$ac_ext >&5
10044
 
10045
fi
10046
rm -f conftest.err conftest.$ac_objext \
10047
      conftest$ac_exeext conftest.$ac_ext
10048
  LDFLAGS=$save_LDFLAGS
10049
  libdir=$save_libdir
10050
 
10051
  # This implies no fast_install, which is unacceptable.
10052
  # Some rework will be needed to allow for fast_install
10053
  # before this can be enabled.
10054
  hardcode_into_libs=yes
10055
 
10056
  # Append ld.so.conf contents to the search path
10057
  if test -f /etc/ld.so.conf; then
10058
    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' ' '`
10059
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10060
  fi
10061
 
10062
  # We used to test for /lib/ld.so.1 and disable shared libraries on
10063
  # powerpc, because MkLinux only supported shared libraries with the
10064
  # GNU dynamic linker.  Since this was broken with cross compilers,
10065
  # most powerpc-linux boxes support dynamic linking these days and
10066
  # people can always --disable-shared, the test was removed, and we
10067
  # assume the GNU/Linux dynamic linker is in use.
10068
  dynamic_linker='GNU/Linux ld.so'
10069
  ;;
10070
 
10071
netbsd*)
10072
  version_type=sunos
10073
  need_lib_prefix=no
10074
  need_version=no
10075
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10076
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10077
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10078
    dynamic_linker='NetBSD (a.out) ld.so'
10079
  else
10080
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10081
    soname_spec='${libname}${release}${shared_ext}$major'
10082
    dynamic_linker='NetBSD ld.elf_so'
10083
  fi
10084
  shlibpath_var=LD_LIBRARY_PATH
10085
  shlibpath_overrides_runpath=yes
10086
  hardcode_into_libs=yes
10087
  ;;
10088
 
10089
newsos6)
10090
  version_type=linux
10091
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10092
  shlibpath_var=LD_LIBRARY_PATH
10093
  shlibpath_overrides_runpath=yes
10094
  ;;
10095
 
10096
*nto* | *qnx*)
10097
  version_type=qnx
10098
  need_lib_prefix=no
10099
  need_version=no
10100
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10101
  soname_spec='${libname}${release}${shared_ext}$major'
10102
  shlibpath_var=LD_LIBRARY_PATH
10103
  shlibpath_overrides_runpath=no
10104
  hardcode_into_libs=yes
10105
  dynamic_linker='ldqnx.so'
10106
  ;;
10107
 
10108
openbsd*)
10109
  version_type=sunos
10110
  sys_lib_dlsearch_path_spec="/usr/lib"
10111
  need_lib_prefix=no
10112
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10113
  case $host_os in
10114
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10115
    *)                          need_version=no  ;;
10116
  esac
10117
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10118
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10119
  shlibpath_var=LD_LIBRARY_PATH
10120
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10121
    case $host_os in
10122
      openbsd2.[89] | openbsd2.[89].*)
10123
        shlibpath_overrides_runpath=no
10124
        ;;
10125
      *)
10126
        shlibpath_overrides_runpath=yes
10127
        ;;
10128
      esac
10129
  else
10130
    shlibpath_overrides_runpath=yes
10131
  fi
10132
  ;;
10133
 
10134
os2*)
10135
  libname_spec='$name'
10136
  shrext_cmds=".dll"
10137
  need_lib_prefix=no
10138
  library_names_spec='$libname${shared_ext} $libname.a'
10139
  dynamic_linker='OS/2 ld.exe'
10140
  shlibpath_var=LIBPATH
10141
  ;;
10142
 
10143
osf3* | osf4* | osf5*)
10144
  version_type=osf
10145
  need_lib_prefix=no
10146
  need_version=no
10147
  soname_spec='${libname}${release}${shared_ext}$major'
10148
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149
  shlibpath_var=LD_LIBRARY_PATH
10150
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10151
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10152
  ;;
10153
 
10154
rdos*)
10155
  dynamic_linker=no
10156
  ;;
10157
 
10158
solaris*)
10159
  version_type=linux
10160
  need_lib_prefix=no
10161
  need_version=no
10162
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163
  soname_spec='${libname}${release}${shared_ext}$major'
10164
  shlibpath_var=LD_LIBRARY_PATH
10165
  shlibpath_overrides_runpath=yes
10166
  hardcode_into_libs=yes
10167
  # ldd complains unless libraries are executable
10168
  postinstall_cmds='chmod +x $lib'
10169
  ;;
10170
 
10171
sunos4*)
10172
  version_type=sunos
10173
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10174
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10175
  shlibpath_var=LD_LIBRARY_PATH
10176
  shlibpath_overrides_runpath=yes
10177
  if test "$with_gnu_ld" = yes; then
10178
    need_lib_prefix=no
10179
  fi
10180
  need_version=yes
10181
  ;;
10182
 
10183
sysv4 | sysv4.3*)
10184
  version_type=linux
10185
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186
  soname_spec='${libname}${release}${shared_ext}$major'
10187
  shlibpath_var=LD_LIBRARY_PATH
10188
  case $host_vendor in
10189
    sni)
10190
      shlibpath_overrides_runpath=no
10191
      need_lib_prefix=no
10192
      runpath_var=LD_RUN_PATH
10193
      ;;
10194
    siemens)
10195
      need_lib_prefix=no
10196
      ;;
10197
    motorola)
10198
      need_lib_prefix=no
10199
      need_version=no
10200
      shlibpath_overrides_runpath=no
10201
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10202
      ;;
10203
  esac
10204
  ;;
10205
 
10206
sysv4*MP*)
10207
  if test -d /usr/nec ;then
10208
    version_type=linux
10209
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10210
    soname_spec='$libname${shared_ext}.$major'
10211
    shlibpath_var=LD_LIBRARY_PATH
10212
  fi
10213
  ;;
10214
 
10215
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10216
  version_type=freebsd-elf
10217
  need_lib_prefix=no
10218
  need_version=no
10219
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10220
  soname_spec='${libname}${release}${shared_ext}$major'
10221
  shlibpath_var=LD_LIBRARY_PATH
10222
  shlibpath_overrides_runpath=yes
10223
  hardcode_into_libs=yes
10224
  if test "$with_gnu_ld" = yes; then
10225
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10226
  else
10227
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10228
    case $host_os in
10229
      sco3.2v5*)
10230
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10231
        ;;
10232
    esac
10233
  fi
10234
  sys_lib_dlsearch_path_spec='/usr/lib'
10235
  ;;
10236
 
10237
tpf*)
10238
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10239
  version_type=linux
10240
  need_lib_prefix=no
10241
  need_version=no
10242
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243
  shlibpath_var=LD_LIBRARY_PATH
10244
  shlibpath_overrides_runpath=no
10245
  hardcode_into_libs=yes
10246
  ;;
10247
 
10248
uts4*)
10249
  version_type=linux
10250
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251
  soname_spec='${libname}${release}${shared_ext}$major'
10252
  shlibpath_var=LD_LIBRARY_PATH
10253
  ;;
10254
 
10255
*)
10256
  dynamic_linker=no
10257
  ;;
10258
esac
10259
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10260
echo "${ECHO_T}$dynamic_linker" >&6
10261
test "$dynamic_linker" = no && can_build_shared=no
10262
 
10263
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10264
if test "$GCC" = yes; then
10265
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10266
fi
10267
 
10268
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10269
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10270
fi
10271
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10272
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10273
fi
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
 
10361
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10362
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10363
hardcode_action=
10364
if test -n "$hardcode_libdir_flag_spec" ||
10365
   test -n "$runpath_var" ||
10366
   test "X$hardcode_automatic" = "Xyes" ; then
10367
 
10368
  # We can hardcode non-existent directories.
10369
  if test "$hardcode_direct" != no &&
10370
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10371
     # have to relink, otherwise we might link with an installed library
10372
     # when we should be linking with a yet-to-be-installed one
10373
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10374
     test "$hardcode_minus_L" != no; then
10375
    # Linking always hardcodes the temporary library directory.
10376
    hardcode_action=relink
10377
  else
10378
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10379
    hardcode_action=immediate
10380
  fi
10381
else
10382
  # We cannot hardcode anything, or else we can only hardcode existing
10383
  # directories.
10384
  hardcode_action=unsupported
10385
fi
10386
echo "$as_me:$LINENO: result: $hardcode_action" >&5
10387
echo "${ECHO_T}$hardcode_action" >&6
10388
 
10389
if test "$hardcode_action" = relink ||
10390
   test "$inherit_rpath" = yes; then
10391
  # Fast installation is not supported
10392
  enable_fast_install=no
10393
elif test "$shlibpath_overrides_runpath" = yes ||
10394
     test "$enable_shared" = no; then
10395
  # Fast installation is not necessary
10396
  enable_fast_install=needless
10397
fi
10398
 
10399
 
10400
 
10401
 
10402
 
10403
 
10404
  if test "x$enable_dlopen" != xyes; then
10405
  enable_dlopen=unknown
10406
  enable_dlopen_self=unknown
10407
  enable_dlopen_self_static=unknown
10408
else
10409
  lt_cv_dlopen=no
10410
  lt_cv_dlopen_libs=
10411
 
10412
  case $host_os in
10413
  beos*)
10414
    lt_cv_dlopen="load_add_on"
10415
    lt_cv_dlopen_libs=
10416
    lt_cv_dlopen_self=yes
10417
    ;;
10418
 
10419
  mingw* | pw32* | cegcc*)
10420
    lt_cv_dlopen="LoadLibrary"
10421
    lt_cv_dlopen_libs=
10422
    ;;
10423
 
10424
  cygwin*)
10425
    lt_cv_dlopen="dlopen"
10426
    lt_cv_dlopen_libs=
10427
    ;;
10428
 
10429
  darwin*)
10430
  # if libdl is installed we need to link against it
10431
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10432
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10433
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10434
  echo $ECHO_N "(cached) $ECHO_C" >&6
10435
else
10436
  ac_check_lib_save_LIBS=$LIBS
10437
LIBS="-ldl  $LIBS"
10438
cat >conftest.$ac_ext <<_ACEOF
10439
/* confdefs.h.  */
10440
_ACEOF
10441
cat confdefs.h >>conftest.$ac_ext
10442
cat >>conftest.$ac_ext <<_ACEOF
10443
/* end confdefs.h.  */
10444
 
10445
/* Override any gcc2 internal prototype to avoid an error.  */
10446
#ifdef __cplusplus
10447
extern "C"
10448
#endif
10449
/* We use char because int might match the return type of a gcc2
10450
   builtin and then its argument prototype would still apply.  */
10451
char dlopen ();
10452
int
10453
main ()
10454
{
10455
dlopen ();
10456
  ;
10457
  return 0;
10458
}
10459
_ACEOF
10460
rm -f conftest.$ac_objext conftest$ac_exeext
10461
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462
  (eval $ac_link) 2>conftest.er1
10463
  ac_status=$?
10464
  grep -v '^ *+' conftest.er1 >conftest.err
10465
  rm -f conftest.er1
10466
  cat conftest.err >&5
10467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468
  (exit $ac_status); } &&
10469
         { ac_try='test -z "$ac_c_werror_flag"
10470
                         || test ! -s conftest.err'
10471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472
  (eval $ac_try) 2>&5
10473
  ac_status=$?
10474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475
  (exit $ac_status); }; } &&
10476
         { ac_try='test -s conftest$ac_exeext'
10477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478
  (eval $ac_try) 2>&5
10479
  ac_status=$?
10480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481
  (exit $ac_status); }; }; then
10482
  ac_cv_lib_dl_dlopen=yes
10483
else
10484
  echo "$as_me: failed program was:" >&5
10485
sed 's/^/| /' conftest.$ac_ext >&5
10486
 
10487
ac_cv_lib_dl_dlopen=no
10488
fi
10489
rm -f conftest.err conftest.$ac_objext \
10490
      conftest$ac_exeext conftest.$ac_ext
10491
LIBS=$ac_check_lib_save_LIBS
10492
fi
10493
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10494
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10495
if test $ac_cv_lib_dl_dlopen = yes; then
10496
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10497
else
10498
 
10499
    lt_cv_dlopen="dyld"
10500
    lt_cv_dlopen_libs=
10501
    lt_cv_dlopen_self=yes
10502
 
10503
fi
10504
 
10505
    ;;
10506
 
10507
  *)
10508
    echo "$as_me:$LINENO: checking for shl_load" >&5
10509
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10510
if test "${ac_cv_func_shl_load+set}" = set; then
10511
  echo $ECHO_N "(cached) $ECHO_C" >&6
10512
else
10513
  cat >conftest.$ac_ext <<_ACEOF
10514
/* confdefs.h.  */
10515
_ACEOF
10516
cat confdefs.h >>conftest.$ac_ext
10517
cat >>conftest.$ac_ext <<_ACEOF
10518
/* end confdefs.h.  */
10519
/* Define shl_load to an innocuous variant, in case  declares shl_load.
10520
   For example, HP-UX 11i  declares gettimeofday.  */
10521
#define shl_load innocuous_shl_load
10522
 
10523
/* System header to define __stub macros and hopefully few prototypes,
10524
    which can conflict with char shl_load (); below.
10525
    Prefer  to  if __STDC__ is defined, since
10526
     exists even on freestanding compilers.  */
10527
 
10528
#ifdef __STDC__
10529
# include 
10530
#else
10531
# include 
10532
#endif
10533
 
10534
#undef shl_load
10535
 
10536
/* Override any gcc2 internal prototype to avoid an error.  */
10537
#ifdef __cplusplus
10538
extern "C"
10539
{
10540
#endif
10541
/* We use char because int might match the return type of a gcc2
10542
   builtin and then its argument prototype would still apply.  */
10543
char shl_load ();
10544
/* The GNU C library defines this for functions which it implements
10545
    to always fail with ENOSYS.  Some functions are actually named
10546
    something starting with __ and the normal name is an alias.  */
10547
#if defined (__stub_shl_load) || defined (__stub___shl_load)
10548
choke me
10549
#else
10550
char (*f) () = shl_load;
10551
#endif
10552
#ifdef __cplusplus
10553
}
10554
#endif
10555
 
10556
int
10557
main ()
10558
{
10559
return f != shl_load;
10560
  ;
10561
  return 0;
10562
}
10563
_ACEOF
10564
rm -f conftest.$ac_objext conftest$ac_exeext
10565
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10566
  (eval $ac_link) 2>conftest.er1
10567
  ac_status=$?
10568
  grep -v '^ *+' conftest.er1 >conftest.err
10569
  rm -f conftest.er1
10570
  cat conftest.err >&5
10571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572
  (exit $ac_status); } &&
10573
         { ac_try='test -z "$ac_c_werror_flag"
10574
                         || test ! -s conftest.err'
10575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576
  (eval $ac_try) 2>&5
10577
  ac_status=$?
10578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579
  (exit $ac_status); }; } &&
10580
         { ac_try='test -s conftest$ac_exeext'
10581
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582
  (eval $ac_try) 2>&5
10583
  ac_status=$?
10584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585
  (exit $ac_status); }; }; then
10586
  ac_cv_func_shl_load=yes
10587
else
10588
  echo "$as_me: failed program was:" >&5
10589
sed 's/^/| /' conftest.$ac_ext >&5
10590
 
10591
ac_cv_func_shl_load=no
10592
fi
10593
rm -f conftest.err conftest.$ac_objext \
10594
      conftest$ac_exeext conftest.$ac_ext
10595
fi
10596
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10597
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10598
if test $ac_cv_func_shl_load = yes; then
10599
  lt_cv_dlopen="shl_load"
10600
else
10601
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10602
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10603
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10604
  echo $ECHO_N "(cached) $ECHO_C" >&6
10605
else
10606
  ac_check_lib_save_LIBS=$LIBS
10607
LIBS="-ldld  $LIBS"
10608
cat >conftest.$ac_ext <<_ACEOF
10609
/* confdefs.h.  */
10610
_ACEOF
10611
cat confdefs.h >>conftest.$ac_ext
10612
cat >>conftest.$ac_ext <<_ACEOF
10613
/* end confdefs.h.  */
10614
 
10615
/* Override any gcc2 internal prototype to avoid an error.  */
10616
#ifdef __cplusplus
10617
extern "C"
10618
#endif
10619
/* We use char because int might match the return type of a gcc2
10620
   builtin and then its argument prototype would still apply.  */
10621
char shl_load ();
10622
int
10623
main ()
10624
{
10625
shl_load ();
10626
  ;
10627
  return 0;
10628
}
10629
_ACEOF
10630
rm -f conftest.$ac_objext conftest$ac_exeext
10631
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10632
  (eval $ac_link) 2>conftest.er1
10633
  ac_status=$?
10634
  grep -v '^ *+' conftest.er1 >conftest.err
10635
  rm -f conftest.er1
10636
  cat conftest.err >&5
10637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638
  (exit $ac_status); } &&
10639
         { ac_try='test -z "$ac_c_werror_flag"
10640
                         || test ! -s conftest.err'
10641
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642
  (eval $ac_try) 2>&5
10643
  ac_status=$?
10644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645
  (exit $ac_status); }; } &&
10646
         { ac_try='test -s conftest$ac_exeext'
10647
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648
  (eval $ac_try) 2>&5
10649
  ac_status=$?
10650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651
  (exit $ac_status); }; }; then
10652
  ac_cv_lib_dld_shl_load=yes
10653
else
10654
  echo "$as_me: failed program was:" >&5
10655
sed 's/^/| /' conftest.$ac_ext >&5
10656
 
10657
ac_cv_lib_dld_shl_load=no
10658
fi
10659
rm -f conftest.err conftest.$ac_objext \
10660
      conftest$ac_exeext conftest.$ac_ext
10661
LIBS=$ac_check_lib_save_LIBS
10662
fi
10663
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10664
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10665
if test $ac_cv_lib_dld_shl_load = yes; then
10666
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10667
else
10668
  echo "$as_me:$LINENO: checking for dlopen" >&5
10669
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10670
if test "${ac_cv_func_dlopen+set}" = set; then
10671
  echo $ECHO_N "(cached) $ECHO_C" >&6
10672
else
10673
  cat >conftest.$ac_ext <<_ACEOF
10674
/* confdefs.h.  */
10675
_ACEOF
10676
cat confdefs.h >>conftest.$ac_ext
10677
cat >>conftest.$ac_ext <<_ACEOF
10678
/* end confdefs.h.  */
10679
/* Define dlopen to an innocuous variant, in case  declares dlopen.
10680
   For example, HP-UX 11i  declares gettimeofday.  */
10681
#define dlopen innocuous_dlopen
10682
 
10683
/* System header to define __stub macros and hopefully few prototypes,
10684
    which can conflict with char dlopen (); below.
10685
    Prefer  to  if __STDC__ is defined, since
10686
     exists even on freestanding compilers.  */
10687
 
10688
#ifdef __STDC__
10689
# include 
10690
#else
10691
# include 
10692
#endif
10693
 
10694
#undef dlopen
10695
 
10696
/* Override any gcc2 internal prototype to avoid an error.  */
10697
#ifdef __cplusplus
10698
extern "C"
10699
{
10700
#endif
10701
/* We use char because int might match the return type of a gcc2
10702
   builtin and then its argument prototype would still apply.  */
10703
char dlopen ();
10704
/* The GNU C library defines this for functions which it implements
10705
    to always fail with ENOSYS.  Some functions are actually named
10706
    something starting with __ and the normal name is an alias.  */
10707
#if defined (__stub_dlopen) || defined (__stub___dlopen)
10708
choke me
10709
#else
10710
char (*f) () = dlopen;
10711
#endif
10712
#ifdef __cplusplus
10713
}
10714
#endif
10715
 
10716
int
10717
main ()
10718
{
10719
return f != dlopen;
10720
  ;
10721
  return 0;
10722
}
10723
_ACEOF
10724
rm -f conftest.$ac_objext conftest$ac_exeext
10725
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10726
  (eval $ac_link) 2>conftest.er1
10727
  ac_status=$?
10728
  grep -v '^ *+' conftest.er1 >conftest.err
10729
  rm -f conftest.er1
10730
  cat conftest.err >&5
10731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732
  (exit $ac_status); } &&
10733
         { ac_try='test -z "$ac_c_werror_flag"
10734
                         || test ! -s conftest.err'
10735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736
  (eval $ac_try) 2>&5
10737
  ac_status=$?
10738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739
  (exit $ac_status); }; } &&
10740
         { ac_try='test -s conftest$ac_exeext'
10741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742
  (eval $ac_try) 2>&5
10743
  ac_status=$?
10744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745
  (exit $ac_status); }; }; then
10746
  ac_cv_func_dlopen=yes
10747
else
10748
  echo "$as_me: failed program was:" >&5
10749
sed 's/^/| /' conftest.$ac_ext >&5
10750
 
10751
ac_cv_func_dlopen=no
10752
fi
10753
rm -f conftest.err conftest.$ac_objext \
10754
      conftest$ac_exeext conftest.$ac_ext
10755
fi
10756
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10757
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10758
if test $ac_cv_func_dlopen = yes; then
10759
  lt_cv_dlopen="dlopen"
10760
else
10761
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10762
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10763
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10764
  echo $ECHO_N "(cached) $ECHO_C" >&6
10765
else
10766
  ac_check_lib_save_LIBS=$LIBS
10767
LIBS="-ldl  $LIBS"
10768
cat >conftest.$ac_ext <<_ACEOF
10769
/* confdefs.h.  */
10770
_ACEOF
10771
cat confdefs.h >>conftest.$ac_ext
10772
cat >>conftest.$ac_ext <<_ACEOF
10773
/* end confdefs.h.  */
10774
 
10775
/* Override any gcc2 internal prototype to avoid an error.  */
10776
#ifdef __cplusplus
10777
extern "C"
10778
#endif
10779
/* We use char because int might match the return type of a gcc2
10780
   builtin and then its argument prototype would still apply.  */
10781
char dlopen ();
10782
int
10783
main ()
10784
{
10785
dlopen ();
10786
  ;
10787
  return 0;
10788
}
10789
_ACEOF
10790
rm -f conftest.$ac_objext conftest$ac_exeext
10791
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10792
  (eval $ac_link) 2>conftest.er1
10793
  ac_status=$?
10794
  grep -v '^ *+' conftest.er1 >conftest.err
10795
  rm -f conftest.er1
10796
  cat conftest.err >&5
10797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798
  (exit $ac_status); } &&
10799
         { ac_try='test -z "$ac_c_werror_flag"
10800
                         || test ! -s conftest.err'
10801
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802
  (eval $ac_try) 2>&5
10803
  ac_status=$?
10804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805
  (exit $ac_status); }; } &&
10806
         { ac_try='test -s conftest$ac_exeext'
10807
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808
  (eval $ac_try) 2>&5
10809
  ac_status=$?
10810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811
  (exit $ac_status); }; }; then
10812
  ac_cv_lib_dl_dlopen=yes
10813
else
10814
  echo "$as_me: failed program was:" >&5
10815
sed 's/^/| /' conftest.$ac_ext >&5
10816
 
10817
ac_cv_lib_dl_dlopen=no
10818
fi
10819
rm -f conftest.err conftest.$ac_objext \
10820
      conftest$ac_exeext conftest.$ac_ext
10821
LIBS=$ac_check_lib_save_LIBS
10822
fi
10823
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10824
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10825
if test $ac_cv_lib_dl_dlopen = yes; then
10826
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10827
else
10828
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10829
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10830
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10831
  echo $ECHO_N "(cached) $ECHO_C" >&6
10832
else
10833
  ac_check_lib_save_LIBS=$LIBS
10834
LIBS="-lsvld  $LIBS"
10835
cat >conftest.$ac_ext <<_ACEOF
10836
/* confdefs.h.  */
10837
_ACEOF
10838
cat confdefs.h >>conftest.$ac_ext
10839
cat >>conftest.$ac_ext <<_ACEOF
10840
/* end confdefs.h.  */
10841
 
10842
/* Override any gcc2 internal prototype to avoid an error.  */
10843
#ifdef __cplusplus
10844
extern "C"
10845
#endif
10846
/* We use char because int might match the return type of a gcc2
10847
   builtin and then its argument prototype would still apply.  */
10848
char dlopen ();
10849
int
10850
main ()
10851
{
10852
dlopen ();
10853
  ;
10854
  return 0;
10855
}
10856
_ACEOF
10857
rm -f conftest.$ac_objext conftest$ac_exeext
10858
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10859
  (eval $ac_link) 2>conftest.er1
10860
  ac_status=$?
10861
  grep -v '^ *+' conftest.er1 >conftest.err
10862
  rm -f conftest.er1
10863
  cat conftest.err >&5
10864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865
  (exit $ac_status); } &&
10866
         { ac_try='test -z "$ac_c_werror_flag"
10867
                         || test ! -s conftest.err'
10868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869
  (eval $ac_try) 2>&5
10870
  ac_status=$?
10871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872
  (exit $ac_status); }; } &&
10873
         { ac_try='test -s conftest$ac_exeext'
10874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875
  (eval $ac_try) 2>&5
10876
  ac_status=$?
10877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878
  (exit $ac_status); }; }; then
10879
  ac_cv_lib_svld_dlopen=yes
10880
else
10881
  echo "$as_me: failed program was:" >&5
10882
sed 's/^/| /' conftest.$ac_ext >&5
10883
 
10884
ac_cv_lib_svld_dlopen=no
10885
fi
10886
rm -f conftest.err conftest.$ac_objext \
10887
      conftest$ac_exeext conftest.$ac_ext
10888
LIBS=$ac_check_lib_save_LIBS
10889
fi
10890
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10891
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10892
if test $ac_cv_lib_svld_dlopen = yes; then
10893
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10894
else
10895
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10896
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10897
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10898
  echo $ECHO_N "(cached) $ECHO_C" >&6
10899
else
10900
  ac_check_lib_save_LIBS=$LIBS
10901
LIBS="-ldld  $LIBS"
10902
cat >conftest.$ac_ext <<_ACEOF
10903
/* confdefs.h.  */
10904
_ACEOF
10905
cat confdefs.h >>conftest.$ac_ext
10906
cat >>conftest.$ac_ext <<_ACEOF
10907
/* end confdefs.h.  */
10908
 
10909
/* Override any gcc2 internal prototype to avoid an error.  */
10910
#ifdef __cplusplus
10911
extern "C"
10912
#endif
10913
/* We use char because int might match the return type of a gcc2
10914
   builtin and then its argument prototype would still apply.  */
10915
char dld_link ();
10916
int
10917
main ()
10918
{
10919
dld_link ();
10920
  ;
10921
  return 0;
10922
}
10923
_ACEOF
10924
rm -f conftest.$ac_objext conftest$ac_exeext
10925
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10926
  (eval $ac_link) 2>conftest.er1
10927
  ac_status=$?
10928
  grep -v '^ *+' conftest.er1 >conftest.err
10929
  rm -f conftest.er1
10930
  cat conftest.err >&5
10931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932
  (exit $ac_status); } &&
10933
         { ac_try='test -z "$ac_c_werror_flag"
10934
                         || test ! -s conftest.err'
10935
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936
  (eval $ac_try) 2>&5
10937
  ac_status=$?
10938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939
  (exit $ac_status); }; } &&
10940
         { ac_try='test -s conftest$ac_exeext'
10941
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942
  (eval $ac_try) 2>&5
10943
  ac_status=$?
10944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945
  (exit $ac_status); }; }; then
10946
  ac_cv_lib_dld_dld_link=yes
10947
else
10948
  echo "$as_me: failed program was:" >&5
10949
sed 's/^/| /' conftest.$ac_ext >&5
10950
 
10951
ac_cv_lib_dld_dld_link=no
10952
fi
10953
rm -f conftest.err conftest.$ac_objext \
10954
      conftest$ac_exeext conftest.$ac_ext
10955
LIBS=$ac_check_lib_save_LIBS
10956
fi
10957
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10958
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10959
if test $ac_cv_lib_dld_dld_link = yes; then
10960
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10961
fi
10962
 
10963
 
10964
fi
10965
 
10966
 
10967
fi
10968
 
10969
 
10970
fi
10971
 
10972
 
10973
fi
10974
 
10975
 
10976
fi
10977
 
10978
    ;;
10979
  esac
10980
 
10981
  if test "x$lt_cv_dlopen" != xno; then
10982
    enable_dlopen=yes
10983
  else
10984
    enable_dlopen=no
10985
  fi
10986
 
10987
  case $lt_cv_dlopen in
10988
  dlopen)
10989
    save_CPPFLAGS="$CPPFLAGS"
10990
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10991
 
10992
    save_LDFLAGS="$LDFLAGS"
10993
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10994
 
10995
    save_LIBS="$LIBS"
10996
    LIBS="$lt_cv_dlopen_libs $LIBS"
10997
 
10998
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10999
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11000
if test "${lt_cv_dlopen_self+set}" = set; then
11001
  echo $ECHO_N "(cached) $ECHO_C" >&6
11002
else
11003
          if test "$cross_compiling" = yes; then :
11004
  lt_cv_dlopen_self=cross
11005
else
11006
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11007
  lt_status=$lt_dlunknown
11008
  cat > conftest.$ac_ext <<_LT_EOF
11009
#line 11009 "configure"
11010
#include "confdefs.h"
11011
 
11012
#if HAVE_DLFCN_H
11013
#include 
11014
#endif
11015
 
11016
#include 
11017
 
11018
#ifdef RTLD_GLOBAL
11019
#  define LT_DLGLOBAL           RTLD_GLOBAL
11020
#else
11021
#  ifdef DL_GLOBAL
11022
#    define LT_DLGLOBAL         DL_GLOBAL
11023
#  else
11024
#    define LT_DLGLOBAL         0
11025
#  endif
11026
#endif
11027
 
11028
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11029
   find out it does not work in some platform. */
11030
#ifndef LT_DLLAZY_OR_NOW
11031
#  ifdef RTLD_LAZY
11032
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11033
#  else
11034
#    ifdef DL_LAZY
11035
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11036
#    else
11037
#      ifdef RTLD_NOW
11038
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11039
#      else
11040
#        ifdef DL_NOW
11041
#          define LT_DLLAZY_OR_NOW      DL_NOW
11042
#        else
11043
#          define LT_DLLAZY_OR_NOW      0
11044
#        endif
11045
#      endif
11046
#    endif
11047
#  endif
11048
#endif
11049
 
11050
void fnord() { int i=42;}
11051
int main ()
11052
{
11053
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11054
  int status = $lt_dlunknown;
11055
 
11056
  if (self)
11057
    {
11058
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11059
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11060
      /* dlclose (self); */
11061
    }
11062
  else
11063
    puts (dlerror ());
11064
 
11065
  return status;
11066
}
11067
_LT_EOF
11068
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11069
  (eval $ac_link) 2>&5
11070
  ac_status=$?
11071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11073
    (./conftest; exit; ) >&5 2>/dev/null
11074
    lt_status=$?
11075
    case x$lt_status in
11076
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11077
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11078
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11079
    esac
11080
  else :
11081
    # compilation failed
11082
    lt_cv_dlopen_self=no
11083
  fi
11084
fi
11085
rm -fr conftest*
11086
 
11087
 
11088
fi
11089
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11090
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11091
 
11092
    if test "x$lt_cv_dlopen_self" = xyes; then
11093
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11094
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11095
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11096
if test "${lt_cv_dlopen_self_static+set}" = set; then
11097
  echo $ECHO_N "(cached) $ECHO_C" >&6
11098
else
11099
          if test "$cross_compiling" = yes; then :
11100
  lt_cv_dlopen_self_static=cross
11101
else
11102
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11103
  lt_status=$lt_dlunknown
11104
  cat > conftest.$ac_ext <<_LT_EOF
11105
#line 11105 "configure"
11106
#include "confdefs.h"
11107
 
11108
#if HAVE_DLFCN_H
11109
#include 
11110
#endif
11111
 
11112
#include 
11113
 
11114
#ifdef RTLD_GLOBAL
11115
#  define LT_DLGLOBAL           RTLD_GLOBAL
11116
#else
11117
#  ifdef DL_GLOBAL
11118
#    define LT_DLGLOBAL         DL_GLOBAL
11119
#  else
11120
#    define LT_DLGLOBAL         0
11121
#  endif
11122
#endif
11123
 
11124
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11125
   find out it does not work in some platform. */
11126
#ifndef LT_DLLAZY_OR_NOW
11127
#  ifdef RTLD_LAZY
11128
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11129
#  else
11130
#    ifdef DL_LAZY
11131
#      define LT_DLLAZY_OR_NOW          DL_LAZY
11132
#    else
11133
#      ifdef RTLD_NOW
11134
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
11135
#      else
11136
#        ifdef DL_NOW
11137
#          define LT_DLLAZY_OR_NOW      DL_NOW
11138
#        else
11139
#          define LT_DLLAZY_OR_NOW      0
11140
#        endif
11141
#      endif
11142
#    endif
11143
#  endif
11144
#endif
11145
 
11146
void fnord() { int i=42;}
11147
int main ()
11148
{
11149
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11150
  int status = $lt_dlunknown;
11151
 
11152
  if (self)
11153
    {
11154
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11155
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11156
      /* dlclose (self); */
11157
    }
11158
  else
11159
    puts (dlerror ());
11160
 
11161
  return status;
11162
}
11163
_LT_EOF
11164
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11165
  (eval $ac_link) 2>&5
11166
  ac_status=$?
11167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11169
    (./conftest; exit; ) >&5 2>/dev/null
11170
    lt_status=$?
11171
    case x$lt_status in
11172
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11173
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11174
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11175
    esac
11176
  else :
11177
    # compilation failed
11178
    lt_cv_dlopen_self_static=no
11179
  fi
11180
fi
11181
rm -fr conftest*
11182
 
11183
 
11184
fi
11185
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11186
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11187
    fi
11188
 
11189
    CPPFLAGS="$save_CPPFLAGS"
11190
    LDFLAGS="$save_LDFLAGS"
11191
    LIBS="$save_LIBS"
11192
    ;;
11193
  esac
11194
 
11195
  case $lt_cv_dlopen_self in
11196
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11197
  *) enable_dlopen_self=unknown ;;
11198
  esac
11199
 
11200
  case $lt_cv_dlopen_self_static in
11201
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11202
  *) enable_dlopen_self_static=unknown ;;
11203
  esac
11204
fi
11205
 
11206
 
11207
 
11208
 
11209
 
11210
 
11211
 
11212
 
11213
 
11214
 
11215
 
11216
 
11217
 
11218
 
11219
 
11220
 
11221
 
11222
striplib=
11223
old_striplib=
11224
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11225
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11226
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11227
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11228
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11229
  echo "$as_me:$LINENO: result: yes" >&5
11230
echo "${ECHO_T}yes" >&6
11231
else
11232
# FIXME - insert some real tests, host_os isn't really good enough
11233
  case $host_os in
11234
  darwin*)
11235
    if test -n "$STRIP" ; then
11236
      striplib="$STRIP -x"
11237
      old_striplib="$STRIP -S"
11238
      echo "$as_me:$LINENO: result: yes" >&5
11239
echo "${ECHO_T}yes" >&6
11240
    else
11241
      echo "$as_me:$LINENO: result: no" >&5
11242
echo "${ECHO_T}no" >&6
11243
    fi
11244
    ;;
11245
  *)
11246
    echo "$as_me:$LINENO: result: no" >&5
11247
echo "${ECHO_T}no" >&6
11248
    ;;
11249
  esac
11250
fi
11251
 
11252
 
11253
 
11254
 
11255
 
11256
 
11257
 
11258
 
11259
 
11260
 
11261
 
11262
 
11263
  # Report which library types will actually be built
11264
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11265
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11266
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
11267
echo "${ECHO_T}$can_build_shared" >&6
11268
 
11269
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11270
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11271
  test "$can_build_shared" = "no" && enable_shared=no
11272
 
11273
  # On AIX, shared libraries and static libraries use the same namespace, and
11274
  # are all built from PIC.
11275
  case $host_os in
11276
  aix3*)
11277
    test "$enable_shared" = yes && enable_static=no
11278
    if test -n "$RANLIB"; then
11279
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11280
      postinstall_cmds='$RANLIB $lib'
11281
    fi
11282
    ;;
11283
 
11284
  aix[4-9]*)
11285
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11286
      test "$enable_shared" = yes && enable_static=no
11287
    fi
11288
    ;;
11289
  esac
11290
  echo "$as_me:$LINENO: result: $enable_shared" >&5
11291
echo "${ECHO_T}$enable_shared" >&6
11292
 
11293
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11294
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11295
  # Make sure either enable_shared or enable_static is yes.
11296
  test "$enable_shared" = yes || enable_static=yes
11297
  echo "$as_me:$LINENO: result: $enable_static" >&5
11298
echo "${ECHO_T}$enable_static" >&6
11299
 
11300
 
11301
 
11302
 
11303
fi
11304
ac_ext=c
11305
ac_cpp='$CPP $CPPFLAGS'
11306
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11307
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11308
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11309
 
11310
CC="$lt_save_CC"
11311
 
11312
 
11313
 
11314
 
11315
 
11316
 
11317
 
11318
 
11319
 
11320
 
11321
 
11322
 
11323
 
11324
                  ac_config_commands="$ac_config_commands libtool"
11325
 
11326
 
11327
 
11328
 
11329
# Only expand once:
11330
 
11331
 
11332
fi
11333
 
11334
machlib=
11335
 
11336
if test -n "${libm_machine_dir}"; then
11337
  case ${libm_machine_dir} in
11338
        i386)
11339
 
11340
subdirs="$subdirs i386"
11341
 ;;
11342
        spu)
11343
 
11344
subdirs="$subdirs spu"
11345
 ;;
11346
  esac;
11347
  if test "${use_libtool}" = "yes"; then
11348
    machlib=${libm_machine_dir}/lib${libm_machine_dir}.${aext}
11349
  else
11350
    machlib=${libm_machine_dir}/lib.${aext}
11351
  fi
11352
fi
11353
 
11354
 
11355
 
11356
 
11357
 
11358
 
11359
if test x${libm_machine_dir} != x; then
11360
  HAVE_LIBM_MACHINE_DIR_TRUE=
11361
  HAVE_LIBM_MACHINE_DIR_FALSE='#'
11362
else
11363
  HAVE_LIBM_MACHINE_DIR_TRUE='#'
11364
  HAVE_LIBM_MACHINE_DIR_FALSE=
11365
fi
11366
 
11367
          ac_config_files="$ac_config_files Makefile"
11368
 
11369
cat >confcache <<\_ACEOF
11370
# This file is a shell script that caches the results of configure
11371
# tests run on this system so they can be shared between configure
11372
# scripts and configure runs, see configure's option --config-cache.
11373
# It is not useful on other systems.  If it contains results you don't
11374
# want to keep, you may remove or edit it.
11375
#
11376
# config.status only pays attention to the cache file if you give it
11377
# the --recheck option to rerun configure.
11378
#
11379
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11380
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11381
# following values.
11382
 
11383
_ACEOF
11384
 
11385
# The following way of writing the cache mishandles newlines in values,
11386
# but we know of no workaround that is simple, portable, and efficient.
11387
# So, don't put newlines in cache variables' values.
11388
# Ultrix sh set writes to stderr and can't be redirected directly,
11389
# and sets the high bit in the cache file unless we assign to the vars.
11390
{
11391
  (set) 2>&1 |
11392
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11393
    *ac_space=\ *)
11394
      # `set' does not quote correctly, so add quotes (double-quote
11395
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11396
      sed -n \
11397
        "s/'/'\\\\''/g;
11398
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11399
      ;;
11400
    *)
11401
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11402
      sed -n \
11403
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11404
      ;;
11405
    esac;
11406
} |
11407
  sed '
11408
     t clear
11409
     : clear
11410
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11411
     t end
11412
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11413
     : end' >>confcache
11414
if diff $cache_file confcache >/dev/null 2>&1; then :; else
11415
  if test -w $cache_file; then
11416
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11417
    cat confcache >$cache_file
11418
  else
11419
    echo "not updating unwritable cache $cache_file"
11420
  fi
11421
fi
11422
rm -f confcache
11423
 
11424
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11425
# Let make expand exec_prefix.
11426
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11427
 
11428
# VPATH may cause trouble with some makes, so we remove $(srcdir),
11429
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11430
# trailing colons and then remove the whole line if VPATH becomes empty
11431
# (actually we leave an empty line to preserve line numbers).
11432
if test "x$srcdir" = x.; then
11433
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11434
s/:*\$(srcdir):*/:/;
11435
s/:*\${srcdir}:*/:/;
11436
s/:*@srcdir@:*/:/;
11437
s/^\([^=]*=[     ]*\):*/\1/;
11438
s/:*$//;
11439
s/^[^=]*=[       ]*$//;
11440
}'
11441
fi
11442
 
11443
# Transform confdefs.h into DEFS.
11444
# Protect against shell expansion while executing Makefile rules.
11445
# Protect against Makefile macro expansion.
11446
#
11447
# If the first sed substitution is executed (which looks for macros that
11448
# take arguments), then we branch to the quote section.  Otherwise,
11449
# look for a macro that doesn't take arguments.
11450
cat >confdef2opt.sed <<\_ACEOF
11451
t clear
11452
: clear
11453
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
11454
t quote
11455
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
11456
t quote
11457
d
11458
: quote
11459
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
11460
s,\[,\\&,g
11461
s,\],\\&,g
11462
s,\$,$$,g
11463
p
11464
_ACEOF
11465
# We use echo to avoid assuming a particular line-breaking character.
11466
# The extra dot is to prevent the shell from consuming trailing
11467
# line-breaks from the sub-command output.  A line-break within
11468
# single-quotes doesn't work because, if this script is created in a
11469
# platform that uses two characters for line-breaks (e.g., DOS), tr
11470
# would break.
11471
ac_LF_and_DOT=`echo; echo .`
11472
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11473
rm -f confdef2opt.sed
11474
 
11475
 
11476
ac_libobjs=
11477
ac_ltlibobjs=
11478
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11479
  # 1. Remove the extension, and $U if already installed.
11480
  ac_i=`echo "$ac_i" |
11481
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11482
  # 2. Add them.
11483
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11484
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11485
done
11486
LIBOBJS=$ac_libobjs
11487
 
11488
LTLIBOBJS=$ac_ltlibobjs
11489
 
11490
 
11491
if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
11492
  { { echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11493
Usually this means the macro was only invoked conditionally." >&5
11494
echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
11495
Usually this means the macro was only invoked conditionally." >&2;}
11496
   { (exit 1); exit 1; }; }
11497
fi
11498
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11499
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11500
Usually this means the macro was only invoked conditionally." >&5
11501
echo "$as_me: error: conditional \"AMDEP\" was never defined.
11502
Usually this means the macro was only invoked conditionally." >&2;}
11503
   { (exit 1); exit 1; }; }
11504
fi
11505
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11506
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11507
Usually this means the macro was only invoked conditionally." >&5
11508
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11509
Usually this means the macro was only invoked conditionally." >&2;}
11510
   { (exit 1); exit 1; }; }
11511
fi
11512
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11513
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11514
Usually this means the macro was only invoked conditionally." >&5
11515
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11516
Usually this means the macro was only invoked conditionally." >&2;}
11517
   { (exit 1); exit 1; }; }
11518
fi
11519
if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
11520
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
11521
Usually this means the macro was only invoked conditionally." >&5
11522
echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
11523
Usually this means the macro was only invoked conditionally." >&2;}
11524
   { (exit 1); exit 1; }; }
11525
fi
11526
if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
11527
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
11528
Usually this means the macro was only invoked conditionally." >&5
11529
echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
11530
Usually this means the macro was only invoked conditionally." >&2;}
11531
   { (exit 1); exit 1; }; }
11532
fi
11533
if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
11534
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
11535
Usually this means the macro was only invoked conditionally." >&5
11536
echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
11537
Usually this means the macro was only invoked conditionally." >&2;}
11538
   { (exit 1); exit 1; }; }
11539
fi
11540
if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
11541
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
11542
Usually this means the macro was only invoked conditionally." >&5
11543
echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
11544
Usually this means the macro was only invoked conditionally." >&2;}
11545
   { (exit 1); exit 1; }; }
11546
fi
11547
if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
11548
  { { echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
11549
Usually this means the macro was only invoked conditionally." >&5
11550
echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
11551
Usually this means the macro was only invoked conditionally." >&2;}
11552
   { (exit 1); exit 1; }; }
11553
fi
11554
if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
11555
  { { echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
11556
Usually this means the macro was only invoked conditionally." >&5
11557
echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
11558
Usually this means the macro was only invoked conditionally." >&2;}
11559
   { (exit 1); exit 1; }; }
11560
fi
11561
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11562
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11563
Usually this means the macro was only invoked conditionally." >&5
11564
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11565
Usually this means the macro was only invoked conditionally." >&2;}
11566
   { (exit 1); exit 1; }; }
11567
fi
11568
if test -z "${HAVE_LIBM_MACHINE_DIR_TRUE}" && test -z "${HAVE_LIBM_MACHINE_DIR_FALSE}"; then
11569
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBM_MACHINE_DIR\" was never defined.
11570
Usually this means the macro was only invoked conditionally." >&5
11571
echo "$as_me: error: conditional \"HAVE_LIBM_MACHINE_DIR\" was never defined.
11572
Usually this means the macro was only invoked conditionally." >&2;}
11573
   { (exit 1); exit 1; }; }
11574
fi
11575
 
11576
: ${CONFIG_STATUS=./config.status}
11577
ac_clean_files_save=$ac_clean_files
11578
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11579
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11580
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11581
cat >$CONFIG_STATUS <<_ACEOF
11582
#! $SHELL
11583
# Generated by $as_me.
11584
# Run this file to recreate the current configuration.
11585
# Compiler output produced by configure, useful for debugging
11586
# configure, is in config.log if it exists.
11587
 
11588
debug=false
11589
ac_cs_recheck=false
11590
ac_cs_silent=false
11591
SHELL=\${CONFIG_SHELL-$SHELL}
11592
_ACEOF
11593
 
11594
cat >>$CONFIG_STATUS <<\_ACEOF
11595
## --------------------- ##
11596
## M4sh Initialization.  ##
11597
## --------------------- ##
11598
 
11599
# Be Bourne compatible
11600
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11601
  emulate sh
11602
  NULLCMD=:
11603
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11604
  # is contrary to our usage.  Disable this feature.
11605
  alias -g '${1+"$@"}'='"$@"'
11606
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11607
  set -o posix
11608
fi
11609
DUALCASE=1; export DUALCASE # for MKS sh
11610
 
11611
# Support unset when possible.
11612
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11613
  as_unset=unset
11614
else
11615
  as_unset=false
11616
fi
11617
 
11618
 
11619
# Work around bugs in pre-3.0 UWIN ksh.
11620
$as_unset ENV MAIL MAILPATH
11621
PS1='$ '
11622
PS2='> '
11623
PS4='+ '
11624
 
11625
# NLS nuisances.
11626
for as_var in \
11627
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11628
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11629
  LC_TELEPHONE LC_TIME
11630
do
11631
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11632
    eval $as_var=C; export $as_var
11633
  else
11634
    $as_unset $as_var
11635
  fi
11636
done
11637
 
11638
# Required to use basename.
11639
if expr a : '\(a\)' >/dev/null 2>&1; then
11640
  as_expr=expr
11641
else
11642
  as_expr=false
11643
fi
11644
 
11645
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11646
  as_basename=basename
11647
else
11648
  as_basename=false
11649
fi
11650
 
11651
 
11652
# Name of the executable.
11653
as_me=`$as_basename "$0" ||
11654
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11655
         X"$0" : 'X\(//\)$' \| \
11656
         X"$0" : 'X\(/\)$' \| \
11657
         .     : '\(.\)' 2>/dev/null ||
11658
echo X/"$0" |
11659
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11660
          /^X\/\(\/\/\)$/{ s//\1/; q; }
11661
          /^X\/\(\/\).*/{ s//\1/; q; }
11662
          s/.*/./; q'`
11663
 
11664
 
11665
# PATH needs CR, and LINENO needs CR and PATH.
11666
# Avoid depending upon Character Ranges.
11667
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11668
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11669
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11670
as_cr_digits='0123456789'
11671
as_cr_alnum=$as_cr_Letters$as_cr_digits
11672
 
11673
# The user is always right.
11674
if test "${PATH_SEPARATOR+set}" != set; then
11675
  echo "#! /bin/sh" >conf$$.sh
11676
  echo  "exit 0"   >>conf$$.sh
11677
  chmod +x conf$$.sh
11678
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11679
    PATH_SEPARATOR=';'
11680
  else
11681
    PATH_SEPARATOR=:
11682
  fi
11683
  rm -f conf$$.sh
11684
fi
11685
 
11686
 
11687
  as_lineno_1=$LINENO
11688
  as_lineno_2=$LINENO
11689
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11690
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11691
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11692
  # Find who we are.  Look in the path if we contain no path at all
11693
  # relative or not.
11694
  case $0 in
11695
    *[\\/]* ) as_myself=$0 ;;
11696
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697
for as_dir in $PATH
11698
do
11699
  IFS=$as_save_IFS
11700
  test -z "$as_dir" && as_dir=.
11701
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11702
done
11703
 
11704
       ;;
11705
  esac
11706
  # We did not find ourselves, most probably we were run as `sh COMMAND'
11707
  # in which case we are not to be found in the path.
11708
  if test "x$as_myself" = x; then
11709
    as_myself=$0
11710
  fi
11711
  if test ! -f "$as_myself"; then
11712
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11713
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11714
   { (exit 1); exit 1; }; }
11715
  fi
11716
  case $CONFIG_SHELL in
11717
  '')
11718
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11719
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11720
do
11721
  IFS=$as_save_IFS
11722
  test -z "$as_dir" && as_dir=.
11723
  for as_base in sh bash ksh sh5; do
11724
         case $as_dir in
11725
         /*)
11726
           if ("$as_dir/$as_base" -c '
11727
  as_lineno_1=$LINENO
11728
  as_lineno_2=$LINENO
11729
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11730
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11731
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11732
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11733
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11734
             CONFIG_SHELL=$as_dir/$as_base
11735
             export CONFIG_SHELL
11736
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11737
           fi;;
11738
         esac
11739
       done
11740
done
11741
;;
11742
  esac
11743
 
11744
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11745
  # uniformly replaced by the line number.  The first 'sed' inserts a
11746
  # line-number line before each line; the second 'sed' does the real
11747
  # work.  The second script uses 'N' to pair each line-number line
11748
  # with the numbered line, and appends trailing '-' during
11749
  # substitution so that $LINENO is not a special case at line end.
11750
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11751
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11752
  sed '=' <$as_myself |
11753
    sed '
11754
      N
11755
      s,$,-,
11756
      : loop
11757
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11758
      t loop
11759
      s,-$,,
11760
      s,^['$as_cr_digits']*\n,,
11761
    ' >$as_me.lineno &&
11762
  chmod +x $as_me.lineno ||
11763
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11764
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11765
   { (exit 1); exit 1; }; }
11766
 
11767
  # Don't try to exec as it changes $[0], causing all sort of problems
11768
  # (the dirname of $[0] is not the place where we might find the
11769
  # original and so on.  Autoconf is especially sensible to this).
11770
  . ./$as_me.lineno
11771
  # Exit status is that of the last command.
11772
  exit
11773
}
11774
 
11775
 
11776
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11777
  *c*,-n*) ECHO_N= ECHO_C='
11778
' ECHO_T='      ' ;;
11779
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11780
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11781
esac
11782
 
11783
if expr a : '\(a\)' >/dev/null 2>&1; then
11784
  as_expr=expr
11785
else
11786
  as_expr=false
11787
fi
11788
 
11789
rm -f conf$$ conf$$.exe conf$$.file
11790
echo >conf$$.file
11791
if ln -s conf$$.file conf$$ 2>/dev/null; then
11792
  # We could just check for DJGPP; but this test a) works b) is more generic
11793
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11794
  if test -f conf$$.exe; then
11795
    # Don't use ln at all; we don't have any links
11796
    as_ln_s='cp -p'
11797
  else
11798
    as_ln_s='ln -s'
11799
  fi
11800
elif ln conf$$.file conf$$ 2>/dev/null; then
11801
  as_ln_s=ln
11802
else
11803
  as_ln_s='cp -p'
11804
fi
11805
rm -f conf$$ conf$$.exe conf$$.file
11806
 
11807
if mkdir -p . 2>/dev/null; then
11808
  as_mkdir_p=:
11809
else
11810
  test -d ./-p && rmdir ./-p
11811
  as_mkdir_p=false
11812
fi
11813
 
11814
as_executable_p="test -f"
11815
 
11816
# Sed expression to map a string onto a valid CPP name.
11817
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11818
 
11819
# Sed expression to map a string onto a valid variable name.
11820
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11821
 
11822
 
11823
# IFS
11824
# We need space, tab and new line, in precisely that order.
11825
as_nl='
11826
'
11827
IFS="   $as_nl"
11828
 
11829
# CDPATH.
11830
$as_unset CDPATH
11831
 
11832
exec 6>&1
11833
 
11834
# Open the log real soon, to keep \$[0] and so on meaningful, and to
11835
# report actual input values of CONFIG_FILES etc. instead of their
11836
# values after options handling.  Logging --version etc. is OK.
11837
exec 5>>config.log
11838
{
11839
  echo
11840
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11841
## Running $as_me. ##
11842
_ASBOX
11843
} >&5
11844
cat >&5 <<_CSEOF
11845
 
11846
This file was extended by newlib $as_me 1.17.0, which was
11847
generated by GNU Autoconf 2.59.  Invocation command line was
11848
 
11849
  CONFIG_FILES    = $CONFIG_FILES
11850
  CONFIG_HEADERS  = $CONFIG_HEADERS
11851
  CONFIG_LINKS    = $CONFIG_LINKS
11852
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11853
  $ $0 $@
11854
 
11855
_CSEOF
11856
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11857
echo >&5
11858
_ACEOF
11859
 
11860
# Files that config.status was made for.
11861
if test -n "$ac_config_files"; then
11862
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11863
fi
11864
 
11865
if test -n "$ac_config_headers"; then
11866
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11867
fi
11868
 
11869
if test -n "$ac_config_links"; then
11870
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11871
fi
11872
 
11873
if test -n "$ac_config_commands"; then
11874
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11875
fi
11876
 
11877
cat >>$CONFIG_STATUS <<\_ACEOF
11878
 
11879
ac_cs_usage="\
11880
\`$as_me' instantiates files from templates according to the
11881
current configuration.
11882
 
11883
Usage: $0 [OPTIONS] [FILE]...
11884
 
11885
  -h, --help       print this help, then exit
11886
  -V, --version    print version number, then exit
11887
  -q, --quiet      do not print progress messages
11888
  -d, --debug      don't remove temporary files
11889
      --recheck    update $as_me by reconfiguring in the same conditions
11890
  --file=FILE[:TEMPLATE]
11891
                   instantiate the configuration file FILE
11892
 
11893
Configuration files:
11894
$config_files
11895
 
11896
Configuration commands:
11897
$config_commands
11898
 
11899
Report bugs to ."
11900
_ACEOF
11901
 
11902
cat >>$CONFIG_STATUS <<_ACEOF
11903
ac_cs_version="\\
11904
newlib config.status 1.17.0
11905
configured by $0, generated by GNU Autoconf 2.59,
11906
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11907
 
11908
Copyright (C) 2003 Free Software Foundation, Inc.
11909
This config.status script is free software; the Free Software Foundation
11910
gives unlimited permission to copy, distribute and modify it."
11911
srcdir=$srcdir
11912
INSTALL="$INSTALL"
11913
_ACEOF
11914
 
11915
cat >>$CONFIG_STATUS <<\_ACEOF
11916
# If no file are specified by the user, then we need to provide default
11917
# value.  By we need to know if files were specified by the user.
11918
ac_need_defaults=:
11919
while test $# != 0
11920
do
11921
  case $1 in
11922
  --*=*)
11923
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
11924
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11925
    ac_shift=:
11926
    ;;
11927
  -*)
11928
    ac_option=$1
11929
    ac_optarg=$2
11930
    ac_shift=shift
11931
    ;;
11932
  *) # This is not an option, so the user has probably given explicit
11933
     # arguments.
11934
     ac_option=$1
11935
     ac_need_defaults=false;;
11936
  esac
11937
 
11938
  case $ac_option in
11939
  # Handling of the options.
11940
_ACEOF
11941
cat >>$CONFIG_STATUS <<\_ACEOF
11942
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11943
    ac_cs_recheck=: ;;
11944
  --version | --vers* | -V )
11945
    echo "$ac_cs_version"; exit 0 ;;
11946
  --he | --h)
11947
    # Conflict between --help and --header
11948
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
11949
Try \`$0 --help' for more information." >&5
11950
echo "$as_me: error: ambiguous option: $1
11951
Try \`$0 --help' for more information." >&2;}
11952
   { (exit 1); exit 1; }; };;
11953
  --help | --hel | -h )
11954
    echo "$ac_cs_usage"; exit 0 ;;
11955
  --debug | --d* | -d )
11956
    debug=: ;;
11957
  --file | --fil | --fi | --f )
11958
    $ac_shift
11959
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11960
    ac_need_defaults=false;;
11961
  --header | --heade | --head | --hea )
11962
    $ac_shift
11963
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11964
    ac_need_defaults=false;;
11965
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11966
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11967
    ac_cs_silent=: ;;
11968
 
11969
  # This is an error.
11970
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11971
Try \`$0 --help' for more information." >&5
11972
echo "$as_me: error: unrecognized option: $1
11973
Try \`$0 --help' for more information." >&2;}
11974
   { (exit 1); exit 1; }; } ;;
11975
 
11976
  *) ac_config_targets="$ac_config_targets $1" ;;
11977
 
11978
  esac
11979
  shift
11980
done
11981
 
11982
ac_configure_extra_args=
11983
 
11984
if $ac_cs_silent; then
11985
  exec 6>/dev/null
11986
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11987
fi
11988
 
11989
_ACEOF
11990
cat >>$CONFIG_STATUS <<_ACEOF
11991
if \$ac_cs_recheck; then
11992
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11993
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11994
fi
11995
 
11996
_ACEOF
11997
 
11998
cat >>$CONFIG_STATUS <<_ACEOF
11999
#
12000
# INIT-COMMANDS section.
12001
#
12002
 
12003
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12004
 
12005
 
12006
# The HP-UX ksh and POSIX shell print the target directory to stdout
12007
# if CDPATH is set.
12008
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12009
 
12010
sed_quote_subst='$sed_quote_subst'
12011
double_quote_subst='$double_quote_subst'
12012
delay_variable_subst='$delay_variable_subst'
12013
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12014
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12015
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12016
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12017
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12018
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12019
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12020
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12021
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12022
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12023
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12024
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12025
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12026
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12027
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12028
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12029
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12030
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12031
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12032
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12033
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12034
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12035
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12036
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12037
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12038
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12039
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12040
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12041
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12042
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12043
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12044
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12045
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12046
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12047
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12048
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12049
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12050
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12051
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12052
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12053
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12054
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12055
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12056
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12057
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12058
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12059
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"`'
12060
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"`'
12061
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12062
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12063
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12064
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12065
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12066
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12067
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12068
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12069
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12070
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12071
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12072
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12073
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12074
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12075
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12076
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12077
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12078
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12079
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12080
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12081
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12082
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12083
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12084
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12085
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12086
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12087
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12088
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12089
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12090
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12091
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12092
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12093
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12094
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12095
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12096
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12097
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12098
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12099
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12100
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12101
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12102
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12103
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12104
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12105
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12106
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12107
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12108
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12109
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12110
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12111
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12112
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12113
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12114
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12115
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12116
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12117
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12118
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12119
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12120
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12121
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12122
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12123
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12124
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12125
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12126
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12127
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12128
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12129
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12130
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12131
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12132
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12133
 
12134
LTCC='$LTCC'
12135
LTCFLAGS='$LTCFLAGS'
12136
compiler='$compiler_DEFAULT'
12137
 
12138
# Quote evaled strings.
12139
for var in SED \
12140
GREP \
12141
EGREP \
12142
FGREP \
12143
LD \
12144
NM \
12145
LN_S \
12146
lt_SP2NL \
12147
lt_NL2SP \
12148
reload_flag \
12149
deplibs_check_method \
12150
file_magic_cmd \
12151
AR \
12152
AR_FLAGS \
12153
STRIP \
12154
RANLIB \
12155
CC \
12156
CFLAGS \
12157
compiler \
12158
lt_cv_sys_global_symbol_pipe \
12159
lt_cv_sys_global_symbol_to_cdecl \
12160
lt_cv_sys_global_symbol_to_c_name_address \
12161
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12162
SHELL \
12163
ECHO \
12164
lt_prog_compiler_no_builtin_flag \
12165
lt_prog_compiler_wl \
12166
lt_prog_compiler_pic \
12167
lt_prog_compiler_static \
12168
lt_cv_prog_compiler_c_o \
12169
need_locks \
12170
DSYMUTIL \
12171
NMEDIT \
12172
LIPO \
12173
OTOOL \
12174
OTOOL64 \
12175
shrext_cmds \
12176
export_dynamic_flag_spec \
12177
whole_archive_flag_spec \
12178
compiler_needs_object \
12179
with_gnu_ld \
12180
allow_undefined_flag \
12181
no_undefined_flag \
12182
hardcode_libdir_flag_spec \
12183
hardcode_libdir_flag_spec_ld \
12184
hardcode_libdir_separator \
12185
fix_srcfile_path \
12186
exclude_expsyms \
12187
include_expsyms \
12188
file_list_spec \
12189
variables_saved_for_relink \
12190
libname_spec \
12191
library_names_spec \
12192
soname_spec \
12193
finish_eval \
12194
old_striplib \
12195
striplib; do
12196
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12197
    *[\\\\\\\`\\"\\\$]*)
12198
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12199
      ;;
12200
    *)
12201
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12202
      ;;
12203
    esac
12204
done
12205
 
12206
# Double-quote double-evaled strings.
12207
for var in reload_cmds \
12208
old_postinstall_cmds \
12209
old_postuninstall_cmds \
12210
old_archive_cmds \
12211
extract_expsyms_cmds \
12212
old_archive_from_new_cmds \
12213
old_archive_from_expsyms_cmds \
12214
archive_cmds \
12215
archive_expsym_cmds \
12216
module_cmds \
12217
module_expsym_cmds \
12218
export_symbols_cmds \
12219
prelink_cmds \
12220
postinstall_cmds \
12221
postuninstall_cmds \
12222
finish_cmds \
12223
sys_lib_search_path_spec \
12224
sys_lib_dlsearch_path_spec; do
12225
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12226
    *[\\\\\\\`\\"\\\$]*)
12227
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12228
      ;;
12229
    *)
12230
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12231
      ;;
12232
    esac
12233
done
12234
 
12235
# Fix-up fallback echo if it was mangled by the above quoting rules.
12236
case \$lt_ECHO in
12237
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12238
  ;;
12239
esac
12240
 
12241
ac_aux_dir='$ac_aux_dir'
12242
xsi_shell='$xsi_shell'
12243
lt_shell_append='$lt_shell_append'
12244
 
12245
# See if we are running on zsh, and set the options which allow our
12246
# commands through without removal of \ escapes INIT.
12247
if test -n "\${ZSH_VERSION+set}" ; then
12248
   setopt NO_GLOB_SUBST
12249
fi
12250
 
12251
 
12252
    PACKAGE='$PACKAGE'
12253
    VERSION='$VERSION'
12254
    TIMESTAMP='$TIMESTAMP'
12255
    RM='$RM'
12256
    ofile='$ofile'
12257
 
12258
 
12259
 
12260
 
12261
_ACEOF
12262
 
12263
 
12264
 
12265
cat >>$CONFIG_STATUS <<\_ACEOF
12266
for ac_config_target in $ac_config_targets
12267
do
12268
  case "$ac_config_target" in
12269
  # Handling of arguments.
12270
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12271
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12272
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12273
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12274
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12275
   { (exit 1); exit 1; }; };;
12276
  esac
12277
done
12278
 
12279
# If the user did not use the arguments to specify the items to instantiate,
12280
# then the envvar interface is used.  Set only those that are not.
12281
# We use the long form for the default assignment because of an extremely
12282
# bizarre bug on SunOS 4.1.3.
12283
if $ac_need_defaults; then
12284
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12285
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12286
fi
12287
 
12288
# Have a temporary directory for convenience.  Make it in the build tree
12289
# simply because there is no reason to put it here, and in addition,
12290
# creating and moving files from /tmp can sometimes cause problems.
12291
# Create a temporary directory, and hook for its removal unless debugging.
12292
$debug ||
12293
{
12294
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12295
  trap '{ (exit 1); exit 1; }' 1 2 13 15
12296
}
12297
 
12298
# Create a (secure) tmp directory for tmp files.
12299
 
12300
{
12301
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12302
  test -n "$tmp" && test -d "$tmp"
12303
}  ||
12304
{
12305
  tmp=./confstat$$-$RANDOM
12306
  (umask 077 && mkdir $tmp)
12307
} ||
12308
{
12309
   echo "$me: cannot create a temporary directory in ." >&2
12310
   { (exit 1); exit 1; }
12311
}
12312
 
12313
_ACEOF
12314
 
12315
cat >>$CONFIG_STATUS <<_ACEOF
12316
 
12317
#
12318
# CONFIG_FILES section.
12319
#
12320
 
12321
# No need to generate the scripts if there are no CONFIG_FILES.
12322
# This happens for instance when ./config.status config.h
12323
if test -n "\$CONFIG_FILES"; then
12324
  # Protect against being on the right side of a sed subst in config.status.
12325
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12326
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12327
s,@SHELL@,$SHELL,;t t
12328
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12329
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12330
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12331
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12332
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12333
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12334
s,@exec_prefix@,$exec_prefix,;t t
12335
s,@prefix@,$prefix,;t t
12336
s,@program_transform_name@,$program_transform_name,;t t
12337
s,@bindir@,$bindir,;t t
12338
s,@sbindir@,$sbindir,;t t
12339
s,@libexecdir@,$libexecdir,;t t
12340
s,@datadir@,$datadir,;t t
12341
s,@sysconfdir@,$sysconfdir,;t t
12342
s,@sharedstatedir@,$sharedstatedir,;t t
12343
s,@localstatedir@,$localstatedir,;t t
12344
s,@libdir@,$libdir,;t t
12345
s,@includedir@,$includedir,;t t
12346
s,@oldincludedir@,$oldincludedir,;t t
12347
s,@infodir@,$infodir,;t t
12348
s,@mandir@,$mandir,;t t
12349
s,@build_alias@,$build_alias,;t t
12350
s,@host_alias@,$host_alias,;t t
12351
s,@target_alias@,$target_alias,;t t
12352
s,@DEFS@,$DEFS,;t t
12353
s,@ECHO_C@,$ECHO_C,;t t
12354
s,@ECHO_N@,$ECHO_N,;t t
12355
s,@ECHO_T@,$ECHO_T,;t t
12356
s,@LIBS@,$LIBS,;t t
12357
s,@MAY_SUPPLY_SYSCALLS_TRUE@,$MAY_SUPPLY_SYSCALLS_TRUE,;t t
12358
s,@MAY_SUPPLY_SYSCALLS_FALSE@,$MAY_SUPPLY_SYSCALLS_FALSE,;t t
12359
s,@newlib_basedir@,$newlib_basedir,;t t
12360
s,@build@,$build,;t t
12361
s,@build_cpu@,$build_cpu,;t t
12362
s,@build_vendor@,$build_vendor,;t t
12363
s,@build_os@,$build_os,;t t
12364
s,@host@,$host,;t t
12365
s,@host_cpu@,$host_cpu,;t t
12366
s,@host_vendor@,$host_vendor,;t t
12367
s,@host_os@,$host_os,;t t
12368
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12369
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12370
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12371
s,@CYGPATH_W@,$CYGPATH_W,;t t
12372
s,@PACKAGE@,$PACKAGE,;t t
12373
s,@VERSION@,$VERSION,;t t
12374
s,@ACLOCAL@,$ACLOCAL,;t t
12375
s,@AUTOCONF@,$AUTOCONF,;t t
12376
s,@AUTOMAKE@,$AUTOMAKE,;t t
12377
s,@AUTOHEADER@,$AUTOHEADER,;t t
12378
s,@MAKEINFO@,$MAKEINFO,;t t
12379
s,@install_sh@,$install_sh,;t t
12380
s,@STRIP@,$STRIP,;t t
12381
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12382
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12383
s,@mkdir_p@,$mkdir_p,;t t
12384
s,@AWK@,$AWK,;t t
12385
s,@SET_MAKE@,$SET_MAKE,;t t
12386
s,@am__leading_dot@,$am__leading_dot,;t t
12387
s,@AMTAR@,$AMTAR,;t t
12388
s,@am__tar@,$am__tar,;t t
12389
s,@am__untar@,$am__untar,;t t
12390
s,@CC@,$CC,;t t
12391
s,@DEPDIR@,$DEPDIR,;t t
12392
s,@am__include@,$am__include,;t t
12393
s,@am__quote@,$am__quote,;t t
12394
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12395
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12396
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12397
s,@CCDEPMODE@,$CCDEPMODE,;t t
12398
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12399
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12400
s,@AS@,$AS,;t t
12401
s,@ac_ct_AS@,$ac_ct_AS,;t t
12402
s,@AR@,$AR,;t t
12403
s,@ac_ct_AR@,$ac_ct_AR,;t t
12404
s,@RANLIB@,$RANLIB,;t t
12405
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12406
s,@READELF@,$READELF,;t t
12407
s,@ac_ct_READELF@,$ac_ct_READELF,;t t
12408
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12409
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12410
s,@MAINT@,$MAINT,;t t
12411
s,@CCAS@,$CCAS,;t t
12412
s,@CCASFLAGS@,$CCASFLAGS,;t t
12413
s,@NEWLIB_CFLAGS@,$NEWLIB_CFLAGS,;t t
12414
s,@LDFLAGS@,$LDFLAGS,;t t
12415
s,@ELIX_LEVEL_0_TRUE@,$ELIX_LEVEL_0_TRUE,;t t
12416
s,@ELIX_LEVEL_0_FALSE@,$ELIX_LEVEL_0_FALSE,;t t
12417
s,@ELIX_LEVEL_1_TRUE@,$ELIX_LEVEL_1_TRUE,;t t
12418
s,@ELIX_LEVEL_1_FALSE@,$ELIX_LEVEL_1_FALSE,;t t
12419
s,@ELIX_LEVEL_2_TRUE@,$ELIX_LEVEL_2_TRUE,;t t
12420
s,@ELIX_LEVEL_2_FALSE@,$ELIX_LEVEL_2_FALSE,;t t
12421
s,@ELIX_LEVEL_3_TRUE@,$ELIX_LEVEL_3_TRUE,;t t
12422
s,@ELIX_LEVEL_3_FALSE@,$ELIX_LEVEL_3_FALSE,;t t
12423
s,@ELIX_LEVEL_4_TRUE@,$ELIX_LEVEL_4_TRUE,;t t
12424
s,@ELIX_LEVEL_4_FALSE@,$ELIX_LEVEL_4_FALSE,;t t
12425
s,@USE_LIBTOOL_TRUE@,$USE_LIBTOOL_TRUE,;t t
12426
s,@USE_LIBTOOL_FALSE@,$USE_LIBTOOL_FALSE,;t t
12427
s,@OBJEXT@,$OBJEXT,;t t
12428
s,@oext@,$oext,;t t
12429
s,@aext@,$aext,;t t
12430
s,@lpfx@,$lpfx,;t t
12431
s,@libm_machine_dir@,$libm_machine_dir,;t t
12432
s,@machine_dir@,$machine_dir,;t t
12433
s,@sys_dir@,$sys_dir,;t t
12434
s,@SED@,$SED,;t t
12435
s,@DLLTOOL@,$DLLTOOL,;t t
12436
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
12437
s,@OBJDUMP@,$OBJDUMP,;t t
12438
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
12439
s,@LIBTOOL@,$LIBTOOL,;t t
12440
s,@CFLAGS@,$CFLAGS,;t t
12441
s,@CPPFLAGS@,$CPPFLAGS,;t t
12442
s,@ac_ct_CC@,$ac_ct_CC,;t t
12443
s,@EXEEXT@,$EXEEXT,;t t
12444
s,@EGREP@,$EGREP,;t t
12445
s,@FGREP@,$FGREP,;t t
12446
s,@GREP@,$GREP,;t t
12447
s,@LD@,$LD,;t t
12448
s,@DUMPBIN@,$DUMPBIN,;t t
12449
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12450
s,@NM@,$NM,;t t
12451
s,@LN_S@,$LN_S,;t t
12452
s,@lt_ECHO@,$lt_ECHO,;t t
12453
s,@DSYMUTIL@,$DSYMUTIL,;t t
12454
s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
12455
s,@NMEDIT@,$NMEDIT,;t t
12456
s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
12457
s,@LIPO@,$LIPO,;t t
12458
s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
12459
s,@OTOOL@,$OTOOL,;t t
12460
s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
12461
s,@OTOOL64@,$OTOOL64,;t t
12462
s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
12463
s,@CPP@,$CPP,;t t
12464
s,@subdirs@,$subdirs,;t t
12465
s,@machlib@,$machlib,;t t
12466
s,@HAVE_LIBM_MACHINE_DIR_TRUE@,$HAVE_LIBM_MACHINE_DIR_TRUE,;t t
12467
s,@HAVE_LIBM_MACHINE_DIR_FALSE@,$HAVE_LIBM_MACHINE_DIR_FALSE,;t t
12468
s,@LIBOBJS@,$LIBOBJS,;t t
12469
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12470
CEOF
12471
 
12472
_ACEOF
12473
 
12474
  cat >>$CONFIG_STATUS <<\_ACEOF
12475
  # Split the substitutions into bite-sized pieces for seds with
12476
  # small command number limits, like on Digital OSF/1 and HP-UX.
12477
  ac_max_sed_lines=48
12478
  ac_sed_frag=1 # Number of current file.
12479
  ac_beg=1 # First line for current file.
12480
  ac_end=$ac_max_sed_lines # Line after last line for current file.
12481
  ac_more_lines=:
12482
  ac_sed_cmds=
12483
  while $ac_more_lines; do
12484
    if test $ac_beg -gt 1; then
12485
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12486
    else
12487
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12488
    fi
12489
    if test ! -s $tmp/subs.frag; then
12490
      ac_more_lines=false
12491
    else
12492
      # The purpose of the label and of the branching condition is to
12493
      # speed up the sed processing (if there are no `@' at all, there
12494
      # is no need to browse any of the substitutions).
12495
      # These are the two extra sed commands mentioned above.
12496
      (echo ':t
12497
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12498
      if test -z "$ac_sed_cmds"; then
12499
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12500
      else
12501
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12502
      fi
12503
      ac_sed_frag=`expr $ac_sed_frag + 1`
12504
      ac_beg=$ac_end
12505
      ac_end=`expr $ac_end + $ac_max_sed_lines`
12506
    fi
12507
  done
12508
  if test -z "$ac_sed_cmds"; then
12509
    ac_sed_cmds=cat
12510
  fi
12511
fi # test -n "$CONFIG_FILES"
12512
 
12513
_ACEOF
12514
cat >>$CONFIG_STATUS <<\_ACEOF
12515
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12516
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12517
  case $ac_file in
12518
  - | *:- | *:-:* ) # input from stdin
12519
        cat >$tmp/stdin
12520
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12521
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12522
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12523
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12524
  * )   ac_file_in=$ac_file.in ;;
12525
  esac
12526
 
12527
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12528
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12529
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12530
         X"$ac_file" : 'X\(//\)[^/]' \| \
12531
         X"$ac_file" : 'X\(//\)$' \| \
12532
         X"$ac_file" : 'X\(/\)' \| \
12533
         .     : '\(.\)' 2>/dev/null ||
12534
echo X"$ac_file" |
12535
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12536
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12537
          /^X\(\/\/\)$/{ s//\1/; q; }
12538
          /^X\(\/\).*/{ s//\1/; q; }
12539
          s/.*/./; q'`
12540
  { if $as_mkdir_p; then
12541
    mkdir -p "$ac_dir"
12542
  else
12543
    as_dir="$ac_dir"
12544
    as_dirs=
12545
    while test ! -d "$as_dir"; do
12546
      as_dirs="$as_dir $as_dirs"
12547
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12548
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12549
         X"$as_dir" : 'X\(//\)[^/]' \| \
12550
         X"$as_dir" : 'X\(//\)$' \| \
12551
         X"$as_dir" : 'X\(/\)' \| \
12552
         .     : '\(.\)' 2>/dev/null ||
12553
echo X"$as_dir" |
12554
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12555
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12556
          /^X\(\/\/\)$/{ s//\1/; q; }
12557
          /^X\(\/\).*/{ s//\1/; q; }
12558
          s/.*/./; q'`
12559
    done
12560
    test ! -n "$as_dirs" || mkdir $as_dirs
12561
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12562
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12563
   { (exit 1); exit 1; }; }; }
12564
 
12565
  ac_builddir=.
12566
 
12567
if test "$ac_dir" != .; then
12568
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12569
  # A "../" for each directory in $ac_dir_suffix.
12570
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12571
else
12572
  ac_dir_suffix= ac_top_builddir=
12573
fi
12574
 
12575
case $srcdir in
12576
  .)  # No --srcdir option.  We are building in place.
12577
    ac_srcdir=.
12578
    if test -z "$ac_top_builddir"; then
12579
       ac_top_srcdir=.
12580
    else
12581
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12582
    fi ;;
12583
  [\\/]* | ?:[\\/]* )  # Absolute path.
12584
    ac_srcdir=$srcdir$ac_dir_suffix;
12585
    ac_top_srcdir=$srcdir ;;
12586
  *) # Relative path.
12587
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12588
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12589
esac
12590
 
12591
# Do not use `cd foo && pwd` to compute absolute paths, because
12592
# the directories may not exist.
12593
case `pwd` in
12594
.) ac_abs_builddir="$ac_dir";;
12595
*)
12596
  case "$ac_dir" in
12597
  .) ac_abs_builddir=`pwd`;;
12598
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12599
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12600
  esac;;
12601
esac
12602
case $ac_abs_builddir in
12603
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12604
*)
12605
  case ${ac_top_builddir}. in
12606
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12607
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12608
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12609
  esac;;
12610
esac
12611
case $ac_abs_builddir in
12612
.) ac_abs_srcdir=$ac_srcdir;;
12613
*)
12614
  case $ac_srcdir in
12615
  .) ac_abs_srcdir=$ac_abs_builddir;;
12616
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12617
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12618
  esac;;
12619
esac
12620
case $ac_abs_builddir in
12621
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12622
*)
12623
  case $ac_top_srcdir in
12624
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12625
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12626
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12627
  esac;;
12628
esac
12629
 
12630
 
12631
  case $INSTALL in
12632
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12633
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12634
  esac
12635
 
12636
  if test x"$ac_file" != x-; then
12637
    { echo "$as_me:$LINENO: creating $ac_file" >&5
12638
echo "$as_me: creating $ac_file" >&6;}
12639
    rm -f "$ac_file"
12640
  fi
12641
  # Let's still pretend it is `configure' which instantiates (i.e., don't
12642
  # use $as_me), people would be surprised to read:
12643
  #    /* config.h.  Generated by config.status.  */
12644
  if test x"$ac_file" = x-; then
12645
    configure_input=
12646
  else
12647
    configure_input="$ac_file.  "
12648
  fi
12649
  configure_input=$configure_input"Generated from `echo $ac_file_in |
12650
                                     sed 's,.*/,,'` by configure."
12651
 
12652
  # First look for the input files in the build tree, otherwise in the
12653
  # src tree.
12654
  ac_file_inputs=`IFS=:
12655
    for f in $ac_file_in; do
12656
      case $f in
12657
      -) echo $tmp/stdin ;;
12658
      [\\/$]*)
12659
         # Absolute (can't be DOS-style, as IFS=:)
12660
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12661
echo "$as_me: error: cannot find input file: $f" >&2;}
12662
   { (exit 1); exit 1; }; }
12663
         echo "$f";;
12664
      *) # Relative
12665
         if test -f "$f"; then
12666
           # Build tree
12667
           echo "$f"
12668
         elif test -f "$srcdir/$f"; then
12669
           # Source tree
12670
           echo "$srcdir/$f"
12671
         else
12672
           # /dev/null tree
12673
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12674
echo "$as_me: error: cannot find input file: $f" >&2;}
12675
   { (exit 1); exit 1; }; }
12676
         fi;;
12677
      esac
12678
    done` || { (exit 1); exit 1; }
12679
_ACEOF
12680
cat >>$CONFIG_STATUS <<_ACEOF
12681
  sed "$ac_vpsub
12682
$extrasub
12683
_ACEOF
12684
cat >>$CONFIG_STATUS <<\_ACEOF
12685
:t
12686
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12687
s,@configure_input@,$configure_input,;t t
12688
s,@srcdir@,$ac_srcdir,;t t
12689
s,@abs_srcdir@,$ac_abs_srcdir,;t t
12690
s,@top_srcdir@,$ac_top_srcdir,;t t
12691
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12692
s,@builddir@,$ac_builddir,;t t
12693
s,@abs_builddir@,$ac_abs_builddir,;t t
12694
s,@top_builddir@,$ac_top_builddir,;t t
12695
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12696
s,@INSTALL@,$ac_INSTALL,;t t
12697
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12698
  rm -f $tmp/stdin
12699
  if test x"$ac_file" != x-; then
12700
    mv $tmp/out $ac_file
12701
  else
12702
    cat $tmp/out
12703
    rm -f $tmp/out
12704
  fi
12705
 
12706
done
12707
_ACEOF
12708
cat >>$CONFIG_STATUS <<\_ACEOF
12709
 
12710
#
12711
# CONFIG_COMMANDS section.
12712
#
12713
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12714
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12715
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12716
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12717
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12718
         X"$ac_dest" : 'X\(//\)[^/]' \| \
12719
         X"$ac_dest" : 'X\(//\)$' \| \
12720
         X"$ac_dest" : 'X\(/\)' \| \
12721
         .     : '\(.\)' 2>/dev/null ||
12722
echo X"$ac_dest" |
12723
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12724
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12725
          /^X\(\/\/\)$/{ s//\1/; q; }
12726
          /^X\(\/\).*/{ s//\1/; q; }
12727
          s/.*/./; q'`
12728
  { if $as_mkdir_p; then
12729
    mkdir -p "$ac_dir"
12730
  else
12731
    as_dir="$ac_dir"
12732
    as_dirs=
12733
    while test ! -d "$as_dir"; do
12734
      as_dirs="$as_dir $as_dirs"
12735
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12736
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12737
         X"$as_dir" : 'X\(//\)[^/]' \| \
12738
         X"$as_dir" : 'X\(//\)$' \| \
12739
         X"$as_dir" : 'X\(/\)' \| \
12740
         .     : '\(.\)' 2>/dev/null ||
12741
echo X"$as_dir" |
12742
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12743
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12744
          /^X\(\/\/\)$/{ s//\1/; q; }
12745
          /^X\(\/\).*/{ s//\1/; q; }
12746
          s/.*/./; q'`
12747
    done
12748
    test ! -n "$as_dirs" || mkdir $as_dirs
12749
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12750
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12751
   { (exit 1); exit 1; }; }; }
12752
 
12753
  ac_builddir=.
12754
 
12755
if test "$ac_dir" != .; then
12756
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12757
  # A "../" for each directory in $ac_dir_suffix.
12758
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12759
else
12760
  ac_dir_suffix= ac_top_builddir=
12761
fi
12762
 
12763
case $srcdir in
12764
  .)  # No --srcdir option.  We are building in place.
12765
    ac_srcdir=.
12766
    if test -z "$ac_top_builddir"; then
12767
       ac_top_srcdir=.
12768
    else
12769
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12770
    fi ;;
12771
  [\\/]* | ?:[\\/]* )  # Absolute path.
12772
    ac_srcdir=$srcdir$ac_dir_suffix;
12773
    ac_top_srcdir=$srcdir ;;
12774
  *) # Relative path.
12775
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12776
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12777
esac
12778
 
12779
# Do not use `cd foo && pwd` to compute absolute paths, because
12780
# the directories may not exist.
12781
case `pwd` in
12782
.) ac_abs_builddir="$ac_dir";;
12783
*)
12784
  case "$ac_dir" in
12785
  .) ac_abs_builddir=`pwd`;;
12786
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12787
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12788
  esac;;
12789
esac
12790
case $ac_abs_builddir in
12791
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12792
*)
12793
  case ${ac_top_builddir}. in
12794
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12795
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12796
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12797
  esac;;
12798
esac
12799
case $ac_abs_builddir in
12800
.) ac_abs_srcdir=$ac_srcdir;;
12801
*)
12802
  case $ac_srcdir in
12803
  .) ac_abs_srcdir=$ac_abs_builddir;;
12804
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12805
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12806
  esac;;
12807
esac
12808
case $ac_abs_builddir in
12809
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12810
*)
12811
  case $ac_top_srcdir in
12812
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12813
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12814
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12815
  esac;;
12816
esac
12817
 
12818
 
12819
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12820
echo "$as_me: executing $ac_dest commands" >&6;}
12821
  case $ac_dest in
12822
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12823
  # Strip MF so we end up with the name of the file.
12824
  mf=`echo "$mf" | sed -e 's/:.*$//'`
12825
  # Check whether this is an Automake generated Makefile or not.
12826
  # We used to match only the files named `Makefile.in', but
12827
  # some people rename them; so instead we look at the file content.
12828
  # Grep'ing the first line is not enough: some people post-process
12829
  # each Makefile.in and add a new line on top of each file to say so.
12830
  # So let's grep whole file.
12831
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12832
    dirpart=`(dirname "$mf") 2>/dev/null ||
12833
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12834
         X"$mf" : 'X\(//\)[^/]' \| \
12835
         X"$mf" : 'X\(//\)$' \| \
12836
         X"$mf" : 'X\(/\)' \| \
12837
         .     : '\(.\)' 2>/dev/null ||
12838
echo X"$mf" |
12839
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12840
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12841
          /^X\(\/\/\)$/{ s//\1/; q; }
12842
          /^X\(\/\).*/{ s//\1/; q; }
12843
          s/.*/./; q'`
12844
  else
12845
    continue
12846
  fi
12847
  # Extract the definition of DEPDIR, am__include, and am__quote
12848
  # from the Makefile without running `make'.
12849
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12850
  test -z "$DEPDIR" && continue
12851
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
12852
  test -z "am__include" && continue
12853
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12854
  # When using ansi2knr, U may be empty or an underscore; expand it
12855
  U=`sed -n 's/^U = //p' < "$mf"`
12856
  # Find all dependency output files, they are included files with
12857
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
12858
  # simplest approach to changing $(DEPDIR) to its actual value in the
12859
  # expansion.
12860
  for file in `sed -n "
12861
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12862
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12863
    # Make sure the directory exists.
12864
    test -f "$dirpart/$file" && continue
12865
    fdir=`(dirname "$file") 2>/dev/null ||
12866
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12867
         X"$file" : 'X\(//\)[^/]' \| \
12868
         X"$file" : 'X\(//\)$' \| \
12869
         X"$file" : 'X\(/\)' \| \
12870
         .     : '\(.\)' 2>/dev/null ||
12871
echo X"$file" |
12872
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12873
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12874
          /^X\(\/\/\)$/{ s//\1/; q; }
12875
          /^X\(\/\).*/{ s//\1/; q; }
12876
          s/.*/./; q'`
12877
    { if $as_mkdir_p; then
12878
    mkdir -p $dirpart/$fdir
12879
  else
12880
    as_dir=$dirpart/$fdir
12881
    as_dirs=
12882
    while test ! -d "$as_dir"; do
12883
      as_dirs="$as_dir $as_dirs"
12884
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12885
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12886
         X"$as_dir" : 'X\(//\)[^/]' \| \
12887
         X"$as_dir" : 'X\(//\)$' \| \
12888
         X"$as_dir" : 'X\(/\)' \| \
12889
         .     : '\(.\)' 2>/dev/null ||
12890
echo X"$as_dir" |
12891
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12892
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12893
          /^X\(\/\/\)$/{ s//\1/; q; }
12894
          /^X\(\/\).*/{ s//\1/; q; }
12895
          s/.*/./; q'`
12896
    done
12897
    test ! -n "$as_dirs" || mkdir $as_dirs
12898
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12899
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12900
   { (exit 1); exit 1; }; }; }
12901
 
12902
    # echo "creating $dirpart/$file"
12903
    echo '# dummy' > "$dirpart/$file"
12904
  done
12905
done
12906
 ;;
12907
    libtool )
12908
 
12909
    # See if we are running on zsh, and set the options which allow our
12910
    # commands through without removal of \ escapes.
12911
    if test -n "${ZSH_VERSION+set}" ; then
12912
      setopt NO_GLOB_SUBST
12913
    fi
12914
 
12915
    cfgfile="${ofile}T"
12916
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12917
    $RM "$cfgfile"
12918
 
12919
    cat <<_LT_EOF >> "$cfgfile"
12920
#! $SHELL
12921
 
12922
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12923
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12924
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12925
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12926
#
12927
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12928
#                 2006, 2007, 2008 Free Software Foundation, Inc.
12929
#   Written by Gordon Matzigkeit, 1996
12930
#
12931
#   This file is part of GNU Libtool.
12932
#
12933
# GNU Libtool is free software; you can redistribute it and/or
12934
# modify it under the terms of the GNU General Public License as
12935
# published by the Free Software Foundation; either version 2 of
12936
# the License, or (at your option) any later version.
12937
#
12938
# As a special exception to the GNU General Public License,
12939
# if you distribute this file as part of a program or library that
12940
# is built using GNU Libtool, you may include this file under the
12941
# same distribution terms that you use for the rest of that program.
12942
#
12943
# GNU Libtool is distributed in the hope that it will be useful,
12944
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12945
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12946
# GNU General Public License for more details.
12947
#
12948
# You should have received a copy of the GNU General Public License
12949
# along with GNU Libtool; see the file COPYING.  If not, a copy
12950
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12951
# obtained by writing to the Free Software Foundation, Inc.,
12952
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12953
 
12954
 
12955
# The names of the tagged configurations supported by this script.
12956
available_tags=""
12957
 
12958
# ### BEGIN LIBTOOL CONFIG
12959
 
12960
# A sed program that does not truncate output.
12961
SED=$lt_SED
12962
 
12963
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12964
Xsed="\$SED -e 1s/^X//"
12965
 
12966
# Assembler program.
12967
AS=$AS
12968
 
12969
# DLL creation program.
12970
DLLTOOL=$DLLTOOL
12971
 
12972
# Object dumper program.
12973
OBJDUMP=$OBJDUMP
12974
 
12975
# Which release of libtool.m4 was used?
12976
macro_version=$macro_version
12977
macro_revision=$macro_revision
12978
 
12979
# Whether or not to build shared libraries.
12980
build_libtool_libs=$enable_shared
12981
 
12982
# Whether or not to build static libraries.
12983
build_old_libs=$enable_static
12984
 
12985
# What type of objects to build.
12986
pic_mode=$pic_mode
12987
 
12988
# Whether or not to optimize for fast installation.
12989
fast_install=$enable_fast_install
12990
 
12991
# The host system.
12992
host_alias=$host_alias
12993
host=$host
12994
host_os=$host_os
12995
 
12996
# The build system.
12997
build_alias=$build_alias
12998
build=$build
12999
build_os=$build_os
13000
 
13001
# A grep program that handles long lines.
13002
GREP=$lt_GREP
13003
 
13004
# An ERE matcher.
13005
EGREP=$lt_EGREP
13006
 
13007
# A literal string matcher.
13008
FGREP=$lt_FGREP
13009
 
13010
# A BSD- or MS-compatible name lister.
13011
NM=$lt_NM
13012
 
13013
# Whether we need soft or hard links.
13014
LN_S=$lt_LN_S
13015
 
13016
# What is the maximum length of a command?
13017
max_cmd_len=$max_cmd_len
13018
 
13019
# Object file suffix (normally "o").
13020
objext=$ac_objext
13021
 
13022
# Executable file suffix (normally "").
13023
exeext=$exeext
13024
 
13025
# whether the shell understands "unset".
13026
lt_unset=$lt_unset
13027
 
13028
# turn spaces into newlines.
13029
SP2NL=$lt_lt_SP2NL
13030
 
13031
# turn newlines into spaces.
13032
NL2SP=$lt_lt_NL2SP
13033
 
13034
# How to create reloadable object files.
13035
reload_flag=$lt_reload_flag
13036
reload_cmds=$lt_reload_cmds
13037
 
13038
# Method to check whether dependent libraries are shared objects.
13039
deplibs_check_method=$lt_deplibs_check_method
13040
 
13041
# Command to use when deplibs_check_method == "file_magic".
13042
file_magic_cmd=$lt_file_magic_cmd
13043
 
13044
# The archiver.
13045
AR=$lt_AR
13046
AR_FLAGS=$lt_AR_FLAGS
13047
 
13048
# A symbol stripping program.
13049
STRIP=$lt_STRIP
13050
 
13051
# Commands used to install an old-style archive.
13052
RANLIB=$lt_RANLIB
13053
old_postinstall_cmds=$lt_old_postinstall_cmds
13054
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13055
 
13056
# A C compiler.
13057
LTCC=$lt_CC
13058
 
13059
# LTCC compiler flags.
13060
LTCFLAGS=$lt_CFLAGS
13061
 
13062
# Take the output of nm and produce a listing of raw symbols and C names.
13063
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13064
 
13065
# Transform the output of nm in a proper C declaration.
13066
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13067
 
13068
# Transform the output of nm in a C name address pair.
13069
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13070
 
13071
# Transform the output of nm in a C name address pair when lib prefix is needed.
13072
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13073
 
13074
# The name of the directory that contains temporary libtool files.
13075
objdir=$objdir
13076
 
13077
# Shell to use when invoking shell scripts.
13078
SHELL=$lt_SHELL
13079
 
13080
# An echo program that does not interpret backslashes.
13081
ECHO=$lt_ECHO
13082
 
13083
# Used to examine libraries when file_magic_cmd begins with "file".
13084
MAGIC_CMD=$MAGIC_CMD
13085
 
13086
# Must we lock files when doing compilation?
13087
need_locks=$lt_need_locks
13088
 
13089
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13090
DSYMUTIL=$lt_DSYMUTIL
13091
 
13092
# Tool to change global to local symbols on Mac OS X.
13093
NMEDIT=$lt_NMEDIT
13094
 
13095
# Tool to manipulate fat objects and archives on Mac OS X.
13096
LIPO=$lt_LIPO
13097
 
13098
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13099
OTOOL=$lt_OTOOL
13100
 
13101
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13102
OTOOL64=$lt_OTOOL64
13103
 
13104
# Old archive suffix (normally "a").
13105
libext=$libext
13106
 
13107
# Shared library suffix (normally ".so").
13108
shrext_cmds=$lt_shrext_cmds
13109
 
13110
# The commands to extract the exported symbol list from a shared archive.
13111
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13112
 
13113
# Variables whose values should be saved in libtool wrapper scripts and
13114
# restored at link time.
13115
variables_saved_for_relink=$lt_variables_saved_for_relink
13116
 
13117
# Do we need the "lib" prefix for modules?
13118
need_lib_prefix=$need_lib_prefix
13119
 
13120
# Do we need a version for libraries?
13121
need_version=$need_version
13122
 
13123
# Library versioning type.
13124
version_type=$version_type
13125
 
13126
# Shared library runtime path variable.
13127
runpath_var=$runpath_var
13128
 
13129
# Shared library path variable.
13130
shlibpath_var=$shlibpath_var
13131
 
13132
# Is shlibpath searched before the hard-coded library search path?
13133
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13134
 
13135
# Format of library name prefix.
13136
libname_spec=$lt_libname_spec
13137
 
13138
# List of archive names.  First name is the real one, the rest are links.
13139
# The last name is the one that the linker finds with -lNAME
13140
library_names_spec=$lt_library_names_spec
13141
 
13142
# The coded name of the library, if different from the real name.
13143
soname_spec=$lt_soname_spec
13144
 
13145
# Command to use after installation of a shared archive.
13146
postinstall_cmds=$lt_postinstall_cmds
13147
 
13148
# Command to use after uninstallation of a shared archive.
13149
postuninstall_cmds=$lt_postuninstall_cmds
13150
 
13151
# Commands used to finish a libtool library installation in a directory.
13152
finish_cmds=$lt_finish_cmds
13153
 
13154
# As "finish_cmds", except a single script fragment to be evaled but
13155
# not shown.
13156
finish_eval=$lt_finish_eval
13157
 
13158
# Whether we should hardcode library paths into libraries.
13159
hardcode_into_libs=$hardcode_into_libs
13160
 
13161
# Compile-time system search path for libraries.
13162
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13163
 
13164
# Run-time system search path for libraries.
13165
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13166
 
13167
# Whether dlopen is supported.
13168
dlopen_support=$enable_dlopen
13169
 
13170
# Whether dlopen of programs is supported.
13171
dlopen_self=$enable_dlopen_self
13172
 
13173
# Whether dlopen of statically linked programs is supported.
13174
dlopen_self_static=$enable_dlopen_self_static
13175
 
13176
# Commands to strip libraries.
13177
old_striplib=$lt_old_striplib
13178
striplib=$lt_striplib
13179
 
13180
 
13181
# The linker used to build libraries.
13182
LD=$lt_LD
13183
 
13184
# Commands used to build an old-style archive.
13185
old_archive_cmds=$lt_old_archive_cmds
13186
 
13187
# A language specific compiler.
13188
CC=$lt_compiler
13189
 
13190
# Is the compiler the GNU compiler?
13191
with_gcc=$GCC
13192
 
13193
# Compiler flag to turn off builtin functions.
13194
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13195
 
13196
# How to pass a linker flag through the compiler.
13197
wl=$lt_lt_prog_compiler_wl
13198
 
13199
# Additional compiler flags for building library objects.
13200
pic_flag=$lt_lt_prog_compiler_pic
13201
 
13202
# Compiler flag to prevent dynamic linking.
13203
link_static_flag=$lt_lt_prog_compiler_static
13204
 
13205
# Does compiler simultaneously support -c and -o options?
13206
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13207
 
13208
# Whether or not to add -lc for building shared libraries.
13209
build_libtool_need_lc=$archive_cmds_need_lc
13210
 
13211
# Whether or not to disallow shared libs when runtime libs are static.
13212
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13213
 
13214
# Compiler flag to allow reflexive dlopens.
13215
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13216
 
13217
# Compiler flag to generate shared objects directly from archives.
13218
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13219
 
13220
# Whether the compiler copes with passing no objects directly.
13221
compiler_needs_object=$lt_compiler_needs_object
13222
 
13223
# Create an old-style archive from a shared archive.
13224
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13225
 
13226
# Create a temporary old-style archive to link instead of a shared archive.
13227
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13228
 
13229
# Commands used to build a shared archive.
13230
archive_cmds=$lt_archive_cmds
13231
archive_expsym_cmds=$lt_archive_expsym_cmds
13232
 
13233
# Commands used to build a loadable module if different from building
13234
# a shared archive.
13235
module_cmds=$lt_module_cmds
13236
module_expsym_cmds=$lt_module_expsym_cmds
13237
 
13238
# Whether we are building with GNU ld or not.
13239
with_gnu_ld=$lt_with_gnu_ld
13240
 
13241
# Flag that allows shared libraries with undefined symbols to be built.
13242
allow_undefined_flag=$lt_allow_undefined_flag
13243
 
13244
# Flag that enforces no undefined symbols.
13245
no_undefined_flag=$lt_no_undefined_flag
13246
 
13247
# Flag to hardcode \$libdir into a binary during linking.
13248
# This must work even if \$libdir does not exist
13249
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13250
 
13251
# If ld is used when linking, flag to hardcode \$libdir into a binary
13252
# during linking.  This must work even if \$libdir does not exist.
13253
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13254
 
13255
# Whether we need a single "-rpath" flag with a separated argument.
13256
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13257
 
13258
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13259
# DIR into the resulting binary.
13260
hardcode_direct=$hardcode_direct
13261
 
13262
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13263
# DIR into the resulting binary and the resulting library dependency is
13264
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13265
# library is relocated.
13266
hardcode_direct_absolute=$hardcode_direct_absolute
13267
 
13268
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13269
# into the resulting binary.
13270
hardcode_minus_L=$hardcode_minus_L
13271
 
13272
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13273
# into the resulting binary.
13274
hardcode_shlibpath_var=$hardcode_shlibpath_var
13275
 
13276
# Set to "yes" if building a shared library automatically hardcodes DIR
13277
# into the library and all subsequent libraries and executables linked
13278
# against it.
13279
hardcode_automatic=$hardcode_automatic
13280
 
13281
# Set to yes if linker adds runtime paths of dependent libraries
13282
# to runtime path list.
13283
inherit_rpath=$inherit_rpath
13284
 
13285
# Whether libtool must link a program against all its dependency libraries.
13286
link_all_deplibs=$link_all_deplibs
13287
 
13288
# Fix the shell variable \$srcfile for the compiler.
13289
fix_srcfile_path=$lt_fix_srcfile_path
13290
 
13291
# Set to "yes" if exported symbols are required.
13292
always_export_symbols=$always_export_symbols
13293
 
13294
# The commands to list exported symbols.
13295
export_symbols_cmds=$lt_export_symbols_cmds
13296
 
13297
# Symbols that should not be listed in the preloaded symbols.
13298
exclude_expsyms=$lt_exclude_expsyms
13299
 
13300
# Symbols that must always be exported.
13301
include_expsyms=$lt_include_expsyms
13302
 
13303
# Commands necessary for linking programs (against libraries) with templates.
13304
prelink_cmds=$lt_prelink_cmds
13305
 
13306
# Specify filename containing input files.
13307
file_list_spec=$lt_file_list_spec
13308
 
13309
# How to hardcode a shared library path into an executable.
13310
hardcode_action=$hardcode_action
13311
 
13312
# ### END LIBTOOL CONFIG
13313
 
13314
_LT_EOF
13315
 
13316
  case $host_os in
13317
  aix3*)
13318
    cat <<\_LT_EOF >> "$cfgfile"
13319
# AIX sometimes has problems with the GCC collect2 program.  For some
13320
# reason, if we set the COLLECT_NAMES environment variable, the problems
13321
# vanish in a puff of smoke.
13322
if test "X${COLLECT_NAMES+set}" != Xset; then
13323
  COLLECT_NAMES=
13324
  export COLLECT_NAMES
13325
fi
13326
_LT_EOF
13327
    ;;
13328
  esac
13329
 
13330
 
13331
ltmain="$ac_aux_dir/ltmain.sh"
13332
 
13333
 
13334
  # We use sed instead of cat because bash on DJGPP gets confused if
13335
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13336
  # text mode, it properly converts lines to CR/LF.  This bash problem
13337
  # is reportedly fixed, but why not run on old versions too?
13338
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13339
    || (rm -f "$cfgfile"; exit 1)
13340
 
13341
  case $xsi_shell in
13342
  yes)
13343
    cat << \_LT_EOF >> "$cfgfile"
13344
 
13345
# func_dirname file append nondir_replacement
13346
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13347
# otherwise set result to NONDIR_REPLACEMENT.
13348
func_dirname ()
13349
{
13350
  case ${1} in
13351
    */*) func_dirname_result="${1%/*}${2}" ;;
13352
    *  ) func_dirname_result="${3}" ;;
13353
  esac
13354
}
13355
 
13356
# func_basename file
13357
func_basename ()
13358
{
13359
  func_basename_result="${1##*/}"
13360
}
13361
 
13362
# func_dirname_and_basename file append nondir_replacement
13363
# perform func_basename and func_dirname in a single function
13364
# call:
13365
#   dirname:  Compute the dirname of FILE.  If nonempty,
13366
#             add APPEND to the result, otherwise set result
13367
#             to NONDIR_REPLACEMENT.
13368
#             value returned in "$func_dirname_result"
13369
#   basename: Compute filename of FILE.
13370
#             value retuned in "$func_basename_result"
13371
# Implementation must be kept synchronized with func_dirname
13372
# and func_basename. For efficiency, we do not delegate to
13373
# those functions but instead duplicate the functionality here.
13374
func_dirname_and_basename ()
13375
{
13376
  case ${1} in
13377
    */*) func_dirname_result="${1%/*}${2}" ;;
13378
    *  ) func_dirname_result="${3}" ;;
13379
  esac
13380
  func_basename_result="${1##*/}"
13381
}
13382
 
13383
# func_stripname prefix suffix name
13384
# strip PREFIX and SUFFIX off of NAME.
13385
# PREFIX and SUFFIX must not contain globbing or regex special
13386
# characters, hashes, percent signs, but SUFFIX may contain a leading
13387
# dot (in which case that matches only a dot).
13388
func_stripname ()
13389
{
13390
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13391
  # positional parameters, so assign one to ordinary parameter first.
13392
  func_stripname_result=${3}
13393
  func_stripname_result=${func_stripname_result#"${1}"}
13394
  func_stripname_result=${func_stripname_result%"${2}"}
13395
}
13396
 
13397
# func_opt_split
13398
func_opt_split ()
13399
{
13400
  func_opt_split_opt=${1%%=*}
13401
  func_opt_split_arg=${1#*=}
13402
}
13403
 
13404
# func_lo2o object
13405
func_lo2o ()
13406
{
13407
  case ${1} in
13408
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13409
    *)    func_lo2o_result=${1} ;;
13410
  esac
13411
}
13412
 
13413
# func_xform libobj-or-source
13414
func_xform ()
13415
{
13416
  func_xform_result=${1%.*}.lo
13417
}
13418
 
13419
# func_arith arithmetic-term...
13420
func_arith ()
13421
{
13422
  func_arith_result=$(( $* ))
13423
}
13424
 
13425
# func_len string
13426
# STRING may not start with a hyphen.
13427
func_len ()
13428
{
13429
  func_len_result=${#1}
13430
}
13431
 
13432
_LT_EOF
13433
    ;;
13434
  *) # Bourne compatible functions.
13435
    cat << \_LT_EOF >> "$cfgfile"
13436
 
13437
# func_dirname file append nondir_replacement
13438
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13439
# otherwise set result to NONDIR_REPLACEMENT.
13440
func_dirname ()
13441
{
13442
  # Extract subdirectory from the argument.
13443
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13444
  if test "X$func_dirname_result" = "X${1}"; then
13445
    func_dirname_result="${3}"
13446
  else
13447
    func_dirname_result="$func_dirname_result${2}"
13448
  fi
13449
}
13450
 
13451
# func_basename file
13452
func_basename ()
13453
{
13454
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13455
}
13456
 
13457
 
13458
# func_stripname prefix suffix name
13459
# strip PREFIX and SUFFIX off of NAME.
13460
# PREFIX and SUFFIX must not contain globbing or regex special
13461
# characters, hashes, percent signs, but SUFFIX may contain a leading
13462
# dot (in which case that matches only a dot).
13463
# func_strip_suffix prefix name
13464
func_stripname ()
13465
{
13466
  case ${2} in
13467
    .*) func_stripname_result=`$ECHO "X${3}" \
13468
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13469
    *)  func_stripname_result=`$ECHO "X${3}" \
13470
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13471
  esac
13472
}
13473
 
13474
# sed scripts:
13475
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13476
my_sed_long_arg='1s/^-[^=]*=//'
13477
 
13478
# func_opt_split
13479
func_opt_split ()
13480
{
13481
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13482
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13483
}
13484
 
13485
# func_lo2o object
13486
func_lo2o ()
13487
{
13488
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13489
}
13490
 
13491
# func_xform libobj-or-source
13492
func_xform ()
13493
{
13494
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13495
}
13496
 
13497
# func_arith arithmetic-term...
13498
func_arith ()
13499
{
13500
  func_arith_result=`expr "$@"`
13501
}
13502
 
13503
# func_len string
13504
# STRING may not start with a hyphen.
13505
func_len ()
13506
{
13507
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13508
}
13509
 
13510
_LT_EOF
13511
esac
13512
 
13513
case $lt_shell_append in
13514
  yes)
13515
    cat << \_LT_EOF >> "$cfgfile"
13516
 
13517
# func_append var value
13518
# Append VALUE to the end of shell variable VAR.
13519
func_append ()
13520
{
13521
  eval "$1+=\$2"
13522
}
13523
_LT_EOF
13524
    ;;
13525
  *)
13526
    cat << \_LT_EOF >> "$cfgfile"
13527
 
13528
# func_append var value
13529
# Append VALUE to the end of shell variable VAR.
13530
func_append ()
13531
{
13532
  eval "$1=\$$1\$2"
13533
}
13534
 
13535
_LT_EOF
13536
    ;;
13537
  esac
13538
 
13539
 
13540
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13541
    || (rm -f "$cfgfile"; exit 1)
13542
 
13543
  mv -f "$cfgfile" "$ofile" ||
13544
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13545
  chmod +x "$ofile"
13546
 
13547
 ;;
13548
  esac
13549
done
13550
_ACEOF
13551
 
13552
cat >>$CONFIG_STATUS <<\_ACEOF
13553
 
13554
{ (exit 0); exit 0; }
13555
_ACEOF
13556
chmod +x $CONFIG_STATUS
13557
ac_clean_files=$ac_clean_files_save
13558
 
13559
 
13560
# configure is writing to config.log, and then calls config.status.
13561
# config.status does its own redirection, appending to config.log.
13562
# Unfortunately, on DOS this fails, as config.log is still kept open
13563
# by configure, so config.status won't be able to write to it; its
13564
# output is simply discarded.  So we exec the FD to /dev/null,
13565
# effectively closing config.log, so it can be properly (re)opened and
13566
# appended to by config.status.  When coming back to configure, we
13567
# need to make the FD available again.
13568
if test "$no_create" != yes; then
13569
  ac_cs_success=:
13570
  ac_config_status_args=
13571
  test "$silent" = yes &&
13572
    ac_config_status_args="$ac_config_status_args --quiet"
13573
  exec 5>/dev/null
13574
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13575
  exec 5>>config.log
13576
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13577
  # would make configure fail if this is the last instruction.
13578
  $ac_cs_success || { (exit 1); exit 1; }
13579
fi
13580
 
13581
#
13582
# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
13583
#
13584
if test "$no_recursion" != yes; then
13585
 
13586
  # Remove --cache-file and --srcdir arguments so they do not pile up.
13587
  ac_sub_configure_args=
13588
  ac_prev=
13589
  eval "set x $ac_configure_args"
13590
  shift
13591
  for ac_arg
13592
  do
13593
    if test -n "$ac_prev"; then
13594
      ac_prev=
13595
      continue
13596
    fi
13597
    case $ac_arg in
13598
    -cache-file | --cache-file | --cache-fil | --cache-fi \
13599
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13600
      ac_prev=cache_file ;;
13601
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13602
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13603
    | --c=*)
13604
      ;;
13605
    --config-cache | -C)
13606
      ;;
13607
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13608
      ac_prev=srcdir ;;
13609
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13610
      ;;
13611
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13612
      ac_prev=prefix ;;
13613
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13614
      ;;
13615
    *)
13616
      case $ac_arg in
13617
      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13618
      esac
13619
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
13620
    esac
13621
  done
13622
 
13623
  # Always prepend --prefix to ensure using the same prefix
13624
  # in subdir configurations.
13625
  ac_arg="--prefix=$prefix"
13626
  case $ac_arg in
13627
  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13628
  esac
13629
  ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
13630
 
13631
  ac_popdir=`pwd`
13632
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
13633
 
13634
    # Do not complain, so a configure script can configure whichever
13635
    # parts of a large source tree are present.
13636
    test -d "$srcdir/$ac_dir" || continue
13637
 
13638
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
13639
echo "$as_me: configuring in $ac_dir" >&6;}
13640
    { if $as_mkdir_p; then
13641
    mkdir -p "$ac_dir"
13642
  else
13643
    as_dir="$ac_dir"
13644
    as_dirs=
13645
    while test ! -d "$as_dir"; do
13646
      as_dirs="$as_dir $as_dirs"
13647
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13648
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13649
         X"$as_dir" : 'X\(//\)[^/]' \| \
13650
         X"$as_dir" : 'X\(//\)$' \| \
13651
         X"$as_dir" : 'X\(/\)' \| \
13652
         .     : '\(.\)' 2>/dev/null ||
13653
echo X"$as_dir" |
13654
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13655
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13656
          /^X\(\/\/\)$/{ s//\1/; q; }
13657
          /^X\(\/\).*/{ s//\1/; q; }
13658
          s/.*/./; q'`
13659
    done
13660
    test ! -n "$as_dirs" || mkdir $as_dirs
13661
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13662
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13663
   { (exit 1); exit 1; }; }; }
13664
 
13665
    ac_builddir=.
13666
 
13667
if test "$ac_dir" != .; then
13668
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13669
  # A "../" for each directory in $ac_dir_suffix.
13670
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13671
else
13672
  ac_dir_suffix= ac_top_builddir=
13673
fi
13674
 
13675
case $srcdir in
13676
  .)  # No --srcdir option.  We are building in place.
13677
    ac_srcdir=.
13678
    if test -z "$ac_top_builddir"; then
13679
       ac_top_srcdir=.
13680
    else
13681
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13682
    fi ;;
13683
  [\\/]* | ?:[\\/]* )  # Absolute path.
13684
    ac_srcdir=$srcdir$ac_dir_suffix;
13685
    ac_top_srcdir=$srcdir ;;
13686
  *) # Relative path.
13687
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13688
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13689
esac
13690
 
13691
# Do not use `cd foo && pwd` to compute absolute paths, because
13692
# the directories may not exist.
13693
case `pwd` in
13694
.) ac_abs_builddir="$ac_dir";;
13695
*)
13696
  case "$ac_dir" in
13697
  .) ac_abs_builddir=`pwd`;;
13698
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13699
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13700
  esac;;
13701
esac
13702
case $ac_abs_builddir in
13703
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13704
*)
13705
  case ${ac_top_builddir}. in
13706
  .) ac_abs_top_builddir=$ac_abs_builddir;;
13707
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13708
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13709
  esac;;
13710
esac
13711
case $ac_abs_builddir in
13712
.) ac_abs_srcdir=$ac_srcdir;;
13713
*)
13714
  case $ac_srcdir in
13715
  .) ac_abs_srcdir=$ac_abs_builddir;;
13716
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13717
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13718
  esac;;
13719
esac
13720
case $ac_abs_builddir in
13721
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13722
*)
13723
  case $ac_top_srcdir in
13724
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13725
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13726
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13727
  esac;;
13728
esac
13729
 
13730
 
13731
    cd "$ac_dir"
13732
 
13733
    # Check for guested configure; otherwise get Cygnus style configure.
13734
    if test -f "$ac_srcdir/configure.gnu"; then
13735
      ac_sub_configure=$ac_srcdir/configure.gnu
13736
    elif test -f "$ac_srcdir/configure"; then
13737
      ac_sub_configure=$ac_srcdir/configure
13738
    elif test -f "$ac_srcdir/configure.in"; then
13739
      # This should be Cygnus configure.
13740
      ac_sub_configure=$ac_aux_dir/configure
13741
    else
13742
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
13743
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13744
      ac_sub_configure=
13745
    fi
13746
 
13747
    # The recursion is here.
13748
    if test -n "$ac_sub_configure"; then
13749
      # Make the cache file name correct relative to the subdirectory.
13750
      case $cache_file in
13751
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
13752
      *) # Relative path.
13753
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
13754
      esac
13755
 
13756
      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
13757
echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
13758
      # The eval makes quoting arguments work.
13759
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
13760
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
13761
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
13762
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
13763
   { (exit 1); exit 1; }; }
13764
    fi
13765
 
13766
    cd "$ac_popdir"
13767
  done
13768
fi
13769
 
13770
 
13771
 
13772
 

powered by: WebSVN 2.1.0

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