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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [binutils-2.18.50/] [gprof/] [configure] - Blame information for rev 833

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

Line No. Rev Author Line
1 38 julius
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
4
#
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization.  ##
10
## --------------------- ##
11
 
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
  emulate sh
15
  NULLCMD=:
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
  # is contrary to our usage.  Disable this feature.
18
  alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
  set -o posix
21
fi
22
DUALCASE=1; export DUALCASE # for MKS sh
23
 
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26
  as_unset=unset
27
else
28
  as_unset=false
29
fi
30
 
31
 
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
34
PS1='$ '
35
PS2='> '
36
PS4='+ '
37
 
38
# NLS nuisances.
39
for as_var in \
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42
  LC_TELEPHONE LC_TIME
43
do
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
    eval $as_var=C; export $as_var
46
  else
47
    $as_unset $as_var
48
  fi
49
done
50
 
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
53
  as_expr=expr
54
else
55
  as_expr=false
56
fi
57
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59
  as_basename=basename
60
else
61
  as_basename=false
62
fi
63
 
64
 
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
         X"$0" : 'X\(//\)$' \| \
69
         X"$0" : 'X\(/\)$' \| \
70
         .     : '\(.\)' 2>/dev/null ||
71
echo X/"$0" |
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
74
          /^X\/\(\/\).*/{ s//\1/; q; }
75
          s/.*/./; q'`
76
 
77
 
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
85
 
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
  echo "#! /bin/sh" >conf$$.sh
89
  echo  "exit 0"   >>conf$$.sh
90
  chmod +x conf$$.sh
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92
    PATH_SEPARATOR=';'
93
  else
94
    PATH_SEPARATOR=:
95
  fi
96
  rm -f conf$$.sh
97
fi
98
 
99
 
100
  as_lineno_1=$LINENO
101
  as_lineno_2=$LINENO
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105
  # Find who we are.  Look in the path if we contain no path at all
106
  # relative or not.
107
  case $0 in
108
    *[\\/]* ) as_myself=$0 ;;
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
for as_dir in $PATH
111
do
112
  IFS=$as_save_IFS
113
  test -z "$as_dir" && as_dir=.
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115
done
116
 
117
       ;;
118
  esac
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
120
  # in which case we are not to be found in the path.
121
  if test "x$as_myself" = x; then
122
    as_myself=$0
123
  fi
124
  if test ! -f "$as_myself"; then
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
   { (exit 1); exit 1; }; }
127
  fi
128
  case $CONFIG_SHELL in
129
  '')
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
do
133
  IFS=$as_save_IFS
134
  test -z "$as_dir" && as_dir=.
135
  for as_base in sh bash ksh sh5; do
136
         case $as_dir in
137
         /*)
138
           if ("$as_dir/$as_base" -c '
139
  as_lineno_1=$LINENO
140
  as_lineno_2=$LINENO
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
             CONFIG_SHELL=$as_dir/$as_base
147
             export CONFIG_SHELL
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149
           fi;;
150
         esac
151
       done
152
done
153
;;
154
  esac
155
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
158
  # line-number line before each line; the second 'sed' does the real
159
  # work.  The second script uses 'N' to pair each line-number line
160
  # with the numbered line, and appends trailing '-' during
161
  # substitution so that $LINENO is not a special case at line end.
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164
  sed '=' <$as_myself |
165
    sed '
166
      N
167
      s,$,-,
168
      : loop
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170
      t loop
171
      s,-$,,
172
      s,^['$as_cr_digits']*\n,,
173
    ' >$as_me.lineno &&
174
  chmod +x $as_me.lineno ||
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
   { (exit 1); exit 1; }; }
177
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
179
  # (the dirname of $[0] is not the place where we might find the
180
  # original and so on.  Autoconf is especially sensible to this).
181
  . ./$as_me.lineno
182
  # Exit status is that of the last command.
183
  exit
184
}
185
 
186
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
  *c*,-n*) ECHO_N= ECHO_C='
189
' ECHO_T='      ' ;;
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192
esac
193
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
195
  as_expr=expr
196
else
197
  as_expr=false
198
fi
199
 
200
rm -f conf$$ conf$$.exe conf$$.file
201
echo >conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
  # We could just check for DJGPP; but this test a) works b) is more generic
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
  if test -f conf$$.exe; then
206
    # Don't use ln at all; we don't have any links
207
    as_ln_s='cp -p'
208
  else
209
    as_ln_s='ln -s'
210
  fi
211
elif ln conf$$.file conf$$ 2>/dev/null; then
212
  as_ln_s=ln
213
else
214
  as_ln_s='cp -p'
215
fi
216
rm -f conf$$ conf$$.exe conf$$.file
217
 
218
if mkdir -p . 2>/dev/null; then
219
  as_mkdir_p=:
220
else
221
  test -d ./-p && rmdir ./-p
222
  as_mkdir_p=false
223
fi
224
 
225
as_executable_p="test -f"
226
 
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
 
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
 
233
 
234
# IFS
235
# We need space, tab and new line, in precisely that order.
236
as_nl='
237
'
238
IFS="   $as_nl"
239
 
240
# CDPATH.
241
$as_unset CDPATH
242
 
243
 
244
 
245
# Check that we are running under the correct shell.
246
SHELL=${CONFIG_SHELL-/bin/sh}
247
 
248
case X$lt_ECHO in
249
X*--fallback-echo)
250
  # Remove one level of quotation (which was required for Make).
251
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252
  ;;
253
esac
254
 
255
ECHO=${lt_ECHO-echo}
256
if test "X$1" = X--no-reexec; then
257
  # Discard the --no-reexec flag, and continue.
258
  shift
259
elif test "X$1" = X--fallback-echo; then
260
  # Avoid inline document here, it may be left over
261
  :
262
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263
  # Yippee, $ECHO works!
264
  :
265
else
266
  # Restart under the correct shell.
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
268
fi
269
 
270
if test "X$1" = X--fallback-echo; then
271
  # used as fallback echo
272
  shift
273
  cat <<_LT_EOF
274
$*
275
_LT_EOF
276
  exit 0
277
fi
278
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
280
# if CDPATH is set.
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
 
283
if test -z "$lt_ECHO"; then
284
  if test "X${echo_test_string+set}" != Xset; then
285
    # find a string as large as possible, as long as the shell can cope with it
286
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290
      then
291
        break
292
      fi
293
    done
294
  fi
295
 
296
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298
     test "X$echo_testing_string" = "X$echo_test_string"; then
299
    :
300
  else
301
    # The Solaris, AIX, and Digital Unix default echo programs unquote
302
    # backslashes.  This makes it impossible to quote backslashes using
303
    #   echo "$something" | sed 's/\\/\\\\/g'
304
    #
305
    # So, first we look for a working echo in the user's PATH.
306
 
307
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308
    for dir in $PATH /usr/ucb; do
309
      IFS="$lt_save_ifs"
310
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313
         test "X$echo_testing_string" = "X$echo_test_string"; then
314
        ECHO="$dir/echo"
315
        break
316
      fi
317
    done
318
    IFS="$lt_save_ifs"
319
 
320
    if test "X$ECHO" = Xecho; then
321
      # We didn't find a better echo, so look for alternatives.
322
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324
         test "X$echo_testing_string" = "X$echo_test_string"; then
325
        # This shell has a builtin print -r that does the trick.
326
        ECHO='print -r'
327
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328
           test "X$CONFIG_SHELL" != X/bin/ksh; then
329
        # If we have ksh, try running configure again with it.
330
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331
        export ORIGINAL_CONFIG_SHELL
332
        CONFIG_SHELL=/bin/ksh
333
        export CONFIG_SHELL
334
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335
      else
336
        # Try using printf.
337
        ECHO='printf %s\n'
338
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340
           test "X$echo_testing_string" = "X$echo_test_string"; then
341
          # Cool, printf works
342
          :
343
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344
             test "X$echo_testing_string" = 'X\t' &&
345
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346
             test "X$echo_testing_string" = "X$echo_test_string"; then
347
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348
          export CONFIG_SHELL
349
          SHELL="$CONFIG_SHELL"
350
          export SHELL
351
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
352
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353
             test "X$echo_testing_string" = 'X\t' &&
354
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355
             test "X$echo_testing_string" = "X$echo_test_string"; then
356
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
357
        else
358
          # maybe with a smaller string...
359
          prev=:
360
 
361
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363
            then
364
              break
365
            fi
366
            prev="$cmd"
367
          done
368
 
369
          if test "$prev" != 'sed 50q "$0"'; then
370
            echo_test_string=`eval $prev`
371
            export echo_test_string
372
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373
          else
374
            # Oops.  We lost completely, so just stick with echo.
375
            ECHO=echo
376
          fi
377
        fi
378
      fi
379
    fi
380
  fi
381
fi
382
 
383
# Copy echo and quote the copy suitably for passing to libtool from
384
# the Makefile, instead of quoting the original, which is used later.
385
lt_ECHO=$ECHO
386
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388
fi
389
 
390
 
391
 
392
 
393
# Name of the host.
394
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395
# so uname gets run too.
396
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
 
398
exec 6>&1
399
 
400
#
401
# Initializations.
402
#
403
ac_default_prefix=/usr/local
404
ac_config_libobj_dir=.
405
cross_compiling=no
406
subdirs=
407
MFLAGS=
408
MAKEFLAGS=
409
SHELL=${CONFIG_SHELL-/bin/sh}
410
 
411
# Maximum number of lines to put in a shell here document.
412
# This variable seems obsolete.  It should probably be removed, and
413
# only ac_max_sed_lines should be used.
414
: ${ac_max_here_lines=38}
415
 
416
# Identity of this package.
417
PACKAGE_NAME=
418
PACKAGE_TARNAME=
419
PACKAGE_VERSION=
420
PACKAGE_STRING=
421
PACKAGE_BUGREPORT=
422
 
423
ac_unique_file="gprof.c"
424
# Factoring default headers for most tests.
425
ac_includes_default="\
426
#include 
427
#if HAVE_SYS_TYPES_H
428
# include 
429
#endif
430
#if HAVE_SYS_STAT_H
431
# include 
432
#endif
433
#if STDC_HEADERS
434
# include 
435
# include 
436
#else
437
# if HAVE_STDLIB_H
438
#  include 
439
# endif
440
#endif
441
#if HAVE_STRING_H
442
# if !STDC_HEADERS && HAVE_MEMORY_H
443
#  include 
444
# endif
445
# include 
446
#endif
447
#if HAVE_STRINGS_H
448
# include 
449
#endif
450
#if HAVE_INTTYPES_H
451
# include 
452
#else
453
# if HAVE_STDINT_H
454
#  include 
455
# endif
456
#endif
457
#if HAVE_UNISTD_H
458
# include 
459
#endif"
460
 
461
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE WARN_CFLAGS NO_WERROR datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462
ac_subst_files=''
463
 
464
# Initialize some variables set by options.
465
ac_init_help=
466
ac_init_version=false
467
# The variables have the same names as the options, with
468
# dashes changed to underlines.
469
cache_file=/dev/null
470
exec_prefix=NONE
471
no_create=
472
no_recursion=
473
prefix=NONE
474
program_prefix=NONE
475
program_suffix=NONE
476
program_transform_name=s,x,x,
477
silent=
478
site=
479
srcdir=
480
verbose=
481
x_includes=NONE
482
x_libraries=NONE
483
 
484
# Installation directory options.
485
# These are left unexpanded so users can "make install exec_prefix=/foo"
486
# and all the variables that are supposed to be based on exec_prefix
487
# by default will actually change.
488
# Use braces instead of parens because sh, perl, etc. also accept them.
489
bindir='${exec_prefix}/bin'
490
sbindir='${exec_prefix}/sbin'
491
libexecdir='${exec_prefix}/libexec'
492
datadir='${prefix}/share'
493
sysconfdir='${prefix}/etc'
494
sharedstatedir='${prefix}/com'
495
localstatedir='${prefix}/var'
496
libdir='${exec_prefix}/lib'
497
includedir='${prefix}/include'
498
oldincludedir='/usr/include'
499
infodir='${prefix}/info'
500
mandir='${prefix}/man'
501
 
502
ac_prev=
503
for ac_option
504
do
505
  # If the previous option needs an argument, assign it.
506
  if test -n "$ac_prev"; then
507
    eval "$ac_prev=\$ac_option"
508
    ac_prev=
509
    continue
510
  fi
511
 
512
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
 
514
  # Accept the important Cygnus configure options, so we can diagnose typos.
515
 
516
  case $ac_option in
517
 
518
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
519
    ac_prev=bindir ;;
520
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521
    bindir=$ac_optarg ;;
522
 
523
  -build | --build | --buil | --bui | --bu)
524
    ac_prev=build_alias ;;
525
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526
    build_alias=$ac_optarg ;;
527
 
528
  -cache-file | --cache-file | --cache-fil | --cache-fi \
529
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530
    ac_prev=cache_file ;;
531
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533
    cache_file=$ac_optarg ;;
534
 
535
  --config-cache | -C)
536
    cache_file=config.cache ;;
537
 
538
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539
    ac_prev=datadir ;;
540
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541
  | --da=*)
542
    datadir=$ac_optarg ;;
543
 
544
  -disable-* | --disable-*)
545
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546
    # Reject names that are not valid shell variable names.
547
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549
   { (exit 1); exit 1; }; }
550
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551
    eval "enable_$ac_feature=no" ;;
552
 
553
  -enable-* | --enable-*)
554
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555
    # Reject names that are not valid shell variable names.
556
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558
   { (exit 1); exit 1; }; }
559
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560
    case $ac_option in
561
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562
      *) ac_optarg=yes ;;
563
    esac
564
    eval "enable_$ac_feature='$ac_optarg'" ;;
565
 
566
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568
  | --exec | --exe | --ex)
569
    ac_prev=exec_prefix ;;
570
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572
  | --exec=* | --exe=* | --ex=*)
573
    exec_prefix=$ac_optarg ;;
574
 
575
  -gas | --gas | --ga | --g)
576
    # Obsolete; use --with-gas.
577
    with_gas=yes ;;
578
 
579
  -help | --help | --hel | --he | -h)
580
    ac_init_help=long ;;
581
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582
    ac_init_help=recursive ;;
583
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584
    ac_init_help=short ;;
585
 
586
  -host | --host | --hos | --ho)
587
    ac_prev=host_alias ;;
588
  -host=* | --host=* | --hos=* | --ho=*)
589
    host_alias=$ac_optarg ;;
590
 
591
  -includedir | --includedir | --includedi | --included | --include \
592
  | --includ | --inclu | --incl | --inc)
593
    ac_prev=includedir ;;
594
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595
  | --includ=* | --inclu=* | --incl=* | --inc=*)
596
    includedir=$ac_optarg ;;
597
 
598
  -infodir | --infodir | --infodi | --infod | --info | --inf)
599
    ac_prev=infodir ;;
600
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601
    infodir=$ac_optarg ;;
602
 
603
  -libdir | --libdir | --libdi | --libd)
604
    ac_prev=libdir ;;
605
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
606
    libdir=$ac_optarg ;;
607
 
608
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609
  | --libexe | --libex | --libe)
610
    ac_prev=libexecdir ;;
611
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612
  | --libexe=* | --libex=* | --libe=*)
613
    libexecdir=$ac_optarg ;;
614
 
615
  -localstatedir | --localstatedir | --localstatedi | --localstated \
616
  | --localstate | --localstat | --localsta | --localst \
617
  | --locals | --local | --loca | --loc | --lo)
618
    ac_prev=localstatedir ;;
619
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622
    localstatedir=$ac_optarg ;;
623
 
624
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625
    ac_prev=mandir ;;
626
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627
    mandir=$ac_optarg ;;
628
 
629
  -nfp | --nfp | --nf)
630
    # Obsolete; use --without-fp.
631
    with_fp=no ;;
632
 
633
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634
  | --no-cr | --no-c | -n)
635
    no_create=yes ;;
636
 
637
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639
    no_recursion=yes ;;
640
 
641
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643
  | --oldin | --oldi | --old | --ol | --o)
644
    ac_prev=oldincludedir ;;
645
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648
    oldincludedir=$ac_optarg ;;
649
 
650
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651
    ac_prev=prefix ;;
652
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653
    prefix=$ac_optarg ;;
654
 
655
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
656
  | --program-pre | --program-pr | --program-p)
657
    ac_prev=program_prefix ;;
658
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
659
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660
    program_prefix=$ac_optarg ;;
661
 
662
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
663
  | --program-suf | --program-su | --program-s)
664
    ac_prev=program_suffix ;;
665
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
666
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667
    program_suffix=$ac_optarg ;;
668
 
669
  -program-transform-name | --program-transform-name \
670
  | --program-transform-nam | --program-transform-na \
671
  | --program-transform-n | --program-transform- \
672
  | --program-transform | --program-transfor \
673
  | --program-transfo | --program-transf \
674
  | --program-trans | --program-tran \
675
  | --progr-tra | --program-tr | --program-t)
676
    ac_prev=program_transform_name ;;
677
  -program-transform-name=* | --program-transform-name=* \
678
  | --program-transform-nam=* | --program-transform-na=* \
679
  | --program-transform-n=* | --program-transform-=* \
680
  | --program-transform=* | --program-transfor=* \
681
  | --program-transfo=* | --program-transf=* \
682
  | --program-trans=* | --program-tran=* \
683
  | --progr-tra=* | --program-tr=* | --program-t=*)
684
    program_transform_name=$ac_optarg ;;
685
 
686
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687
  | -silent | --silent | --silen | --sile | --sil)
688
    silent=yes ;;
689
 
690
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691
    ac_prev=sbindir ;;
692
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693
  | --sbi=* | --sb=*)
694
    sbindir=$ac_optarg ;;
695
 
696
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
697
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698
  | --sharedst | --shareds | --shared | --share | --shar \
699
  | --sha | --sh)
700
    ac_prev=sharedstatedir ;;
701
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704
  | --sha=* | --sh=*)
705
    sharedstatedir=$ac_optarg ;;
706
 
707
  -site | --site | --sit)
708
    ac_prev=site ;;
709
  -site=* | --site=* | --sit=*)
710
    site=$ac_optarg ;;
711
 
712
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713
    ac_prev=srcdir ;;
714
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715
    srcdir=$ac_optarg ;;
716
 
717
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718
  | --syscon | --sysco | --sysc | --sys | --sy)
719
    ac_prev=sysconfdir ;;
720
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722
    sysconfdir=$ac_optarg ;;
723
 
724
  -target | --target | --targe | --targ | --tar | --ta | --t)
725
    ac_prev=target_alias ;;
726
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727
    target_alias=$ac_optarg ;;
728
 
729
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
730
    verbose=yes ;;
731
 
732
  -version | --version | --versio | --versi | --vers | -V)
733
    ac_init_version=: ;;
734
 
735
  -with-* | --with-*)
736
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737
    # Reject names that are not valid shell variable names.
738
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739
      { echo "$as_me: error: invalid package name: $ac_package" >&2
740
   { (exit 1); exit 1; }; }
741
    ac_package=`echo $ac_package| sed 's/-/_/g'`
742
    case $ac_option in
743
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744
      *) ac_optarg=yes ;;
745
    esac
746
    eval "with_$ac_package='$ac_optarg'" ;;
747
 
748
  -without-* | --without-*)
749
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750
    # Reject names that are not valid shell variable names.
751
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752
      { echo "$as_me: error: invalid package name: $ac_package" >&2
753
   { (exit 1); exit 1; }; }
754
    ac_package=`echo $ac_package | sed 's/-/_/g'`
755
    eval "with_$ac_package=no" ;;
756
 
757
  --x)
758
    # Obsolete; use --with-x.
759
    with_x=yes ;;
760
 
761
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762
  | --x-incl | --x-inc | --x-in | --x-i)
763
    ac_prev=x_includes ;;
764
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766
    x_includes=$ac_optarg ;;
767
 
768
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
769
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770
    ac_prev=x_libraries ;;
771
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773
    x_libraries=$ac_optarg ;;
774
 
775
  -*) { echo "$as_me: error: unrecognized option: $ac_option
776
Try \`$0 --help' for more information." >&2
777
   { (exit 1); exit 1; }; }
778
    ;;
779
 
780
  *=*)
781
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782
    # Reject names that are not valid shell variable names.
783
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785
   { (exit 1); exit 1; }; }
786
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787
    eval "$ac_envvar='$ac_optarg'"
788
    export $ac_envvar ;;
789
 
790
  *)
791
    # FIXME: should be removed in autoconf 3.0.
792
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796
    ;;
797
 
798
  esac
799
done
800
 
801
if test -n "$ac_prev"; then
802
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803
  { echo "$as_me: error: missing argument to $ac_option" >&2
804
   { (exit 1); exit 1; }; }
805
fi
806
 
807
# Be sure to have absolute paths.
808
for ac_var in exec_prefix prefix
809
do
810
  eval ac_val=$`echo $ac_var`
811
  case $ac_val in
812
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814
   { (exit 1); exit 1; }; };;
815
  esac
816
done
817
 
818
# Be sure to have absolute paths.
819
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820
              localstatedir libdir includedir oldincludedir infodir mandir
821
do
822
  eval ac_val=$`echo $ac_var`
823
  case $ac_val in
824
    [\\/$]* | ?:[\\/]* ) ;;
825
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826
   { (exit 1); exit 1; }; };;
827
  esac
828
done
829
 
830
# There might be people who depend on the old broken behavior: `$host'
831
# used to hold the argument of --host etc.
832
# FIXME: To remove some day.
833
build=$build_alias
834
host=$host_alias
835
target=$target_alias
836
 
837
# FIXME: To remove some day.
838
if test "x$host_alias" != x; then
839
  if test "x$build_alias" = x; then
840
    cross_compiling=maybe
841
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842
    If a cross compiler is detected then cross compile mode will be used." >&2
843
  elif test "x$build_alias" != "x$host_alias"; then
844
    cross_compiling=yes
845
  fi
846
fi
847
 
848
ac_tool_prefix=
849
test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
 
851
test "$silent" = yes && exec 6>/dev/null
852
 
853
 
854
# Find the source files, if location was not specified.
855
if test -z "$srcdir"; then
856
  ac_srcdir_defaulted=yes
857
  # Try the directory containing this script, then its parent.
858
  ac_confdir=`(dirname "$0") 2>/dev/null ||
859
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860
         X"$0" : 'X\(//\)[^/]' \| \
861
         X"$0" : 'X\(//\)$' \| \
862
         X"$0" : 'X\(/\)' \| \
863
         .     : '\(.\)' 2>/dev/null ||
864
echo X"$0" |
865
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867
          /^X\(\/\/\)$/{ s//\1/; q; }
868
          /^X\(\/\).*/{ s//\1/; q; }
869
          s/.*/./; q'`
870
  srcdir=$ac_confdir
871
  if test ! -r $srcdir/$ac_unique_file; then
872
    srcdir=..
873
  fi
874
else
875
  ac_srcdir_defaulted=no
876
fi
877
if test ! -r $srcdir/$ac_unique_file; then
878
  if test "$ac_srcdir_defaulted" = yes; then
879
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880
   { (exit 1); exit 1; }; }
881
  else
882
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883
   { (exit 1); exit 1; }; }
884
  fi
885
fi
886
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888
   { (exit 1); exit 1; }; }
889
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890
ac_env_build_alias_set=${build_alias+set}
891
ac_env_build_alias_value=$build_alias
892
ac_cv_env_build_alias_set=${build_alias+set}
893
ac_cv_env_build_alias_value=$build_alias
894
ac_env_host_alias_set=${host_alias+set}
895
ac_env_host_alias_value=$host_alias
896
ac_cv_env_host_alias_set=${host_alias+set}
897
ac_cv_env_host_alias_value=$host_alias
898
ac_env_target_alias_set=${target_alias+set}
899
ac_env_target_alias_value=$target_alias
900
ac_cv_env_target_alias_set=${target_alias+set}
901
ac_cv_env_target_alias_value=$target_alias
902
ac_env_CC_set=${CC+set}
903
ac_env_CC_value=$CC
904
ac_cv_env_CC_set=${CC+set}
905
ac_cv_env_CC_value=$CC
906
ac_env_CFLAGS_set=${CFLAGS+set}
907
ac_env_CFLAGS_value=$CFLAGS
908
ac_cv_env_CFLAGS_set=${CFLAGS+set}
909
ac_cv_env_CFLAGS_value=$CFLAGS
910
ac_env_LDFLAGS_set=${LDFLAGS+set}
911
ac_env_LDFLAGS_value=$LDFLAGS
912
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913
ac_cv_env_LDFLAGS_value=$LDFLAGS
914
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915
ac_env_CPPFLAGS_value=$CPPFLAGS
916
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918
ac_env_CPP_set=${CPP+set}
919
ac_env_CPP_value=$CPP
920
ac_cv_env_CPP_set=${CPP+set}
921
ac_cv_env_CPP_value=$CPP
922
 
923
#
924
# Report the --help message.
925
#
926
if test "$ac_init_help" = "long"; then
927
  # Omit some internal or obsolete options to make the list less imposing.
928
  # This message is too long to be a string in the A/UX 3.1 sh.
929
  cat <<_ACEOF
930
\`configure' configures this package to adapt to many kinds of systems.
931
 
932
Usage: $0 [OPTION]... [VAR=VALUE]...
933
 
934
To assign environment variables (e.g., CC, CFLAGS...), specify them as
935
VAR=VALUE.  See below for descriptions of some of the useful variables.
936
 
937
Defaults for the options are specified in brackets.
938
 
939
Configuration:
940
  -h, --help              display this help and exit
941
      --help=short        display options specific to this package
942
      --help=recursive    display the short help of all the included packages
943
  -V, --version           display version information and exit
944
  -q, --quiet, --silent   do not print \`checking...' messages
945
      --cache-file=FILE   cache test results in FILE [disabled]
946
  -C, --config-cache      alias for \`--cache-file=config.cache'
947
  -n, --no-create         do not create output files
948
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
949
 
950
_ACEOF
951
 
952
  cat <<_ACEOF
953
Installation directories:
954
  --prefix=PREFIX         install architecture-independent files in PREFIX
955
                          [$ac_default_prefix]
956
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
957
                          [PREFIX]
958
 
959
By default, \`make install' will install all the files in
960
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
961
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962
for instance \`--prefix=\$HOME'.
963
 
964
For better control, use the options below.
965
 
966
Fine tuning of the installation directories:
967
  --bindir=DIR           user executables [EPREFIX/bin]
968
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
969
  --libexecdir=DIR       program executables [EPREFIX/libexec]
970
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
971
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
972
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
973
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
974
  --libdir=DIR           object code libraries [EPREFIX/lib]
975
  --includedir=DIR       C header files [PREFIX/include]
976
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
977
  --infodir=DIR          info documentation [PREFIX/info]
978
  --mandir=DIR           man documentation [PREFIX/man]
979
_ACEOF
980
 
981
  cat <<\_ACEOF
982
 
983
Program names:
984
  --program-prefix=PREFIX            prepend PREFIX to installed program names
985
  --program-suffix=SUFFIX            append SUFFIX to installed program names
986
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
987
 
988
System types:
989
  --build=BUILD     configure for building on BUILD [guessed]
990
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
991
  --target=TARGET   configure for building compilers for TARGET [HOST]
992
_ACEOF
993
fi
994
 
995
if test -n "$ac_init_help"; then
996
 
997
  cat <<\_ACEOF
998
 
999
Optional Features:
1000
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1001
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1002
  --disable-dependency-tracking  speeds up one-time build
1003
  --enable-dependency-tracking   do not reject slow dependency extractors
1004
  --enable-shared[=PKGS]
1005
                          build shared libraries [default=yes]
1006
  --enable-static[=PKGS]
1007
                          build static libraries [default=yes]
1008
  --enable-fast-install[=PKGS]
1009
                          optimize for fast installation [default=yes]
1010
  --disable-libtool-lock  avoid locking (might break parallel builds)
1011
  --disable-nls           do not use Native Language Support
1012
  --enable-maintainer-mode  enable make rules and dependencies not useful
1013
                          (and sometimes confusing) to the casual installer
1014
  --enable-werror         treat compile warnings as errors
1015
  --enable-build-warnings enable build-time compiler warnings
1016
 
1017
Optional Packages:
1018
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1019
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1020
  --with-pic              try to use only PIC/non-PIC objects [default=use
1021
                          both]
1022
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1023
 
1024
Some influential environment variables:
1025
  CC          C compiler command
1026
  CFLAGS      C compiler flags
1027
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1028
              nonstandard directory 
1029
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I if you have
1030
              headers in a nonstandard directory 
1031
  CPP         C preprocessor
1032
 
1033
Use these variables to override the choices made by `configure' or to help
1034
it to find libraries and programs with nonstandard names/locations.
1035
 
1036
_ACEOF
1037
fi
1038
 
1039
if test "$ac_init_help" = "recursive"; then
1040
  # If there are subdirs, report their specific --help.
1041
  ac_popdir=`pwd`
1042
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1043
    test -d $ac_dir || continue
1044
    ac_builddir=.
1045
 
1046
if test "$ac_dir" != .; then
1047
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1048
  # A "../" for each directory in $ac_dir_suffix.
1049
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1050
else
1051
  ac_dir_suffix= ac_top_builddir=
1052
fi
1053
 
1054
case $srcdir in
1055
  .)  # No --srcdir option.  We are building in place.
1056
    ac_srcdir=.
1057
    if test -z "$ac_top_builddir"; then
1058
       ac_top_srcdir=.
1059
    else
1060
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1061
    fi ;;
1062
  [\\/]* | ?:[\\/]* )  # Absolute path.
1063
    ac_srcdir=$srcdir$ac_dir_suffix;
1064
    ac_top_srcdir=$srcdir ;;
1065
  *) # Relative path.
1066
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1067
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1068
esac
1069
 
1070
# Do not use `cd foo && pwd` to compute absolute paths, because
1071
# the directories may not exist.
1072
case `pwd` in
1073
.) ac_abs_builddir="$ac_dir";;
1074
*)
1075
  case "$ac_dir" in
1076
  .) ac_abs_builddir=`pwd`;;
1077
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1078
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1079
  esac;;
1080
esac
1081
case $ac_abs_builddir in
1082
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1083
*)
1084
  case ${ac_top_builddir}. in
1085
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1086
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1087
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1088
  esac;;
1089
esac
1090
case $ac_abs_builddir in
1091
.) ac_abs_srcdir=$ac_srcdir;;
1092
*)
1093
  case $ac_srcdir in
1094
  .) ac_abs_srcdir=$ac_abs_builddir;;
1095
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1096
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1097
  esac;;
1098
esac
1099
case $ac_abs_builddir in
1100
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1101
*)
1102
  case $ac_top_srcdir in
1103
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1104
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1105
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1106
  esac;;
1107
esac
1108
 
1109
    cd $ac_dir
1110
    # Check for guested configure; otherwise get Cygnus style configure.
1111
    if test -f $ac_srcdir/configure.gnu; then
1112
      echo
1113
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1114
    elif test -f $ac_srcdir/configure; then
1115
      echo
1116
      $SHELL $ac_srcdir/configure  --help=recursive
1117
    elif test -f $ac_srcdir/configure.ac ||
1118
           test -f $ac_srcdir/configure.in; then
1119
      echo
1120
      $ac_configure --help
1121
    else
1122
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1123
    fi
1124
    cd $ac_popdir
1125
  done
1126
fi
1127
 
1128
test -n "$ac_init_help" && exit 0
1129
if $ac_init_version; then
1130
  cat <<\_ACEOF
1131
 
1132
Copyright (C) 2003 Free Software Foundation, Inc.
1133
This configure script is free software; the Free Software Foundation
1134
gives unlimited permission to copy, distribute and modify it.
1135
_ACEOF
1136
  exit 0
1137
fi
1138
exec 5>config.log
1139
cat >&5 <<_ACEOF
1140
This file contains any messages produced by compilers while
1141
running configure, to aid debugging if configure makes a mistake.
1142
 
1143
It was created by $as_me, which was
1144
generated by GNU Autoconf 2.59.  Invocation command line was
1145
 
1146
  $ $0 $@
1147
 
1148
_ACEOF
1149
{
1150
cat <<_ASUNAME
1151
## --------- ##
1152
## Platform. ##
1153
## --------- ##
1154
 
1155
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1156
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1157
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1158
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1159
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1160
 
1161
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1162
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1163
 
1164
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1165
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1166
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1167
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1168
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1169
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1170
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1171
 
1172
_ASUNAME
1173
 
1174
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1175
for as_dir in $PATH
1176
do
1177
  IFS=$as_save_IFS
1178
  test -z "$as_dir" && as_dir=.
1179
  echo "PATH: $as_dir"
1180
done
1181
 
1182
} >&5
1183
 
1184
cat >&5 <<_ACEOF
1185
 
1186
 
1187
## ----------- ##
1188
## Core tests. ##
1189
## ----------- ##
1190
 
1191
_ACEOF
1192
 
1193
 
1194
# Keep a trace of the command line.
1195
# Strip out --no-create and --no-recursion so they do not pile up.
1196
# Strip out --silent because we don't want to record it for future runs.
1197
# Also quote any args containing shell meta-characters.
1198
# Make two passes to allow for proper duplicate-argument suppression.
1199
ac_configure_args=
1200
ac_configure_args0=
1201
ac_configure_args1=
1202
ac_sep=
1203
ac_must_keep_next=false
1204
for ac_pass in 1 2
1205
do
1206
  for ac_arg
1207
  do
1208
    case $ac_arg in
1209
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1210
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211
    | -silent | --silent | --silen | --sile | --sil)
1212
      continue ;;
1213
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1214
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1215
    esac
1216
    case $ac_pass in
1217
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1218
    2)
1219
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1220
      if test $ac_must_keep_next = true; then
1221
        ac_must_keep_next=false # Got value, back to normal.
1222
      else
1223
        case $ac_arg in
1224
          *=* | --config-cache | -C | -disable-* | --disable-* \
1225
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1226
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1227
          | -with-* | --with-* | -without-* | --without-* | --x)
1228
            case "$ac_configure_args0 " in
1229
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1230
            esac
1231
            ;;
1232
          -* ) ac_must_keep_next=true ;;
1233
        esac
1234
      fi
1235
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1236
      # Get rid of the leading space.
1237
      ac_sep=" "
1238
      ;;
1239
    esac
1240
  done
1241
done
1242
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1243
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1244
 
1245
# When interrupted or exit'd, cleanup temporary files, and complete
1246
# config.log.  We remove comments because anyway the quotes in there
1247
# would cause problems or look ugly.
1248
# WARNING: Be sure not to use single quotes in there, as some shells,
1249
# such as our DU 5.0 friend, will then `close' the trap.
1250
trap 'exit_status=$?
1251
  # Save into config.log some information that might help in debugging.
1252
  {
1253
    echo
1254
 
1255
    cat <<\_ASBOX
1256
## ---------------- ##
1257
## Cache variables. ##
1258
## ---------------- ##
1259
_ASBOX
1260
    echo
1261
    # The following way of writing the cache mishandles newlines in values,
1262
{
1263
  (set) 2>&1 |
1264
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1265
    *ac_space=\ *)
1266
      sed -n \
1267
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1268
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1269
      ;;
1270
    *)
1271
      sed -n \
1272
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1273
      ;;
1274
    esac;
1275
}
1276
    echo
1277
 
1278
    cat <<\_ASBOX
1279
## ----------------- ##
1280
## Output variables. ##
1281
## ----------------- ##
1282
_ASBOX
1283
    echo
1284
    for ac_var in $ac_subst_vars
1285
    do
1286
      eval ac_val=$`echo $ac_var`
1287
      echo "$ac_var='"'"'$ac_val'"'"'"
1288
    done | sort
1289
    echo
1290
 
1291
    if test -n "$ac_subst_files"; then
1292
      cat <<\_ASBOX
1293
## ------------- ##
1294
## Output files. ##
1295
## ------------- ##
1296
_ASBOX
1297
      echo
1298
      for ac_var in $ac_subst_files
1299
      do
1300
        eval ac_val=$`echo $ac_var`
1301
        echo "$ac_var='"'"'$ac_val'"'"'"
1302
      done | sort
1303
      echo
1304
    fi
1305
 
1306
    if test -s confdefs.h; then
1307
      cat <<\_ASBOX
1308
## ----------- ##
1309
## confdefs.h. ##
1310
## ----------- ##
1311
_ASBOX
1312
      echo
1313
      sed "/^$/d" confdefs.h | sort
1314
      echo
1315
    fi
1316
    test "$ac_signal" != 0 &&
1317
      echo "$as_me: caught signal $ac_signal"
1318
    echo "$as_me: exit $exit_status"
1319
  } >&5
1320
  rm -f core *.core &&
1321
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1322
    exit $exit_status
1323
     ' 0
1324
for ac_signal in 1 2 13 15; do
1325
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1326
done
1327
ac_signal=0
1328
 
1329
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1330
rm -rf conftest* confdefs.h
1331
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1332
echo >confdefs.h
1333
 
1334
# Predefined preprocessor variables.
1335
 
1336
cat >>confdefs.h <<_ACEOF
1337
#define PACKAGE_NAME "$PACKAGE_NAME"
1338
_ACEOF
1339
 
1340
 
1341
cat >>confdefs.h <<_ACEOF
1342
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1343
_ACEOF
1344
 
1345
 
1346
cat >>confdefs.h <<_ACEOF
1347
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1348
_ACEOF
1349
 
1350
 
1351
cat >>confdefs.h <<_ACEOF
1352
#define PACKAGE_STRING "$PACKAGE_STRING"
1353
_ACEOF
1354
 
1355
 
1356
cat >>confdefs.h <<_ACEOF
1357
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1358
_ACEOF
1359
 
1360
 
1361
# Let the site file select an alternate cache file if it wants to.
1362
# Prefer explicitly selected file to automatically selected ones.
1363
if test -z "$CONFIG_SITE"; then
1364
  if test "x$prefix" != xNONE; then
1365
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1366
  else
1367
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1368
  fi
1369
fi
1370
for ac_site_file in $CONFIG_SITE; do
1371
  if test -r "$ac_site_file"; then
1372
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1373
echo "$as_me: loading site script $ac_site_file" >&6;}
1374
    sed 's/^/| /' "$ac_site_file" >&5
1375
    . "$ac_site_file"
1376
  fi
1377
done
1378
 
1379
if test -r "$cache_file"; then
1380
  # Some versions of bash will fail to source /dev/null (special
1381
  # files actually), so we avoid doing that.
1382
  if test -f "$cache_file"; then
1383
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1384
echo "$as_me: loading cache $cache_file" >&6;}
1385
    case $cache_file in
1386
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1387
      *)                      . ./$cache_file;;
1388
    esac
1389
  fi
1390
else
1391
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1392
echo "$as_me: creating cache $cache_file" >&6;}
1393
  >$cache_file
1394
fi
1395
 
1396
# Check that the precious variables saved in the cache have kept the same
1397
# value.
1398
ac_cache_corrupted=false
1399
for ac_var in `(set) 2>&1 |
1400
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1401
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1402
  eval ac_new_set=\$ac_env_${ac_var}_set
1403
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1404
  eval ac_new_val="\$ac_env_${ac_var}_value"
1405
  case $ac_old_set,$ac_new_set in
1406
    set,)
1407
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1408
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1409
      ac_cache_corrupted=: ;;
1410
    ,set)
1411
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1412
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1413
      ac_cache_corrupted=: ;;
1414
    ,);;
1415
    *)
1416
      if test "x$ac_old_val" != "x$ac_new_val"; then
1417
        # differences in whitespace do not lead to failure.
1418
        ac_old_val_w=`echo x $ac_old_val`
1419
        ac_new_val_w=`echo x $ac_new_val`
1420
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
1421
          { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423
          ac_cache_corrupted=:
1424
        else
1425
          { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1426
echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1427
          eval $ac_var=\$ac_old_val
1428
        fi
1429
        { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1430
echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1431
        { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1432
echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1433
      fi;;
1434
  esac
1435
  # Pass precious variables to config.status.
1436
  if test "$ac_new_set" = set; then
1437
    case $ac_new_val in
1438
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1439
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1440
    *) ac_arg=$ac_var=$ac_new_val ;;
1441
    esac
1442
    case " $ac_configure_args " in
1443
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1444
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1445
    esac
1446
  fi
1447
done
1448
if $ac_cache_corrupted; then
1449
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1450
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1451
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1452
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1453
   { (exit 1); exit 1; }; }
1454
fi
1455
 
1456
ac_ext=c
1457
ac_cpp='$CPP $CPPFLAGS'
1458
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1459
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1460
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1461
 
1462
 
1463
 
1464
 
1465
 
1466
 
1467
 
1468
 
1469
 
1470
 
1471
 
1472
 
1473
 
1474
 
1475
 
1476
 
1477
 
1478
 
1479
 
1480
 
1481
 
1482
ac_aux_dir=
1483
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1484
  if test -f $ac_dir/install-sh; then
1485
    ac_aux_dir=$ac_dir
1486
    ac_install_sh="$ac_aux_dir/install-sh -c"
1487
    break
1488
  elif test -f $ac_dir/install.sh; then
1489
    ac_aux_dir=$ac_dir
1490
    ac_install_sh="$ac_aux_dir/install.sh -c"
1491
    break
1492
  elif test -f $ac_dir/shtool; then
1493
    ac_aux_dir=$ac_dir
1494
    ac_install_sh="$ac_aux_dir/shtool install -c"
1495
    break
1496
  fi
1497
done
1498
if test -z "$ac_aux_dir"; then
1499
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1500
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1501
   { (exit 1); exit 1; }; }
1502
fi
1503
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1504
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1505
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1506
 
1507
# Make sure we can run config.sub.
1508
$ac_config_sub sun4 >/dev/null 2>&1 ||
1509
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1510
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1511
   { (exit 1); exit 1; }; }
1512
 
1513
echo "$as_me:$LINENO: checking build system type" >&5
1514
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1515
if test "${ac_cv_build+set}" = set; then
1516
  echo $ECHO_N "(cached) $ECHO_C" >&6
1517
else
1518
  ac_cv_build_alias=$build_alias
1519
test -z "$ac_cv_build_alias" &&
1520
  ac_cv_build_alias=`$ac_config_guess`
1521
test -z "$ac_cv_build_alias" &&
1522
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1523
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1524
   { (exit 1); exit 1; }; }
1525
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1526
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1527
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1528
   { (exit 1); exit 1; }; }
1529
 
1530
fi
1531
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1532
echo "${ECHO_T}$ac_cv_build" >&6
1533
build=$ac_cv_build
1534
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1535
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1536
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1537
 
1538
 
1539
echo "$as_me:$LINENO: checking host system type" >&5
1540
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1541
if test "${ac_cv_host+set}" = set; then
1542
  echo $ECHO_N "(cached) $ECHO_C" >&6
1543
else
1544
  ac_cv_host_alias=$host_alias
1545
test -z "$ac_cv_host_alias" &&
1546
  ac_cv_host_alias=$ac_cv_build_alias
1547
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1548
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1549
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1550
   { (exit 1); exit 1; }; }
1551
 
1552
fi
1553
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1554
echo "${ECHO_T}$ac_cv_host" >&6
1555
host=$ac_cv_host
1556
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1557
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1558
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1559
 
1560
 
1561
echo "$as_me:$LINENO: checking target system type" >&5
1562
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1563
if test "${ac_cv_target+set}" = set; then
1564
  echo $ECHO_N "(cached) $ECHO_C" >&6
1565
else
1566
  ac_cv_target_alias=$target_alias
1567
test "x$ac_cv_target_alias" = "x" &&
1568
  ac_cv_target_alias=$ac_cv_host_alias
1569
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1570
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1571
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1572
   { (exit 1); exit 1; }; }
1573
 
1574
fi
1575
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1576
echo "${ECHO_T}$ac_cv_target" >&6
1577
target=$ac_cv_target
1578
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1579
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1580
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1581
 
1582
 
1583
# The aliases save the names the user supplied, while $host etc.
1584
# will get canonicalized.
1585
test -n "$target_alias" &&
1586
  test "$program_prefix$program_suffix$program_transform_name" = \
1587
    NONENONEs,x,x, &&
1588
  program_prefix=${target_alias}-
1589
ac_ext=c
1590
ac_cpp='$CPP $CPPFLAGS'
1591
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1592
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1593
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1594
if test -n "$ac_tool_prefix"; then
1595
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1596
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1597
echo "$as_me:$LINENO: checking for $ac_word" >&5
1598
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599
if test "${ac_cv_prog_CC+set}" = set; then
1600
  echo $ECHO_N "(cached) $ECHO_C" >&6
1601
else
1602
  if test -n "$CC"; then
1603
  ac_cv_prog_CC="$CC" # Let the user override the test.
1604
else
1605
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606
for as_dir in $PATH
1607
do
1608
  IFS=$as_save_IFS
1609
  test -z "$as_dir" && as_dir=.
1610
  for ac_exec_ext in '' $ac_executable_extensions; do
1611
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1613
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614
    break 2
1615
  fi
1616
done
1617
done
1618
 
1619
fi
1620
fi
1621
CC=$ac_cv_prog_CC
1622
if test -n "$CC"; then
1623
  echo "$as_me:$LINENO: result: $CC" >&5
1624
echo "${ECHO_T}$CC" >&6
1625
else
1626
  echo "$as_me:$LINENO: result: no" >&5
1627
echo "${ECHO_T}no" >&6
1628
fi
1629
 
1630
fi
1631
if test -z "$ac_cv_prog_CC"; then
1632
  ac_ct_CC=$CC
1633
  # Extract the first word of "gcc", so it can be a program name with args.
1634
set dummy gcc; ac_word=$2
1635
echo "$as_me:$LINENO: checking for $ac_word" >&5
1636
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1638
  echo $ECHO_N "(cached) $ECHO_C" >&6
1639
else
1640
  if test -n "$ac_ct_CC"; then
1641
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1642
else
1643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644
for as_dir in $PATH
1645
do
1646
  IFS=$as_save_IFS
1647
  test -z "$as_dir" && as_dir=.
1648
  for ac_exec_ext in '' $ac_executable_extensions; do
1649
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650
    ac_cv_prog_ac_ct_CC="gcc"
1651
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652
    break 2
1653
  fi
1654
done
1655
done
1656
 
1657
fi
1658
fi
1659
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1660
if test -n "$ac_ct_CC"; then
1661
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1662
echo "${ECHO_T}$ac_ct_CC" >&6
1663
else
1664
  echo "$as_me:$LINENO: result: no" >&5
1665
echo "${ECHO_T}no" >&6
1666
fi
1667
 
1668
  CC=$ac_ct_CC
1669
else
1670
  CC="$ac_cv_prog_CC"
1671
fi
1672
 
1673
if test -z "$CC"; then
1674
  if test -n "$ac_tool_prefix"; then
1675
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1676
set dummy ${ac_tool_prefix}cc; ac_word=$2
1677
echo "$as_me:$LINENO: checking for $ac_word" >&5
1678
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679
if test "${ac_cv_prog_CC+set}" = set; then
1680
  echo $ECHO_N "(cached) $ECHO_C" >&6
1681
else
1682
  if test -n "$CC"; then
1683
  ac_cv_prog_CC="$CC" # Let the user override the test.
1684
else
1685
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686
for as_dir in $PATH
1687
do
1688
  IFS=$as_save_IFS
1689
  test -z "$as_dir" && as_dir=.
1690
  for ac_exec_ext in '' $ac_executable_extensions; do
1691
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1693
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694
    break 2
1695
  fi
1696
done
1697
done
1698
 
1699
fi
1700
fi
1701
CC=$ac_cv_prog_CC
1702
if test -n "$CC"; then
1703
  echo "$as_me:$LINENO: result: $CC" >&5
1704
echo "${ECHO_T}$CC" >&6
1705
else
1706
  echo "$as_me:$LINENO: result: no" >&5
1707
echo "${ECHO_T}no" >&6
1708
fi
1709
 
1710
fi
1711
if test -z "$ac_cv_prog_CC"; then
1712
  ac_ct_CC=$CC
1713
  # Extract the first word of "cc", so it can be a program name with args.
1714
set dummy cc; ac_word=$2
1715
echo "$as_me:$LINENO: checking for $ac_word" >&5
1716
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1717
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1718
  echo $ECHO_N "(cached) $ECHO_C" >&6
1719
else
1720
  if test -n "$ac_ct_CC"; then
1721
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1722
else
1723
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724
for as_dir in $PATH
1725
do
1726
  IFS=$as_save_IFS
1727
  test -z "$as_dir" && as_dir=.
1728
  for ac_exec_ext in '' $ac_executable_extensions; do
1729
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1730
    ac_cv_prog_ac_ct_CC="cc"
1731
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732
    break 2
1733
  fi
1734
done
1735
done
1736
 
1737
fi
1738
fi
1739
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1740
if test -n "$ac_ct_CC"; then
1741
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1742
echo "${ECHO_T}$ac_ct_CC" >&6
1743
else
1744
  echo "$as_me:$LINENO: result: no" >&5
1745
echo "${ECHO_T}no" >&6
1746
fi
1747
 
1748
  CC=$ac_ct_CC
1749
else
1750
  CC="$ac_cv_prog_CC"
1751
fi
1752
 
1753
fi
1754
if test -z "$CC"; then
1755
  # Extract the first word of "cc", so it can be a program name with args.
1756
set dummy cc; ac_word=$2
1757
echo "$as_me:$LINENO: checking for $ac_word" >&5
1758
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759
if test "${ac_cv_prog_CC+set}" = set; then
1760
  echo $ECHO_N "(cached) $ECHO_C" >&6
1761
else
1762
  if test -n "$CC"; then
1763
  ac_cv_prog_CC="$CC" # Let the user override the test.
1764
else
1765
  ac_prog_rejected=no
1766
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767
for as_dir in $PATH
1768
do
1769
  IFS=$as_save_IFS
1770
  test -z "$as_dir" && as_dir=.
1771
  for ac_exec_ext in '' $ac_executable_extensions; do
1772
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1774
       ac_prog_rejected=yes
1775
       continue
1776
     fi
1777
    ac_cv_prog_CC="cc"
1778
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779
    break 2
1780
  fi
1781
done
1782
done
1783
 
1784
if test $ac_prog_rejected = yes; then
1785
  # We found a bogon in the path, so make sure we never use it.
1786
  set dummy $ac_cv_prog_CC
1787
  shift
1788
  if test $# != 0; then
1789
    # We chose a different compiler from the bogus one.
1790
    # However, it has the same basename, so the bogon will be chosen
1791
    # first if we set CC to just the basename; use the full file name.
1792
    shift
1793
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1794
  fi
1795
fi
1796
fi
1797
fi
1798
CC=$ac_cv_prog_CC
1799
if test -n "$CC"; then
1800
  echo "$as_me:$LINENO: result: $CC" >&5
1801
echo "${ECHO_T}$CC" >&6
1802
else
1803
  echo "$as_me:$LINENO: result: no" >&5
1804
echo "${ECHO_T}no" >&6
1805
fi
1806
 
1807
fi
1808
if test -z "$CC"; then
1809
  if test -n "$ac_tool_prefix"; then
1810
  for ac_prog in cl
1811
  do
1812
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1813
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1814
echo "$as_me:$LINENO: checking for $ac_word" >&5
1815
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816
if test "${ac_cv_prog_CC+set}" = set; then
1817
  echo $ECHO_N "(cached) $ECHO_C" >&6
1818
else
1819
  if test -n "$CC"; then
1820
  ac_cv_prog_CC="$CC" # Let the user override the test.
1821
else
1822
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823
for as_dir in $PATH
1824
do
1825
  IFS=$as_save_IFS
1826
  test -z "$as_dir" && as_dir=.
1827
  for ac_exec_ext in '' $ac_executable_extensions; do
1828
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1830
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831
    break 2
1832
  fi
1833
done
1834
done
1835
 
1836
fi
1837
fi
1838
CC=$ac_cv_prog_CC
1839
if test -n "$CC"; then
1840
  echo "$as_me:$LINENO: result: $CC" >&5
1841
echo "${ECHO_T}$CC" >&6
1842
else
1843
  echo "$as_me:$LINENO: result: no" >&5
1844
echo "${ECHO_T}no" >&6
1845
fi
1846
 
1847
    test -n "$CC" && break
1848
  done
1849
fi
1850
if test -z "$CC"; then
1851
  ac_ct_CC=$CC
1852
  for ac_prog in cl
1853
do
1854
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1855
set dummy $ac_prog; ac_word=$2
1856
echo "$as_me:$LINENO: checking for $ac_word" >&5
1857
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859
  echo $ECHO_N "(cached) $ECHO_C" >&6
1860
else
1861
  if test -n "$ac_ct_CC"; then
1862
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1863
else
1864
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865
for as_dir in $PATH
1866
do
1867
  IFS=$as_save_IFS
1868
  test -z "$as_dir" && as_dir=.
1869
  for ac_exec_ext in '' $ac_executable_extensions; do
1870
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871
    ac_cv_prog_ac_ct_CC="$ac_prog"
1872
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873
    break 2
1874
  fi
1875
done
1876
done
1877
 
1878
fi
1879
fi
1880
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881
if test -n "$ac_ct_CC"; then
1882
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883
echo "${ECHO_T}$ac_ct_CC" >&6
1884
else
1885
  echo "$as_me:$LINENO: result: no" >&5
1886
echo "${ECHO_T}no" >&6
1887
fi
1888
 
1889
  test -n "$ac_ct_CC" && break
1890
done
1891
 
1892
  CC=$ac_ct_CC
1893
fi
1894
 
1895
fi
1896
 
1897
 
1898
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1899
See \`config.log' for more details." >&5
1900
echo "$as_me: error: no acceptable C compiler found in \$PATH
1901
See \`config.log' for more details." >&2;}
1902
   { (exit 1); exit 1; }; }
1903
 
1904
# Provide some information about the compiler.
1905
echo "$as_me:$LINENO:" \
1906
     "checking for C compiler version" >&5
1907
ac_compiler=`set X $ac_compile; echo $2`
1908
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
1909
  (eval $ac_compiler --version &5) 2>&5
1910
  ac_status=$?
1911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912
  (exit $ac_status); }
1913
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
1914
  (eval $ac_compiler -v &5) 2>&5
1915
  ac_status=$?
1916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917
  (exit $ac_status); }
1918
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
1919
  (eval $ac_compiler -V &5) 2>&5
1920
  ac_status=$?
1921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922
  (exit $ac_status); }
1923
 
1924
cat >conftest.$ac_ext <<_ACEOF
1925
/* confdefs.h.  */
1926
_ACEOF
1927
cat confdefs.h >>conftest.$ac_ext
1928
cat >>conftest.$ac_ext <<_ACEOF
1929
/* end confdefs.h.  */
1930
 
1931
int
1932
main ()
1933
{
1934
 
1935
  ;
1936
  return 0;
1937
}
1938
_ACEOF
1939
ac_clean_files_save=$ac_clean_files
1940
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1941
# Try to create an executable without -o first, disregard a.out.
1942
# It will help us diagnose broken compilers, and finding out an intuition
1943
# of exeext.
1944
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1945
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1946
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1947
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1948
  (eval $ac_link_default) 2>&5
1949
  ac_status=$?
1950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951
  (exit $ac_status); }; then
1952
  # Find the output, starting from the most likely.  This scheme is
1953
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1954
# resort.
1955
 
1956
# Be careful to initialize this variable, since it used to be cached.
1957
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1958
ac_cv_exeext=
1959
# b.out is created by i960 compilers.
1960
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1961
do
1962
  test -f "$ac_file" || continue
1963
  case $ac_file in
1964
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1965
        ;;
1966
    conftest.$ac_ext )
1967
        # This is the source file.
1968
        ;;
1969
    [ab].out )
1970
        # We found the default executable, but exeext='' is most
1971
        # certainly right.
1972
        break;;
1973
    *.* )
1974
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1975
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1976
        # but it would be cool to find out if it's true.  Does anybody
1977
        # maintain Libtool? --akim.
1978
        export ac_cv_exeext
1979
        break;;
1980
    * )
1981
        break;;
1982
  esac
1983
done
1984
else
1985
  echo "$as_me: failed program was:" >&5
1986
sed 's/^/| /' conftest.$ac_ext >&5
1987
 
1988
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1989
See \`config.log' for more details." >&5
1990
echo "$as_me: error: C compiler cannot create executables
1991
See \`config.log' for more details." >&2;}
1992
   { (exit 77); exit 77; }; }
1993
fi
1994
 
1995
ac_exeext=$ac_cv_exeext
1996
echo "$as_me:$LINENO: result: $ac_file" >&5
1997
echo "${ECHO_T}$ac_file" >&6
1998
 
1999
# Check the compiler produces executables we can run.  If not, either
2000
# the compiler is broken, or we cross compile.
2001
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2002
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2003
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2004
# If not cross compiling, check that we can run a simple program.
2005
if test "$cross_compiling" != yes; then
2006
  if { ac_try='./$ac_file'
2007
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008
  (eval $ac_try) 2>&5
2009
  ac_status=$?
2010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011
  (exit $ac_status); }; }; then
2012
    cross_compiling=no
2013
  else
2014
    if test "$cross_compiling" = maybe; then
2015
        cross_compiling=yes
2016
    else
2017
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2018
If you meant to cross compile, use \`--host'.
2019
See \`config.log' for more details." >&5
2020
echo "$as_me: error: cannot run C compiled programs.
2021
If you meant to cross compile, use \`--host'.
2022
See \`config.log' for more details." >&2;}
2023
   { (exit 1); exit 1; }; }
2024
    fi
2025
  fi
2026
fi
2027
echo "$as_me:$LINENO: result: yes" >&5
2028
echo "${ECHO_T}yes" >&6
2029
 
2030
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2031
ac_clean_files=$ac_clean_files_save
2032
# Check the compiler produces executables we can run.  If not, either
2033
# the compiler is broken, or we cross compile.
2034
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2035
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2036
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2037
echo "${ECHO_T}$cross_compiling" >&6
2038
 
2039
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2040
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2041
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2042
  (eval $ac_link) 2>&5
2043
  ac_status=$?
2044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045
  (exit $ac_status); }; then
2046
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2047
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2048
# work properly (i.e., refer to `conftest.exe'), while it won't with
2049
# `rm'.
2050
for ac_file in conftest.exe conftest conftest.*; do
2051
  test -f "$ac_file" || continue
2052
  case $ac_file in
2053
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2054
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2055
          export ac_cv_exeext
2056
          break;;
2057
    * ) break;;
2058
  esac
2059
done
2060
else
2061
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2062
See \`config.log' for more details." >&5
2063
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2064
See \`config.log' for more details." >&2;}
2065
   { (exit 1); exit 1; }; }
2066
fi
2067
 
2068
rm -f conftest$ac_cv_exeext
2069
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2070
echo "${ECHO_T}$ac_cv_exeext" >&6
2071
 
2072
rm -f conftest.$ac_ext
2073
EXEEXT=$ac_cv_exeext
2074
ac_exeext=$EXEEXT
2075
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2076
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2077
if test "${ac_cv_objext+set}" = set; then
2078
  echo $ECHO_N "(cached) $ECHO_C" >&6
2079
else
2080
  cat >conftest.$ac_ext <<_ACEOF
2081
/* confdefs.h.  */
2082
_ACEOF
2083
cat confdefs.h >>conftest.$ac_ext
2084
cat >>conftest.$ac_ext <<_ACEOF
2085
/* end confdefs.h.  */
2086
 
2087
int
2088
main ()
2089
{
2090
 
2091
  ;
2092
  return 0;
2093
}
2094
_ACEOF
2095
rm -f conftest.o conftest.obj
2096
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2097
  (eval $ac_compile) 2>&5
2098
  ac_status=$?
2099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100
  (exit $ac_status); }; then
2101
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2102
  case $ac_file in
2103
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2104
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2105
       break;;
2106
  esac
2107
done
2108
else
2109
  echo "$as_me: failed program was:" >&5
2110
sed 's/^/| /' conftest.$ac_ext >&5
2111
 
2112
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2113
See \`config.log' for more details." >&5
2114
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2115
See \`config.log' for more details." >&2;}
2116
   { (exit 1); exit 1; }; }
2117
fi
2118
 
2119
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2120
fi
2121
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2122
echo "${ECHO_T}$ac_cv_objext" >&6
2123
OBJEXT=$ac_cv_objext
2124
ac_objext=$OBJEXT
2125
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2126
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2127
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2128
  echo $ECHO_N "(cached) $ECHO_C" >&6
2129
else
2130
  cat >conftest.$ac_ext <<_ACEOF
2131
/* confdefs.h.  */
2132
_ACEOF
2133
cat confdefs.h >>conftest.$ac_ext
2134
cat >>conftest.$ac_ext <<_ACEOF
2135
/* end confdefs.h.  */
2136
 
2137
int
2138
main ()
2139
{
2140
#ifndef __GNUC__
2141
       choke me
2142
#endif
2143
 
2144
  ;
2145
  return 0;
2146
}
2147
_ACEOF
2148
rm -f conftest.$ac_objext
2149
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150
  (eval $ac_compile) 2>conftest.er1
2151
  ac_status=$?
2152
  grep -v '^ *+' conftest.er1 >conftest.err
2153
  rm -f conftest.er1
2154
  cat conftest.err >&5
2155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156
  (exit $ac_status); } &&
2157
         { ac_try='test -z "$ac_c_werror_flag"
2158
                         || test ! -s conftest.err'
2159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160
  (eval $ac_try) 2>&5
2161
  ac_status=$?
2162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163
  (exit $ac_status); }; } &&
2164
         { ac_try='test -s conftest.$ac_objext'
2165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166
  (eval $ac_try) 2>&5
2167
  ac_status=$?
2168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169
  (exit $ac_status); }; }; then
2170
  ac_compiler_gnu=yes
2171
else
2172
  echo "$as_me: failed program was:" >&5
2173
sed 's/^/| /' conftest.$ac_ext >&5
2174
 
2175
ac_compiler_gnu=no
2176
fi
2177
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2178
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2179
 
2180
fi
2181
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2182
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2183
GCC=`test $ac_compiler_gnu = yes && echo yes`
2184
ac_test_CFLAGS=${CFLAGS+set}
2185
ac_save_CFLAGS=$CFLAGS
2186
CFLAGS="-g"
2187
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2188
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2189
if test "${ac_cv_prog_cc_g+set}" = set; then
2190
  echo $ECHO_N "(cached) $ECHO_C" >&6
2191
else
2192
  cat >conftest.$ac_ext <<_ACEOF
2193
/* confdefs.h.  */
2194
_ACEOF
2195
cat confdefs.h >>conftest.$ac_ext
2196
cat >>conftest.$ac_ext <<_ACEOF
2197
/* end confdefs.h.  */
2198
 
2199
int
2200
main ()
2201
{
2202
 
2203
  ;
2204
  return 0;
2205
}
2206
_ACEOF
2207
rm -f conftest.$ac_objext
2208
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209
  (eval $ac_compile) 2>conftest.er1
2210
  ac_status=$?
2211
  grep -v '^ *+' conftest.er1 >conftest.err
2212
  rm -f conftest.er1
2213
  cat conftest.err >&5
2214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215
  (exit $ac_status); } &&
2216
         { ac_try='test -z "$ac_c_werror_flag"
2217
                         || test ! -s conftest.err'
2218
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219
  (eval $ac_try) 2>&5
2220
  ac_status=$?
2221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222
  (exit $ac_status); }; } &&
2223
         { ac_try='test -s conftest.$ac_objext'
2224
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225
  (eval $ac_try) 2>&5
2226
  ac_status=$?
2227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228
  (exit $ac_status); }; }; then
2229
  ac_cv_prog_cc_g=yes
2230
else
2231
  echo "$as_me: failed program was:" >&5
2232
sed 's/^/| /' conftest.$ac_ext >&5
2233
 
2234
ac_cv_prog_cc_g=no
2235
fi
2236
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2237
fi
2238
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2239
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2240
if test "$ac_test_CFLAGS" = set; then
2241
  CFLAGS=$ac_save_CFLAGS
2242
elif test $ac_cv_prog_cc_g = yes; then
2243
  if test "$GCC" = yes; then
2244
    CFLAGS="-g -O2"
2245
  else
2246
    CFLAGS="-g"
2247
  fi
2248
else
2249
  if test "$GCC" = yes; then
2250
    CFLAGS="-O2"
2251
  else
2252
    CFLAGS=
2253
  fi
2254
fi
2255
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2256
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2257
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2258
  echo $ECHO_N "(cached) $ECHO_C" >&6
2259
else
2260
  ac_cv_prog_cc_stdc=no
2261
ac_save_CC=$CC
2262
cat >conftest.$ac_ext <<_ACEOF
2263
/* confdefs.h.  */
2264
_ACEOF
2265
cat confdefs.h >>conftest.$ac_ext
2266
cat >>conftest.$ac_ext <<_ACEOF
2267
/* end confdefs.h.  */
2268
#include 
2269
#include 
2270
#include 
2271
#include 
2272
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2273
struct buf { int x; };
2274
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2275
static char *e (p, i)
2276
     char **p;
2277
     int i;
2278
{
2279
  return p[i];
2280
}
2281
static char *f (char * (*g) (char **, int), char **p, ...)
2282
{
2283
  char *s;
2284
  va_list v;
2285
  va_start (v,p);
2286
  s = g (p, va_arg (v,int));
2287
  va_end (v);
2288
  return s;
2289
}
2290
 
2291
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2292
   function prototypes and stuff, but not '\xHH' hex character constants.
2293
   These don't provoke an error unfortunately, instead are silently treated
2294
   as 'x'.  The following induces an error, until -std1 is added to get
2295
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2296
   array size at least.  It's necessary to write '\x00'==0 to get something
2297
   that's true only with -std1.  */
2298
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2299
 
2300
int test (int i, double x);
2301
struct s1 {int (*f) (int a);};
2302
struct s2 {int (*f) (double a);};
2303
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2304
int argc;
2305
char **argv;
2306
int
2307
main ()
2308
{
2309
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2310
  ;
2311
  return 0;
2312
}
2313
_ACEOF
2314
# Don't try gcc -ansi; that turns off useful extensions and
2315
# breaks some systems' header files.
2316
# AIX                   -qlanglvl=ansi
2317
# Ultrix and OSF/1      -std1
2318
# HP-UX 10.20 and later -Ae
2319
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2320
# SVR4                  -Xc -D__EXTENSIONS__
2321
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2322
do
2323
  CC="$ac_save_CC $ac_arg"
2324
  rm -f conftest.$ac_objext
2325
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326
  (eval $ac_compile) 2>conftest.er1
2327
  ac_status=$?
2328
  grep -v '^ *+' conftest.er1 >conftest.err
2329
  rm -f conftest.er1
2330
  cat conftest.err >&5
2331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332
  (exit $ac_status); } &&
2333
         { ac_try='test -z "$ac_c_werror_flag"
2334
                         || test ! -s conftest.err'
2335
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336
  (eval $ac_try) 2>&5
2337
  ac_status=$?
2338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339
  (exit $ac_status); }; } &&
2340
         { ac_try='test -s conftest.$ac_objext'
2341
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342
  (eval $ac_try) 2>&5
2343
  ac_status=$?
2344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345
  (exit $ac_status); }; }; then
2346
  ac_cv_prog_cc_stdc=$ac_arg
2347
break
2348
else
2349
  echo "$as_me: failed program was:" >&5
2350
sed 's/^/| /' conftest.$ac_ext >&5
2351
 
2352
fi
2353
rm -f conftest.err conftest.$ac_objext
2354
done
2355
rm -f conftest.$ac_ext conftest.$ac_objext
2356
CC=$ac_save_CC
2357
 
2358
fi
2359
 
2360
case "x$ac_cv_prog_cc_stdc" in
2361
  x|xno)
2362
    echo "$as_me:$LINENO: result: none needed" >&5
2363
echo "${ECHO_T}none needed" >&6 ;;
2364
  *)
2365
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2366
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2367
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2368
esac
2369
 
2370
# Some people use a C++ compiler to compile C.  Since we use `exit',
2371
# in C++ we need to declare it.  In case someone uses the same compiler
2372
# for both compiling C and C++ we need to have the C++ compiler decide
2373
# the declaration of exit, since it's the most demanding environment.
2374
cat >conftest.$ac_ext <<_ACEOF
2375
#ifndef __cplusplus
2376
  choke me
2377
#endif
2378
_ACEOF
2379
rm -f conftest.$ac_objext
2380
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381
  (eval $ac_compile) 2>conftest.er1
2382
  ac_status=$?
2383
  grep -v '^ *+' conftest.er1 >conftest.err
2384
  rm -f conftest.er1
2385
  cat conftest.err >&5
2386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387
  (exit $ac_status); } &&
2388
         { ac_try='test -z "$ac_c_werror_flag"
2389
                         || test ! -s conftest.err'
2390
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391
  (eval $ac_try) 2>&5
2392
  ac_status=$?
2393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394
  (exit $ac_status); }; } &&
2395
         { ac_try='test -s conftest.$ac_objext'
2396
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397
  (eval $ac_try) 2>&5
2398
  ac_status=$?
2399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400
  (exit $ac_status); }; }; then
2401
  for ac_declaration in \
2402
   '' \
2403
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2404
   'extern "C" void std::exit (int); using std::exit;' \
2405
   'extern "C" void exit (int) throw ();' \
2406
   'extern "C" void exit (int);' \
2407
   'void exit (int);'
2408
do
2409
  cat >conftest.$ac_ext <<_ACEOF
2410
/* confdefs.h.  */
2411
_ACEOF
2412
cat confdefs.h >>conftest.$ac_ext
2413
cat >>conftest.$ac_ext <<_ACEOF
2414
/* end confdefs.h.  */
2415
$ac_declaration
2416
#include 
2417
int
2418
main ()
2419
{
2420
exit (42);
2421
  ;
2422
  return 0;
2423
}
2424
_ACEOF
2425
rm -f conftest.$ac_objext
2426
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427
  (eval $ac_compile) 2>conftest.er1
2428
  ac_status=$?
2429
  grep -v '^ *+' conftest.er1 >conftest.err
2430
  rm -f conftest.er1
2431
  cat conftest.err >&5
2432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433
  (exit $ac_status); } &&
2434
         { ac_try='test -z "$ac_c_werror_flag"
2435
                         || test ! -s conftest.err'
2436
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437
  (eval $ac_try) 2>&5
2438
  ac_status=$?
2439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440
  (exit $ac_status); }; } &&
2441
         { ac_try='test -s conftest.$ac_objext'
2442
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443
  (eval $ac_try) 2>&5
2444
  ac_status=$?
2445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446
  (exit $ac_status); }; }; then
2447
  :
2448
else
2449
  echo "$as_me: failed program was:" >&5
2450
sed 's/^/| /' conftest.$ac_ext >&5
2451
 
2452
continue
2453
fi
2454
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2455
  cat >conftest.$ac_ext <<_ACEOF
2456
/* confdefs.h.  */
2457
_ACEOF
2458
cat confdefs.h >>conftest.$ac_ext
2459
cat >>conftest.$ac_ext <<_ACEOF
2460
/* end confdefs.h.  */
2461
$ac_declaration
2462
int
2463
main ()
2464
{
2465
exit (42);
2466
  ;
2467
  return 0;
2468
}
2469
_ACEOF
2470
rm -f conftest.$ac_objext
2471
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472
  (eval $ac_compile) 2>conftest.er1
2473
  ac_status=$?
2474
  grep -v '^ *+' conftest.er1 >conftest.err
2475
  rm -f conftest.er1
2476
  cat conftest.err >&5
2477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478
  (exit $ac_status); } &&
2479
         { ac_try='test -z "$ac_c_werror_flag"
2480
                         || test ! -s conftest.err'
2481
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482
  (eval $ac_try) 2>&5
2483
  ac_status=$?
2484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485
  (exit $ac_status); }; } &&
2486
         { ac_try='test -s conftest.$ac_objext'
2487
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488
  (eval $ac_try) 2>&5
2489
  ac_status=$?
2490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491
  (exit $ac_status); }; }; then
2492
  break
2493
else
2494
  echo "$as_me: failed program was:" >&5
2495
sed 's/^/| /' conftest.$ac_ext >&5
2496
 
2497
fi
2498
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2499
done
2500
rm -f conftest*
2501
if test -n "$ac_declaration"; then
2502
  echo '#ifdef __cplusplus' >>confdefs.h
2503
  echo $ac_declaration      >>confdefs.h
2504
  echo '#endif'             >>confdefs.h
2505
fi
2506
 
2507
else
2508
  echo "$as_me: failed program was:" >&5
2509
sed 's/^/| /' conftest.$ac_ext >&5
2510
 
2511
fi
2512
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2513
ac_ext=c
2514
ac_cpp='$CPP $CPPFLAGS'
2515
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518
 
2519
 
2520
echo "$as_me:$LINENO: checking for library containing strerror" >&5
2521
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2522
if test "${ac_cv_search_strerror+set}" = set; then
2523
  echo $ECHO_N "(cached) $ECHO_C" >&6
2524
else
2525
  ac_func_search_save_LIBS=$LIBS
2526
ac_cv_search_strerror=no
2527
cat >conftest.$ac_ext <<_ACEOF
2528
/* confdefs.h.  */
2529
_ACEOF
2530
cat confdefs.h >>conftest.$ac_ext
2531
cat >>conftest.$ac_ext <<_ACEOF
2532
/* end confdefs.h.  */
2533
 
2534
/* Override any gcc2 internal prototype to avoid an error.  */
2535
#ifdef __cplusplus
2536
extern "C"
2537
#endif
2538
/* We use char because int might match the return type of a gcc2
2539
   builtin and then its argument prototype would still apply.  */
2540
char strerror ();
2541
int
2542
main ()
2543
{
2544
strerror ();
2545
  ;
2546
  return 0;
2547
}
2548
_ACEOF
2549
rm -f conftest.$ac_objext conftest$ac_exeext
2550
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2551
  (eval $ac_link) 2>conftest.er1
2552
  ac_status=$?
2553
  grep -v '^ *+' conftest.er1 >conftest.err
2554
  rm -f conftest.er1
2555
  cat conftest.err >&5
2556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557
  (exit $ac_status); } &&
2558
         { ac_try='test -z "$ac_c_werror_flag"
2559
                         || test ! -s conftest.err'
2560
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561
  (eval $ac_try) 2>&5
2562
  ac_status=$?
2563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564
  (exit $ac_status); }; } &&
2565
         { ac_try='test -s conftest$ac_exeext'
2566
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567
  (eval $ac_try) 2>&5
2568
  ac_status=$?
2569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570
  (exit $ac_status); }; }; then
2571
  ac_cv_search_strerror="none required"
2572
else
2573
  echo "$as_me: failed program was:" >&5
2574
sed 's/^/| /' conftest.$ac_ext >&5
2575
 
2576
fi
2577
rm -f conftest.err conftest.$ac_objext \
2578
      conftest$ac_exeext conftest.$ac_ext
2579
if test "$ac_cv_search_strerror" = no; then
2580
  for ac_lib in cposix; do
2581
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2582
    cat >conftest.$ac_ext <<_ACEOF
2583
/* confdefs.h.  */
2584
_ACEOF
2585
cat confdefs.h >>conftest.$ac_ext
2586
cat >>conftest.$ac_ext <<_ACEOF
2587
/* end confdefs.h.  */
2588
 
2589
/* Override any gcc2 internal prototype to avoid an error.  */
2590
#ifdef __cplusplus
2591
extern "C"
2592
#endif
2593
/* We use char because int might match the return type of a gcc2
2594
   builtin and then its argument prototype would still apply.  */
2595
char strerror ();
2596
int
2597
main ()
2598
{
2599
strerror ();
2600
  ;
2601
  return 0;
2602
}
2603
_ACEOF
2604
rm -f conftest.$ac_objext conftest$ac_exeext
2605
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2606
  (eval $ac_link) 2>conftest.er1
2607
  ac_status=$?
2608
  grep -v '^ *+' conftest.er1 >conftest.err
2609
  rm -f conftest.er1
2610
  cat conftest.err >&5
2611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612
  (exit $ac_status); } &&
2613
         { ac_try='test -z "$ac_c_werror_flag"
2614
                         || test ! -s conftest.err'
2615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616
  (eval $ac_try) 2>&5
2617
  ac_status=$?
2618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619
  (exit $ac_status); }; } &&
2620
         { ac_try='test -s conftest$ac_exeext'
2621
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622
  (eval $ac_try) 2>&5
2623
  ac_status=$?
2624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625
  (exit $ac_status); }; }; then
2626
  ac_cv_search_strerror="-l$ac_lib"
2627
break
2628
else
2629
  echo "$as_me: failed program was:" >&5
2630
sed 's/^/| /' conftest.$ac_ext >&5
2631
 
2632
fi
2633
rm -f conftest.err conftest.$ac_objext \
2634
      conftest$ac_exeext conftest.$ac_ext
2635
  done
2636
fi
2637
LIBS=$ac_func_search_save_LIBS
2638
fi
2639
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2640
echo "${ECHO_T}$ac_cv_search_strerror" >&6
2641
if test "$ac_cv_search_strerror" != no; then
2642
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2643
 
2644
fi
2645
 
2646
 
2647
BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2648
am__api_version="1.9"
2649
# Find a good install program.  We prefer a C program (faster),
2650
# so one script is as good as another.  But avoid the broken or
2651
# incompatible versions:
2652
# SysV /etc/install, /usr/sbin/install
2653
# SunOS /usr/etc/install
2654
# IRIX /sbin/install
2655
# AIX /bin/install
2656
# AmigaOS /C/install, which installs bootblocks on floppy discs
2657
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2658
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2659
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2660
# OS/2's system install, which has a completely different semantic
2661
# ./install, which can be erroneously created by make from ./install.sh.
2662
# Reject install programs that cannot install multiple files.
2663
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2664
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2665
if test -z "$INSTALL"; then
2666
if test "${ac_cv_path_install+set}" = set; then
2667
  echo $ECHO_N "(cached) $ECHO_C" >&6
2668
else
2669
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670
for as_dir in $PATH
2671
do
2672
  IFS=$as_save_IFS
2673
  test -z "$as_dir" && as_dir=.
2674
  # Account for people who put trailing slashes in PATH elements.
2675
case $as_dir/ in
2676
  ./ | .// | /cC/* | \
2677
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2678
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2679
  /usr/ucb/* ) ;;
2680
  *)
2681
    # OSF1 and SCO ODT 3.0 have their own names for install.
2682
    # Don't use installbsd from OSF since it installs stuff as root
2683
    # by default.
2684
    for ac_prog in ginstall scoinst install; do
2685
      for ac_exec_ext in '' $ac_executable_extensions; do
2686
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2687
          if test $ac_prog = install &&
2688
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2689
            # AIX install.  It has an incompatible calling convention.
2690
            :
2691
          elif test $ac_prog = install &&
2692
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2693
            # program-specific install script used by HP pwplus--don't use.
2694
            :
2695
          else
2696
            rm -rf conftest.one conftest.two conftest.dir
2697
            echo one > conftest.one
2698
            echo two > conftest.two
2699
            mkdir conftest.dir
2700
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2701
              test -s conftest.one && test -s conftest.two &&
2702
              test -s conftest.dir/conftest.one &&
2703
              test -s conftest.dir/conftest.two
2704
            then
2705
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2706
              break 3
2707
            fi
2708
          fi
2709
        fi
2710
      done
2711
    done
2712
    ;;
2713
esac
2714
done
2715
 
2716
rm -rf conftest.one conftest.two conftest.dir
2717
 
2718
fi
2719
  if test "${ac_cv_path_install+set}" = set; then
2720
    INSTALL=$ac_cv_path_install
2721
  else
2722
    # As a last resort, use the slow shell script.  Don't cache a
2723
    # value for INSTALL within a source directory, because that will
2724
    # break other packages using the cache if that directory is
2725
    # removed, or if the value is a relative name.
2726
    INSTALL=$ac_install_sh
2727
  fi
2728
fi
2729
echo "$as_me:$LINENO: result: $INSTALL" >&5
2730
echo "${ECHO_T}$INSTALL" >&6
2731
 
2732
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2733
# It thinks the first close brace ends the variable substitution.
2734
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2735
 
2736
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2737
 
2738
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2739
 
2740
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2741
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2742
# Just in case
2743
sleep 1
2744
echo timestamp > conftest.file
2745
# Do `set' in a subshell so we don't clobber the current shell's
2746
# arguments.  Must try -L first in case configure is actually a
2747
# symlink; some systems play weird games with the mod time of symlinks
2748
# (eg FreeBSD returns the mod time of the symlink's containing
2749
# directory).
2750
if (
2751
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2752
   if test "$*" = "X"; then
2753
      # -L didn't work.
2754
      set X `ls -t $srcdir/configure conftest.file`
2755
   fi
2756
   rm -f conftest.file
2757
   if test "$*" != "X $srcdir/configure conftest.file" \
2758
      && test "$*" != "X conftest.file $srcdir/configure"; then
2759
 
2760
      # If neither matched, then we have a broken ls.  This can happen
2761
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2762
      # broken ls alias from the environment.  This has actually
2763
      # happened.  Such a system could not be considered "sane".
2764
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2765
alias in your environment" >&5
2766
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2767
alias in your environment" >&2;}
2768
   { (exit 1); exit 1; }; }
2769
   fi
2770
 
2771
   test "$2" = conftest.file
2772
   )
2773
then
2774
   # Ok.
2775
   :
2776
else
2777
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2778
Check your system clock" >&5
2779
echo "$as_me: error: newly created file is older than distributed files!
2780
Check your system clock" >&2;}
2781
   { (exit 1); exit 1; }; }
2782
fi
2783
echo "$as_me:$LINENO: result: yes" >&5
2784
echo "${ECHO_T}yes" >&6
2785
test "$program_prefix" != NONE &&
2786
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2787
# Use a double $ so make ignores it.
2788
test "$program_suffix" != NONE &&
2789
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2790
# Double any \ or $.  echo might interpret backslashes.
2791
# By default was `s,x,x', remove it if useless.
2792
cat <<\_ACEOF >conftest.sed
2793
s/[\\$]/&&/g;s/;s,x,x,$//
2794
_ACEOF
2795
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2796
rm conftest.sed
2797
 
2798
# expand $ac_aux_dir to an absolute path
2799
am_aux_dir=`cd $ac_aux_dir && pwd`
2800
 
2801
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2802
# Use eval to expand $SHELL
2803
if eval "$MISSING --run true"; then
2804
  am_missing_run="$MISSING --run "
2805
else
2806
  am_missing_run=
2807
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2808
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2809
fi
2810
 
2811
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2812
  # We used to keeping the `.' as first argument, in order to
2813
  # allow $(mkdir_p) to be used without argument.  As in
2814
  #   $(mkdir_p) $(somedir)
2815
  # where $(somedir) is conditionally defined.  However this is wrong
2816
  # for two reasons:
2817
  #  1. if the package is installed by a user who cannot write `.'
2818
  #     make install will fail,
2819
  #  2. the above comment should most certainly read
2820
  #     $(mkdir_p) $(DESTDIR)$(somedir)
2821
  #     so it does not work when $(somedir) is undefined and
2822
  #     $(DESTDIR) is not.
2823
  #  To support the latter case, we have to write
2824
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2825
  #  so the `.' trick is pointless.
2826
  mkdir_p='mkdir -p --'
2827
else
2828
  # On NextStep and OpenStep, the `mkdir' command does not
2829
  # recognize any option.  It will interpret all options as
2830
  # directories to create, and then abort because `.' already
2831
  # exists.
2832
  for d in ./-p ./--version;
2833
  do
2834
    test -d $d && rmdir $d
2835
  done
2836
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2837
  if test -f "$ac_aux_dir/mkinstalldirs"; then
2838
    mkdir_p='$(mkinstalldirs)'
2839
  else
2840
    mkdir_p='$(install_sh) -d'
2841
  fi
2842
fi
2843
 
2844
for ac_prog in gawk mawk nawk awk
2845
do
2846
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2847
set dummy $ac_prog; ac_word=$2
2848
echo "$as_me:$LINENO: checking for $ac_word" >&5
2849
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850
if test "${ac_cv_prog_AWK+set}" = set; then
2851
  echo $ECHO_N "(cached) $ECHO_C" >&6
2852
else
2853
  if test -n "$AWK"; then
2854
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2855
else
2856
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857
for as_dir in $PATH
2858
do
2859
  IFS=$as_save_IFS
2860
  test -z "$as_dir" && as_dir=.
2861
  for ac_exec_ext in '' $ac_executable_extensions; do
2862
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2863
    ac_cv_prog_AWK="$ac_prog"
2864
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865
    break 2
2866
  fi
2867
done
2868
done
2869
 
2870
fi
2871
fi
2872
AWK=$ac_cv_prog_AWK
2873
if test -n "$AWK"; then
2874
  echo "$as_me:$LINENO: result: $AWK" >&5
2875
echo "${ECHO_T}$AWK" >&6
2876
else
2877
  echo "$as_me:$LINENO: result: no" >&5
2878
echo "${ECHO_T}no" >&6
2879
fi
2880
 
2881
  test -n "$AWK" && break
2882
done
2883
 
2884
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2885
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2886
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2887
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2888
  echo $ECHO_N "(cached) $ECHO_C" >&6
2889
else
2890
  cat >conftest.make <<\_ACEOF
2891
all:
2892
        @echo 'ac_maketemp="$(MAKE)"'
2893
_ACEOF
2894
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2895
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2896
if test -n "$ac_maketemp"; then
2897
  eval ac_cv_prog_make_${ac_make}_set=yes
2898
else
2899
  eval ac_cv_prog_make_${ac_make}_set=no
2900
fi
2901
rm -f conftest.make
2902
fi
2903
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2904
  echo "$as_me:$LINENO: result: yes" >&5
2905
echo "${ECHO_T}yes" >&6
2906
  SET_MAKE=
2907
else
2908
  echo "$as_me:$LINENO: result: no" >&5
2909
echo "${ECHO_T}no" >&6
2910
  SET_MAKE="MAKE=${MAKE-make}"
2911
fi
2912
 
2913
rm -rf .tst 2>/dev/null
2914
mkdir .tst 2>/dev/null
2915
if test -d .tst; then
2916
  am__leading_dot=.
2917
else
2918
  am__leading_dot=_
2919
fi
2920
rmdir .tst 2>/dev/null
2921
 
2922
DEPDIR="${am__leading_dot}deps"
2923
 
2924
          ac_config_commands="$ac_config_commands depfiles"
2925
 
2926
 
2927
am_make=${MAKE-make}
2928
cat > confinc << 'END'
2929
am__doit:
2930
        @echo done
2931
.PHONY: am__doit
2932
END
2933
# If we don't find an include directive, just comment out the code.
2934
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2935
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2936
am__include="#"
2937
am__quote=
2938
_am_result=none
2939
# First try GNU make style include.
2940
echo "include confinc" > confmf
2941
# We grep out `Entering directory' and `Leaving directory'
2942
# messages which can occur if `w' ends up in MAKEFLAGS.
2943
# In particular we don't look at `^make:' because GNU make might
2944
# be invoked under some other name (usually "gmake"), in which
2945
# case it prints its new name instead of `make'.
2946
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2947
   am__include=include
2948
   am__quote=
2949
   _am_result=GNU
2950
fi
2951
# Now try BSD make style include.
2952
if test "$am__include" = "#"; then
2953
   echo '.include "confinc"' > confmf
2954
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2955
      am__include=.include
2956
      am__quote="\""
2957
      _am_result=BSD
2958
   fi
2959
fi
2960
 
2961
 
2962
echo "$as_me:$LINENO: result: $_am_result" >&5
2963
echo "${ECHO_T}$_am_result" >&6
2964
rm -f confinc confmf
2965
 
2966
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2967
if test "${enable_dependency_tracking+set}" = set; then
2968
  enableval="$enable_dependency_tracking"
2969
 
2970
fi;
2971
if test "x$enable_dependency_tracking" != xno; then
2972
  am_depcomp="$ac_aux_dir/depcomp"
2973
  AMDEPBACKSLASH='\'
2974
fi
2975
 
2976
 
2977
if test "x$enable_dependency_tracking" != xno; then
2978
  AMDEP_TRUE=
2979
  AMDEP_FALSE='#'
2980
else
2981
  AMDEP_TRUE='#'
2982
  AMDEP_FALSE=
2983
fi
2984
 
2985
 
2986
 
2987
# test to see if srcdir already configured
2988
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2989
   test -f $srcdir/config.status; then
2990
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2991
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2992
   { (exit 1); exit 1; }; }
2993
fi
2994
 
2995
# test whether we have cygpath
2996
if test -z "$CYGPATH_W"; then
2997
  if (cygpath --version) >/dev/null 2>/dev/null; then
2998
    CYGPATH_W='cygpath -w'
2999
  else
3000
    CYGPATH_W=echo
3001
  fi
3002
fi
3003
 
3004
 
3005
# Define the identity of the package.
3006
 PACKAGE=gprof
3007
 VERSION=${BFD_VERSION}
3008
 
3009
 
3010
cat >>confdefs.h <<_ACEOF
3011
#define PACKAGE "$PACKAGE"
3012
_ACEOF
3013
 
3014
 
3015
cat >>confdefs.h <<_ACEOF
3016
#define VERSION "$VERSION"
3017
_ACEOF
3018
 
3019
# Some tools Automake needs.
3020
 
3021
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3022
 
3023
 
3024
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3025
 
3026
 
3027
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3028
 
3029
 
3030
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3031
 
3032
 
3033
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3034
 
3035
install_sh=${install_sh-"$am_aux_dir/install-sh"}
3036
 
3037
# Installed binaries are usually stripped using `strip' when the user
3038
# run `make install-strip'.  However `strip' might not be the right
3039
# tool to use in cross-compilation environments, therefore Automake
3040
# will honor the `STRIP' environment variable to overrule this program.
3041
if test "$cross_compiling" != no; then
3042
  if test -n "$ac_tool_prefix"; then
3043
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3044
set dummy ${ac_tool_prefix}strip; ac_word=$2
3045
echo "$as_me:$LINENO: checking for $ac_word" >&5
3046
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047
if test "${ac_cv_prog_STRIP+set}" = set; then
3048
  echo $ECHO_N "(cached) $ECHO_C" >&6
3049
else
3050
  if test -n "$STRIP"; then
3051
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3052
else
3053
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054
for as_dir in $PATH
3055
do
3056
  IFS=$as_save_IFS
3057
  test -z "$as_dir" && as_dir=.
3058
  for ac_exec_ext in '' $ac_executable_extensions; do
3059
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3061
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062
    break 2
3063
  fi
3064
done
3065
done
3066
 
3067
fi
3068
fi
3069
STRIP=$ac_cv_prog_STRIP
3070
if test -n "$STRIP"; then
3071
  echo "$as_me:$LINENO: result: $STRIP" >&5
3072
echo "${ECHO_T}$STRIP" >&6
3073
else
3074
  echo "$as_me:$LINENO: result: no" >&5
3075
echo "${ECHO_T}no" >&6
3076
fi
3077
 
3078
fi
3079
if test -z "$ac_cv_prog_STRIP"; then
3080
  ac_ct_STRIP=$STRIP
3081
  # Extract the first word of "strip", so it can be a program name with args.
3082
set dummy strip; ac_word=$2
3083
echo "$as_me:$LINENO: checking for $ac_word" >&5
3084
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3086
  echo $ECHO_N "(cached) $ECHO_C" >&6
3087
else
3088
  if test -n "$ac_ct_STRIP"; then
3089
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3090
else
3091
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092
for as_dir in $PATH
3093
do
3094
  IFS=$as_save_IFS
3095
  test -z "$as_dir" && as_dir=.
3096
  for ac_exec_ext in '' $ac_executable_extensions; do
3097
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098
    ac_cv_prog_ac_ct_STRIP="strip"
3099
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100
    break 2
3101
  fi
3102
done
3103
done
3104
 
3105
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3106
fi
3107
fi
3108
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3109
if test -n "$ac_ct_STRIP"; then
3110
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3111
echo "${ECHO_T}$ac_ct_STRIP" >&6
3112
else
3113
  echo "$as_me:$LINENO: result: no" >&5
3114
echo "${ECHO_T}no" >&6
3115
fi
3116
 
3117
  STRIP=$ac_ct_STRIP
3118
else
3119
  STRIP="$ac_cv_prog_STRIP"
3120
fi
3121
 
3122
fi
3123
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3124
 
3125
# We need awk for the "check" target.  The system "awk" is bad on
3126
# some platforms.
3127
# Always define AMTAR for backward compatibility.
3128
 
3129
AMTAR=${AMTAR-"${am_missing_run}tar"}
3130
 
3131
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3132
 
3133
 
3134
 
3135
 
3136
depcc="$CC"   am_compiler_list=
3137
 
3138
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3139
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3140
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3141
  echo $ECHO_N "(cached) $ECHO_C" >&6
3142
else
3143
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3144
  # We make a subdir and do the tests there.  Otherwise we can end up
3145
  # making bogus files that we don't know about and never remove.  For
3146
  # instance it was reported that on HP-UX the gcc test will end up
3147
  # making a dummy file named `D' -- because `-MD' means `put the output
3148
  # in D'.
3149
  mkdir conftest.dir
3150
  # Copy depcomp to subdir because otherwise we won't find it if we're
3151
  # using a relative directory.
3152
  cp "$am_depcomp" conftest.dir
3153
  cd conftest.dir
3154
  # We will build objects and dependencies in a subdirectory because
3155
  # it helps to detect inapplicable dependency modes.  For instance
3156
  # both Tru64's cc and ICC support -MD to output dependencies as a
3157
  # side effect of compilation, but ICC will put the dependencies in
3158
  # the current directory while Tru64 will put them in the object
3159
  # directory.
3160
  mkdir sub
3161
 
3162
  am_cv_CC_dependencies_compiler_type=none
3163
  if test "$am_compiler_list" = ""; then
3164
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3165
  fi
3166
  for depmode in $am_compiler_list; do
3167
    # Setup a source with many dependencies, because some compilers
3168
    # like to wrap large dependency lists on column 80 (with \), and
3169
    # we should not choose a depcomp mode which is confused by this.
3170
    #
3171
    # We need to recreate these files for each test, as the compiler may
3172
    # overwrite some of them when testing with obscure command lines.
3173
    # This happens at least with the AIX C compiler.
3174
    : > sub/conftest.c
3175
    for i in 1 2 3 4 5 6; do
3176
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3177
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3178
      # Solaris 8's {/usr,}/bin/sh.
3179
      touch sub/conftst$i.h
3180
    done
3181
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3182
 
3183
    case $depmode in
3184
    nosideeffect)
3185
      # after this tag, mechanisms are not by side-effect, so they'll
3186
      # only be used when explicitly requested
3187
      if test "x$enable_dependency_tracking" = xyes; then
3188
        continue
3189
      else
3190
        break
3191
      fi
3192
      ;;
3193
    none) break ;;
3194
    esac
3195
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3196
    # mode.  It turns out that the SunPro C++ compiler does not properly
3197
    # handle `-M -o', and we need to detect this.
3198
    if depmode=$depmode \
3199
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3200
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3201
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3202
         >/dev/null 2>conftest.err &&
3203
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3204
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3205
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3206
      # icc doesn't choke on unknown options, it will just issue warnings
3207
      # or remarks (even with -Werror).  So we grep stderr for any message
3208
      # that says an option was ignored or not supported.
3209
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3210
      #   icc: Command line warning: ignoring option '-M'; no argument required
3211
      # The diagnosis changed in icc 8.0:
3212
      #   icc: Command line remark: option '-MP' not supported
3213
      if (grep 'ignoring option' conftest.err ||
3214
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3215
        am_cv_CC_dependencies_compiler_type=$depmode
3216
        break
3217
      fi
3218
    fi
3219
  done
3220
 
3221
  cd ..
3222
  rm -rf conftest.dir
3223
else
3224
  am_cv_CC_dependencies_compiler_type=none
3225
fi
3226
 
3227
fi
3228
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3229
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3230
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3231
 
3232
 
3233
 
3234
if
3235
  test "x$enable_dependency_tracking" != xno \
3236
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3237
  am__fastdepCC_TRUE=
3238
  am__fastdepCC_FALSE='#'
3239
else
3240
  am__fastdepCC_TRUE='#'
3241
  am__fastdepCC_FALSE=
3242
fi
3243
 
3244
 
3245
 
3246
 
3247
          ac_config_headers="$ac_config_headers gconfig.h:gconfig.in"
3248
 
3249
 
3250
ac_ext=c
3251
ac_cpp='$CPP $CPPFLAGS'
3252
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255
if test -n "$ac_tool_prefix"; then
3256
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3257
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3258
echo "$as_me:$LINENO: checking for $ac_word" >&5
3259
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260
if test "${ac_cv_prog_CC+set}" = set; then
3261
  echo $ECHO_N "(cached) $ECHO_C" >&6
3262
else
3263
  if test -n "$CC"; then
3264
  ac_cv_prog_CC="$CC" # Let the user override the test.
3265
else
3266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267
for as_dir in $PATH
3268
do
3269
  IFS=$as_save_IFS
3270
  test -z "$as_dir" && as_dir=.
3271
  for ac_exec_ext in '' $ac_executable_extensions; do
3272
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3274
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275
    break 2
3276
  fi
3277
done
3278
done
3279
 
3280
fi
3281
fi
3282
CC=$ac_cv_prog_CC
3283
if test -n "$CC"; then
3284
  echo "$as_me:$LINENO: result: $CC" >&5
3285
echo "${ECHO_T}$CC" >&6
3286
else
3287
  echo "$as_me:$LINENO: result: no" >&5
3288
echo "${ECHO_T}no" >&6
3289
fi
3290
 
3291
fi
3292
if test -z "$ac_cv_prog_CC"; then
3293
  ac_ct_CC=$CC
3294
  # Extract the first word of "gcc", so it can be a program name with args.
3295
set dummy gcc; ac_word=$2
3296
echo "$as_me:$LINENO: checking for $ac_word" >&5
3297
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3299
  echo $ECHO_N "(cached) $ECHO_C" >&6
3300
else
3301
  if test -n "$ac_ct_CC"; then
3302
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3303
else
3304
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305
for as_dir in $PATH
3306
do
3307
  IFS=$as_save_IFS
3308
  test -z "$as_dir" && as_dir=.
3309
  for ac_exec_ext in '' $ac_executable_extensions; do
3310
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3311
    ac_cv_prog_ac_ct_CC="gcc"
3312
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313
    break 2
3314
  fi
3315
done
3316
done
3317
 
3318
fi
3319
fi
3320
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3321
if test -n "$ac_ct_CC"; then
3322
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3323
echo "${ECHO_T}$ac_ct_CC" >&6
3324
else
3325
  echo "$as_me:$LINENO: result: no" >&5
3326
echo "${ECHO_T}no" >&6
3327
fi
3328
 
3329
  CC=$ac_ct_CC
3330
else
3331
  CC="$ac_cv_prog_CC"
3332
fi
3333
 
3334
if test -z "$CC"; then
3335
  if test -n "$ac_tool_prefix"; then
3336
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3337
set dummy ${ac_tool_prefix}cc; ac_word=$2
3338
echo "$as_me:$LINENO: checking for $ac_word" >&5
3339
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3340
if test "${ac_cv_prog_CC+set}" = set; then
3341
  echo $ECHO_N "(cached) $ECHO_C" >&6
3342
else
3343
  if test -n "$CC"; then
3344
  ac_cv_prog_CC="$CC" # Let the user override the test.
3345
else
3346
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347
for as_dir in $PATH
3348
do
3349
  IFS=$as_save_IFS
3350
  test -z "$as_dir" && as_dir=.
3351
  for ac_exec_ext in '' $ac_executable_extensions; do
3352
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3354
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355
    break 2
3356
  fi
3357
done
3358
done
3359
 
3360
fi
3361
fi
3362
CC=$ac_cv_prog_CC
3363
if test -n "$CC"; then
3364
  echo "$as_me:$LINENO: result: $CC" >&5
3365
echo "${ECHO_T}$CC" >&6
3366
else
3367
  echo "$as_me:$LINENO: result: no" >&5
3368
echo "${ECHO_T}no" >&6
3369
fi
3370
 
3371
fi
3372
if test -z "$ac_cv_prog_CC"; then
3373
  ac_ct_CC=$CC
3374
  # Extract the first word of "cc", so it can be a program name with args.
3375
set dummy cc; ac_word=$2
3376
echo "$as_me:$LINENO: checking for $ac_word" >&5
3377
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3379
  echo $ECHO_N "(cached) $ECHO_C" >&6
3380
else
3381
  if test -n "$ac_ct_CC"; then
3382
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3383
else
3384
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385
for as_dir in $PATH
3386
do
3387
  IFS=$as_save_IFS
3388
  test -z "$as_dir" && as_dir=.
3389
  for ac_exec_ext in '' $ac_executable_extensions; do
3390
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391
    ac_cv_prog_ac_ct_CC="cc"
3392
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3393
    break 2
3394
  fi
3395
done
3396
done
3397
 
3398
fi
3399
fi
3400
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3401
if test -n "$ac_ct_CC"; then
3402
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3403
echo "${ECHO_T}$ac_ct_CC" >&6
3404
else
3405
  echo "$as_me:$LINENO: result: no" >&5
3406
echo "${ECHO_T}no" >&6
3407
fi
3408
 
3409
  CC=$ac_ct_CC
3410
else
3411
  CC="$ac_cv_prog_CC"
3412
fi
3413
 
3414
fi
3415
if test -z "$CC"; then
3416
  # Extract the first word of "cc", so it can be a program name with args.
3417
set dummy cc; ac_word=$2
3418
echo "$as_me:$LINENO: checking for $ac_word" >&5
3419
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420
if test "${ac_cv_prog_CC+set}" = set; then
3421
  echo $ECHO_N "(cached) $ECHO_C" >&6
3422
else
3423
  if test -n "$CC"; then
3424
  ac_cv_prog_CC="$CC" # Let the user override the test.
3425
else
3426
  ac_prog_rejected=no
3427
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428
for as_dir in $PATH
3429
do
3430
  IFS=$as_save_IFS
3431
  test -z "$as_dir" && as_dir=.
3432
  for ac_exec_ext in '' $ac_executable_extensions; do
3433
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3435
       ac_prog_rejected=yes
3436
       continue
3437
     fi
3438
    ac_cv_prog_CC="cc"
3439
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440
    break 2
3441
  fi
3442
done
3443
done
3444
 
3445
if test $ac_prog_rejected = yes; then
3446
  # We found a bogon in the path, so make sure we never use it.
3447
  set dummy $ac_cv_prog_CC
3448
  shift
3449
  if test $# != 0; then
3450
    # We chose a different compiler from the bogus one.
3451
    # However, it has the same basename, so the bogon will be chosen
3452
    # first if we set CC to just the basename; use the full file name.
3453
    shift
3454
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3455
  fi
3456
fi
3457
fi
3458
fi
3459
CC=$ac_cv_prog_CC
3460
if test -n "$CC"; then
3461
  echo "$as_me:$LINENO: result: $CC" >&5
3462
echo "${ECHO_T}$CC" >&6
3463
else
3464
  echo "$as_me:$LINENO: result: no" >&5
3465
echo "${ECHO_T}no" >&6
3466
fi
3467
 
3468
fi
3469
if test -z "$CC"; then
3470
  if test -n "$ac_tool_prefix"; then
3471
  for ac_prog in cl
3472
  do
3473
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3474
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3475
echo "$as_me:$LINENO: checking for $ac_word" >&5
3476
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477
if test "${ac_cv_prog_CC+set}" = set; then
3478
  echo $ECHO_N "(cached) $ECHO_C" >&6
3479
else
3480
  if test -n "$CC"; then
3481
  ac_cv_prog_CC="$CC" # Let the user override the test.
3482
else
3483
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484
for as_dir in $PATH
3485
do
3486
  IFS=$as_save_IFS
3487
  test -z "$as_dir" && as_dir=.
3488
  for ac_exec_ext in '' $ac_executable_extensions; do
3489
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3491
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492
    break 2
3493
  fi
3494
done
3495
done
3496
 
3497
fi
3498
fi
3499
CC=$ac_cv_prog_CC
3500
if test -n "$CC"; then
3501
  echo "$as_me:$LINENO: result: $CC" >&5
3502
echo "${ECHO_T}$CC" >&6
3503
else
3504
  echo "$as_me:$LINENO: result: no" >&5
3505
echo "${ECHO_T}no" >&6
3506
fi
3507
 
3508
    test -n "$CC" && break
3509
  done
3510
fi
3511
if test -z "$CC"; then
3512
  ac_ct_CC=$CC
3513
  for ac_prog in cl
3514
do
3515
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3516
set dummy $ac_prog; ac_word=$2
3517
echo "$as_me:$LINENO: checking for $ac_word" >&5
3518
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3520
  echo $ECHO_N "(cached) $ECHO_C" >&6
3521
else
3522
  if test -n "$ac_ct_CC"; then
3523
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3524
else
3525
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526
for as_dir in $PATH
3527
do
3528
  IFS=$as_save_IFS
3529
  test -z "$as_dir" && as_dir=.
3530
  for ac_exec_ext in '' $ac_executable_extensions; do
3531
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532
    ac_cv_prog_ac_ct_CC="$ac_prog"
3533
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534
    break 2
3535
  fi
3536
done
3537
done
3538
 
3539
fi
3540
fi
3541
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3542
if test -n "$ac_ct_CC"; then
3543
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3544
echo "${ECHO_T}$ac_ct_CC" >&6
3545
else
3546
  echo "$as_me:$LINENO: result: no" >&5
3547
echo "${ECHO_T}no" >&6
3548
fi
3549
 
3550
  test -n "$ac_ct_CC" && break
3551
done
3552
 
3553
  CC=$ac_ct_CC
3554
fi
3555
 
3556
fi
3557
 
3558
 
3559
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3560
See \`config.log' for more details." >&5
3561
echo "$as_me: error: no acceptable C compiler found in \$PATH
3562
See \`config.log' for more details." >&2;}
3563
   { (exit 1); exit 1; }; }
3564
 
3565
# Provide some information about the compiler.
3566
echo "$as_me:$LINENO:" \
3567
     "checking for C compiler version" >&5
3568
ac_compiler=`set X $ac_compile; echo $2`
3569
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
3570
  (eval $ac_compiler --version &5) 2>&5
3571
  ac_status=$?
3572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573
  (exit $ac_status); }
3574
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
3575
  (eval $ac_compiler -v &5) 2>&5
3576
  ac_status=$?
3577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578
  (exit $ac_status); }
3579
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
3580
  (eval $ac_compiler -V &5) 2>&5
3581
  ac_status=$?
3582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583
  (exit $ac_status); }
3584
 
3585
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3586
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3587
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3588
  echo $ECHO_N "(cached) $ECHO_C" >&6
3589
else
3590
  cat >conftest.$ac_ext <<_ACEOF
3591
/* confdefs.h.  */
3592
_ACEOF
3593
cat confdefs.h >>conftest.$ac_ext
3594
cat >>conftest.$ac_ext <<_ACEOF
3595
/* end confdefs.h.  */
3596
 
3597
int
3598
main ()
3599
{
3600
#ifndef __GNUC__
3601
       choke me
3602
#endif
3603
 
3604
  ;
3605
  return 0;
3606
}
3607
_ACEOF
3608
rm -f conftest.$ac_objext
3609
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610
  (eval $ac_compile) 2>conftest.er1
3611
  ac_status=$?
3612
  grep -v '^ *+' conftest.er1 >conftest.err
3613
  rm -f conftest.er1
3614
  cat conftest.err >&5
3615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616
  (exit $ac_status); } &&
3617
         { ac_try='test -z "$ac_c_werror_flag"
3618
                         || test ! -s conftest.err'
3619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620
  (eval $ac_try) 2>&5
3621
  ac_status=$?
3622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623
  (exit $ac_status); }; } &&
3624
         { ac_try='test -s conftest.$ac_objext'
3625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626
  (eval $ac_try) 2>&5
3627
  ac_status=$?
3628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629
  (exit $ac_status); }; }; then
3630
  ac_compiler_gnu=yes
3631
else
3632
  echo "$as_me: failed program was:" >&5
3633
sed 's/^/| /' conftest.$ac_ext >&5
3634
 
3635
ac_compiler_gnu=no
3636
fi
3637
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3639
 
3640
fi
3641
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3642
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3643
GCC=`test $ac_compiler_gnu = yes && echo yes`
3644
ac_test_CFLAGS=${CFLAGS+set}
3645
ac_save_CFLAGS=$CFLAGS
3646
CFLAGS="-g"
3647
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3648
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3649
if test "${ac_cv_prog_cc_g+set}" = set; then
3650
  echo $ECHO_N "(cached) $ECHO_C" >&6
3651
else
3652
  cat >conftest.$ac_ext <<_ACEOF
3653
/* confdefs.h.  */
3654
_ACEOF
3655
cat confdefs.h >>conftest.$ac_ext
3656
cat >>conftest.$ac_ext <<_ACEOF
3657
/* end confdefs.h.  */
3658
 
3659
int
3660
main ()
3661
{
3662
 
3663
  ;
3664
  return 0;
3665
}
3666
_ACEOF
3667
rm -f conftest.$ac_objext
3668
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3669
  (eval $ac_compile) 2>conftest.er1
3670
  ac_status=$?
3671
  grep -v '^ *+' conftest.er1 >conftest.err
3672
  rm -f conftest.er1
3673
  cat conftest.err >&5
3674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675
  (exit $ac_status); } &&
3676
         { ac_try='test -z "$ac_c_werror_flag"
3677
                         || test ! -s conftest.err'
3678
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679
  (eval $ac_try) 2>&5
3680
  ac_status=$?
3681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682
  (exit $ac_status); }; } &&
3683
         { ac_try='test -s conftest.$ac_objext'
3684
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685
  (eval $ac_try) 2>&5
3686
  ac_status=$?
3687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688
  (exit $ac_status); }; }; then
3689
  ac_cv_prog_cc_g=yes
3690
else
3691
  echo "$as_me: failed program was:" >&5
3692
sed 's/^/| /' conftest.$ac_ext >&5
3693
 
3694
ac_cv_prog_cc_g=no
3695
fi
3696
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3697
fi
3698
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3699
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3700
if test "$ac_test_CFLAGS" = set; then
3701
  CFLAGS=$ac_save_CFLAGS
3702
elif test $ac_cv_prog_cc_g = yes; then
3703
  if test "$GCC" = yes; then
3704
    CFLAGS="-g -O2"
3705
  else
3706
    CFLAGS="-g"
3707
  fi
3708
else
3709
  if test "$GCC" = yes; then
3710
    CFLAGS="-O2"
3711
  else
3712
    CFLAGS=
3713
  fi
3714
fi
3715
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3716
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3717
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3718
  echo $ECHO_N "(cached) $ECHO_C" >&6
3719
else
3720
  ac_cv_prog_cc_stdc=no
3721
ac_save_CC=$CC
3722
cat >conftest.$ac_ext <<_ACEOF
3723
/* confdefs.h.  */
3724
_ACEOF
3725
cat confdefs.h >>conftest.$ac_ext
3726
cat >>conftest.$ac_ext <<_ACEOF
3727
/* end confdefs.h.  */
3728
#include 
3729
#include 
3730
#include 
3731
#include 
3732
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3733
struct buf { int x; };
3734
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3735
static char *e (p, i)
3736
     char **p;
3737
     int i;
3738
{
3739
  return p[i];
3740
}
3741
static char *f (char * (*g) (char **, int), char **p, ...)
3742
{
3743
  char *s;
3744
  va_list v;
3745
  va_start (v,p);
3746
  s = g (p, va_arg (v,int));
3747
  va_end (v);
3748
  return s;
3749
}
3750
 
3751
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3752
   function prototypes and stuff, but not '\xHH' hex character constants.
3753
   These don't provoke an error unfortunately, instead are silently treated
3754
   as 'x'.  The following induces an error, until -std1 is added to get
3755
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3756
   array size at least.  It's necessary to write '\x00'==0 to get something
3757
   that's true only with -std1.  */
3758
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3759
 
3760
int test (int i, double x);
3761
struct s1 {int (*f) (int a);};
3762
struct s2 {int (*f) (double a);};
3763
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3764
int argc;
3765
char **argv;
3766
int
3767
main ()
3768
{
3769
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3770
  ;
3771
  return 0;
3772
}
3773
_ACEOF
3774
# Don't try gcc -ansi; that turns off useful extensions and
3775
# breaks some systems' header files.
3776
# AIX                   -qlanglvl=ansi
3777
# Ultrix and OSF/1      -std1
3778
# HP-UX 10.20 and later -Ae
3779
# HP-UX older versions  -Aa -D_HPUX_SOURCE
3780
# SVR4                  -Xc -D__EXTENSIONS__
3781
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3782
do
3783
  CC="$ac_save_CC $ac_arg"
3784
  rm -f conftest.$ac_objext
3785
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786
  (eval $ac_compile) 2>conftest.er1
3787
  ac_status=$?
3788
  grep -v '^ *+' conftest.er1 >conftest.err
3789
  rm -f conftest.er1
3790
  cat conftest.err >&5
3791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792
  (exit $ac_status); } &&
3793
         { ac_try='test -z "$ac_c_werror_flag"
3794
                         || test ! -s conftest.err'
3795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796
  (eval $ac_try) 2>&5
3797
  ac_status=$?
3798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799
  (exit $ac_status); }; } &&
3800
         { ac_try='test -s conftest.$ac_objext'
3801
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802
  (eval $ac_try) 2>&5
3803
  ac_status=$?
3804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805
  (exit $ac_status); }; }; then
3806
  ac_cv_prog_cc_stdc=$ac_arg
3807
break
3808
else
3809
  echo "$as_me: failed program was:" >&5
3810
sed 's/^/| /' conftest.$ac_ext >&5
3811
 
3812
fi
3813
rm -f conftest.err conftest.$ac_objext
3814
done
3815
rm -f conftest.$ac_ext conftest.$ac_objext
3816
CC=$ac_save_CC
3817
 
3818
fi
3819
 
3820
case "x$ac_cv_prog_cc_stdc" in
3821
  x|xno)
3822
    echo "$as_me:$LINENO: result: none needed" >&5
3823
echo "${ECHO_T}none needed" >&6 ;;
3824
  *)
3825
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3826
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3827
    CC="$CC $ac_cv_prog_cc_stdc" ;;
3828
esac
3829
 
3830
# Some people use a C++ compiler to compile C.  Since we use `exit',
3831
# in C++ we need to declare it.  In case someone uses the same compiler
3832
# for both compiling C and C++ we need to have the C++ compiler decide
3833
# the declaration of exit, since it's the most demanding environment.
3834
cat >conftest.$ac_ext <<_ACEOF
3835
#ifndef __cplusplus
3836
  choke me
3837
#endif
3838
_ACEOF
3839
rm -f conftest.$ac_objext
3840
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3841
  (eval $ac_compile) 2>conftest.er1
3842
  ac_status=$?
3843
  grep -v '^ *+' conftest.er1 >conftest.err
3844
  rm -f conftest.er1
3845
  cat conftest.err >&5
3846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847
  (exit $ac_status); } &&
3848
         { ac_try='test -z "$ac_c_werror_flag"
3849
                         || test ! -s conftest.err'
3850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851
  (eval $ac_try) 2>&5
3852
  ac_status=$?
3853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854
  (exit $ac_status); }; } &&
3855
         { ac_try='test -s conftest.$ac_objext'
3856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857
  (eval $ac_try) 2>&5
3858
  ac_status=$?
3859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860
  (exit $ac_status); }; }; then
3861
  for ac_declaration in \
3862
   '' \
3863
   'extern "C" void std::exit (int) throw (); using std::exit;' \
3864
   'extern "C" void std::exit (int); using std::exit;' \
3865
   'extern "C" void exit (int) throw ();' \
3866
   'extern "C" void exit (int);' \
3867
   'void exit (int);'
3868
do
3869
  cat >conftest.$ac_ext <<_ACEOF
3870
/* confdefs.h.  */
3871
_ACEOF
3872
cat confdefs.h >>conftest.$ac_ext
3873
cat >>conftest.$ac_ext <<_ACEOF
3874
/* end confdefs.h.  */
3875
$ac_declaration
3876
#include 
3877
int
3878
main ()
3879
{
3880
exit (42);
3881
  ;
3882
  return 0;
3883
}
3884
_ACEOF
3885
rm -f conftest.$ac_objext
3886
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3887
  (eval $ac_compile) 2>conftest.er1
3888
  ac_status=$?
3889
  grep -v '^ *+' conftest.er1 >conftest.err
3890
  rm -f conftest.er1
3891
  cat conftest.err >&5
3892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893
  (exit $ac_status); } &&
3894
         { ac_try='test -z "$ac_c_werror_flag"
3895
                         || test ! -s conftest.err'
3896
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897
  (eval $ac_try) 2>&5
3898
  ac_status=$?
3899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900
  (exit $ac_status); }; } &&
3901
         { ac_try='test -s conftest.$ac_objext'
3902
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903
  (eval $ac_try) 2>&5
3904
  ac_status=$?
3905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906
  (exit $ac_status); }; }; then
3907
  :
3908
else
3909
  echo "$as_me: failed program was:" >&5
3910
sed 's/^/| /' conftest.$ac_ext >&5
3911
 
3912
continue
3913
fi
3914
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3915
  cat >conftest.$ac_ext <<_ACEOF
3916
/* confdefs.h.  */
3917
_ACEOF
3918
cat confdefs.h >>conftest.$ac_ext
3919
cat >>conftest.$ac_ext <<_ACEOF
3920
/* end confdefs.h.  */
3921
$ac_declaration
3922
int
3923
main ()
3924
{
3925
exit (42);
3926
  ;
3927
  return 0;
3928
}
3929
_ACEOF
3930
rm -f conftest.$ac_objext
3931
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3932
  (eval $ac_compile) 2>conftest.er1
3933
  ac_status=$?
3934
  grep -v '^ *+' conftest.er1 >conftest.err
3935
  rm -f conftest.er1
3936
  cat conftest.err >&5
3937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938
  (exit $ac_status); } &&
3939
         { ac_try='test -z "$ac_c_werror_flag"
3940
                         || test ! -s conftest.err'
3941
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942
  (eval $ac_try) 2>&5
3943
  ac_status=$?
3944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945
  (exit $ac_status); }; } &&
3946
         { ac_try='test -s conftest.$ac_objext'
3947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948
  (eval $ac_try) 2>&5
3949
  ac_status=$?
3950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951
  (exit $ac_status); }; }; then
3952
  break
3953
else
3954
  echo "$as_me: failed program was:" >&5
3955
sed 's/^/| /' conftest.$ac_ext >&5
3956
 
3957
fi
3958
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3959
done
3960
rm -f conftest*
3961
if test -n "$ac_declaration"; then
3962
  echo '#ifdef __cplusplus' >>confdefs.h
3963
  echo $ac_declaration      >>confdefs.h
3964
  echo '#endif'             >>confdefs.h
3965
fi
3966
 
3967
else
3968
  echo "$as_me: failed program was:" >&5
3969
sed 's/^/| /' conftest.$ac_ext >&5
3970
 
3971
fi
3972
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3973
ac_ext=c
3974
ac_cpp='$CPP $CPPFLAGS'
3975
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3978
 
3979
 
3980
cat >>confdefs.h <<\_ACEOF
3981
#define _GNU_SOURCE 1
3982
_ACEOF
3983
 
3984
 
3985
# Find a good install program.  We prefer a C program (faster),
3986
# so one script is as good as another.  But avoid the broken or
3987
# incompatible versions:
3988
# SysV /etc/install, /usr/sbin/install
3989
# SunOS /usr/etc/install
3990
# IRIX /sbin/install
3991
# AIX /bin/install
3992
# AmigaOS /C/install, which installs bootblocks on floppy discs
3993
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3994
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3995
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3996
# OS/2's system install, which has a completely different semantic
3997
# ./install, which can be erroneously created by make from ./install.sh.
3998
# Reject install programs that cannot install multiple files.
3999
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4000
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4001
if test -z "$INSTALL"; then
4002
if test "${ac_cv_path_install+set}" = set; then
4003
  echo $ECHO_N "(cached) $ECHO_C" >&6
4004
else
4005
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006
for as_dir in $PATH
4007
do
4008
  IFS=$as_save_IFS
4009
  test -z "$as_dir" && as_dir=.
4010
  # Account for people who put trailing slashes in PATH elements.
4011
case $as_dir/ in
4012
  ./ | .// | /cC/* | \
4013
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4014
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4015
  /usr/ucb/* ) ;;
4016
  *)
4017
    # OSF1 and SCO ODT 3.0 have their own names for install.
4018
    # Don't use installbsd from OSF since it installs stuff as root
4019
    # by default.
4020
    for ac_prog in ginstall scoinst install; do
4021
      for ac_exec_ext in '' $ac_executable_extensions; do
4022
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4023
          if test $ac_prog = install &&
4024
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4025
            # AIX install.  It has an incompatible calling convention.
4026
            :
4027
          elif test $ac_prog = install &&
4028
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4029
            # program-specific install script used by HP pwplus--don't use.
4030
            :
4031
          else
4032
            rm -rf conftest.one conftest.two conftest.dir
4033
            echo one > conftest.one
4034
            echo two > conftest.two
4035
            mkdir conftest.dir
4036
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4037
              test -s conftest.one && test -s conftest.two &&
4038
              test -s conftest.dir/conftest.one &&
4039
              test -s conftest.dir/conftest.two
4040
            then
4041
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4042
              break 3
4043
            fi
4044
          fi
4045
        fi
4046
      done
4047
    done
4048
    ;;
4049
esac
4050
done
4051
 
4052
rm -rf conftest.one conftest.two conftest.dir
4053
 
4054
fi
4055
  if test "${ac_cv_path_install+set}" = set; then
4056
    INSTALL=$ac_cv_path_install
4057
  else
4058
    # As a last resort, use the slow shell script.  Don't cache a
4059
    # value for INSTALL within a source directory, because that will
4060
    # break other packages using the cache if that directory is
4061
    # removed, or if the value is a relative name.
4062
    INSTALL=$ac_install_sh
4063
  fi
4064
fi
4065
echo "$as_me:$LINENO: result: $INSTALL" >&5
4066
echo "${ECHO_T}$INSTALL" >&6
4067
 
4068
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4069
# It thinks the first close brace ends the variable substitution.
4070
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4071
 
4072
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4073
 
4074
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4075
 
4076
 
4077
 
4078
 
4079
macro_version='2.1a'
4080
macro_revision='1.2435'
4081
 
4082
 
4083
 
4084
 
4085
 
4086
 
4087
 
4088
 
4089
 
4090
 
4091
 
4092
 
4093
ltmain="$ac_aux_dir/ltmain.sh"
4094
 
4095
# Set options
4096
 
4097
enable_dlopen=no
4098
 
4099
 
4100
enable_win32_dll=no
4101
 
4102
 
4103
# Check whether --enable-shared or --disable-shared was given.
4104
if test "${enable_shared+set}" = set; then
4105
  enableval="$enable_shared"
4106
  p=${PACKAGE-default}
4107
    case $enableval in
4108
    yes) enable_shared=yes ;;
4109
    no) enable_shared=no ;;
4110
    *)
4111
      enable_shared=no
4112
      # Look at the argument we got.  We use all the common list separators.
4113
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4114
      for pkg in $enableval; do
4115
        IFS="$lt_save_ifs"
4116
        if test "X$pkg" = "X$p"; then
4117
          enable_shared=yes
4118
        fi
4119
      done
4120
      IFS="$lt_save_ifs"
4121
      ;;
4122
    esac
4123
else
4124
  enable_shared=yes
4125
fi;
4126
 
4127
 
4128
 
4129
 
4130
 
4131
 
4132
 
4133
 
4134
# Check whether --enable-static or --disable-static was given.
4135
if test "${enable_static+set}" = set; then
4136
  enableval="$enable_static"
4137
  p=${PACKAGE-default}
4138
    case $enableval in
4139
    yes) enable_static=yes ;;
4140
    no) enable_static=no ;;
4141
    *)
4142
     enable_static=no
4143
      # Look at the argument we got.  We use all the common list separators.
4144
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4145
      for pkg in $enableval; do
4146
        IFS="$lt_save_ifs"
4147
        if test "X$pkg" = "X$p"; then
4148
          enable_static=yes
4149
        fi
4150
      done
4151
      IFS="$lt_save_ifs"
4152
      ;;
4153
    esac
4154
else
4155
  enable_static=yes
4156
fi;
4157
 
4158
 
4159
 
4160
 
4161
 
4162
 
4163
 
4164
 
4165
 
4166
# Check whether --with-pic or --without-pic was given.
4167
if test "${with_pic+set}" = set; then
4168
  withval="$with_pic"
4169
  pic_mode="$withval"
4170
else
4171
  pic_mode=default
4172
fi;
4173
 
4174
test -z "$pic_mode" && pic_mode=default
4175
 
4176
 
4177
 
4178
 
4179
 
4180
 
4181
 
4182
# Check whether --enable-fast-install or --disable-fast-install was given.
4183
if test "${enable_fast_install+set}" = set; then
4184
  enableval="$enable_fast_install"
4185
  p=${PACKAGE-default}
4186
    case $enableval in
4187
    yes) enable_fast_install=yes ;;
4188
    no) enable_fast_install=no ;;
4189
    *)
4190
      enable_fast_install=no
4191
      # Look at the argument we got.  We use all the common list separators.
4192
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4193
      for pkg in $enableval; do
4194
        IFS="$lt_save_ifs"
4195
        if test "X$pkg" = "X$p"; then
4196
          enable_fast_install=yes
4197
        fi
4198
      done
4199
      IFS="$lt_save_ifs"
4200
      ;;
4201
    esac
4202
else
4203
  enable_fast_install=yes
4204
fi;
4205
 
4206
 
4207
 
4208
 
4209
 
4210
 
4211
 
4212
 
4213
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4214
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4215
if test "${lt_cv_path_SED+set}" = set; then
4216
  echo $ECHO_N "(cached) $ECHO_C" >&6
4217
else
4218
  # Loop through the user's path and test for sed and gsed.
4219
# Then use that list of sed's as ones to test for truncation.
4220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221
for as_dir in $PATH
4222
do
4223
  IFS=$as_save_IFS
4224
  test -z "$as_dir" && as_dir=.
4225
  for lt_ac_prog in sed gsed; do
4226
    for ac_exec_ext in '' $ac_executable_extensions; do
4227
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4228
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4229
      fi
4230
    done
4231
  done
4232
done
4233
IFS=$as_save_IFS
4234
lt_ac_max=0
4235
lt_ac_count=0
4236
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4237
# along with /bin/sed that truncates output.
4238
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4239
  test ! -f $lt_ac_sed && continue
4240
  cat /dev/null > conftest.in
4241
  lt_ac_count=0
4242
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4243
  # Check for GNU sed and select it if it is found.
4244
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4245
    lt_cv_path_SED=$lt_ac_sed
4246
    break
4247
  fi
4248
  while true; do
4249
    cat conftest.in conftest.in >conftest.tmp
4250
    mv conftest.tmp conftest.in
4251
    cp conftest.in conftest.nl
4252
    echo >>conftest.nl
4253
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4254
    cmp -s conftest.out conftest.nl || break
4255
    # 10000 chars as input seems more than enough
4256
    test $lt_ac_count -gt 10 && break
4257
    lt_ac_count=`expr $lt_ac_count + 1`
4258
    if test $lt_ac_count -gt $lt_ac_max; then
4259
      lt_ac_max=$lt_ac_count
4260
      lt_cv_path_SED=$lt_ac_sed
4261
    fi
4262
  done
4263
done
4264
 
4265
fi
4266
 
4267
SED=$lt_cv_path_SED
4268
 
4269
echo "$as_me:$LINENO: result: $SED" >&5
4270
echo "${ECHO_T}$SED" >&6
4271
 
4272
test -z "$SED" && SED=sed
4273
Xsed="$SED -e 1s/^X//"
4274
 
4275
 
4276
 
4277
 
4278
 
4279
 
4280
 
4281
 
4282
 
4283
 
4284
 
4285
echo "$as_me:$LINENO: checking for egrep" >&5
4286
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4287
if test "${ac_cv_prog_egrep+set}" = set; then
4288
  echo $ECHO_N "(cached) $ECHO_C" >&6
4289
else
4290
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4291
    then ac_cv_prog_egrep='grep -E'
4292
    else ac_cv_prog_egrep='egrep'
4293
    fi
4294
fi
4295
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4296
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4297
 EGREP=$ac_cv_prog_egrep
4298
 
4299
 
4300
echo "$as_me:$LINENO: checking for fgrep" >&5
4301
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4302
if test "${ac_cv_prog_fgrep+set}" = set; then
4303
  echo $ECHO_N "(cached) $ECHO_C" >&6
4304
else
4305
  if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4306
    then ac_cv_prog_fgrep='grep -F'
4307
    else ac_cv_prog_fgrep='fgrep'
4308
    fi
4309
fi
4310
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4311
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4312
 FGREP=$ac_cv_prog_fgrep
4313
 
4314
 
4315
test -z "$GREP" && GREP=grep
4316
 
4317
 
4318
 
4319
 
4320
 
4321
 
4322
 
4323
 
4324
 
4325
 
4326
 
4327
 
4328
 
4329
 
4330
 
4331
 
4332
 
4333
 
4334
 
4335
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4336
if test "${with_gnu_ld+set}" = set; then
4337
  withval="$with_gnu_ld"
4338
  test "$withval" = no || with_gnu_ld=yes
4339
else
4340
  with_gnu_ld=no
4341
fi;
4342
ac_prog=ld
4343
if test "$GCC" = yes; then
4344
  # Check if gcc -print-prog-name=ld gives a path.
4345
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4346
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4347
  case $host in
4348
  *-*-mingw*)
4349
    # gcc leaves a trailing carriage return which upsets mingw
4350
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4351
  *)
4352
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4353
  esac
4354
  case $ac_prog in
4355
    # Accept absolute paths.
4356
    [\\/]* | ?:[\\/]*)
4357
      re_direlt='/[^/][^/]*/\.\./'
4358
      # Canonicalize the pathname of ld
4359
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4360
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4361
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4362
      done
4363
      test -z "$LD" && LD="$ac_prog"
4364
      ;;
4365
  "")
4366
    # If it fails, then pretend we aren't using GCC.
4367
    ac_prog=ld
4368
    ;;
4369
  *)
4370
    # If it is relative, then search for the first ld in PATH.
4371
    with_gnu_ld=unknown
4372
    ;;
4373
  esac
4374
elif test "$with_gnu_ld" = yes; then
4375
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4376
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4377
else
4378
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4379
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4380
fi
4381
if test "${lt_cv_path_LD+set}" = set; then
4382
  echo $ECHO_N "(cached) $ECHO_C" >&6
4383
else
4384
  if test -z "$LD"; then
4385
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4386
  for ac_dir in $PATH; do
4387
    IFS="$lt_save_ifs"
4388
    test -z "$ac_dir" && ac_dir=.
4389
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4390
      lt_cv_path_LD="$ac_dir/$ac_prog"
4391
      # Check to see if the program is GNU ld.  I'd rather use --version,
4392
      # but apparently some variants of GNU ld only accept -v.
4393
      # Break only if it was the GNU/non-GNU ld that we prefer.
4394
      case `"$lt_cv_path_LD" -v 2>&1 
4395
      *GNU* | *'with BFD'*)
4396
        test "$with_gnu_ld" != no && break
4397
        ;;
4398
      *)
4399
        test "$with_gnu_ld" != yes && break
4400
        ;;
4401
      esac
4402
    fi
4403
  done
4404
  IFS="$lt_save_ifs"
4405
else
4406
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4407
fi
4408
fi
4409
 
4410
LD="$lt_cv_path_LD"
4411
if test -n "$LD"; then
4412
  echo "$as_me:$LINENO: result: $LD" >&5
4413
echo "${ECHO_T}$LD" >&6
4414
else
4415
  echo "$as_me:$LINENO: result: no" >&5
4416
echo "${ECHO_T}no" >&6
4417
fi
4418
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4419
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4420
   { (exit 1); exit 1; }; }
4421
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4422
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4423
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4424
  echo $ECHO_N "(cached) $ECHO_C" >&6
4425
else
4426
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4427
case `$LD -v 2>&1 
4428
*GNU* | *'with BFD'*)
4429
  lt_cv_prog_gnu_ld=yes
4430
  ;;
4431
*)
4432
  lt_cv_prog_gnu_ld=no
4433
  ;;
4434
esac
4435
fi
4436
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4437
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4438
with_gnu_ld=$lt_cv_prog_gnu_ld
4439
 
4440
 
4441
 
4442
 
4443
 
4444
 
4445
 
4446
 
4447
 
4448
 
4449
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4450
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4451
if test "${lt_cv_path_NM+set}" = set; then
4452
  echo $ECHO_N "(cached) $ECHO_C" >&6
4453
else
4454
  if test -n "$NM"; then
4455
  # Let the user override the test.
4456
  lt_cv_path_NM="$NM"
4457
else
4458
  lt_nm_to_check="${ac_tool_prefix}nm"
4459
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4460
    lt_nm_to_check="$lt_nm_to_check nm"
4461
  fi
4462
  for lt_tmp_nm in $lt_nm_to_check; do
4463
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4464
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4465
      IFS="$lt_save_ifs"
4466
      test -z "$ac_dir" && ac_dir=.
4467
      tmp_nm="$ac_dir/$lt_tmp_nm"
4468
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4469
        # Check to see if the nm accepts a BSD-compat flag.
4470
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4471
        #   nm: unknown option "B" ignored
4472
        # Tru64's nm complains that /dev/null is an invalid object file
4473
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4474
        */dev/null* | *'Invalid file or object type'*)
4475
          lt_cv_path_NM="$tmp_nm -B"
4476
          break
4477
          ;;
4478
        *)
4479
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4480
          */dev/null*)
4481
            lt_cv_path_NM="$tmp_nm -p"
4482
            break
4483
            ;;
4484
          *)
4485
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4486
            continue # so that we can try to find one that supports BSD flags
4487
            ;;
4488
          esac
4489
          ;;
4490
        esac
4491
      fi
4492
    done
4493
    IFS="$lt_save_ifs"
4494
  done
4495
  : ${lt_cv_path_NM=no}
4496
fi
4497
fi
4498
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4499
echo "${ECHO_T}$lt_cv_path_NM" >&6
4500
if test "$lt_cv_path_NM" != "no"; then
4501
  NM="$lt_cv_path_NM"
4502
else
4503
  # Didn't find any BSD compatible name lister, look for dumpbin.
4504
  if test -n "$ac_tool_prefix"; then
4505
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4506
  do
4507
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4508
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4509
echo "$as_me:$LINENO: checking for $ac_word" >&5
4510
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4511
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4512
  echo $ECHO_N "(cached) $ECHO_C" >&6
4513
else
4514
  if test -n "$DUMPBIN"; then
4515
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4516
else
4517
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518
for as_dir in $PATH
4519
do
4520
  IFS=$as_save_IFS
4521
  test -z "$as_dir" && as_dir=.
4522
  for ac_exec_ext in '' $ac_executable_extensions; do
4523
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4525
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526
    break 2
4527
  fi
4528
done
4529
done
4530
 
4531
fi
4532
fi
4533
DUMPBIN=$ac_cv_prog_DUMPBIN
4534
if test -n "$DUMPBIN"; then
4535
  echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4536
echo "${ECHO_T}$DUMPBIN" >&6
4537
else
4538
  echo "$as_me:$LINENO: result: no" >&5
4539
echo "${ECHO_T}no" >&6
4540
fi
4541
 
4542
    test -n "$DUMPBIN" && break
4543
  done
4544
fi
4545
if test -z "$DUMPBIN"; then
4546
  ac_ct_DUMPBIN=$DUMPBIN
4547
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4548
do
4549
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4550
set dummy $ac_prog; ac_word=$2
4551
echo "$as_me:$LINENO: checking for $ac_word" >&5
4552
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4553
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4554
  echo $ECHO_N "(cached) $ECHO_C" >&6
4555
else
4556
  if test -n "$ac_ct_DUMPBIN"; then
4557
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4558
else
4559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560
for as_dir in $PATH
4561
do
4562
  IFS=$as_save_IFS
4563
  test -z "$as_dir" && as_dir=.
4564
  for ac_exec_ext in '' $ac_executable_extensions; do
4565
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4566
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4567
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568
    break 2
4569
  fi
4570
done
4571
done
4572
 
4573
fi
4574
fi
4575
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4576
if test -n "$ac_ct_DUMPBIN"; then
4577
  echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4578
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4579
else
4580
  echo "$as_me:$LINENO: result: no" >&5
4581
echo "${ECHO_T}no" >&6
4582
fi
4583
 
4584
  test -n "$ac_ct_DUMPBIN" && break
4585
done
4586
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4587
 
4588
  DUMPBIN=$ac_ct_DUMPBIN
4589
fi
4590
 
4591
 
4592
  if test "$DUMPBIN" != ":"; then
4593
    NM="$DUMPBIN"
4594
  fi
4595
fi
4596
test -z "$NM" && NM=nm
4597
 
4598
 
4599
 
4600
 
4601
 
4602
 
4603
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4604
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4605
if test "${lt_cv_nm_interface+set}" = set; then
4606
  echo $ECHO_N "(cached) $ECHO_C" >&6
4607
else
4608
  lt_cv_nm_interface="BSD nm"
4609
  echo "int some_variable = 0;" > conftest.$ac_ext
4610
  (eval echo "\"\$as_me:4610: $ac_compile\"" >&5)
4611
  (eval "$ac_compile" 2>conftest.err)
4612
  cat conftest.err >&5
4613
  (eval echo "\"\$as_me:4613: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4614
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4615
  cat conftest.err >&5
4616
  (eval echo "\"\$as_me:4616: output\"" >&5)
4617
  cat conftest.out >&5
4618
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4619
    lt_cv_nm_interface="MS dumpbin"
4620
  fi
4621
  rm -f conftest*
4622
fi
4623
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4624
echo "${ECHO_T}$lt_cv_nm_interface" >&6
4625
 
4626
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4627
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4628
LN_S=$as_ln_s
4629
if test "$LN_S" = "ln -s"; then
4630
  echo "$as_me:$LINENO: result: yes" >&5
4631
echo "${ECHO_T}yes" >&6
4632
else
4633
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4634
echo "${ECHO_T}no, using $LN_S" >&6
4635
fi
4636
 
4637
# find the maximum length of command line arguments
4638
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4639
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4640
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4641
  echo $ECHO_N "(cached) $ECHO_C" >&6
4642
else
4643
    i=0
4644
  teststring="ABCD"
4645
 
4646
  case $build_os in
4647
  msdosdjgpp*)
4648
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4649
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4650
    # during glob expansion).  Even if it were fixed, the result of this
4651
    # check would be larger than it should be.
4652
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4653
    ;;
4654
 
4655
  gnu*)
4656
    # Under GNU Hurd, this test is not required because there is
4657
    # no limit to the length of command line arguments.
4658
    # Libtool will interpret -1 as no limit whatsoever
4659
    lt_cv_sys_max_cmd_len=-1;
4660
    ;;
4661
 
4662
  cygwin* | mingw*)
4663
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4664
    # about 5 minutes as the teststring grows exponentially.
4665
    # Worse, since 9x/ME are not pre-emptively multitasking,
4666
    # you end up with a "frozen" computer, even though with patience
4667
    # the test eventually succeeds (with a max line length of 256k).
4668
    # Instead, let's just punt: use the minimum linelength reported by
4669
    # all of the supported platforms: 8192 (on NT/2K/XP).
4670
    lt_cv_sys_max_cmd_len=8192;
4671
    ;;
4672
 
4673
  amigaos*)
4674
    # On AmigaOS with pdksh, this test takes hours, literally.
4675
    # So we just punt and use a minimum line length of 8192.
4676
    lt_cv_sys_max_cmd_len=8192;
4677
    ;;
4678
 
4679
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4680
    # This has been around since 386BSD, at least.  Likely further.
4681
    if test -x /sbin/sysctl; then
4682
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4683
    elif test -x /usr/sbin/sysctl; then
4684
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4685
    else
4686
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4687
    fi
4688
    # And add a safety zone
4689
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4690
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4691
    ;;
4692
 
4693
  interix*)
4694
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4695
    lt_cv_sys_max_cmd_len=196608
4696
    ;;
4697
 
4698
  osf*)
4699
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4700
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4701
    # nice to cause kernel panics so lets avoid the loop below.
4702
    # First set a reasonable default.
4703
    lt_cv_sys_max_cmd_len=16384
4704
    #
4705
    if test -x /sbin/sysconfig; then
4706
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4707
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4708
      esac
4709
    fi
4710
    ;;
4711
  sco3.2v5*)
4712
    lt_cv_sys_max_cmd_len=102400
4713
    ;;
4714
  sysv5* | sco5v6* | sysv4.2uw2*)
4715
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4716
    if test -n "$kargmax"; then
4717
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4718
    else
4719
      lt_cv_sys_max_cmd_len=32768
4720
    fi
4721
    ;;
4722
  *)
4723
    lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4724
    if test -n $lt_cv_sys_max_cmd_len; then
4725
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4726
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4727
    else
4728
      # Make teststring a little bigger before we do anything with it.
4729
      # a 1K string should be a reasonable start.
4730
      for i in 1 2 3 4 5 6 7 8 ; do
4731
        teststring=$teststring$teststring
4732
      done
4733
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4734
      # If test is not a shell built-in, we'll probably end up computing a
4735
      # maximum length that is only half of the actual maximum length, but
4736
      # we can't tell.
4737
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4738
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4739
              test $i != 17 # 1/2 MB should be enough
4740
      do
4741
        i=`expr $i + 1`
4742
        teststring=$teststring$teststring
4743
      done
4744
      # Only check the string length outside the loop.
4745
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4746
      teststring=
4747
      # Add a significant safety factor because C++ compilers can tack on
4748
      # massive amounts of additional arguments before passing them to the
4749
      # linker.  It appears as though 1/2 is a usable value.
4750
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4751
    fi
4752
    ;;
4753
  esac
4754
 
4755
fi
4756
 
4757
if test -n $lt_cv_sys_max_cmd_len ; then
4758
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4759
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4760
else
4761
  echo "$as_me:$LINENO: result: none" >&5
4762
echo "${ECHO_T}none" >&6
4763
fi
4764
max_cmd_len=$lt_cv_sys_max_cmd_len
4765
 
4766
 
4767
 
4768
 
4769
 
4770
 
4771
 
4772
: ${CP="cp -f"}
4773
: ${MV="mv -f"}
4774
: ${RM="rm -f"}
4775
 
4776
echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4777
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4778
# Try some XSI features
4779
xsi_shell=no
4780
( _lt_dummy="a/b/c"
4781
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4782
      = c,a/b,, ) >/dev/null 2>&1 \
4783
  && xsi_shell=yes
4784
echo "$as_me:$LINENO: result: $xsi_shell" >&5
4785
echo "${ECHO_T}$xsi_shell" >&6
4786
 
4787
 
4788
echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4789
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4790
lt_shell_append=no
4791
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4792
    >/dev/null 2>&1 \
4793
  && lt_shell_append=yes
4794
echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4795
echo "${ECHO_T}$lt_shell_append" >&6
4796
 
4797
 
4798
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4799
  lt_unset=unset
4800
else
4801
  lt_unset=false
4802
fi
4803
 
4804
 
4805
 
4806
 
4807
 
4808
# test EBCDIC or ASCII
4809
case `echo X|tr X '\101'` in
4810
 A) # ASCII based system
4811
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4812
  lt_SP2NL='tr \040 \012'
4813
  lt_NL2SP='tr \015\012 \040\040'
4814
  ;;
4815
 *) # EBCDIC based system
4816
  lt_SP2NL='tr \100 \n'
4817
  lt_NL2SP='tr \r\n \100\100'
4818
  ;;
4819
esac
4820
 
4821
 
4822
 
4823
 
4824
 
4825
 
4826
 
4827
 
4828
 
4829
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4830
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4831
if test "${lt_cv_ld_reload_flag+set}" = set; then
4832
  echo $ECHO_N "(cached) $ECHO_C" >&6
4833
else
4834
  lt_cv_ld_reload_flag='-r'
4835
fi
4836
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4837
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4838
reload_flag=$lt_cv_ld_reload_flag
4839
case $reload_flag in
4840
"" | " "*) ;;
4841
*) reload_flag=" $reload_flag" ;;
4842
esac
4843
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4844
case $host_os in
4845
  darwin*)
4846
    if test "$GCC" = yes; then
4847
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4848
    else
4849
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4850
    fi
4851
    ;;
4852
esac
4853
 
4854
 
4855
 
4856
 
4857
 
4858
 
4859
 
4860
 
4861
 
4862
 
4863
echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4864
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4865
if test "${lt_cv_deplibs_check_method+set}" = set; then
4866
  echo $ECHO_N "(cached) $ECHO_C" >&6
4867
else
4868
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4869
lt_cv_file_magic_test_file=
4870
lt_cv_deplibs_check_method='unknown'
4871
# Need to set the preceding variable on all platforms that support
4872
# interlibrary dependencies.
4873
# 'none' -- dependencies not supported.
4874
# `unknown' -- same as none, but documents that we really don't know.
4875
# 'pass_all' -- all dependencies passed with no checks.
4876
# 'test_compile' -- check by making test program.
4877
# 'file_magic [[regex]]' -- check by looking for files in library path
4878
# which responds to the $file_magic_cmd with a given extended regex.
4879
# If you have `file' or equivalent on your system and you're not sure
4880
# whether `pass_all' will *always* work, you probably want this one.
4881
 
4882
case $host_os in
4883
aix[4-9]*)
4884
  lt_cv_deplibs_check_method=pass_all
4885
  ;;
4886
 
4887
beos*)
4888
  lt_cv_deplibs_check_method=pass_all
4889
  ;;
4890
 
4891
bsdi[45]*)
4892
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4893
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4894
  lt_cv_file_magic_test_file=/shlib/libc.so
4895
  ;;
4896
 
4897
cygwin*)
4898
  # func_win32_libid is a shell function defined in ltmain.sh
4899
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4900
  lt_cv_file_magic_cmd='func_win32_libid'
4901
  ;;
4902
 
4903
mingw* | pw32*)
4904
  # Base MSYS/MinGW do not provide the 'file' command needed by
4905
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4906
  # unless we find 'file', for example because we are cross-compiling.
4907
  if ( file / ) >/dev/null 2>&1; then
4908
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4909
    lt_cv_file_magic_cmd='func_win32_libid'
4910
  else
4911
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4912
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4913
  fi
4914
  ;;
4915
 
4916
darwin* | rhapsody*)
4917
  lt_cv_deplibs_check_method=pass_all
4918
  ;;
4919
 
4920
freebsd* | dragonfly*)
4921
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4922
    case $host_cpu in
4923
    i*86 )
4924
      # Not sure whether the presence of OpenBSD here was a mistake.
4925
      # Let's accept both of them until this is cleared up.
4926
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4927
      lt_cv_file_magic_cmd=/usr/bin/file
4928
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4929
      ;;
4930
    esac
4931
  else
4932
    lt_cv_deplibs_check_method=pass_all
4933
  fi
4934
  ;;
4935
 
4936
gnu*)
4937
  lt_cv_deplibs_check_method=pass_all
4938
  ;;
4939
 
4940
hpux10.20* | hpux11*)
4941
  lt_cv_file_magic_cmd=/usr/bin/file
4942
  case $host_cpu in
4943
  ia64*)
4944
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4945
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4946
    ;;
4947
  hppa*64*)
4948
    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]'
4949
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4950
    ;;
4951
  *)
4952
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4953
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4954
    ;;
4955
  esac
4956
  ;;
4957
 
4958
interix[3-9]*)
4959
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4960
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4961
  ;;
4962
 
4963
irix5* | irix6* | nonstopux*)
4964
  case $LD in
4965
  *-32|*"-32 ") libmagic=32-bit;;
4966
  *-n32|*"-n32 ") libmagic=N32;;
4967
  *-64|*"-64 ") libmagic=64-bit;;
4968
  *) libmagic=never-match;;
4969
  esac
4970
  lt_cv_deplibs_check_method=pass_all
4971
  ;;
4972
 
4973
# This must be Linux ELF.
4974
linux* | k*bsd*-gnu)
4975
  lt_cv_deplibs_check_method=pass_all
4976
  ;;
4977
 
4978
netbsd*)
4979
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4980
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4981
  else
4982
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4983
  fi
4984
  ;;
4985
 
4986
newos6*)
4987
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4988
  lt_cv_file_magic_cmd=/usr/bin/file
4989
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4990
  ;;
4991
 
4992
*nto* | *qnx*)
4993
  lt_cv_deplibs_check_method=pass_all
4994
  ;;
4995
 
4996
openbsd*)
4997
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4998
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4999
  else
5000
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5001
  fi
5002
  ;;
5003
 
5004
osf3* | osf4* | osf5*)
5005
  lt_cv_deplibs_check_method=pass_all
5006
  ;;
5007
 
5008
rdos*)
5009
  lt_cv_deplibs_check_method=pass_all
5010
  ;;
5011
 
5012
solaris*)
5013
  lt_cv_deplibs_check_method=pass_all
5014
  ;;
5015
 
5016
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5017
  lt_cv_deplibs_check_method=pass_all
5018
  ;;
5019
 
5020
sysv4 | sysv4.3*)
5021
  case $host_vendor in
5022
  motorola)
5023
    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]'
5024
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5025
    ;;
5026
  ncr)
5027
    lt_cv_deplibs_check_method=pass_all
5028
    ;;
5029
  sequent)
5030
    lt_cv_file_magic_cmd='/bin/file'
5031
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5032
    ;;
5033
  sni)
5034
    lt_cv_file_magic_cmd='/bin/file'
5035
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5036
    lt_cv_file_magic_test_file=/lib/libc.so
5037
    ;;
5038
  siemens)
5039
    lt_cv_deplibs_check_method=pass_all
5040
    ;;
5041
  pc)
5042
    lt_cv_deplibs_check_method=pass_all
5043
    ;;
5044
  esac
5045
  ;;
5046
 
5047
tpf*)
5048
  lt_cv_deplibs_check_method=pass_all
5049
  ;;
5050
esac
5051
 
5052
fi
5053
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5054
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5055
file_magic_cmd=$lt_cv_file_magic_cmd
5056
deplibs_check_method=$lt_cv_deplibs_check_method
5057
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5058
 
5059
 
5060
 
5061
 
5062
 
5063
 
5064
 
5065
 
5066
 
5067
 
5068
 
5069
 
5070
if test -n "$ac_tool_prefix"; then
5071
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5072
set dummy ${ac_tool_prefix}ar; ac_word=$2
5073
echo "$as_me:$LINENO: checking for $ac_word" >&5
5074
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075
if test "${ac_cv_prog_AR+set}" = set; then
5076
  echo $ECHO_N "(cached) $ECHO_C" >&6
5077
else
5078
  if test -n "$AR"; then
5079
  ac_cv_prog_AR="$AR" # Let the user override the test.
5080
else
5081
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082
for as_dir in $PATH
5083
do
5084
  IFS=$as_save_IFS
5085
  test -z "$as_dir" && as_dir=.
5086
  for ac_exec_ext in '' $ac_executable_extensions; do
5087
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5089
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090
    break 2
5091
  fi
5092
done
5093
done
5094
 
5095
fi
5096
fi
5097
AR=$ac_cv_prog_AR
5098
if test -n "$AR"; then
5099
  echo "$as_me:$LINENO: result: $AR" >&5
5100
echo "${ECHO_T}$AR" >&6
5101
else
5102
  echo "$as_me:$LINENO: result: no" >&5
5103
echo "${ECHO_T}no" >&6
5104
fi
5105
 
5106
fi
5107
if test -z "$ac_cv_prog_AR"; then
5108
  ac_ct_AR=$AR
5109
  # Extract the first word of "ar", so it can be a program name with args.
5110
set dummy ar; ac_word=$2
5111
echo "$as_me:$LINENO: checking for $ac_word" >&5
5112
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5113
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5114
  echo $ECHO_N "(cached) $ECHO_C" >&6
5115
else
5116
  if test -n "$ac_ct_AR"; then
5117
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5118
else
5119
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120
for as_dir in $PATH
5121
do
5122
  IFS=$as_save_IFS
5123
  test -z "$as_dir" && as_dir=.
5124
  for ac_exec_ext in '' $ac_executable_extensions; do
5125
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126
    ac_cv_prog_ac_ct_AR="ar"
5127
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5128
    break 2
5129
  fi
5130
done
5131
done
5132
 
5133
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5134
fi
5135
fi
5136
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5137
if test -n "$ac_ct_AR"; then
5138
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5139
echo "${ECHO_T}$ac_ct_AR" >&6
5140
else
5141
  echo "$as_me:$LINENO: result: no" >&5
5142
echo "${ECHO_T}no" >&6
5143
fi
5144
 
5145
  AR=$ac_ct_AR
5146
else
5147
  AR="$ac_cv_prog_AR"
5148
fi
5149
 
5150
test -z "$AR" && AR=ar
5151
test -z "$AR_FLAGS" && AR_FLAGS=cru
5152
 
5153
 
5154
 
5155
 
5156
 
5157
 
5158
 
5159
 
5160
 
5161
 
5162
 
5163
if test -n "$ac_tool_prefix"; then
5164
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5165
set dummy ${ac_tool_prefix}strip; ac_word=$2
5166
echo "$as_me:$LINENO: checking for $ac_word" >&5
5167
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5168
if test "${ac_cv_prog_STRIP+set}" = set; then
5169
  echo $ECHO_N "(cached) $ECHO_C" >&6
5170
else
5171
  if test -n "$STRIP"; then
5172
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5173
else
5174
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175
for as_dir in $PATH
5176
do
5177
  IFS=$as_save_IFS
5178
  test -z "$as_dir" && as_dir=.
5179
  for ac_exec_ext in '' $ac_executable_extensions; do
5180
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5182
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5183
    break 2
5184
  fi
5185
done
5186
done
5187
 
5188
fi
5189
fi
5190
STRIP=$ac_cv_prog_STRIP
5191
if test -n "$STRIP"; then
5192
  echo "$as_me:$LINENO: result: $STRIP" >&5
5193
echo "${ECHO_T}$STRIP" >&6
5194
else
5195
  echo "$as_me:$LINENO: result: no" >&5
5196
echo "${ECHO_T}no" >&6
5197
fi
5198
 
5199
fi
5200
if test -z "$ac_cv_prog_STRIP"; then
5201
  ac_ct_STRIP=$STRIP
5202
  # Extract the first word of "strip", so it can be a program name with args.
5203
set dummy strip; ac_word=$2
5204
echo "$as_me:$LINENO: checking for $ac_word" >&5
5205
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5206
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5207
  echo $ECHO_N "(cached) $ECHO_C" >&6
5208
else
5209
  if test -n "$ac_ct_STRIP"; then
5210
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5211
else
5212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213
for as_dir in $PATH
5214
do
5215
  IFS=$as_save_IFS
5216
  test -z "$as_dir" && as_dir=.
5217
  for ac_exec_ext in '' $ac_executable_extensions; do
5218
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219
    ac_cv_prog_ac_ct_STRIP="strip"
5220
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5221
    break 2
5222
  fi
5223
done
5224
done
5225
 
5226
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5227
fi
5228
fi
5229
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5230
if test -n "$ac_ct_STRIP"; then
5231
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5232
echo "${ECHO_T}$ac_ct_STRIP" >&6
5233
else
5234
  echo "$as_me:$LINENO: result: no" >&5
5235
echo "${ECHO_T}no" >&6
5236
fi
5237
 
5238
  STRIP=$ac_ct_STRIP
5239
else
5240
  STRIP="$ac_cv_prog_STRIP"
5241
fi
5242
 
5243
test -z "$STRIP" && STRIP=:
5244
 
5245
 
5246
 
5247
 
5248
 
5249
 
5250
if test -n "$ac_tool_prefix"; then
5251
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5252
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5253
echo "$as_me:$LINENO: checking for $ac_word" >&5
5254
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5255
if test "${ac_cv_prog_RANLIB+set}" = set; then
5256
  echo $ECHO_N "(cached) $ECHO_C" >&6
5257
else
5258
  if test -n "$RANLIB"; then
5259
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5260
else
5261
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262
for as_dir in $PATH
5263
do
5264
  IFS=$as_save_IFS
5265
  test -z "$as_dir" && as_dir=.
5266
  for ac_exec_ext in '' $ac_executable_extensions; do
5267
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5269
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270
    break 2
5271
  fi
5272
done
5273
done
5274
 
5275
fi
5276
fi
5277
RANLIB=$ac_cv_prog_RANLIB
5278
if test -n "$RANLIB"; then
5279
  echo "$as_me:$LINENO: result: $RANLIB" >&5
5280
echo "${ECHO_T}$RANLIB" >&6
5281
else
5282
  echo "$as_me:$LINENO: result: no" >&5
5283
echo "${ECHO_T}no" >&6
5284
fi
5285
 
5286
fi
5287
if test -z "$ac_cv_prog_RANLIB"; then
5288
  ac_ct_RANLIB=$RANLIB
5289
  # Extract the first word of "ranlib", so it can be a program name with args.
5290
set dummy ranlib; ac_word=$2
5291
echo "$as_me:$LINENO: checking for $ac_word" >&5
5292
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5293
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5294
  echo $ECHO_N "(cached) $ECHO_C" >&6
5295
else
5296
  if test -n "$ac_ct_RANLIB"; then
5297
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5298
else
5299
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300
for as_dir in $PATH
5301
do
5302
  IFS=$as_save_IFS
5303
  test -z "$as_dir" && as_dir=.
5304
  for ac_exec_ext in '' $ac_executable_extensions; do
5305
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5307
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5308
    break 2
5309
  fi
5310
done
5311
done
5312
 
5313
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5314
fi
5315
fi
5316
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5317
if test -n "$ac_ct_RANLIB"; then
5318
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5319
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5320
else
5321
  echo "$as_me:$LINENO: result: no" >&5
5322
echo "${ECHO_T}no" >&6
5323
fi
5324
 
5325
  RANLIB=$ac_ct_RANLIB
5326
else
5327
  RANLIB="$ac_cv_prog_RANLIB"
5328
fi
5329
 
5330
test -z "$RANLIB" && RANLIB=:
5331
 
5332
 
5333
 
5334
 
5335
 
5336
 
5337
# Determine commands to create old-style static archives.
5338
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5339
old_postinstall_cmds='chmod 644 $oldlib'
5340
old_postuninstall_cmds=
5341
 
5342
if test -n "$RANLIB"; then
5343
  case $host_os in
5344
  openbsd*)
5345
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5346
    ;;
5347
  *)
5348
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5349
    ;;
5350
  esac
5351
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5352
fi
5353
 
5354
 
5355
 
5356
 
5357
 
5358
 
5359
 
5360
 
5361
 
5362
 
5363
 
5364
 
5365
 
5366
 
5367
 
5368
 
5369
 
5370
 
5371
 
5372
 
5373
 
5374
 
5375
 
5376
 
5377
 
5378
 
5379
 
5380
 
5381
 
5382
 
5383
 
5384
 
5385
 
5386
 
5387
# If no C compiler was specified, use CC.
5388
LTCC=${LTCC-"$CC"}
5389
 
5390
# If no C compiler flags were specified, use CFLAGS.
5391
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5392
 
5393
# Allow CC to be a program name with arguments.
5394
compiler=$CC
5395
 
5396
 
5397
# Check for command to grab the raw symbol name followed by C symbol from nm.
5398
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5399
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5400
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5401
  echo $ECHO_N "(cached) $ECHO_C" >&6
5402
else
5403
 
5404
# These are sane defaults that work on at least a few old systems.
5405
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5406
 
5407
# Character class describing NM global symbol codes.
5408
symcode='[BCDEGRST]'
5409
 
5410
# Regexp to match symbols that can be accessed directly from C.
5411
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5412
 
5413
# Define system-specific variables.
5414
case $host_os in
5415
aix*)
5416
  symcode='[BCDT]'
5417
  ;;
5418
cygwin* | mingw* | pw32*)
5419
  symcode='[ABCDGISTW]'
5420
  ;;
5421
hpux*)
5422
  if test "$host_cpu" = ia64; then
5423
    symcode='[ABCDEGRST]'
5424
  fi
5425
  ;;
5426
irix* | nonstopux*)
5427
  symcode='[BCDEGRST]'
5428
  ;;
5429
osf*)
5430
  symcode='[BCDEGQRST]'
5431
  ;;
5432
solaris*)
5433
  symcode='[BDRT]'
5434
  ;;
5435
sco3.2v5*)
5436
  symcode='[DT]'
5437
  ;;
5438
sysv4.2uw2*)
5439
  symcode='[DT]'
5440
  ;;
5441
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5442
  symcode='[ABDT]'
5443
  ;;
5444
sysv4)
5445
  symcode='[DFNSTU]'
5446
  ;;
5447
esac
5448
 
5449
# If we're using GNU nm, then use its standard symbol codes.
5450
case `$NM -V 2>&1` in
5451
*GNU* | *'with BFD'*)
5452
  symcode='[ABCDGIRSTW]' ;;
5453
esac
5454
 
5455
# Transform an extracted symbol line into a proper C declaration.
5456
# Some systems (esp. on ia64) link data and code symbols differently,
5457
# so use this general approach.
5458
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5459
 
5460
# Transform an extracted symbol line into symbol name and symbol address
5461
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5462
 
5463
# Handle CRLF in mingw tool chain
5464
opt_cr=
5465
case $build_os in
5466
mingw*)
5467
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5468
  ;;
5469
esac
5470
 
5471
# Try without a prefix underscore, then with it.
5472
for ac_symprfx in "" "_"; do
5473
 
5474
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5475
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5476
 
5477
  # Write the raw and C identifiers.
5478
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5479
    # Fake it for dumpbin and say T for any non-static function
5480
    # and D for any global variable.
5481
    # Also find C++ and __fastcall symbols from MSVC++,
5482
    # which start with @ or ?.
5483
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5484
"     {last_section=section; section=\$ 3};"\
5485
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5486
"     \$ 0!~/External *\|/{next};"\
5487
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5488
"     {if(hide[section]) next};"\
5489
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5490
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5491
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5492
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5493
"     ' prfx=^$ac_symprfx"
5494
  else
5495
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5496
  fi
5497
 
5498
  # Check to see that the pipe works correctly.
5499
  pipe_works=no
5500
 
5501
  rm -f conftest*
5502
  cat > conftest.$ac_ext <<_LT_EOF
5503
#ifdef __cplusplus
5504
extern "C" {
5505
#endif
5506
char nm_test_var;
5507
void nm_test_func(void);
5508
void nm_test_func(void){}
5509
#ifdef __cplusplus
5510
}
5511
#endif
5512
int main(){nm_test_var='a';nm_test_func();return(0);}
5513
_LT_EOF
5514
 
5515
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5516
  (eval $ac_compile) 2>&5
5517
  ac_status=$?
5518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519
  (exit $ac_status); }; then
5520
    # Now try to grab the symbols.
5521
    nlist=conftest.nm
5522
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5523
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5524
  ac_status=$?
5525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526
  (exit $ac_status); } && test -s "$nlist"; then
5527
      # Try sorting and uniquifying the output.
5528
      if sort "$nlist" | uniq > "$nlist"T; then
5529
        mv -f "$nlist"T "$nlist"
5530
      else
5531
        rm -f "$nlist"T
5532
      fi
5533
 
5534
      # Make sure that we snagged all the symbols we need.
5535
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5536
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5537
          cat <<_LT_EOF > conftest.$ac_ext
5538
#ifdef __cplusplus
5539
extern "C" {
5540
#endif
5541
 
5542
_LT_EOF
5543
          # Now generate the symbol file.
5544
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5545
 
5546
          cat <<_LT_EOF >> conftest.$ac_ext
5547
 
5548
/* The mapping between symbol names and symbols.  */
5549
const struct {
5550
  const char *name;
5551
  void       *address;
5552
}
5553
lt__PROGRAM__LTX_preloaded_symbols[] =
5554
{
5555
  { "@PROGRAM@", (void *) 0 },
5556
_LT_EOF
5557
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5558
          cat <<\_LT_EOF >> conftest.$ac_ext
5559
  {0, (void *) 0}
5560
};
5561
 
5562
/* This works around a problem in FreeBSD linker */
5563
#ifdef FREEBSD_WORKAROUND
5564
static const void *lt_preloaded_setup() {
5565
  return lt__PROGRAM__LTX_preloaded_symbols;
5566
}
5567
#endif
5568
 
5569
#ifdef __cplusplus
5570
}
5571
#endif
5572
_LT_EOF
5573
          # Now try linking the two files.
5574
          mv conftest.$ac_objext conftstm.$ac_objext
5575
          lt_save_LIBS="$LIBS"
5576
          lt_save_CFLAGS="$CFLAGS"
5577
          LIBS="conftstm.$ac_objext"
5578
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5579
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580
  (eval $ac_link) 2>&5
5581
  ac_status=$?
5582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5584
            pipe_works=yes
5585
          fi
5586
          LIBS="$lt_save_LIBS"
5587
          CFLAGS="$lt_save_CFLAGS"
5588
        else
5589
          echo "cannot find nm_test_func in $nlist" >&5
5590
        fi
5591
      else
5592
        echo "cannot find nm_test_var in $nlist" >&5
5593
      fi
5594
    else
5595
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5596
    fi
5597
  else
5598
    echo "$progname: failed program was:" >&5
5599
    cat conftest.$ac_ext >&5
5600
  fi
5601
  rm -f conftest* conftst*
5602
 
5603
  # Do not use the global_symbol_pipe unless it works.
5604
  if test "$pipe_works" = yes; then
5605
    break
5606
  else
5607
    lt_cv_sys_global_symbol_pipe=
5608
  fi
5609
done
5610
 
5611
fi
5612
 
5613
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5614
  lt_cv_sys_global_symbol_to_cdecl=
5615
fi
5616
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5617
  echo "$as_me:$LINENO: result: failed" >&5
5618
echo "${ECHO_T}failed" >&6
5619
else
5620
  echo "$as_me:$LINENO: result: ok" >&5
5621
echo "${ECHO_T}ok" >&6
5622
fi
5623
 
5624
 
5625
 
5626
 
5627
 
5628
 
5629
 
5630
 
5631
 
5632
 
5633
 
5634
 
5635
 
5636
 
5637
 
5638
 
5639
 
5640
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5641
if test "${enable_libtool_lock+set}" = set; then
5642
  enableval="$enable_libtool_lock"
5643
 
5644
fi;
5645
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5646
 
5647
# Some flags need to be propagated to the compiler or linker for good
5648
# libtool support.
5649
case $host in
5650
ia64-*-hpux*)
5651
  # Find out which ABI we are using.
5652
  echo 'int i;' > conftest.$ac_ext
5653
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654
  (eval $ac_compile) 2>&5
5655
  ac_status=$?
5656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657
  (exit $ac_status); }; then
5658
    case `/usr/bin/file conftest.$ac_objext` in
5659
      *ELF-32*)
5660
        HPUX_IA64_MODE="32"
5661
        ;;
5662
      *ELF-64*)
5663
        HPUX_IA64_MODE="64"
5664
        ;;
5665
    esac
5666
  fi
5667
  rm -rf conftest*
5668
  ;;
5669
*-*-irix6*)
5670
  # Find out which ABI we are using.
5671
  echo '#line 5671 "configure"' > conftest.$ac_ext
5672
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673
  (eval $ac_compile) 2>&5
5674
  ac_status=$?
5675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676
  (exit $ac_status); }; then
5677
    if test "$lt_cv_prog_gnu_ld" = yes; then
5678
      case `/usr/bin/file conftest.$ac_objext` in
5679
        *32-bit*)
5680
          LD="${LD-ld} -melf32bsmip"
5681
          ;;
5682
        *N32*)
5683
          LD="${LD-ld} -melf32bmipn32"
5684
          ;;
5685
        *64-bit*)
5686
          LD="${LD-ld} -melf64bmip"
5687
        ;;
5688
      esac
5689
    else
5690
      case `/usr/bin/file conftest.$ac_objext` in
5691
        *32-bit*)
5692
          LD="${LD-ld} -32"
5693
          ;;
5694
        *N32*)
5695
          LD="${LD-ld} -n32"
5696
          ;;
5697
        *64-bit*)
5698
          LD="${LD-ld} -64"
5699
          ;;
5700
      esac
5701
    fi
5702
  fi
5703
  rm -rf conftest*
5704
  ;;
5705
 
5706
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5707
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5708
  # Find out which ABI we are using.
5709
  echo 'int i;' > conftest.$ac_ext
5710
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5711
  (eval $ac_compile) 2>&5
5712
  ac_status=$?
5713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714
  (exit $ac_status); }; then
5715
    case `/usr/bin/file conftest.o` in
5716
      *32-bit*)
5717
        case $host in
5718
          x86_64-*kfreebsd*-gnu)
5719
            LD="${LD-ld} -m elf_i386_fbsd"
5720
            ;;
5721
          x86_64-*linux*)
5722
            LD="${LD-ld} -m elf_i386"
5723
            ;;
5724
          ppc64-*linux*|powerpc64-*linux*)
5725
            LD="${LD-ld} -m elf32ppclinux"
5726
            ;;
5727
          s390x-*linux*)
5728
            LD="${LD-ld} -m elf_s390"
5729
            ;;
5730
          sparc64-*linux*)
5731
            LD="${LD-ld} -m elf32_sparc"
5732
            ;;
5733
        esac
5734
        ;;
5735
      *64-bit*)
5736
        case $host in
5737
          x86_64-*kfreebsd*-gnu)
5738
            LD="${LD-ld} -m elf_x86_64_fbsd"
5739
            ;;
5740
          x86_64-*linux*)
5741
            LD="${LD-ld} -m elf_x86_64"
5742
            ;;
5743
          ppc*-*linux*|powerpc*-*linux*)
5744
            LD="${LD-ld} -m elf64ppc"
5745
            ;;
5746
          s390*-*linux*|s390*-*tpf*)
5747
            LD="${LD-ld} -m elf64_s390"
5748
            ;;
5749
          sparc*-*linux*)
5750
            LD="${LD-ld} -m elf64_sparc"
5751
            ;;
5752
        esac
5753
        ;;
5754
    esac
5755
  fi
5756
  rm -rf conftest*
5757
  ;;
5758
 
5759
*-*-sco3.2v5*)
5760
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5761
  SAVE_CFLAGS="$CFLAGS"
5762
  CFLAGS="$CFLAGS -belf"
5763
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5764
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5765
if test "${lt_cv_cc_needs_belf+set}" = set; then
5766
  echo $ECHO_N "(cached) $ECHO_C" >&6
5767
else
5768
  ac_ext=c
5769
ac_cpp='$CPP $CPPFLAGS'
5770
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5771
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5772
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5773
 
5774
     cat >conftest.$ac_ext <<_ACEOF
5775
/* confdefs.h.  */
5776
_ACEOF
5777
cat confdefs.h >>conftest.$ac_ext
5778
cat >>conftest.$ac_ext <<_ACEOF
5779
/* end confdefs.h.  */
5780
 
5781
int
5782
main ()
5783
{
5784
 
5785
  ;
5786
  return 0;
5787
}
5788
_ACEOF
5789
rm -f conftest.$ac_objext conftest$ac_exeext
5790
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791
  (eval $ac_link) 2>conftest.er1
5792
  ac_status=$?
5793
  grep -v '^ *+' conftest.er1 >conftest.err
5794
  rm -f conftest.er1
5795
  cat conftest.err >&5
5796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797
  (exit $ac_status); } &&
5798
         { ac_try='test -z "$ac_c_werror_flag"
5799
                         || test ! -s conftest.err'
5800
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801
  (eval $ac_try) 2>&5
5802
  ac_status=$?
5803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804
  (exit $ac_status); }; } &&
5805
         { ac_try='test -s conftest$ac_exeext'
5806
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807
  (eval $ac_try) 2>&5
5808
  ac_status=$?
5809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810
  (exit $ac_status); }; }; then
5811
  lt_cv_cc_needs_belf=yes
5812
else
5813
  echo "$as_me: failed program was:" >&5
5814
sed 's/^/| /' conftest.$ac_ext >&5
5815
 
5816
lt_cv_cc_needs_belf=no
5817
fi
5818
rm -f conftest.err conftest.$ac_objext \
5819
      conftest$ac_exeext conftest.$ac_ext
5820
     ac_ext=c
5821
ac_cpp='$CPP $CPPFLAGS'
5822
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5823
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5824
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5825
 
5826
fi
5827
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5828
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5829
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5830
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5831
    CFLAGS="$SAVE_CFLAGS"
5832
  fi
5833
  ;;
5834
sparc*-*solaris*)
5835
  # Find out which ABI we are using.
5836
  echo 'int i;' > conftest.$ac_ext
5837
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838
  (eval $ac_compile) 2>&5
5839
  ac_status=$?
5840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841
  (exit $ac_status); }; then
5842
    case `/usr/bin/file conftest.o` in
5843
    *64-bit*)
5844
      case $lt_cv_prog_gnu_ld in
5845
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5846
      *)    LD="${LD-ld} -64" ;;
5847
      esac
5848
      ;;
5849
    esac
5850
  fi
5851
  rm -rf conftest*
5852
  ;;
5853
esac
5854
 
5855
need_locks="$enable_libtool_lock"
5856
 
5857
ac_ext=c
5858
ac_cpp='$CPP $CPPFLAGS'
5859
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5862
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5863
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5864
# On Suns, sometimes $CPP names a directory.
5865
if test -n "$CPP" && test -d "$CPP"; then
5866
  CPP=
5867
fi
5868
if test -z "$CPP"; then
5869
  if test "${ac_cv_prog_CPP+set}" = set; then
5870
  echo $ECHO_N "(cached) $ECHO_C" >&6
5871
else
5872
      # Double quotes because CPP needs to be expanded
5873
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5874
    do
5875
      ac_preproc_ok=false
5876
for ac_c_preproc_warn_flag in '' yes
5877
do
5878
  # Use a header file that comes with gcc, so configuring glibc
5879
  # with a fresh cross-compiler works.
5880
  # Prefer  to  if __STDC__ is defined, since
5881
  #  exists even on freestanding compilers.
5882
  # On the NeXT, cc -E runs the code through the compiler's parser,
5883
  # not just through cpp. "Syntax error" is here to catch this case.
5884
  cat >conftest.$ac_ext <<_ACEOF
5885
/* confdefs.h.  */
5886
_ACEOF
5887
cat confdefs.h >>conftest.$ac_ext
5888
cat >>conftest.$ac_ext <<_ACEOF
5889
/* end confdefs.h.  */
5890
#ifdef __STDC__
5891
# include 
5892
#else
5893
# include 
5894
#endif
5895
                     Syntax error
5896
_ACEOF
5897
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5898
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5899
  ac_status=$?
5900
  grep -v '^ *+' conftest.er1 >conftest.err
5901
  rm -f conftest.er1
5902
  cat conftest.err >&5
5903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904
  (exit $ac_status); } >/dev/null; then
5905
  if test -s conftest.err; then
5906
    ac_cpp_err=$ac_c_preproc_warn_flag
5907
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5908
  else
5909
    ac_cpp_err=
5910
  fi
5911
else
5912
  ac_cpp_err=yes
5913
fi
5914
if test -z "$ac_cpp_err"; then
5915
  :
5916
else
5917
  echo "$as_me: failed program was:" >&5
5918
sed 's/^/| /' conftest.$ac_ext >&5
5919
 
5920
  # Broken: fails on valid input.
5921
continue
5922
fi
5923
rm -f conftest.err conftest.$ac_ext
5924
 
5925
  # OK, works on sane cases.  Now check whether non-existent headers
5926
  # can be detected and how.
5927
  cat >conftest.$ac_ext <<_ACEOF
5928
/* confdefs.h.  */
5929
_ACEOF
5930
cat confdefs.h >>conftest.$ac_ext
5931
cat >>conftest.$ac_ext <<_ACEOF
5932
/* end confdefs.h.  */
5933
#include 
5934
_ACEOF
5935
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5936
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5937
  ac_status=$?
5938
  grep -v '^ *+' conftest.er1 >conftest.err
5939
  rm -f conftest.er1
5940
  cat conftest.err >&5
5941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942
  (exit $ac_status); } >/dev/null; then
5943
  if test -s conftest.err; then
5944
    ac_cpp_err=$ac_c_preproc_warn_flag
5945
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5946
  else
5947
    ac_cpp_err=
5948
  fi
5949
else
5950
  ac_cpp_err=yes
5951
fi
5952
if test -z "$ac_cpp_err"; then
5953
  # Broken: success on invalid input.
5954
continue
5955
else
5956
  echo "$as_me: failed program was:" >&5
5957
sed 's/^/| /' conftest.$ac_ext >&5
5958
 
5959
  # Passes both tests.
5960
ac_preproc_ok=:
5961
break
5962
fi
5963
rm -f conftest.err conftest.$ac_ext
5964
 
5965
done
5966
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5967
rm -f conftest.err conftest.$ac_ext
5968
if $ac_preproc_ok; then
5969
  break
5970
fi
5971
 
5972
    done
5973
    ac_cv_prog_CPP=$CPP
5974
 
5975
fi
5976
  CPP=$ac_cv_prog_CPP
5977
else
5978
  ac_cv_prog_CPP=$CPP
5979
fi
5980
echo "$as_me:$LINENO: result: $CPP" >&5
5981
echo "${ECHO_T}$CPP" >&6
5982
ac_preproc_ok=false
5983
for ac_c_preproc_warn_flag in '' yes
5984
do
5985
  # Use a header file that comes with gcc, so configuring glibc
5986
  # with a fresh cross-compiler works.
5987
  # Prefer  to  if __STDC__ is defined, since
5988
  #  exists even on freestanding compilers.
5989
  # On the NeXT, cc -E runs the code through the compiler's parser,
5990
  # not just through cpp. "Syntax error" is here to catch this case.
5991
  cat >conftest.$ac_ext <<_ACEOF
5992
/* confdefs.h.  */
5993
_ACEOF
5994
cat confdefs.h >>conftest.$ac_ext
5995
cat >>conftest.$ac_ext <<_ACEOF
5996
/* end confdefs.h.  */
5997
#ifdef __STDC__
5998
# include 
5999
#else
6000
# include 
6001
#endif
6002
                     Syntax error
6003
_ACEOF
6004
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6005
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6006
  ac_status=$?
6007
  grep -v '^ *+' conftest.er1 >conftest.err
6008
  rm -f conftest.er1
6009
  cat conftest.err >&5
6010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011
  (exit $ac_status); } >/dev/null; then
6012
  if test -s conftest.err; then
6013
    ac_cpp_err=$ac_c_preproc_warn_flag
6014
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6015
  else
6016
    ac_cpp_err=
6017
  fi
6018
else
6019
  ac_cpp_err=yes
6020
fi
6021
if test -z "$ac_cpp_err"; then
6022
  :
6023
else
6024
  echo "$as_me: failed program was:" >&5
6025
sed 's/^/| /' conftest.$ac_ext >&5
6026
 
6027
  # Broken: fails on valid input.
6028
continue
6029
fi
6030
rm -f conftest.err conftest.$ac_ext
6031
 
6032
  # OK, works on sane cases.  Now check whether non-existent headers
6033
  # can be detected and how.
6034
  cat >conftest.$ac_ext <<_ACEOF
6035
/* confdefs.h.  */
6036
_ACEOF
6037
cat confdefs.h >>conftest.$ac_ext
6038
cat >>conftest.$ac_ext <<_ACEOF
6039
/* end confdefs.h.  */
6040
#include 
6041
_ACEOF
6042
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6043
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6044
  ac_status=$?
6045
  grep -v '^ *+' conftest.er1 >conftest.err
6046
  rm -f conftest.er1
6047
  cat conftest.err >&5
6048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049
  (exit $ac_status); } >/dev/null; then
6050
  if test -s conftest.err; then
6051
    ac_cpp_err=$ac_c_preproc_warn_flag
6052
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6053
  else
6054
    ac_cpp_err=
6055
  fi
6056
else
6057
  ac_cpp_err=yes
6058
fi
6059
if test -z "$ac_cpp_err"; then
6060
  # Broken: success on invalid input.
6061
continue
6062
else
6063
  echo "$as_me: failed program was:" >&5
6064
sed 's/^/| /' conftest.$ac_ext >&5
6065
 
6066
  # Passes both tests.
6067
ac_preproc_ok=:
6068
break
6069
fi
6070
rm -f conftest.err conftest.$ac_ext
6071
 
6072
done
6073
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6074
rm -f conftest.err conftest.$ac_ext
6075
if $ac_preproc_ok; then
6076
  :
6077
else
6078
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6079
See \`config.log' for more details." >&5
6080
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6081
See \`config.log' for more details." >&2;}
6082
   { (exit 1); exit 1; }; }
6083
fi
6084
 
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
 
6092
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6093
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6094
if test "${ac_cv_header_stdc+set}" = set; then
6095
  echo $ECHO_N "(cached) $ECHO_C" >&6
6096
else
6097
  cat >conftest.$ac_ext <<_ACEOF
6098
/* confdefs.h.  */
6099
_ACEOF
6100
cat confdefs.h >>conftest.$ac_ext
6101
cat >>conftest.$ac_ext <<_ACEOF
6102
/* end confdefs.h.  */
6103
#include 
6104
#include 
6105
#include 
6106
#include 
6107
 
6108
int
6109
main ()
6110
{
6111
 
6112
  ;
6113
  return 0;
6114
}
6115
_ACEOF
6116
rm -f conftest.$ac_objext
6117
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6118
  (eval $ac_compile) 2>conftest.er1
6119
  ac_status=$?
6120
  grep -v '^ *+' conftest.er1 >conftest.err
6121
  rm -f conftest.er1
6122
  cat conftest.err >&5
6123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124
  (exit $ac_status); } &&
6125
         { ac_try='test -z "$ac_c_werror_flag"
6126
                         || test ! -s conftest.err'
6127
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128
  (eval $ac_try) 2>&5
6129
  ac_status=$?
6130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131
  (exit $ac_status); }; } &&
6132
         { ac_try='test -s conftest.$ac_objext'
6133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134
  (eval $ac_try) 2>&5
6135
  ac_status=$?
6136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137
  (exit $ac_status); }; }; then
6138
  ac_cv_header_stdc=yes
6139
else
6140
  echo "$as_me: failed program was:" >&5
6141
sed 's/^/| /' conftest.$ac_ext >&5
6142
 
6143
ac_cv_header_stdc=no
6144
fi
6145
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6146
 
6147
if test $ac_cv_header_stdc = yes; then
6148
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6149
  cat >conftest.$ac_ext <<_ACEOF
6150
/* confdefs.h.  */
6151
_ACEOF
6152
cat confdefs.h >>conftest.$ac_ext
6153
cat >>conftest.$ac_ext <<_ACEOF
6154
/* end confdefs.h.  */
6155
#include 
6156
 
6157
_ACEOF
6158
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6159
  $EGREP "memchr" >/dev/null 2>&1; then
6160
  :
6161
else
6162
  ac_cv_header_stdc=no
6163
fi
6164
rm -f conftest*
6165
 
6166
fi
6167
 
6168
if test $ac_cv_header_stdc = yes; then
6169
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6170
  cat >conftest.$ac_ext <<_ACEOF
6171
/* confdefs.h.  */
6172
_ACEOF
6173
cat confdefs.h >>conftest.$ac_ext
6174
cat >>conftest.$ac_ext <<_ACEOF
6175
/* end confdefs.h.  */
6176
#include 
6177
 
6178
_ACEOF
6179
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6180
  $EGREP "free" >/dev/null 2>&1; then
6181
  :
6182
else
6183
  ac_cv_header_stdc=no
6184
fi
6185
rm -f conftest*
6186
 
6187
fi
6188
 
6189
if test $ac_cv_header_stdc = yes; then
6190
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6191
  if test "$cross_compiling" = yes; then
6192
  :
6193
else
6194
  cat >conftest.$ac_ext <<_ACEOF
6195
/* confdefs.h.  */
6196
_ACEOF
6197
cat confdefs.h >>conftest.$ac_ext
6198
cat >>conftest.$ac_ext <<_ACEOF
6199
/* end confdefs.h.  */
6200
#include 
6201
#if ((' ' & 0x0FF) == 0x020)
6202
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6203
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6204
#else
6205
# define ISLOWER(c) \
6206
                   (('a' <= (c) && (c) <= 'i') \
6207
                     || ('j' <= (c) && (c) <= 'r') \
6208
                     || ('s' <= (c) && (c) <= 'z'))
6209
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6210
#endif
6211
 
6212
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6213
int
6214
main ()
6215
{
6216
  int i;
6217
  for (i = 0; i < 256; i++)
6218
    if (XOR (islower (i), ISLOWER (i))
6219
        || toupper (i) != TOUPPER (i))
6220
      exit(2);
6221
  exit (0);
6222
}
6223
_ACEOF
6224
rm -f conftest$ac_exeext
6225
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6226
  (eval $ac_link) 2>&5
6227
  ac_status=$?
6228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231
  (eval $ac_try) 2>&5
6232
  ac_status=$?
6233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234
  (exit $ac_status); }; }; then
6235
  :
6236
else
6237
  echo "$as_me: program exited with status $ac_status" >&5
6238
echo "$as_me: failed program was:" >&5
6239
sed 's/^/| /' conftest.$ac_ext >&5
6240
 
6241
( exit $ac_status )
6242
ac_cv_header_stdc=no
6243
fi
6244
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6245
fi
6246
fi
6247
fi
6248
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6249
echo "${ECHO_T}$ac_cv_header_stdc" >&6
6250
if test $ac_cv_header_stdc = yes; then
6251
 
6252
cat >>confdefs.h <<\_ACEOF
6253
#define STDC_HEADERS 1
6254
_ACEOF
6255
 
6256
fi
6257
 
6258
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6259
 
6260
 
6261
 
6262
 
6263
 
6264
 
6265
 
6266
 
6267
 
6268
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6269
                  inttypes.h stdint.h unistd.h
6270
do
6271
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6272
echo "$as_me:$LINENO: checking for $ac_header" >&5
6273
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6274
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6275
  echo $ECHO_N "(cached) $ECHO_C" >&6
6276
else
6277
  cat >conftest.$ac_ext <<_ACEOF
6278
/* confdefs.h.  */
6279
_ACEOF
6280
cat confdefs.h >>conftest.$ac_ext
6281
cat >>conftest.$ac_ext <<_ACEOF
6282
/* end confdefs.h.  */
6283
$ac_includes_default
6284
 
6285
#include <$ac_header>
6286
_ACEOF
6287
rm -f conftest.$ac_objext
6288
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6289
  (eval $ac_compile) 2>conftest.er1
6290
  ac_status=$?
6291
  grep -v '^ *+' conftest.er1 >conftest.err
6292
  rm -f conftest.er1
6293
  cat conftest.err >&5
6294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295
  (exit $ac_status); } &&
6296
         { ac_try='test -z "$ac_c_werror_flag"
6297
                         || test ! -s conftest.err'
6298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299
  (eval $ac_try) 2>&5
6300
  ac_status=$?
6301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302
  (exit $ac_status); }; } &&
6303
         { ac_try='test -s conftest.$ac_objext'
6304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305
  (eval $ac_try) 2>&5
6306
  ac_status=$?
6307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308
  (exit $ac_status); }; }; then
6309
  eval "$as_ac_Header=yes"
6310
else
6311
  echo "$as_me: failed program was:" >&5
6312
sed 's/^/| /' conftest.$ac_ext >&5
6313
 
6314
eval "$as_ac_Header=no"
6315
fi
6316
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6317
fi
6318
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6319
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6320
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6321
  cat >>confdefs.h <<_ACEOF
6322
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6323
_ACEOF
6324
 
6325
fi
6326
 
6327
done
6328
 
6329
 
6330
 
6331
for ac_header in dlfcn.h
6332
do
6333
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6334
echo "$as_me:$LINENO: checking for $ac_header" >&5
6335
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6336
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6337
  echo $ECHO_N "(cached) $ECHO_C" >&6
6338
else
6339
  cat >conftest.$ac_ext <<_ACEOF
6340
/* confdefs.h.  */
6341
_ACEOF
6342
cat confdefs.h >>conftest.$ac_ext
6343
cat >>conftest.$ac_ext <<_ACEOF
6344
/* end confdefs.h.  */
6345
$ac_includes_default
6346
 
6347
#include <$ac_header>
6348
_ACEOF
6349
rm -f conftest.$ac_objext
6350
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6351
  (eval $ac_compile) 2>conftest.er1
6352
  ac_status=$?
6353
  grep -v '^ *+' conftest.er1 >conftest.err
6354
  rm -f conftest.er1
6355
  cat conftest.err >&5
6356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357
  (exit $ac_status); } &&
6358
         { ac_try='test -z "$ac_c_werror_flag"
6359
                         || test ! -s conftest.err'
6360
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361
  (eval $ac_try) 2>&5
6362
  ac_status=$?
6363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364
  (exit $ac_status); }; } &&
6365
         { ac_try='test -s conftest.$ac_objext'
6366
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367
  (eval $ac_try) 2>&5
6368
  ac_status=$?
6369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370
  (exit $ac_status); }; }; then
6371
  eval "$as_ac_Header=yes"
6372
else
6373
  echo "$as_me: failed program was:" >&5
6374
sed 's/^/| /' conftest.$ac_ext >&5
6375
 
6376
eval "$as_ac_Header=no"
6377
fi
6378
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6379
fi
6380
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6381
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6382
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6383
  cat >>confdefs.h <<_ACEOF
6384
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6385
_ACEOF
6386
 
6387
fi
6388
 
6389
done
6390
 
6391
 
6392
 
6393
# This can be used to rebuild libtool when needed
6394
LIBTOOL_DEPS="$ltmain"
6395
 
6396
# Always use our own libtool.
6397
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6398
 
6399
 
6400
 
6401
 
6402
 
6403
 
6404
 
6405
 
6406
 
6407
 
6408
 
6409
 
6410
 
6411
 
6412
 
6413
 
6414
 
6415
 
6416
 
6417
 
6418
 
6419
 
6420
 
6421
 
6422
 
6423
test -z "$LN_S" && LN_S="ln -s"
6424
 
6425
 
6426
 
6427
 
6428
 
6429
 
6430
 
6431
 
6432
 
6433
 
6434
 
6435
 
6436
 
6437
 
6438
if test -n "${ZSH_VERSION+set}" ; then
6439
   setopt NO_GLOB_SUBST
6440
fi
6441
 
6442
echo "$as_me:$LINENO: checking for objdir" >&5
6443
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6444
if test "${lt_cv_objdir+set}" = set; then
6445
  echo $ECHO_N "(cached) $ECHO_C" >&6
6446
else
6447
  rm -f .libs 2>/dev/null
6448
mkdir .libs 2>/dev/null
6449
if test -d .libs; then
6450
  lt_cv_objdir=.libs
6451
else
6452
  # MS-DOS does not allow filenames that begin with a dot.
6453
  lt_cv_objdir=_libs
6454
fi
6455
rmdir .libs 2>/dev/null
6456
fi
6457
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6458
echo "${ECHO_T}$lt_cv_objdir" >&6
6459
objdir=$lt_cv_objdir
6460
 
6461
 
6462
 
6463
 
6464
 
6465
cat >>confdefs.h <<_ACEOF
6466
#define LT_OBJDIR "$lt_cv_objdir/"
6467
_ACEOF
6468
 
6469
 
6470
 
6471
 
6472
 
6473
 
6474
 
6475
 
6476
 
6477
 
6478
 
6479
 
6480
 
6481
 
6482
 
6483
 
6484
 
6485
case $host_os in
6486
aix3*)
6487
  # AIX sometimes has problems with the GCC collect2 program.  For some
6488
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6489
  # vanish in a puff of smoke.
6490
  if test "X${COLLECT_NAMES+set}" != Xset; then
6491
    COLLECT_NAMES=
6492
    export COLLECT_NAMES
6493
  fi
6494
  ;;
6495
esac
6496
 
6497
# Sed substitution that helps us do robust quoting.  It backslashifies
6498
# metacharacters that are still active within double-quoted strings.
6499
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6500
 
6501
# Same as above, but do not quote variable references.
6502
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6503
 
6504
# Sed substitution to delay expansion of an escaped shell variable in a
6505
# double_quote_subst'ed string.
6506
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6507
 
6508
# Sed substitution to delay expansion of an escaped single quote.
6509
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6510
 
6511
# Sed substitution to avoid accidental globbing in evaled expressions
6512
no_glob_subst='s/\*/\\\*/g'
6513
 
6514
# Global variables:
6515
ofile=libtool
6516
can_build_shared=yes
6517
 
6518
# All known linkers require a `.a' archive for static linking (except MSVC,
6519
# which needs '.lib').
6520
libext=a
6521
 
6522
with_gnu_ld="$lt_cv_prog_gnu_ld"
6523
 
6524
old_CC="$CC"
6525
old_CFLAGS="$CFLAGS"
6526
 
6527
# Set sane defaults for various variables
6528
test -z "$CC" && CC=cc
6529
test -z "$LTCC" && LTCC=$CC
6530
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6531
test -z "$LD" && LD=ld
6532
test -z "$ac_objext" && ac_objext=o
6533
 
6534
for cc_temp in $compiler""; do
6535
  case $cc_temp in
6536
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6537
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6538
    \-*) ;;
6539
    *) break;;
6540
  esac
6541
done
6542
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6543
 
6544
 
6545
# Only perform the check for file, if the check method requires it
6546
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6547
case $deplibs_check_method in
6548
file_magic*)
6549
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6550
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6551
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6552
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6553
  echo $ECHO_N "(cached) $ECHO_C" >&6
6554
else
6555
  case $MAGIC_CMD in
6556
[\\/*] |  ?:[\\/]*)
6557
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6558
  ;;
6559
*)
6560
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6561
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6562
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6563
  for ac_dir in $ac_dummy; do
6564
    IFS="$lt_save_ifs"
6565
    test -z "$ac_dir" && ac_dir=.
6566
    if test -f $ac_dir/${ac_tool_prefix}file; then
6567
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6568
      if test -n "$file_magic_test_file"; then
6569
        case $deplibs_check_method in
6570
        "file_magic "*)
6571
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6572
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6573
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6574
            $EGREP "$file_magic_regex" > /dev/null; then
6575
            :
6576
          else
6577
            cat <<_LT_EOF 1>&2
6578
 
6579
*** Warning: the command libtool uses to detect shared libraries,
6580
*** $file_magic_cmd, produces output that libtool cannot recognize.
6581
*** The result is that libtool may fail to recognize shared libraries
6582
*** as such.  This will affect the creation of libtool libraries that
6583
*** depend on shared libraries, but programs linked with such libtool
6584
*** libraries will work regardless of this problem.  Nevertheless, you
6585
*** may want to report the problem to your system manager and/or to
6586
*** bug-libtool@gnu.org
6587
 
6588
_LT_EOF
6589
          fi ;;
6590
        esac
6591
      fi
6592
      break
6593
    fi
6594
  done
6595
  IFS="$lt_save_ifs"
6596
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6597
  ;;
6598
esac
6599
fi
6600
 
6601
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6602
if test -n "$MAGIC_CMD"; then
6603
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6604
echo "${ECHO_T}$MAGIC_CMD" >&6
6605
else
6606
  echo "$as_me:$LINENO: result: no" >&5
6607
echo "${ECHO_T}no" >&6
6608
fi
6609
 
6610
 
6611
 
6612
 
6613
 
6614
if test -z "$lt_cv_path_MAGIC_CMD"; then
6615
  if test -n "$ac_tool_prefix"; then
6616
    echo "$as_me:$LINENO: checking for file" >&5
6617
echo $ECHO_N "checking for file... $ECHO_C" >&6
6618
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6619
  echo $ECHO_N "(cached) $ECHO_C" >&6
6620
else
6621
  case $MAGIC_CMD in
6622
[\\/*] |  ?:[\\/]*)
6623
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6624
  ;;
6625
*)
6626
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6627
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6628
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6629
  for ac_dir in $ac_dummy; do
6630
    IFS="$lt_save_ifs"
6631
    test -z "$ac_dir" && ac_dir=.
6632
    if test -f $ac_dir/file; then
6633
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6634
      if test -n "$file_magic_test_file"; then
6635
        case $deplibs_check_method in
6636
        "file_magic "*)
6637
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6638
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6639
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6640
            $EGREP "$file_magic_regex" > /dev/null; then
6641
            :
6642
          else
6643
            cat <<_LT_EOF 1>&2
6644
 
6645
*** Warning: the command libtool uses to detect shared libraries,
6646
*** $file_magic_cmd, produces output that libtool cannot recognize.
6647
*** The result is that libtool may fail to recognize shared libraries
6648
*** as such.  This will affect the creation of libtool libraries that
6649
*** depend on shared libraries, but programs linked with such libtool
6650
*** libraries will work regardless of this problem.  Nevertheless, you
6651
*** may want to report the problem to your system manager and/or to
6652
*** bug-libtool@gnu.org
6653
 
6654
_LT_EOF
6655
          fi ;;
6656
        esac
6657
      fi
6658
      break
6659
    fi
6660
  done
6661
  IFS="$lt_save_ifs"
6662
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6663
  ;;
6664
esac
6665
fi
6666
 
6667
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6668
if test -n "$MAGIC_CMD"; then
6669
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6670
echo "${ECHO_T}$MAGIC_CMD" >&6
6671
else
6672
  echo "$as_me:$LINENO: result: no" >&5
6673
echo "${ECHO_T}no" >&6
6674
fi
6675
 
6676
 
6677
  else
6678
    MAGIC_CMD=:
6679
  fi
6680
fi
6681
 
6682
  fi
6683
  ;;
6684
esac
6685
 
6686
# Use C for the default configuration in the libtool script
6687
 
6688
lt_save_CC="$CC"
6689
ac_ext=c
6690
ac_cpp='$CPP $CPPFLAGS'
6691
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6692
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6693
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6694
 
6695
 
6696
# Source file extension for C test sources.
6697
ac_ext=c
6698
 
6699
# Object file extension for compiled C test sources.
6700
objext=o
6701
objext=$objext
6702
 
6703
# Code to be used in simple compile tests
6704
lt_simple_compile_test_code="int some_variable = 0;"
6705
 
6706
# Code to be used in simple link tests
6707
lt_simple_link_test_code='int main(){return(0);}'
6708
 
6709
 
6710
 
6711
 
6712
 
6713
 
6714
 
6715
# If no C compiler was specified, use CC.
6716
LTCC=${LTCC-"$CC"}
6717
 
6718
# If no C compiler flags were specified, use CFLAGS.
6719
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6720
 
6721
# Allow CC to be a program name with arguments.
6722
compiler=$CC
6723
 
6724
# Save the default compiler, since it gets overwritten when the other
6725
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6726
compiler_DEFAULT=$CC
6727
 
6728
# save warnings/boilerplate of simple test code
6729
ac_outfile=conftest.$ac_objext
6730
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6731
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6732
_lt_compiler_boilerplate=`cat conftest.err`
6733
$RM conftest*
6734
 
6735
ac_outfile=conftest.$ac_objext
6736
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6737
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6738
_lt_linker_boilerplate=`cat conftest.err`
6739
$RM conftest*
6740
 
6741
 
6742
## CAVEAT EMPTOR:
6743
## There is no encapsulation within the following macros, do not change
6744
## the running order or otherwise move them around unless you know exactly
6745
## what you are doing...
6746
if test -n "$compiler"; then
6747
 
6748
lt_prog_compiler_no_builtin_flag=
6749
 
6750
if test "$GCC" = yes; then
6751
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6752
 
6753
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6754
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6755
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6756
  echo $ECHO_N "(cached) $ECHO_C" >&6
6757
else
6758
  lt_cv_prog_compiler_rtti_exceptions=no
6759
   ac_outfile=conftest.$ac_objext
6760
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6761
   lt_compiler_flag="-fno-rtti -fno-exceptions"
6762
   # Insert the option either (1) after the last *FLAGS variable, or
6763
   # (2) before a word containing "conftest.", or (3) at the end.
6764
   # Note that $ac_compile itself does not contain backslashes and begins
6765
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6766
   # The option is referenced via a variable to avoid confusing sed.
6767
   lt_compile=`echo "$ac_compile" | $SED \
6768
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6769
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6770
   -e 's:$: $lt_compiler_flag:'`
6771
   (eval echo "\"\$as_me:6771: $lt_compile\"" >&5)
6772
   (eval "$lt_compile" 2>conftest.err)
6773
   ac_status=$?
6774
   cat conftest.err >&5
6775
   echo "$as_me:6775: \$? = $ac_status" >&5
6776
   if (exit $ac_status) && test -s "$ac_outfile"; then
6777
     # The compiler can only warn and ignore the option if not recognized
6778
     # So say no if there are warnings other than the usual output.
6779
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6780
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6781
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6782
       lt_cv_prog_compiler_rtti_exceptions=yes
6783
     fi
6784
   fi
6785
   $RM conftest*
6786
 
6787
fi
6788
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6789
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6790
 
6791
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6792
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6793
else
6794
    :
6795
fi
6796
 
6797
fi
6798
 
6799
 
6800
 
6801
 
6802
 
6803
 
6804
  lt_prog_compiler_wl=
6805
lt_prog_compiler_pic=
6806
lt_prog_compiler_static=
6807
 
6808
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6809
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6810
 
6811
  if test "$GCC" = yes; then
6812
    lt_prog_compiler_wl='-Wl,'
6813
    lt_prog_compiler_static='-static'
6814
 
6815
    case $host_os in
6816
      aix*)
6817
      # All AIX code is PIC.
6818
      if test "$host_cpu" = ia64; then
6819
        # AIX 5 now supports IA64 processor
6820
        lt_prog_compiler_static='-Bstatic'
6821
      fi
6822
      ;;
6823
 
6824
    amigaos*)
6825
      if test "$host_cpu" = m68k; then
6826
        # FIXME: we need at least 68020 code to build shared libraries, but
6827
        # adding the `-m68020' flag to GCC prevents building anything better,
6828
        # like `-m68040'.
6829
        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6830
      fi
6831
      ;;
6832
 
6833
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6834
      # PIC is the default for these OSes.
6835
      ;;
6836
 
6837
    mingw* | cygwin* | pw32* | os2*)
6838
      # This hack is so that the source file can tell whether it is being
6839
      # built for inclusion in a dll (and should export symbols for example).
6840
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6841
      # (--disable-auto-import) libraries
6842
      lt_prog_compiler_pic='-DDLL_EXPORT'
6843
      ;;
6844
 
6845
    darwin* | rhapsody*)
6846
      # PIC is the default on this platform
6847
      # Common symbols not allowed in MH_DYLIB files
6848
      lt_prog_compiler_pic='-fno-common'
6849
      ;;
6850
 
6851
    hpux*)
6852
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6853
      # not for PA HP-UX.
6854
      case $host_cpu in
6855
      hppa*64*|ia64*)
6856
        # +Z the default
6857
        ;;
6858
      *)
6859
        lt_prog_compiler_pic='-fPIC'
6860
        ;;
6861
      esac
6862
      ;;
6863
 
6864
    interix[3-9]*)
6865
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6866
      # Instead, we relocate shared libraries at runtime.
6867
      ;;
6868
 
6869
    msdosdjgpp*)
6870
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6871
      # on systems that don't support them.
6872
      lt_prog_compiler_can_build_shared=no
6873
      enable_shared=no
6874
      ;;
6875
 
6876
    *nto* | *qnx*)
6877
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6878
      # it will coredump.
6879
      lt_prog_compiler_pic='-fPIC -shared'
6880
      ;;
6881
 
6882
    sysv4*MP*)
6883
      if test -d /usr/nec; then
6884
        lt_prog_compiler_pic=-Kconform_pic
6885
      fi
6886
      ;;
6887
 
6888
    *)
6889
      lt_prog_compiler_pic='-fPIC'
6890
      ;;
6891
    esac
6892
  else
6893
    # PORTME Check for flag to pass linker flags through the system compiler.
6894
    case $host_os in
6895
    aix*)
6896
      lt_prog_compiler_wl='-Wl,'
6897
      if test "$host_cpu" = ia64; then
6898
        # AIX 5 now supports IA64 processor
6899
        lt_prog_compiler_static='-Bstatic'
6900
      else
6901
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6902
      fi
6903
      ;;
6904
    darwin*)
6905
      # PIC is the default on this platform
6906
      # Common symbols not allowed in MH_DYLIB files
6907
      case $cc_basename in
6908
      xlc*)
6909
        lt_prog_compiler_pic='-qnocommon'
6910
        lt_prog_compiler_wl='-Wl,'
6911
        ;;
6912
      esac
6913
      ;;
6914
 
6915
    mingw* | cygwin* | pw32* | os2*)
6916
      # This hack is so that the source file can tell whether it is being
6917
      # built for inclusion in a dll (and should export symbols for example).
6918
      lt_prog_compiler_pic='-DDLL_EXPORT'
6919
      ;;
6920
 
6921
    hpux9* | hpux10* | hpux11*)
6922
      lt_prog_compiler_wl='-Wl,'
6923
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6924
      # not for PA HP-UX.
6925
      case $host_cpu in
6926
      hppa*64*|ia64*)
6927
        # +Z the default
6928
        ;;
6929
      *)
6930
        lt_prog_compiler_pic='+Z'
6931
        ;;
6932
      esac
6933
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6934
      lt_prog_compiler_static='${wl}-a ${wl}archive'
6935
      ;;
6936
 
6937
    irix5* | irix6* | nonstopux*)
6938
      lt_prog_compiler_wl='-Wl,'
6939
      # PIC (with -KPIC) is the default.
6940
      lt_prog_compiler_static='-non_shared'
6941
      ;;
6942
 
6943
    linux* | k*bsd*-gnu)
6944
      case $cc_basename in
6945
      icc* | ecc*)
6946
        lt_prog_compiler_wl='-Wl,'
6947
        lt_prog_compiler_pic='-KPIC'
6948
        lt_prog_compiler_static='-static'
6949
        ;;
6950
      pgcc* | pgf77* | pgf90* | pgf95*)
6951
        # Portland Group compilers (*not* the Pentium gcc compiler,
6952
        # which looks to be a dead project)
6953
        lt_prog_compiler_wl='-Wl,'
6954
        lt_prog_compiler_pic='-fpic'
6955
        lt_prog_compiler_static='-Bstatic'
6956
        ;;
6957
      ccc*)
6958
        lt_prog_compiler_wl='-Wl,'
6959
        # All Alpha code is PIC.
6960
        lt_prog_compiler_static='-non_shared'
6961
        ;;
6962
      *)
6963
        case `$CC -V 2>&1 | sed 5q` in
6964
        *Sun\ C*)
6965
          # Sun C 5.9
6966
          lt_prog_compiler_pic='-KPIC'
6967
          lt_prog_compiler_static='-Bstatic'
6968
          lt_prog_compiler_wl='-Wl,'
6969
          ;;
6970
        *Sun\ F*)
6971
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
6972
          lt_prog_compiler_pic='-KPIC'
6973
          lt_prog_compiler_static='-Bstatic'
6974
          lt_prog_compiler_wl=''
6975
          ;;
6976
        esac
6977
        ;;
6978
      esac
6979
      ;;
6980
 
6981
    newsos6)
6982
      lt_prog_compiler_pic='-KPIC'
6983
      lt_prog_compiler_static='-Bstatic'
6984
      ;;
6985
 
6986
    *nto* | *qnx*)
6987
      # QNX uses GNU C++, but need to define -shared option too, otherwise
6988
      # it will coredump.
6989
      lt_prog_compiler_pic='-fPIC -shared'
6990
      ;;
6991
 
6992
    osf3* | osf4* | osf5*)
6993
      lt_prog_compiler_wl='-Wl,'
6994
      # All OSF/1 code is PIC.
6995
      lt_prog_compiler_static='-non_shared'
6996
      ;;
6997
 
6998
    rdos*)
6999
      lt_prog_compiler_static='-non_shared'
7000
      ;;
7001
 
7002
    solaris*)
7003
      lt_prog_compiler_pic='-KPIC'
7004
      lt_prog_compiler_static='-Bstatic'
7005
      case $cc_basename in
7006
      f77* | f90* | f95*)
7007
        lt_prog_compiler_wl='-Qoption ld ';;
7008
      *)
7009
        lt_prog_compiler_wl='-Wl,';;
7010
      esac
7011
      ;;
7012
 
7013
    sunos4*)
7014
      lt_prog_compiler_wl='-Qoption ld '
7015
      lt_prog_compiler_pic='-PIC'
7016
      lt_prog_compiler_static='-Bstatic'
7017
      ;;
7018
 
7019
    sysv4 | sysv4.2uw2* | sysv4.3*)
7020
      lt_prog_compiler_wl='-Wl,'
7021
      lt_prog_compiler_pic='-KPIC'
7022
      lt_prog_compiler_static='-Bstatic'
7023
      ;;
7024
 
7025
    sysv4*MP*)
7026
      if test -d /usr/nec ;then
7027
        lt_prog_compiler_pic='-Kconform_pic'
7028
        lt_prog_compiler_static='-Bstatic'
7029
      fi
7030
      ;;
7031
 
7032
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7033
      lt_prog_compiler_wl='-Wl,'
7034
      lt_prog_compiler_pic='-KPIC'
7035
      lt_prog_compiler_static='-Bstatic'
7036
      ;;
7037
 
7038
    unicos*)
7039
      lt_prog_compiler_wl='-Wl,'
7040
      lt_prog_compiler_can_build_shared=no
7041
      ;;
7042
 
7043
    uts4*)
7044
      lt_prog_compiler_pic='-pic'
7045
      lt_prog_compiler_static='-Bstatic'
7046
      ;;
7047
 
7048
    *)
7049
      lt_prog_compiler_can_build_shared=no
7050
      ;;
7051
    esac
7052
  fi
7053
 
7054
case $host_os in
7055
  # For platforms which do not support PIC, -DPIC is meaningless:
7056
  *djgpp*)
7057
    lt_prog_compiler_pic=
7058
    ;;
7059
  *)
7060
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7061
    ;;
7062
esac
7063
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7064
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7065
 
7066
 
7067
 
7068
 
7069
 
7070
 
7071
#
7072
# Check to make sure the PIC flag actually works.
7073
#
7074
if test -n "$lt_prog_compiler_pic"; then
7075
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7076
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7077
if test "${lt_prog_compiler_pic_works+set}" = set; then
7078
  echo $ECHO_N "(cached) $ECHO_C" >&6
7079
else
7080
  lt_prog_compiler_pic_works=no
7081
   ac_outfile=conftest.$ac_objext
7082
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7083
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7084
   # Insert the option either (1) after the last *FLAGS variable, or
7085
   # (2) before a word containing "conftest.", or (3) at the end.
7086
   # Note that $ac_compile itself does not contain backslashes and begins
7087
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7088
   # The option is referenced via a variable to avoid confusing sed.
7089
   lt_compile=`echo "$ac_compile" | $SED \
7090
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7091
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7092
   -e 's:$: $lt_compiler_flag:'`
7093
   (eval echo "\"\$as_me:7093: $lt_compile\"" >&5)
7094
   (eval "$lt_compile" 2>conftest.err)
7095
   ac_status=$?
7096
   cat conftest.err >&5
7097
   echo "$as_me:7097: \$? = $ac_status" >&5
7098
   if (exit $ac_status) && test -s "$ac_outfile"; then
7099
     # The compiler can only warn and ignore the option if not recognized
7100
     # So say no if there are warnings other than the usual output.
7101
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7102
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7103
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7104
       lt_prog_compiler_pic_works=yes
7105
     fi
7106
   fi
7107
   $RM conftest*
7108
 
7109
fi
7110
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7111
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7112
 
7113
if test x"$lt_prog_compiler_pic_works" = xyes; then
7114
    case $lt_prog_compiler_pic in
7115
     "" | " "*) ;;
7116
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7117
     esac
7118
else
7119
    lt_prog_compiler_pic=
7120
     lt_prog_compiler_can_build_shared=no
7121
fi
7122
 
7123
fi
7124
 
7125
 
7126
 
7127
 
7128
 
7129
 
7130
#
7131
# Check to make sure the static flag actually works.
7132
#
7133
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7134
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7135
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7136
if test "${lt_prog_compiler_static_works+set}" = set; then
7137
  echo $ECHO_N "(cached) $ECHO_C" >&6
7138
else
7139
  lt_prog_compiler_static_works=no
7140
   save_LDFLAGS="$LDFLAGS"
7141
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7142
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7143
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7144
     # The linker can only warn and ignore the option if not recognized
7145
     # So say no if there are warnings
7146
     if test -s conftest.err; then
7147
       # Append any errors to the config.log.
7148
       cat conftest.err 1>&5
7149
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7150
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7151
       if diff conftest.exp conftest.er2 >/dev/null; then
7152
         lt_prog_compiler_static_works=yes
7153
       fi
7154
     else
7155
       lt_prog_compiler_static_works=yes
7156
     fi
7157
   fi
7158
   $RM conftest*
7159
   LDFLAGS="$save_LDFLAGS"
7160
 
7161
fi
7162
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7163
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7164
 
7165
if test x"$lt_prog_compiler_static_works" = xyes; then
7166
    :
7167
else
7168
    lt_prog_compiler_static=
7169
fi
7170
 
7171
 
7172
 
7173
 
7174
 
7175
 
7176
 
7177
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7178
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7179
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7180
  echo $ECHO_N "(cached) $ECHO_C" >&6
7181
else
7182
  lt_cv_prog_compiler_c_o=no
7183
   $RM -r conftest 2>/dev/null
7184
   mkdir conftest
7185
   cd conftest
7186
   mkdir out
7187
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7188
 
7189
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7190
   # Insert the option either (1) after the last *FLAGS variable, or
7191
   # (2) before a word containing "conftest.", or (3) at the end.
7192
   # Note that $ac_compile itself does not contain backslashes and begins
7193
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7194
   lt_compile=`echo "$ac_compile" | $SED \
7195
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7196
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7197
   -e 's:$: $lt_compiler_flag:'`
7198
   (eval echo "\"\$as_me:7198: $lt_compile\"" >&5)
7199
   (eval "$lt_compile" 2>out/conftest.err)
7200
   ac_status=$?
7201
   cat out/conftest.err >&5
7202
   echo "$as_me:7202: \$? = $ac_status" >&5
7203
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7204
   then
7205
     # The compiler can only warn and ignore the option if not recognized
7206
     # So say no if there are warnings
7207
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7208
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7209
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7210
       lt_cv_prog_compiler_c_o=yes
7211
     fi
7212
   fi
7213
   chmod u+w . 2>&5
7214
   $RM conftest*
7215
   # SGI C++ compiler will create directory out/ii_files/ for
7216
   # template instantiation
7217
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7218
   $RM out/* && rmdir out
7219
   cd ..
7220
   $RM -r conftest
7221
   $RM conftest*
7222
 
7223
fi
7224
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7225
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7226
 
7227
 
7228
 
7229
 
7230
 
7231
 
7232
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7233
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7234
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7235
  echo $ECHO_N "(cached) $ECHO_C" >&6
7236
else
7237
  lt_cv_prog_compiler_c_o=no
7238
   $RM -r conftest 2>/dev/null
7239
   mkdir conftest
7240
   cd conftest
7241
   mkdir out
7242
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7243
 
7244
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7245
   # Insert the option either (1) after the last *FLAGS variable, or
7246
   # (2) before a word containing "conftest.", or (3) at the end.
7247
   # Note that $ac_compile itself does not contain backslashes and begins
7248
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7249
   lt_compile=`echo "$ac_compile" | $SED \
7250
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7251
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7252
   -e 's:$: $lt_compiler_flag:'`
7253
   (eval echo "\"\$as_me:7253: $lt_compile\"" >&5)
7254
   (eval "$lt_compile" 2>out/conftest.err)
7255
   ac_status=$?
7256
   cat out/conftest.err >&5
7257
   echo "$as_me:7257: \$? = $ac_status" >&5
7258
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7259
   then
7260
     # The compiler can only warn and ignore the option if not recognized
7261
     # So say no if there are warnings
7262
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7263
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7264
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7265
       lt_cv_prog_compiler_c_o=yes
7266
     fi
7267
   fi
7268
   chmod u+w . 2>&5
7269
   $RM conftest*
7270
   # SGI C++ compiler will create directory out/ii_files/ for
7271
   # template instantiation
7272
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7273
   $RM out/* && rmdir out
7274
   cd ..
7275
   $RM -r conftest
7276
   $RM conftest*
7277
 
7278
fi
7279
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7280
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7281
 
7282
 
7283
 
7284
 
7285
hard_links="nottested"
7286
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7287
  # do not overwrite the value of need_locks provided by the user
7288
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7289
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7290
  hard_links=yes
7291
  $RM conftest*
7292
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7293
  touch conftest.a
7294
  ln conftest.a conftest.b 2>&5 || hard_links=no
7295
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7296
  echo "$as_me:$LINENO: result: $hard_links" >&5
7297
echo "${ECHO_T}$hard_links" >&6
7298
  if test "$hard_links" = no; then
7299
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7300
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7301
    need_locks=warn
7302
  fi
7303
else
7304
  need_locks=no
7305
fi
7306
 
7307
 
7308
 
7309
 
7310
 
7311
 
7312
  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7313
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7314
 
7315
  runpath_var=
7316
  allow_undefined_flag=
7317
  always_export_symbols=no
7318
  archive_cmds=
7319
  archive_expsym_cmds=
7320
  compiler_needs_object=no
7321
  enable_shared_with_static_runtimes=no
7322
  export_dynamic_flag_spec=
7323
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7324
  hardcode_automatic=no
7325
  hardcode_direct=no
7326
  hardcode_direct_absolute=no
7327
  hardcode_libdir_flag_spec=
7328
  hardcode_libdir_flag_spec_ld=
7329
  hardcode_libdir_separator=
7330
  hardcode_minus_L=no
7331
  hardcode_shlibpath_var=unsupported
7332
  inherit_rpath=no
7333
  link_all_deplibs=unknown
7334
  module_cmds=
7335
  module_expsym_cmds=
7336
  old_archive_from_new_cmds=
7337
  old_archive_from_expsyms_cmds=
7338
  thread_safe_flag_spec=
7339
  whole_archive_flag_spec=
7340
  # include_expsyms should be a list of space-separated symbols to be *always*
7341
  # included in the symbol list
7342
  include_expsyms=
7343
  # exclude_expsyms can be an extended regexp of symbols to exclude
7344
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7345
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7346
  # as well as any symbol that contains `d'.
7347
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7348
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7349
  # platforms (ab)use it in PIC code, but their linkers get confused if
7350
  # the symbol is explicitly referenced.  Since portable code cannot
7351
  # rely on this symbol name, it's probably fine to never include it in
7352
  # preloaded symbol tables.
7353
  extract_expsyms_cmds=
7354
 
7355
  case $host_os in
7356
  cygwin* | mingw* | pw32*)
7357
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7358
    # When not using gcc, we currently assume that we are using
7359
    # Microsoft Visual C++.
7360
    if test "$GCC" != yes; then
7361
      with_gnu_ld=no
7362
    fi
7363
    ;;
7364
  interix*)
7365
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7366
    with_gnu_ld=yes
7367
    ;;
7368
  openbsd*)
7369
    with_gnu_ld=no
7370
    ;;
7371
  esac
7372
 
7373
  ld_shlibs=yes
7374
  if test "$with_gnu_ld" = yes; then
7375
    # If archive_cmds runs LD, not CC, wlarc should be empty
7376
    wlarc='${wl}'
7377
 
7378
    # Set some defaults for GNU ld with shared library support. These
7379
    # are reset later if shared libraries are not supported. Putting them
7380
    # here allows them to be overridden if necessary.
7381
    runpath_var=LD_RUN_PATH
7382
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7383
    export_dynamic_flag_spec='${wl}--export-dynamic'
7384
    # ancient GNU ld didn't support --whole-archive et. al.
7385
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7386
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7387
    else
7388
      whole_archive_flag_spec=
7389
    fi
7390
    supports_anon_versioning=no
7391
    case `$LD -v 2>&1` in
7392
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7393
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7394
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7395
      *\ 2.11.*) ;; # other 2.11 versions
7396
      *) supports_anon_versioning=yes ;;
7397
    esac
7398
 
7399
    # See if GNU ld supports shared libraries.
7400
    case $host_os in
7401
    aix[3-9]*)
7402
      # On AIX/PPC, the GNU linker is very broken
7403
      if test "$host_cpu" != ia64; then
7404
        ld_shlibs=no
7405
        cat <<_LT_EOF 1>&2
7406
 
7407
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7408
*** to be unable to reliably create shared libraries on AIX.
7409
*** Therefore, libtool is disabling shared libraries support.  If you
7410
*** really care for shared libraries, you may want to modify your PATH
7411
*** so that a non-GNU linker is found, and then restart.
7412
 
7413
_LT_EOF
7414
      fi
7415
      ;;
7416
 
7417
    amigaos*)
7418
      if test "$host_cpu" = m68k; then
7419
        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)'
7420
        hardcode_libdir_flag_spec='-L$libdir'
7421
        hardcode_minus_L=yes
7422
      fi
7423
 
7424
      # Samuel A. Falvo II  reports
7425
      # that the semantics of dynamic libraries on AmigaOS, at least up
7426
      # to version 4, is to share data among multiple programs linked
7427
      # with the same dynamic library.  Since this doesn't match the
7428
      # behavior of shared libraries on other platforms, we can't use
7429
      # them.
7430
      ld_shlibs=no
7431
      ;;
7432
 
7433
    beos*)
7434
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7435
        allow_undefined_flag=unsupported
7436
        # Joseph Beckenbach  says some releases of gcc
7437
        # support --undefined.  This deserves some investigation.  FIXME
7438
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7439
      else
7440
        ld_shlibs=no
7441
      fi
7442
      ;;
7443
 
7444
    cygwin* | mingw* | pw32*)
7445
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7446
      # as there is no search path for DLLs.
7447
      hardcode_libdir_flag_spec='-L$libdir'
7448
      allow_undefined_flag=unsupported
7449
      always_export_symbols=no
7450
      enable_shared_with_static_runtimes=yes
7451
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7452
 
7453
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7454
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7455
        # If the export-symbols file already is a .def file (1st line
7456
        # is EXPORTS), use it as is; otherwise, prepend...
7457
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7458
          cp $export_symbols $output_objdir/$soname.def;
7459
        else
7460
          echo EXPORTS > $output_objdir/$soname.def;
7461
          cat $export_symbols >> $output_objdir/$soname.def;
7462
        fi~
7463
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7464
      else
7465
        ld_shlibs=no
7466
      fi
7467
      ;;
7468
 
7469
    interix[3-9]*)
7470
      hardcode_direct=no
7471
      hardcode_shlibpath_var=no
7472
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7473
      export_dynamic_flag_spec='${wl}-E'
7474
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7475
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7476
      # default) and relocated if they conflict, which is a slow very memory
7477
      # consuming and fragmenting process.  To avoid this, we pick a random,
7478
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7479
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7480
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7481
      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'
7482
      ;;
7483
 
7484
    gnu* | linux* | tpf* | k*bsd*-gnu)
7485
      tmp_diet=no
7486
      if test "$host_os" = linux-dietlibc; then
7487
        case $cc_basename in
7488
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7489
        esac
7490
      fi
7491
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7492
         && test "$tmp_diet" = no
7493
      then
7494
        tmp_addflag=
7495
        case $cc_basename,$host_cpu in
7496
        pgcc*)                          # Portland Group C compiler
7497
          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'
7498
          tmp_addflag=' $pic_flag'
7499
          ;;
7500
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7501
          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'
7502
          tmp_addflag=' $pic_flag -Mnomain' ;;
7503
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7504
          tmp_addflag=' -i_dynamic' ;;
7505
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7506
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7507
        ifc* | ifort*)                  # Intel Fortran compiler
7508
          tmp_addflag=' -nofor_main' ;;
7509
        esac
7510
        case `$CC -V 2>&1 | sed 5q` in
7511
        *Sun\ C*)                       # Sun C 5.9
7512
          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'
7513
          compiler_needs_object=yes
7514
          tmp_sharedflag='-G' ;;
7515
        *Sun\ F*)                       # Sun Fortran 8.3
7516
          tmp_sharedflag='-G' ;;
7517
        *)
7518
          tmp_sharedflag='-shared' ;;
7519
        esac
7520
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7521
 
7522
        if test "x$supports_anon_versioning" = xyes; then
7523
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7524
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7525
            echo "local: *; };" >> $output_objdir/$libname.ver~
7526
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7527
        fi
7528
      else
7529
        ld_shlibs=no
7530
      fi
7531
      ;;
7532
 
7533
    netbsd*)
7534
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7535
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7536
        wlarc=
7537
      else
7538
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7539
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7540
      fi
7541
      ;;
7542
 
7543
    solaris*)
7544
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7545
        ld_shlibs=no
7546
        cat <<_LT_EOF 1>&2
7547
 
7548
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7549
*** create shared libraries on Solaris systems.  Therefore, libtool
7550
*** is disabling shared libraries support.  We urge you to upgrade GNU
7551
*** binutils to release 2.9.1 or newer.  Another option is to modify
7552
*** your PATH or compiler configuration so that the native linker is
7553
*** used, and then restart.
7554
 
7555
_LT_EOF
7556
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7557
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7558
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7559
      else
7560
        ld_shlibs=no
7561
      fi
7562
      ;;
7563
 
7564
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7565
      case `$LD -v 2>&1` in
7566
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7567
        ld_shlibs=no
7568
        cat <<_LT_EOF 1>&2
7569
 
7570
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7571
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7572
*** is disabling shared libraries support.  We urge you to upgrade GNU
7573
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7574
*** your PATH or compiler configuration so that the native linker is
7575
*** used, and then restart.
7576
 
7577
_LT_EOF
7578
        ;;
7579
        *)
7580
          # For security reasons, it is highly recommended that you always
7581
          # use absolute paths for naming shared libraries, and exclude the
7582
          # DT_RUNPATH tag from executables and libraries.  But doing so
7583
          # requires that you compile everything twice, which is a pain.
7584
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7585
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7586
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7587
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7588
          else
7589
            ld_shlibs=no
7590
          fi
7591
        ;;
7592
      esac
7593
      ;;
7594
 
7595
    sunos4*)
7596
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7597
      wlarc=
7598
      hardcode_direct=yes
7599
      hardcode_shlibpath_var=no
7600
      ;;
7601
 
7602
    *)
7603
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7604
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7605
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7606
      else
7607
        ld_shlibs=no
7608
      fi
7609
      ;;
7610
    esac
7611
 
7612
    if test "$ld_shlibs" = no; then
7613
      runpath_var=
7614
      hardcode_libdir_flag_spec=
7615
      export_dynamic_flag_spec=
7616
      whole_archive_flag_spec=
7617
    fi
7618
  else
7619
    # PORTME fill in a description of your system's linker (not GNU ld)
7620
    case $host_os in
7621
    aix3*)
7622
      allow_undefined_flag=unsupported
7623
      always_export_symbols=yes
7624
      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'
7625
      # Note: this linker hardcodes the directories in LIBPATH if there
7626
      # are no directories specified by -L.
7627
      hardcode_minus_L=yes
7628
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7629
        # Neither direct hardcoding nor static linking is supported with a
7630
        # broken collect2.
7631
        hardcode_direct=unsupported
7632
      fi
7633
      ;;
7634
 
7635
    aix[4-9]*)
7636
      if test "$host_cpu" = ia64; then
7637
        # On IA64, the linker does run time linking by default, so we don't
7638
        # have to do anything special.
7639
        aix_use_runtimelinking=no
7640
        exp_sym_flag='-Bexport'
7641
        no_entry_flag=""
7642
      else
7643
        # If we're using GNU nm, then we don't want the "-C" option.
7644
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7645
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7646
          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'
7647
        else
7648
          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'
7649
        fi
7650
        aix_use_runtimelinking=no
7651
 
7652
        # Test if we are trying to use run time linking or normal
7653
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7654
        # need to do runtime linking.
7655
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7656
          for ld_flag in $LDFLAGS; do
7657
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7658
            aix_use_runtimelinking=yes
7659
            break
7660
          fi
7661
          done
7662
          ;;
7663
        esac
7664
 
7665
        exp_sym_flag='-bexport'
7666
        no_entry_flag='-bnoentry'
7667
      fi
7668
 
7669
      # When large executables or shared objects are built, AIX ld can
7670
      # have problems creating the table of contents.  If linking a library
7671
      # or program results in "error TOC overflow" add -mminimal-toc to
7672
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7673
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7674
 
7675
      archive_cmds=''
7676
      hardcode_direct=yes
7677
      hardcode_direct_absolute=yes
7678
      hardcode_libdir_separator=':'
7679
      link_all_deplibs=yes
7680
      file_list_spec='${wl}-f,'
7681
 
7682
      if test "$GCC" = yes; then
7683
        case $host_os in aix4.[012]|aix4.[012].*)
7684
        # We only want to do this on AIX 4.2 and lower, the check
7685
        # below for broken collect2 doesn't work under 4.3+
7686
          collect2name=`${CC} -print-prog-name=collect2`
7687
          if test -f "$collect2name" &&
7688
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7689
          then
7690
          # We have reworked collect2
7691
          :
7692
          else
7693
          # We have old collect2
7694
          hardcode_direct=unsupported
7695
          # It fails to find uninstalled libraries when the uninstalled
7696
          # path is not listed in the libpath.  Setting hardcode_minus_L
7697
          # to unsupported forces relinking
7698
          hardcode_minus_L=yes
7699
          hardcode_libdir_flag_spec='-L$libdir'
7700
          hardcode_libdir_separator=
7701
          fi
7702
          ;;
7703
        esac
7704
        shared_flag='-shared'
7705
        if test "$aix_use_runtimelinking" = yes; then
7706
          shared_flag="$shared_flag "'${wl}-G'
7707
        fi
7708
      else
7709
        # not using gcc
7710
        if test "$host_cpu" = ia64; then
7711
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7712
        # chokes on -Wl,-G. The following line is correct:
7713
          shared_flag='-G'
7714
        else
7715
          if test "$aix_use_runtimelinking" = yes; then
7716
            shared_flag='${wl}-G'
7717
          else
7718
            shared_flag='${wl}-bM:SRE'
7719
          fi
7720
        fi
7721
      fi
7722
 
7723
      # It seems that -bexpall does not export symbols beginning with
7724
      # underscore (_), so it is better to generate a list of symbols to export.
7725
      always_export_symbols=yes
7726
      if test "$aix_use_runtimelinking" = yes; then
7727
        # Warning - without using the other runtime loading flags (-brtl),
7728
        # -berok will link without error, but may produce a broken library.
7729
        allow_undefined_flag='-berok'
7730
        # Determine the default libpath from the value encoded in an
7731
        # empty executable.
7732
        cat >conftest.$ac_ext <<_ACEOF
7733
/* confdefs.h.  */
7734
_ACEOF
7735
cat confdefs.h >>conftest.$ac_ext
7736
cat >>conftest.$ac_ext <<_ACEOF
7737
/* end confdefs.h.  */
7738
 
7739
int
7740
main ()
7741
{
7742
 
7743
  ;
7744
  return 0;
7745
}
7746
_ACEOF
7747
rm -f conftest.$ac_objext conftest$ac_exeext
7748
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7749
  (eval $ac_link) 2>conftest.er1
7750
  ac_status=$?
7751
  grep -v '^ *+' conftest.er1 >conftest.err
7752
  rm -f conftest.er1
7753
  cat conftest.err >&5
7754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755
  (exit $ac_status); } &&
7756
         { ac_try='test -z "$ac_c_werror_flag"
7757
                         || test ! -s conftest.err'
7758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759
  (eval $ac_try) 2>&5
7760
  ac_status=$?
7761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762
  (exit $ac_status); }; } &&
7763
         { ac_try='test -s conftest$ac_exeext'
7764
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765
  (eval $ac_try) 2>&5
7766
  ac_status=$?
7767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768
  (exit $ac_status); }; }; then
7769
 
7770
lt_aix_libpath_sed='
7771
    /Import File Strings/,/^$/ {
7772
        /^0/ {
7773
            s/^0  *\(.*\)$/\1/
7774
            p
7775
        }
7776
    }'
7777
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7778
# Check for a 64-bit object if we didn't find anything.
7779
if test -z "$aix_libpath"; then
7780
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7781
fi
7782
else
7783
  echo "$as_me: failed program was:" >&5
7784
sed 's/^/| /' conftest.$ac_ext >&5
7785
 
7786
fi
7787
rm -f conftest.err conftest.$ac_objext \
7788
      conftest$ac_exeext conftest.$ac_ext
7789
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7790
 
7791
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7792
        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"
7793
      else
7794
        if test "$host_cpu" = ia64; then
7795
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7796
          allow_undefined_flag="-z nodefs"
7797
          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"
7798
        else
7799
         # Determine the default libpath from the value encoded in an
7800
         # empty executable.
7801
         cat >conftest.$ac_ext <<_ACEOF
7802
/* confdefs.h.  */
7803
_ACEOF
7804
cat confdefs.h >>conftest.$ac_ext
7805
cat >>conftest.$ac_ext <<_ACEOF
7806
/* end confdefs.h.  */
7807
 
7808
int
7809
main ()
7810
{
7811
 
7812
  ;
7813
  return 0;
7814
}
7815
_ACEOF
7816
rm -f conftest.$ac_objext conftest$ac_exeext
7817
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7818
  (eval $ac_link) 2>conftest.er1
7819
  ac_status=$?
7820
  grep -v '^ *+' conftest.er1 >conftest.err
7821
  rm -f conftest.er1
7822
  cat conftest.err >&5
7823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824
  (exit $ac_status); } &&
7825
         { ac_try='test -z "$ac_c_werror_flag"
7826
                         || test ! -s conftest.err'
7827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828
  (eval $ac_try) 2>&5
7829
  ac_status=$?
7830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831
  (exit $ac_status); }; } &&
7832
         { ac_try='test -s conftest$ac_exeext'
7833
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834
  (eval $ac_try) 2>&5
7835
  ac_status=$?
7836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837
  (exit $ac_status); }; }; then
7838
 
7839
lt_aix_libpath_sed='
7840
    /Import File Strings/,/^$/ {
7841
        /^0/ {
7842
            s/^0  *\(.*\)$/\1/
7843
            p
7844
        }
7845
    }'
7846
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7847
# Check for a 64-bit object if we didn't find anything.
7848
if test -z "$aix_libpath"; then
7849
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7850
fi
7851
else
7852
  echo "$as_me: failed program was:" >&5
7853
sed 's/^/| /' conftest.$ac_ext >&5
7854
 
7855
fi
7856
rm -f conftest.err conftest.$ac_objext \
7857
      conftest$ac_exeext conftest.$ac_ext
7858
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7859
 
7860
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7861
          # Warning - without using the other run time loading flags,
7862
          # -berok will link without error, but may produce a broken library.
7863
          no_undefined_flag=' ${wl}-bernotok'
7864
          allow_undefined_flag=' ${wl}-berok'
7865
          # Exported symbols can be pulled into shared objects from archives
7866
          whole_archive_flag_spec='$convenience'
7867
          archive_cmds_need_lc=yes
7868
          # This is similar to how AIX traditionally builds its shared libraries.
7869
          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'
7870
        fi
7871
      fi
7872
      ;;
7873
 
7874
    amigaos*)
7875
      if test "$host_cpu" = m68k; then
7876
        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)'
7877
        hardcode_libdir_flag_spec='-L$libdir'
7878
        hardcode_minus_L=yes
7879
      fi
7880
      # see comment about different semantics on the GNU ld section
7881
      ld_shlibs=no
7882
      ;;
7883
 
7884
    bsdi[45]*)
7885
      export_dynamic_flag_spec=-rdynamic
7886
      ;;
7887
 
7888
    cygwin* | mingw* | pw32*)
7889
      # When not using gcc, we currently assume that we are using
7890
      # Microsoft Visual C++.
7891
      # hardcode_libdir_flag_spec is actually meaningless, as there is
7892
      # no search path for DLLs.
7893
      hardcode_libdir_flag_spec=' '
7894
      allow_undefined_flag=unsupported
7895
      # Tell ltmain to make .lib files, not .a files.
7896
      libext=lib
7897
      # Tell ltmain to make .dll files, not .so files.
7898
      shrext_cmds=".dll"
7899
      # FIXME: Setting linknames here is a bad hack.
7900
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7901
      # The linker will automatically build a .lib file if we build a DLL.
7902
      old_archive_from_new_cmds='true'
7903
      # FIXME: Should let the user specify the lib program.
7904
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7905
      fix_srcfile_path='`cygpath -w "$srcfile"`'
7906
      enable_shared_with_static_runtimes=yes
7907
      ;;
7908
 
7909
    darwin* | rhapsody*)
7910
      case $host_os in
7911
      rhapsody* | darwin1.[012])
7912
        allow_undefined_flag='${wl}-undefined ${wl}suppress'
7913
        ;;
7914
      *) # Darwin 1.3 on
7915
        case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7916
        10.[012])
7917
          allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7918
          ;;
7919
        10.*)
7920
          allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7921
          ;;
7922
        esac
7923
        ;;
7924
      esac
7925
      archive_cmds_need_lc=no
7926
      hardcode_direct=no
7927
      hardcode_automatic=yes
7928
      hardcode_shlibpath_var=unsupported
7929
      whole_archive_flag_spec=''
7930
      link_all_deplibs=yes
7931
      if test "$GCC" = yes ; then
7932
        if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7933
  echo $ECHO_N "(cached) $ECHO_C" >&6
7934
else
7935
  lt_cv_apple_cc_single_mod=no
7936
        if test -z "${LT_MULTI_MODULE}"; then
7937
          # By default we will add the -single_module flag. You can override
7938
          # by either setting the environment variable LT_MULTI_MODULE
7939
          # non-empty at configure time, or by adding -multi-module to the
7940
          # link flags.
7941
          echo "int foo(void){return 1;}" > conftest.c
7942
          $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7943
              -dynamiclib ${wl}-single_module conftest.c
7944
          if test -f libconftest.dylib; then
7945
              lt_cv_apple_cc_single_mod=yes
7946
              rm libconftest.dylib
7947
          fi
7948
          rm conftest.$ac_ext
7949
        fi
7950
fi
7951
 
7952
        output_verbose_link_cmd=echo
7953
        if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7954
          archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7955
          archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7956
        else
7957
          archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7958
          archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7959
        fi
7960
        module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7961
        module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7962
      else
7963
        case $cc_basename in
7964
        xlc*)
7965
          output_verbose_link_cmd=echo
7966
          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7967
          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7968
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7969
          archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7970
          module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7971
          ;;
7972
        *)
7973
          ld_shlibs=no
7974
          ;;
7975
        esac
7976
      fi
7977
      ;;
7978
 
7979
    dgux*)
7980
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7981
      hardcode_libdir_flag_spec='-L$libdir'
7982
      hardcode_shlibpath_var=no
7983
      ;;
7984
 
7985
    freebsd1*)
7986
      ld_shlibs=no
7987
      ;;
7988
 
7989
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7990
    # support.  Future versions do this automatically, but an explicit c++rt0.o
7991
    # does not break anything, and helps significantly (at the cost of a little
7992
    # extra space).
7993
    freebsd2.2*)
7994
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7995
      hardcode_libdir_flag_spec='-R$libdir'
7996
      hardcode_direct=yes
7997
      hardcode_shlibpath_var=no
7998
      ;;
7999
 
8000
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8001
    freebsd2*)
8002
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8003
      hardcode_direct=yes
8004
      hardcode_minus_L=yes
8005
      hardcode_shlibpath_var=no
8006
      ;;
8007
 
8008
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8009
    freebsd* | dragonfly*)
8010
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8011
      hardcode_libdir_flag_spec='-R$libdir'
8012
      hardcode_direct=yes
8013
      hardcode_shlibpath_var=no
8014
      ;;
8015
 
8016
    hpux9*)
8017
      if test "$GCC" = yes; then
8018
        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'
8019
      else
8020
        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'
8021
      fi
8022
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8023
      hardcode_libdir_separator=:
8024
      hardcode_direct=yes
8025
 
8026
      # hardcode_minus_L: Not really in the search PATH,
8027
      # but as the default location of the library.
8028
      hardcode_minus_L=yes
8029
      export_dynamic_flag_spec='${wl}-E'
8030
      ;;
8031
 
8032
    hpux10*)
8033
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8034
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8035
      else
8036
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8037
      fi
8038
      if test "$with_gnu_ld" = no; then
8039
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8040
        hardcode_libdir_flag_spec_ld='+b $libdir'
8041
        hardcode_libdir_separator=:
8042
        hardcode_direct=yes
8043
        hardcode_direct_absolute=yes
8044
        export_dynamic_flag_spec='${wl}-E'
8045
        # hardcode_minus_L: Not really in the search PATH,
8046
        # but as the default location of the library.
8047
        hardcode_minus_L=yes
8048
      fi
8049
      ;;
8050
 
8051
    hpux11*)
8052
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8053
        case $host_cpu in
8054
        hppa*64*)
8055
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8056
          ;;
8057
        ia64*)
8058
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8059
          ;;
8060
        *)
8061
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8062
          ;;
8063
        esac
8064
      else
8065
        case $host_cpu in
8066
        hppa*64*)
8067
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8068
          ;;
8069
        ia64*)
8070
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8071
          ;;
8072
        *)
8073
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8074
          ;;
8075
        esac
8076
      fi
8077
      if test "$with_gnu_ld" = no; then
8078
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8079
        hardcode_libdir_separator=:
8080
 
8081
        case $host_cpu in
8082
        hppa*64*|ia64*)
8083
          hardcode_direct=no
8084
          hardcode_shlibpath_var=no
8085
          ;;
8086
        *)
8087
          hardcode_direct=yes
8088
          hardcode_direct_absolute=yes
8089
          export_dynamic_flag_spec='${wl}-E'
8090
 
8091
          # hardcode_minus_L: Not really in the search PATH,
8092
          # but as the default location of the library.
8093
          hardcode_minus_L=yes
8094
          ;;
8095
        esac
8096
      fi
8097
      ;;
8098
 
8099
    irix5* | irix6* | nonstopux*)
8100
      if test "$GCC" = yes; then
8101
        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'
8102
        # Try to use the -exported_symbol ld option, if it does not
8103
        # work, assume that -exports_file does not work either and
8104
        # implicitly export all symbols.
8105
        save_LDFLAGS="$LDFLAGS"
8106
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8107
        cat >conftest.$ac_ext <<_ACEOF
8108
int foo(void) {}
8109
_ACEOF
8110
rm -f conftest.$ac_objext conftest$ac_exeext
8111
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8112
  (eval $ac_link) 2>conftest.er1
8113
  ac_status=$?
8114
  grep -v '^ *+' conftest.er1 >conftest.err
8115
  rm -f conftest.er1
8116
  cat conftest.err >&5
8117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118
  (exit $ac_status); } &&
8119
         { ac_try='test -z "$ac_c_werror_flag"
8120
                         || test ! -s conftest.err'
8121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122
  (eval $ac_try) 2>&5
8123
  ac_status=$?
8124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125
  (exit $ac_status); }; } &&
8126
         { ac_try='test -s conftest$ac_exeext'
8127
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128
  (eval $ac_try) 2>&5
8129
  ac_status=$?
8130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131
  (exit $ac_status); }; }; then
8132
  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'
8133
 
8134
else
8135
  echo "$as_me: failed program was:" >&5
8136
sed 's/^/| /' conftest.$ac_ext >&5
8137
 
8138
fi
8139
rm -f conftest.err conftest.$ac_objext \
8140
      conftest$ac_exeext conftest.$ac_ext
8141
        LDFLAGS="$save_LDFLAGS"
8142
      else
8143
        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'
8144
        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'
8145
      fi
8146
      archive_cmds_need_lc='no'
8147
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8148
      hardcode_libdir_separator=:
8149
      inherit_rpath=yes
8150
      link_all_deplibs=yes
8151
      ;;
8152
 
8153
    netbsd*)
8154
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8155
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8156
      else
8157
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8158
      fi
8159
      hardcode_libdir_flag_spec='-R$libdir'
8160
      hardcode_direct=yes
8161
      hardcode_shlibpath_var=no
8162
      ;;
8163
 
8164
    newsos6)
8165
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8166
      hardcode_direct=yes
8167
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8168
      hardcode_libdir_separator=:
8169
      hardcode_shlibpath_var=no
8170
      ;;
8171
 
8172
    *nto* | *qnx*)
8173
      ;;
8174
 
8175
    openbsd*)
8176
      hardcode_direct=yes
8177
      hardcode_shlibpath_var=no
8178
      hardcode_direct_absolute=yes
8179
      if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8180
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8181
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8182
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8183
        export_dynamic_flag_spec='${wl}-E'
8184
      else
8185
        case $host_os in
8186
        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8187
          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8188
          hardcode_libdir_flag_spec='-R$libdir'
8189
          ;;
8190
        *)
8191
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8192
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8193
          ;;
8194
        esac
8195
      fi
8196
      ;;
8197
 
8198
    os2*)
8199
      hardcode_libdir_flag_spec='-L$libdir'
8200
      hardcode_minus_L=yes
8201
      allow_undefined_flag=unsupported
8202
      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'
8203
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8204
      ;;
8205
 
8206
    osf3*)
8207
      if test "$GCC" = yes; then
8208
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8209
        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'
8210
      else
8211
        allow_undefined_flag=' -expect_unresolved \*'
8212
        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'
8213
      fi
8214
      archive_cmds_need_lc='no'
8215
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8216
      hardcode_libdir_separator=:
8217
      ;;
8218
 
8219
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8220
      if test "$GCC" = yes; then
8221
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8222
        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'
8223
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8224
      else
8225
        allow_undefined_flag=' -expect_unresolved \*'
8226
        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'
8227
        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~
8228
        $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'
8229
 
8230
        # Both c and cxx compiler support -rpath directly
8231
        hardcode_libdir_flag_spec='-rpath $libdir'
8232
      fi
8233
      archive_cmds_need_lc='no'
8234
      hardcode_libdir_separator=:
8235
      ;;
8236
 
8237
    solaris*)
8238
      no_undefined_flag=' -z defs'
8239
      if test "$GCC" = yes; then
8240
        wlarc='${wl}'
8241
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8242
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8243
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8244
      else
8245
        case `$CC -V 2>&1` in
8246
        *"Compilers 5.0"*)
8247
          wlarc=''
8248
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8249
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8250
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8251
          ;;
8252
        *)
8253
          wlarc='${wl}'
8254
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8255
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8256
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8257
          ;;
8258
        esac
8259
      fi
8260
      hardcode_libdir_flag_spec='-R$libdir'
8261
      hardcode_shlibpath_var=no
8262
      case $host_os in
8263
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8264
      *)
8265
        # The compiler driver will combine and reorder linker options,
8266
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8267
        # but is careful enough not to reorder.
8268
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8269
        if test "$GCC" = yes; then
8270
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8271
        else
8272
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8273
        fi
8274
        ;;
8275
      esac
8276
      link_all_deplibs=yes
8277
      ;;
8278
 
8279
    sunos4*)
8280
      if test "x$host_vendor" = xsequent; then
8281
        # Use $CC to link under sequent, because it throws in some extra .o
8282
        # files that make .init and .fini sections work.
8283
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8284
      else
8285
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8286
      fi
8287
      hardcode_libdir_flag_spec='-L$libdir'
8288
      hardcode_direct=yes
8289
      hardcode_minus_L=yes
8290
      hardcode_shlibpath_var=no
8291
      ;;
8292
 
8293
    sysv4)
8294
      case $host_vendor in
8295
        sni)
8296
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8297
          hardcode_direct=yes # is this really true???
8298
        ;;
8299
        siemens)
8300
          ## LD is ld it makes a PLAMLIB
8301
          ## CC just makes a GrossModule.
8302
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8303
          reload_cmds='$CC -r -o $output$reload_objs'
8304
          hardcode_direct=no
8305
        ;;
8306
        motorola)
8307
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8308
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8309
        ;;
8310
      esac
8311
      runpath_var='LD_RUN_PATH'
8312
      hardcode_shlibpath_var=no
8313
      ;;
8314
 
8315
    sysv4.3*)
8316
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8317
      hardcode_shlibpath_var=no
8318
      export_dynamic_flag_spec='-Bexport'
8319
      ;;
8320
 
8321
    sysv4*MP*)
8322
      if test -d /usr/nec; then
8323
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8324
        hardcode_shlibpath_var=no
8325
        runpath_var=LD_RUN_PATH
8326
        hardcode_runpath_var=yes
8327
        ld_shlibs=yes
8328
      fi
8329
      ;;
8330
 
8331
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8332
      no_undefined_flag='${wl}-z,text'
8333
      archive_cmds_need_lc=no
8334
      hardcode_shlibpath_var=no
8335
      runpath_var='LD_RUN_PATH'
8336
 
8337
      if test "$GCC" = yes; then
8338
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8339
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8340
      else
8341
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8342
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8343
      fi
8344
      ;;
8345
 
8346
    sysv5* | sco3.2v5* | sco5v6*)
8347
      # Note: We can NOT use -z defs as we might desire, because we do not
8348
      # link with -lc, and that would cause any symbols used from libc to
8349
      # always be unresolved, which means just about no library would
8350
      # ever link correctly.  If we're not using GNU ld we use -z text
8351
      # though, which does catch some bad symbols but isn't as heavy-handed
8352
      # as -z defs.
8353
      no_undefined_flag='${wl}-z,text'
8354
      allow_undefined_flag='${wl}-z,nodefs'
8355
      archive_cmds_need_lc=no
8356
      hardcode_shlibpath_var=no
8357
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8358
      hardcode_libdir_separator=':'
8359
      link_all_deplibs=yes
8360
      export_dynamic_flag_spec='${wl}-Bexport'
8361
      runpath_var='LD_RUN_PATH'
8362
 
8363
      if test "$GCC" = yes; then
8364
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8365
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8366
      else
8367
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8368
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8369
      fi
8370
      ;;
8371
 
8372
    uts4*)
8373
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8374
      hardcode_libdir_flag_spec='-L$libdir'
8375
      hardcode_shlibpath_var=no
8376
      ;;
8377
 
8378
    *)
8379
      ld_shlibs=no
8380
      ;;
8381
    esac
8382
 
8383
    if test x$host_vendor = xsni; then
8384
      case $host in
8385
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8386
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8387
        ;;
8388
      esac
8389
    fi
8390
  fi
8391
 
8392
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8393
echo "${ECHO_T}$ld_shlibs" >&6
8394
test "$ld_shlibs" = no && can_build_shared=no
8395
 
8396
with_gnu_ld=$with_gnu_ld
8397
 
8398
 
8399
 
8400
 
8401
 
8402
 
8403
 
8404
 
8405
 
8406
 
8407
 
8408
 
8409
 
8410
 
8411
 
8412
#
8413
# Do we need to explicitly link libc?
8414
#
8415
case "x$archive_cmds_need_lc" in
8416
x|xyes)
8417
  # Assume -lc should be added
8418
  archive_cmds_need_lc=yes
8419
 
8420
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8421
    case $archive_cmds in
8422
    *'~'*)
8423
      # FIXME: we may have to deal with multi-command sequences.
8424
      ;;
8425
    '$CC '*)
8426
      # Test whether the compiler implicitly links with -lc since on some
8427
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8428
      # to ld, don't add -lc before -lgcc.
8429
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8430
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8431
      $RM conftest*
8432
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8433
 
8434
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8435
  (eval $ac_compile) 2>&5
8436
  ac_status=$?
8437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438
  (exit $ac_status); } 2>conftest.err; then
8439
        soname=conftest
8440
        lib=conftest
8441
        libobjs=conftest.$ac_objext
8442
        deplibs=
8443
        wl=$lt_prog_compiler_wl
8444
        pic_flag=$lt_prog_compiler_pic
8445
        compiler_flags=-v
8446
        linker_flags=-v
8447
        verstring=
8448
        output_objdir=.
8449
        libname=conftest
8450
        lt_save_allow_undefined_flag=$allow_undefined_flag
8451
        allow_undefined_flag=
8452
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8453
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8454
  ac_status=$?
8455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456
  (exit $ac_status); }
8457
        then
8458
          archive_cmds_need_lc=no
8459
        else
8460
          archive_cmds_need_lc=yes
8461
        fi
8462
        allow_undefined_flag=$lt_save_allow_undefined_flag
8463
      else
8464
        cat conftest.err 1>&5
8465
      fi
8466
      $RM conftest*
8467
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8468
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8469
      ;;
8470
    esac
8471
  fi
8472
  ;;
8473
esac
8474
 
8475
 
8476
 
8477
 
8478
 
8479
 
8480
 
8481
 
8482
 
8483
 
8484
 
8485
 
8486
 
8487
 
8488
 
8489
 
8490
 
8491
 
8492
 
8493
 
8494
 
8495
 
8496
 
8497
 
8498
 
8499
 
8500
 
8501
 
8502
 
8503
 
8504
 
8505
 
8506
 
8507
 
8508
 
8509
 
8510
 
8511
 
8512
 
8513
 
8514
 
8515
 
8516
 
8517
 
8518
 
8519
 
8520
 
8521
 
8522
 
8523
 
8524
 
8525
 
8526
 
8527
 
8528
 
8529
 
8530
 
8531
 
8532
 
8533
 
8534
 
8535
 
8536
 
8537
 
8538
 
8539
 
8540
 
8541
 
8542
 
8543
 
8544
 
8545
 
8546
 
8547
 
8548
 
8549
 
8550
 
8551
 
8552
 
8553
 
8554
 
8555
 
8556
 
8557
 
8558
 
8559
 
8560
 
8561
 
8562
 
8563
 
8564
 
8565
 
8566
 
8567
 
8568
 
8569
 
8570
 
8571
 
8572
 
8573
 
8574
 
8575
 
8576
 
8577
 
8578
 
8579
 
8580
 
8581
 
8582
 
8583
 
8584
 
8585
 
8586
 
8587
 
8588
 
8589
 
8590
 
8591
 
8592
 
8593
 
8594
 
8595
 
8596
 
8597
 
8598
 
8599
 
8600
 
8601
 
8602
 
8603
 
8604
 
8605
 
8606
 
8607
 
8608
 
8609
 
8610
 
8611
 
8612
 
8613
 
8614
 
8615
 
8616
 
8617
 
8618
 
8619
 
8620
 
8621
 
8622
 
8623
 
8624
 
8625
 
8626
 
8627
 
8628
 
8629
 
8630
 
8631
  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8632
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8633
withGCC=$GCC
8634
if test "$withGCC" = yes; then
8635
  case $host_os in
8636
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8637
    *) lt_awk_arg="/^libraries:/" ;;
8638
  esac
8639
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8640
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8641
    # if the path contains ";" then we assume it to be the separator
8642
    # otherwise default to the standard path separator (i.e. ":") - it is
8643
    # assumed that no part of a normal pathname contains ";" but that should
8644
    # okay in the real world where ";" in dirpaths is itself problematic.
8645
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8646
  else
8647
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8648
  fi
8649
  # Ok, now we have the path, separated by spaces, we can step through it
8650
  # and add multilib dir if necessary.
8651
  lt_tmp_lt_search_path_spec=
8652
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8653
  for lt_sys_path in $lt_search_path_spec; do
8654
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8655
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8656
    else
8657
      test -d "$lt_sys_path" && \
8658
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8659
    fi
8660
  done
8661
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8662
BEGIN {RS=" "; FS="/|\n";} {
8663
  lt_foo="";
8664
  lt_count=0;
8665
  for (lt_i = NF; lt_i > 0; lt_i--) {
8666
    if ($lt_i != "" && $lt_i != ".") {
8667
      if ($lt_i == "..") {
8668
        lt_count++;
8669
      } else {
8670
        if (lt_count == 0) {
8671
          lt_foo="/" $lt_i lt_foo;
8672
        } else {
8673
          lt_count--;
8674
        }
8675
      }
8676
    }
8677
  }
8678
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8679
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8680
}'`
8681
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8682
else
8683
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8684
fi
8685
library_names_spec=
8686
libname_spec='lib$name'
8687
soname_spec=
8688
shrext_cmds=".so"
8689
postinstall_cmds=
8690
postuninstall_cmds=
8691
finish_cmds=
8692
finish_eval=
8693
shlibpath_var=
8694
shlibpath_overrides_runpath=unknown
8695
version_type=none
8696
dynamic_linker="$host_os ld.so"
8697
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8698
need_lib_prefix=unknown
8699
hardcode_into_libs=no
8700
 
8701
# when you set need_version to no, make sure it does not cause -set_version
8702
# flags to be left without arguments
8703
need_version=unknown
8704
 
8705
case $host_os in
8706
aix3*)
8707
  version_type=linux
8708
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8709
  shlibpath_var=LIBPATH
8710
 
8711
  # AIX 3 has no versioning support, so we append a major version to the name.
8712
  soname_spec='${libname}${release}${shared_ext}$major'
8713
  ;;
8714
 
8715
aix[4-9]*)
8716
  version_type=linux
8717
  need_lib_prefix=no
8718
  need_version=no
8719
  hardcode_into_libs=yes
8720
  if test "$host_cpu" = ia64; then
8721
    # AIX 5 supports IA64
8722
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8723
    shlibpath_var=LD_LIBRARY_PATH
8724
  else
8725
    # With GCC up to 2.95.x, collect2 would create an import file
8726
    # for dependence libraries.  The import file would start with
8727
    # the line `#! .'.  This would cause the generated library to
8728
    # depend on `.', always an invalid library.  This was fixed in
8729
    # development snapshots of GCC prior to 3.0.
8730
    case $host_os in
8731
      aix4 | aix4.[01] | aix4.[01].*)
8732
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8733
           echo ' yes '
8734
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8735
        :
8736
      else
8737
        can_build_shared=no
8738
      fi
8739
      ;;
8740
    esac
8741
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8742
    # soname into executable. Probably we can add versioning support to
8743
    # collect2, so additional links can be useful in future.
8744
    if test "$aix_use_runtimelinking" = yes; then
8745
      # If using run time linking (on AIX 4.2 or later) use lib.so
8746
      # instead of lib.a to let people know that these are not
8747
      # typical AIX shared libraries.
8748
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8749
    else
8750
      # We preserve .a as extension for shared libraries through AIX4.2
8751
      # and later when we are not doing run time linking.
8752
      library_names_spec='${libname}${release}.a $libname.a'
8753
      soname_spec='${libname}${release}${shared_ext}$major'
8754
    fi
8755
    shlibpath_var=LIBPATH
8756
  fi
8757
  ;;
8758
 
8759
amigaos*)
8760
  if test "$host_cpu" = m68k; then
8761
    library_names_spec='$libname.ixlibrary $libname.a'
8762
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8763
    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'
8764
  else
8765
    dynamic_linker=no
8766
  fi
8767
  ;;
8768
 
8769
beos*)
8770
  library_names_spec='${libname}${shared_ext}'
8771
  dynamic_linker="$host_os ld.so"
8772
  shlibpath_var=LIBRARY_PATH
8773
  ;;
8774
 
8775
bsdi[45]*)
8776
  version_type=linux
8777
  need_version=no
8778
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8779
  soname_spec='${libname}${release}${shared_ext}$major'
8780
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8781
  shlibpath_var=LD_LIBRARY_PATH
8782
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8783
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8784
  # the default ld.so.conf also contains /usr/contrib/lib and
8785
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8786
  # libtool to hard-code these into programs
8787
  ;;
8788
 
8789
cygwin* | mingw* | pw32*)
8790
  version_type=windows
8791
  shrext_cmds=".dll"
8792
  need_version=no
8793
  need_lib_prefix=no
8794
 
8795
  case $withGCC,$host_os in
8796
  yes,cygwin* | yes,mingw* | yes,pw32*)
8797
    library_names_spec='$libname.dll.a'
8798
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8799
    postinstall_cmds='base_file=`basename \${file}`~
8800
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8801
      dldir=$destdir/`dirname \$dlpath`~
8802
      test -d \$dldir || mkdir -p \$dldir~
8803
      $install_prog $dir/$dlname \$dldir/$dlname~
8804
      chmod a+x \$dldir/$dlname~
8805
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8806
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8807
      fi'
8808
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8809
      dlpath=$dir/\$dldll~
8810
       $RM \$dlpath'
8811
    shlibpath_overrides_runpath=yes
8812
 
8813
    case $host_os in
8814
    cygwin*)
8815
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8816
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8817
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8818
      ;;
8819
    mingw*)
8820
      # MinGW DLLs use traditional 'lib' prefix
8821
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8822
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8823
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8824
        # It is most probably a Windows format PATH printed by
8825
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8826
        # path with ; separators, and with drive letters. We can handle the
8827
        # drive letters (cygwin fileutils understands them), so leave them,
8828
        # especially as we might pass files found there to a mingw objdump,
8829
        # which wouldn't understand a cygwinified path. Ahh.
8830
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8831
      else
8832
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8833
      fi
8834
      ;;
8835
    pw32*)
8836
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8837
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8838
      ;;
8839
    esac
8840
    ;;
8841
 
8842
  *)
8843
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8844
    ;;
8845
  esac
8846
  dynamic_linker='Win32 ld.exe'
8847
  # FIXME: first we should search . and the directory the executable is in
8848
  shlibpath_var=PATH
8849
  ;;
8850
 
8851
darwin* | rhapsody*)
8852
  dynamic_linker="$host_os dyld"
8853
  version_type=darwin
8854
  need_lib_prefix=no
8855
  need_version=no
8856
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8857
  soname_spec='${libname}${release}${major}$shared_ext'
8858
  shlibpath_overrides_runpath=yes
8859
  shlibpath_var=DYLD_LIBRARY_PATH
8860
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8861
 
8862
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8863
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8864
  ;;
8865
 
8866
dgux*)
8867
  version_type=linux
8868
  need_lib_prefix=no
8869
  need_version=no
8870
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8871
  soname_spec='${libname}${release}${shared_ext}$major'
8872
  shlibpath_var=LD_LIBRARY_PATH
8873
  ;;
8874
 
8875
freebsd1*)
8876
  dynamic_linker=no
8877
  ;;
8878
 
8879
freebsd* | dragonfly*)
8880
  # DragonFly does not have aout.  When/if they implement a new
8881
  # versioning mechanism, adjust this.
8882
  if test -x /usr/bin/objformat; then
8883
    objformat=`/usr/bin/objformat`
8884
  else
8885
    case $host_os in
8886
    freebsd[123]*) objformat=aout ;;
8887
    *) objformat=elf ;;
8888
    esac
8889
  fi
8890
  version_type=freebsd-$objformat
8891
  case $version_type in
8892
    freebsd-elf*)
8893
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8894
      need_version=no
8895
      need_lib_prefix=no
8896
      ;;
8897
    freebsd-*)
8898
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8899
      need_version=yes
8900
      ;;
8901
  esac
8902
  shlibpath_var=LD_LIBRARY_PATH
8903
  case $host_os in
8904
  freebsd2*)
8905
    shlibpath_overrides_runpath=yes
8906
    ;;
8907
  freebsd3.[01]* | freebsdelf3.[01]*)
8908
    shlibpath_overrides_runpath=yes
8909
    hardcode_into_libs=yes
8910
    ;;
8911
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8912
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8913
    shlibpath_overrides_runpath=no
8914
    hardcode_into_libs=yes
8915
    ;;
8916
  *) # from 4.6 on, and DragonFly
8917
    shlibpath_overrides_runpath=yes
8918
    hardcode_into_libs=yes
8919
    ;;
8920
  esac
8921
  ;;
8922
 
8923
gnu*)
8924
  version_type=linux
8925
  need_lib_prefix=no
8926
  need_version=no
8927
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8928
  soname_spec='${libname}${release}${shared_ext}$major'
8929
  shlibpath_var=LD_LIBRARY_PATH
8930
  hardcode_into_libs=yes
8931
  ;;
8932
 
8933
hpux9* | hpux10* | hpux11*)
8934
  # Give a soname corresponding to the major version so that dld.sl refuses to
8935
  # link against other versions.
8936
  version_type=sunos
8937
  need_lib_prefix=no
8938
  need_version=no
8939
  case $host_cpu in
8940
  ia64*)
8941
    shrext_cmds='.so'
8942
    hardcode_into_libs=yes
8943
    dynamic_linker="$host_os dld.so"
8944
    shlibpath_var=LD_LIBRARY_PATH
8945
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8946
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947
    soname_spec='${libname}${release}${shared_ext}$major'
8948
    if test "X$HPUX_IA64_MODE" = X32; then
8949
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8950
    else
8951
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8952
    fi
8953
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8954
    ;;
8955
  hppa*64*)
8956
    shrext_cmds='.sl'
8957
    hardcode_into_libs=yes
8958
    dynamic_linker="$host_os dld.sl"
8959
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8960
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8961
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962
    soname_spec='${libname}${release}${shared_ext}$major'
8963
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8964
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8965
    ;;
8966
  *)
8967
    shrext_cmds='.sl'
8968
    dynamic_linker="$host_os dld.sl"
8969
    shlibpath_var=SHLIB_PATH
8970
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8971
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972
    soname_spec='${libname}${release}${shared_ext}$major'
8973
    ;;
8974
  esac
8975
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8976
  postinstall_cmds='chmod 555 $lib'
8977
  ;;
8978
 
8979
interix[3-9]*)
8980
  version_type=linux
8981
  need_lib_prefix=no
8982
  need_version=no
8983
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8984
  soname_spec='${libname}${release}${shared_ext}$major'
8985
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8986
  shlibpath_var=LD_LIBRARY_PATH
8987
  shlibpath_overrides_runpath=no
8988
  hardcode_into_libs=yes
8989
  ;;
8990
 
8991
irix5* | irix6* | nonstopux*)
8992
  case $host_os in
8993
    nonstopux*) version_type=nonstopux ;;
8994
    *)
8995
        if test "$lt_cv_prog_gnu_ld" = yes; then
8996
                version_type=linux
8997
        else
8998
                version_type=irix
8999
        fi ;;
9000
  esac
9001
  need_lib_prefix=no
9002
  need_version=no
9003
  soname_spec='${libname}${release}${shared_ext}$major'
9004
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9005
  case $host_os in
9006
  irix5* | nonstopux*)
9007
    libsuff= shlibsuff=
9008
    ;;
9009
  *)
9010
    case $LD in # libtool.m4 will add one of these switches to LD
9011
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9012
      libsuff= shlibsuff= libmagic=32-bit;;
9013
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9014
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9015
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9016
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9017
    *) libsuff= shlibsuff= libmagic=never-match;;
9018
    esac
9019
    ;;
9020
  esac
9021
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9022
  shlibpath_overrides_runpath=no
9023
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9024
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9025
  hardcode_into_libs=yes
9026
  ;;
9027
 
9028
# No shared lib support for Linux oldld, aout, or coff.
9029
linux*oldld* | linux*aout* | linux*coff*)
9030
  dynamic_linker=no
9031
  ;;
9032
 
9033
# This must be Linux ELF.
9034
linux* | k*bsd*-gnu)
9035
  version_type=linux
9036
  need_lib_prefix=no
9037
  need_version=no
9038
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039
  soname_spec='${libname}${release}${shared_ext}$major'
9040
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9041
  shlibpath_var=LD_LIBRARY_PATH
9042
  shlibpath_overrides_runpath=no
9043
  # Some binutils ld are patched to set DT_RUNPATH
9044
  save_LDFLAGS=$LDFLAGS
9045
  save_libdir=$libdir
9046
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9047
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9048
  cat >conftest.$ac_ext <<_ACEOF
9049
/* confdefs.h.  */
9050
_ACEOF
9051
cat confdefs.h >>conftest.$ac_ext
9052
cat >>conftest.$ac_ext <<_ACEOF
9053
/* end confdefs.h.  */
9054
 
9055
int
9056
main ()
9057
{
9058
 
9059
  ;
9060
  return 0;
9061
}
9062
_ACEOF
9063
rm -f conftest.$ac_objext conftest$ac_exeext
9064
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9065
  (eval $ac_link) 2>conftest.er1
9066
  ac_status=$?
9067
  grep -v '^ *+' conftest.er1 >conftest.err
9068
  rm -f conftest.er1
9069
  cat conftest.err >&5
9070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071
  (exit $ac_status); } &&
9072
         { ac_try='test -z "$ac_c_werror_flag"
9073
                         || test ! -s conftest.err'
9074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075
  (eval $ac_try) 2>&5
9076
  ac_status=$?
9077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078
  (exit $ac_status); }; } &&
9079
         { ac_try='test -s conftest$ac_exeext'
9080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081
  (eval $ac_try) 2>&5
9082
  ac_status=$?
9083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084
  (exit $ac_status); }; }; then
9085
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9086
  shlibpath_overrides_runpath=yes
9087
fi
9088
 
9089
else
9090
  echo "$as_me: failed program was:" >&5
9091
sed 's/^/| /' conftest.$ac_ext >&5
9092
 
9093
fi
9094
rm -f conftest.err conftest.$ac_objext \
9095
      conftest$ac_exeext conftest.$ac_ext
9096
  LDFLAGS=$save_LDFLAGS
9097
  libdir=$save_libdir
9098
 
9099
  # This implies no fast_install, which is unacceptable.
9100
  # Some rework will be needed to allow for fast_install
9101
  # before this can be enabled.
9102
  hardcode_into_libs=yes
9103
 
9104
  # Append ld.so.conf contents to the search path
9105
  if test -f /etc/ld.so.conf; then
9106
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9107
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9108
  fi
9109
 
9110
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9111
  # powerpc, because MkLinux only supported shared libraries with the
9112
  # GNU dynamic linker.  Since this was broken with cross compilers,
9113
  # most powerpc-linux boxes support dynamic linking these days and
9114
  # people can always --disable-shared, the test was removed, and we
9115
  # assume the GNU/Linux dynamic linker is in use.
9116
  dynamic_linker='GNU/Linux ld.so'
9117
  ;;
9118
 
9119
netbsd*)
9120
  version_type=sunos
9121
  need_lib_prefix=no
9122
  need_version=no
9123
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9124
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9125
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9126
    dynamic_linker='NetBSD (a.out) ld.so'
9127
  else
9128
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9129
    soname_spec='${libname}${release}${shared_ext}$major'
9130
    dynamic_linker='NetBSD ld.elf_so'
9131
  fi
9132
  shlibpath_var=LD_LIBRARY_PATH
9133
  shlibpath_overrides_runpath=yes
9134
  hardcode_into_libs=yes
9135
  ;;
9136
 
9137
newsos6)
9138
  version_type=linux
9139
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140
  shlibpath_var=LD_LIBRARY_PATH
9141
  shlibpath_overrides_runpath=yes
9142
  ;;
9143
 
9144
*nto* | *qnx*)
9145
  version_type=qnx
9146
  need_lib_prefix=no
9147
  need_version=no
9148
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9149
  soname_spec='${libname}${release}${shared_ext}$major'
9150
  shlibpath_var=LD_LIBRARY_PATH
9151
  shlibpath_overrides_runpath=no
9152
  hardcode_into_libs=yes
9153
  dynamic_linker='ldqnx.so'
9154
  ;;
9155
 
9156
openbsd*)
9157
  version_type=sunos
9158
  sys_lib_dlsearch_path_spec="/usr/lib"
9159
  need_lib_prefix=no
9160
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9161
  case $host_os in
9162
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9163
    *)                          need_version=no  ;;
9164
  esac
9165
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9166
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9167
  shlibpath_var=LD_LIBRARY_PATH
9168
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9169
    case $host_os in
9170
      openbsd2.[89] | openbsd2.[89].*)
9171
        shlibpath_overrides_runpath=no
9172
        ;;
9173
      *)
9174
        shlibpath_overrides_runpath=yes
9175
        ;;
9176
      esac
9177
  else
9178
    shlibpath_overrides_runpath=yes
9179
  fi
9180
  ;;
9181
 
9182
os2*)
9183
  libname_spec='$name'
9184
  shrext_cmds=".dll"
9185
  need_lib_prefix=no
9186
  library_names_spec='$libname${shared_ext} $libname.a'
9187
  dynamic_linker='OS/2 ld.exe'
9188
  shlibpath_var=LIBPATH
9189
  ;;
9190
 
9191
osf3* | osf4* | osf5*)
9192
  version_type=osf
9193
  need_lib_prefix=no
9194
  need_version=no
9195
  soname_spec='${libname}${release}${shared_ext}$major'
9196
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9197
  shlibpath_var=LD_LIBRARY_PATH
9198
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9199
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9200
  ;;
9201
 
9202
rdos*)
9203
  dynamic_linker=no
9204
  ;;
9205
 
9206
solaris*)
9207
  version_type=linux
9208
  need_lib_prefix=no
9209
  need_version=no
9210
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9211
  soname_spec='${libname}${release}${shared_ext}$major'
9212
  shlibpath_var=LD_LIBRARY_PATH
9213
  shlibpath_overrides_runpath=yes
9214
  hardcode_into_libs=yes
9215
  # ldd complains unless libraries are executable
9216
  postinstall_cmds='chmod +x $lib'
9217
  ;;
9218
 
9219
sunos4*)
9220
  version_type=sunos
9221
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9222
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9223
  shlibpath_var=LD_LIBRARY_PATH
9224
  shlibpath_overrides_runpath=yes
9225
  if test "$with_gnu_ld" = yes; then
9226
    need_lib_prefix=no
9227
  fi
9228
  need_version=yes
9229
  ;;
9230
 
9231
sysv4 | sysv4.3*)
9232
  version_type=linux
9233
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234
  soname_spec='${libname}${release}${shared_ext}$major'
9235
  shlibpath_var=LD_LIBRARY_PATH
9236
  case $host_vendor in
9237
    sni)
9238
      shlibpath_overrides_runpath=no
9239
      need_lib_prefix=no
9240
      runpath_var=LD_RUN_PATH
9241
      ;;
9242
    siemens)
9243
      need_lib_prefix=no
9244
      ;;
9245
    motorola)
9246
      need_lib_prefix=no
9247
      need_version=no
9248
      shlibpath_overrides_runpath=no
9249
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9250
      ;;
9251
  esac
9252
  ;;
9253
 
9254
sysv4*MP*)
9255
  if test -d /usr/nec ;then
9256
    version_type=linux
9257
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9258
    soname_spec='$libname${shared_ext}.$major'
9259
    shlibpath_var=LD_LIBRARY_PATH
9260
  fi
9261
  ;;
9262
 
9263
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9264
  version_type=freebsd-elf
9265
  need_lib_prefix=no
9266
  need_version=no
9267
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9268
  soname_spec='${libname}${release}${shared_ext}$major'
9269
  shlibpath_var=LD_LIBRARY_PATH
9270
  shlibpath_overrides_runpath=yes
9271
  hardcode_into_libs=yes
9272
  if test "$with_gnu_ld" = yes; then
9273
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9274
  else
9275
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9276
    case $host_os in
9277
      sco3.2v5*)
9278
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9279
        ;;
9280
    esac
9281
  fi
9282
  sys_lib_dlsearch_path_spec='/usr/lib'
9283
  ;;
9284
 
9285
tpf*)
9286
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9287
  version_type=linux
9288
  need_lib_prefix=no
9289
  need_version=no
9290
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9291
  shlibpath_var=LD_LIBRARY_PATH
9292
  shlibpath_overrides_runpath=no
9293
  hardcode_into_libs=yes
9294
  ;;
9295
 
9296
uts4*)
9297
  version_type=linux
9298
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9299
  soname_spec='${libname}${release}${shared_ext}$major'
9300
  shlibpath_var=LD_LIBRARY_PATH
9301
  ;;
9302
 
9303
*)
9304
  dynamic_linker=no
9305
  ;;
9306
esac
9307
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9308
echo "${ECHO_T}$dynamic_linker" >&6
9309
test "$dynamic_linker" = no && can_build_shared=no
9310
 
9311
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9312
if test "$GCC" = yes; then
9313
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9314
fi
9315
 
9316
 
9317
 
9318
 
9319
 
9320
 
9321
 
9322
 
9323
 
9324
 
9325
 
9326
 
9327
 
9328
 
9329
 
9330
 
9331
 
9332
 
9333
 
9334
 
9335
 
9336
 
9337
 
9338
 
9339
 
9340
 
9341
 
9342
 
9343
 
9344
 
9345
 
9346
 
9347
 
9348
 
9349
 
9350
 
9351
 
9352
 
9353
 
9354
 
9355
 
9356
 
9357
 
9358
 
9359
 
9360
 
9361
 
9362
 
9363
 
9364
 
9365
 
9366
 
9367
 
9368
 
9369
 
9370
 
9371
 
9372
 
9373
 
9374
 
9375
 
9376
 
9377
 
9378
 
9379
 
9380
 
9381
 
9382
 
9383
 
9384
 
9385
 
9386
 
9387
 
9388
 
9389
 
9390
 
9391
 
9392
 
9393
 
9394
 
9395
 
9396
 
9397
 
9398
 
9399
 
9400
 
9401
 
9402
  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9403
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9404
hardcode_action=
9405
if test -n "$hardcode_libdir_flag_spec" ||
9406
   test -n "$runpath_var" ||
9407
   test "X$hardcode_automatic" = "Xyes" ; then
9408
 
9409
  # We can hardcode non-existent directories.
9410
  if test "$hardcode_direct" != no &&
9411
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9412
     # have to relink, otherwise we might link with an installed library
9413
     # when we should be linking with a yet-to-be-installed one
9414
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9415
     test "$hardcode_minus_L" != no; then
9416
    # Linking always hardcodes the temporary library directory.
9417
    hardcode_action=relink
9418
  else
9419
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9420
    hardcode_action=immediate
9421
  fi
9422
else
9423
  # We cannot hardcode anything, or else we can only hardcode existing
9424
  # directories.
9425
  hardcode_action=unsupported
9426
fi
9427
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9428
echo "${ECHO_T}$hardcode_action" >&6
9429
 
9430
if test "$hardcode_action" = relink ||
9431
   test "$inherit_rpath" = yes; then
9432
  # Fast installation is not supported
9433
  enable_fast_install=no
9434
elif test "$shlibpath_overrides_runpath" = yes ||
9435
     test "$enable_shared" = no; then
9436
  # Fast installation is not necessary
9437
  enable_fast_install=needless
9438
fi
9439
 
9440
 
9441
 
9442
 
9443
 
9444
 
9445
  if test "x$enable_dlopen" != xyes; then
9446
  enable_dlopen=unknown
9447
  enable_dlopen_self=unknown
9448
  enable_dlopen_self_static=unknown
9449
else
9450
  lt_cv_dlopen=no
9451
  lt_cv_dlopen_libs=
9452
 
9453
  case $host_os in
9454
  beos*)
9455
    lt_cv_dlopen="load_add_on"
9456
    lt_cv_dlopen_libs=
9457
    lt_cv_dlopen_self=yes
9458
    ;;
9459
 
9460
  mingw* | pw32*)
9461
    lt_cv_dlopen="LoadLibrary"
9462
    lt_cv_dlopen_libs=
9463
    ;;
9464
 
9465
  cygwin*)
9466
    lt_cv_dlopen="dlopen"
9467
    lt_cv_dlopen_libs=
9468
    ;;
9469
 
9470
  darwin*)
9471
  # if libdl is installed we need to link against it
9472
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9473
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9474
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9475
  echo $ECHO_N "(cached) $ECHO_C" >&6
9476
else
9477
  ac_check_lib_save_LIBS=$LIBS
9478
LIBS="-ldl  $LIBS"
9479
cat >conftest.$ac_ext <<_ACEOF
9480
/* confdefs.h.  */
9481
_ACEOF
9482
cat confdefs.h >>conftest.$ac_ext
9483
cat >>conftest.$ac_ext <<_ACEOF
9484
/* end confdefs.h.  */
9485
 
9486
/* Override any gcc2 internal prototype to avoid an error.  */
9487
#ifdef __cplusplus
9488
extern "C"
9489
#endif
9490
/* We use char because int might match the return type of a gcc2
9491
   builtin and then its argument prototype would still apply.  */
9492
char dlopen ();
9493
int
9494
main ()
9495
{
9496
dlopen ();
9497
  ;
9498
  return 0;
9499
}
9500
_ACEOF
9501
rm -f conftest.$ac_objext conftest$ac_exeext
9502
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9503
  (eval $ac_link) 2>conftest.er1
9504
  ac_status=$?
9505
  grep -v '^ *+' conftest.er1 >conftest.err
9506
  rm -f conftest.er1
9507
  cat conftest.err >&5
9508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509
  (exit $ac_status); } &&
9510
         { ac_try='test -z "$ac_c_werror_flag"
9511
                         || test ! -s conftest.err'
9512
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513
  (eval $ac_try) 2>&5
9514
  ac_status=$?
9515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516
  (exit $ac_status); }; } &&
9517
         { ac_try='test -s conftest$ac_exeext'
9518
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519
  (eval $ac_try) 2>&5
9520
  ac_status=$?
9521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522
  (exit $ac_status); }; }; then
9523
  ac_cv_lib_dl_dlopen=yes
9524
else
9525
  echo "$as_me: failed program was:" >&5
9526
sed 's/^/| /' conftest.$ac_ext >&5
9527
 
9528
ac_cv_lib_dl_dlopen=no
9529
fi
9530
rm -f conftest.err conftest.$ac_objext \
9531
      conftest$ac_exeext conftest.$ac_ext
9532
LIBS=$ac_check_lib_save_LIBS
9533
fi
9534
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9535
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9536
if test $ac_cv_lib_dl_dlopen = yes; then
9537
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9538
else
9539
 
9540
    lt_cv_dlopen="dyld"
9541
    lt_cv_dlopen_libs=
9542
    lt_cv_dlopen_self=yes
9543
 
9544
fi
9545
 
9546
    ;;
9547
 
9548
  *)
9549
    echo "$as_me:$LINENO: checking for shl_load" >&5
9550
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9551
if test "${ac_cv_func_shl_load+set}" = set; then
9552
  echo $ECHO_N "(cached) $ECHO_C" >&6
9553
else
9554
  cat >conftest.$ac_ext <<_ACEOF
9555
/* confdefs.h.  */
9556
_ACEOF
9557
cat confdefs.h >>conftest.$ac_ext
9558
cat >>conftest.$ac_ext <<_ACEOF
9559
/* end confdefs.h.  */
9560
/* Define shl_load to an innocuous variant, in case  declares shl_load.
9561
   For example, HP-UX 11i  declares gettimeofday.  */
9562
#define shl_load innocuous_shl_load
9563
 
9564
/* System header to define __stub macros and hopefully few prototypes,
9565
    which can conflict with char shl_load (); below.
9566
    Prefer  to  if __STDC__ is defined, since
9567
     exists even on freestanding compilers.  */
9568
 
9569
#ifdef __STDC__
9570
# include 
9571
#else
9572
# include 
9573
#endif
9574
 
9575
#undef shl_load
9576
 
9577
/* Override any gcc2 internal prototype to avoid an error.  */
9578
#ifdef __cplusplus
9579
extern "C"
9580
{
9581
#endif
9582
/* We use char because int might match the return type of a gcc2
9583
   builtin and then its argument prototype would still apply.  */
9584
char shl_load ();
9585
/* The GNU C library defines this for functions which it implements
9586
    to always fail with ENOSYS.  Some functions are actually named
9587
    something starting with __ and the normal name is an alias.  */
9588
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9589
choke me
9590
#else
9591
char (*f) () = shl_load;
9592
#endif
9593
#ifdef __cplusplus
9594
}
9595
#endif
9596
 
9597
int
9598
main ()
9599
{
9600
return f != shl_load;
9601
  ;
9602
  return 0;
9603
}
9604
_ACEOF
9605
rm -f conftest.$ac_objext conftest$ac_exeext
9606
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9607
  (eval $ac_link) 2>conftest.er1
9608
  ac_status=$?
9609
  grep -v '^ *+' conftest.er1 >conftest.err
9610
  rm -f conftest.er1
9611
  cat conftest.err >&5
9612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613
  (exit $ac_status); } &&
9614
         { ac_try='test -z "$ac_c_werror_flag"
9615
                         || test ! -s conftest.err'
9616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617
  (eval $ac_try) 2>&5
9618
  ac_status=$?
9619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620
  (exit $ac_status); }; } &&
9621
         { ac_try='test -s conftest$ac_exeext'
9622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623
  (eval $ac_try) 2>&5
9624
  ac_status=$?
9625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626
  (exit $ac_status); }; }; then
9627
  ac_cv_func_shl_load=yes
9628
else
9629
  echo "$as_me: failed program was:" >&5
9630
sed 's/^/| /' conftest.$ac_ext >&5
9631
 
9632
ac_cv_func_shl_load=no
9633
fi
9634
rm -f conftest.err conftest.$ac_objext \
9635
      conftest$ac_exeext conftest.$ac_ext
9636
fi
9637
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9638
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9639
if test $ac_cv_func_shl_load = yes; then
9640
  lt_cv_dlopen="shl_load"
9641
else
9642
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9643
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9644
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9645
  echo $ECHO_N "(cached) $ECHO_C" >&6
9646
else
9647
  ac_check_lib_save_LIBS=$LIBS
9648
LIBS="-ldld  $LIBS"
9649
cat >conftest.$ac_ext <<_ACEOF
9650
/* confdefs.h.  */
9651
_ACEOF
9652
cat confdefs.h >>conftest.$ac_ext
9653
cat >>conftest.$ac_ext <<_ACEOF
9654
/* end confdefs.h.  */
9655
 
9656
/* Override any gcc2 internal prototype to avoid an error.  */
9657
#ifdef __cplusplus
9658
extern "C"
9659
#endif
9660
/* We use char because int might match the return type of a gcc2
9661
   builtin and then its argument prototype would still apply.  */
9662
char shl_load ();
9663
int
9664
main ()
9665
{
9666
shl_load ();
9667
  ;
9668
  return 0;
9669
}
9670
_ACEOF
9671
rm -f conftest.$ac_objext conftest$ac_exeext
9672
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673
  (eval $ac_link) 2>conftest.er1
9674
  ac_status=$?
9675
  grep -v '^ *+' conftest.er1 >conftest.err
9676
  rm -f conftest.er1
9677
  cat conftest.err >&5
9678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679
  (exit $ac_status); } &&
9680
         { ac_try='test -z "$ac_c_werror_flag"
9681
                         || test ! -s conftest.err'
9682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683
  (eval $ac_try) 2>&5
9684
  ac_status=$?
9685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686
  (exit $ac_status); }; } &&
9687
         { ac_try='test -s conftest$ac_exeext'
9688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689
  (eval $ac_try) 2>&5
9690
  ac_status=$?
9691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692
  (exit $ac_status); }; }; then
9693
  ac_cv_lib_dld_shl_load=yes
9694
else
9695
  echo "$as_me: failed program was:" >&5
9696
sed 's/^/| /' conftest.$ac_ext >&5
9697
 
9698
ac_cv_lib_dld_shl_load=no
9699
fi
9700
rm -f conftest.err conftest.$ac_objext \
9701
      conftest$ac_exeext conftest.$ac_ext
9702
LIBS=$ac_check_lib_save_LIBS
9703
fi
9704
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9705
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9706
if test $ac_cv_lib_dld_shl_load = yes; then
9707
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9708
else
9709
  echo "$as_me:$LINENO: checking for dlopen" >&5
9710
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9711
if test "${ac_cv_func_dlopen+set}" = set; then
9712
  echo $ECHO_N "(cached) $ECHO_C" >&6
9713
else
9714
  cat >conftest.$ac_ext <<_ACEOF
9715
/* confdefs.h.  */
9716
_ACEOF
9717
cat confdefs.h >>conftest.$ac_ext
9718
cat >>conftest.$ac_ext <<_ACEOF
9719
/* end confdefs.h.  */
9720
/* Define dlopen to an innocuous variant, in case  declares dlopen.
9721
   For example, HP-UX 11i  declares gettimeofday.  */
9722
#define dlopen innocuous_dlopen
9723
 
9724
/* System header to define __stub macros and hopefully few prototypes,
9725
    which can conflict with char dlopen (); below.
9726
    Prefer  to  if __STDC__ is defined, since
9727
     exists even on freestanding compilers.  */
9728
 
9729
#ifdef __STDC__
9730
# include 
9731
#else
9732
# include 
9733
#endif
9734
 
9735
#undef dlopen
9736
 
9737
/* Override any gcc2 internal prototype to avoid an error.  */
9738
#ifdef __cplusplus
9739
extern "C"
9740
{
9741
#endif
9742
/* We use char because int might match the return type of a gcc2
9743
   builtin and then its argument prototype would still apply.  */
9744
char dlopen ();
9745
/* The GNU C library defines this for functions which it implements
9746
    to always fail with ENOSYS.  Some functions are actually named
9747
    something starting with __ and the normal name is an alias.  */
9748
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9749
choke me
9750
#else
9751
char (*f) () = dlopen;
9752
#endif
9753
#ifdef __cplusplus
9754
}
9755
#endif
9756
 
9757
int
9758
main ()
9759
{
9760
return f != dlopen;
9761
  ;
9762
  return 0;
9763
}
9764
_ACEOF
9765
rm -f conftest.$ac_objext conftest$ac_exeext
9766
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767
  (eval $ac_link) 2>conftest.er1
9768
  ac_status=$?
9769
  grep -v '^ *+' conftest.er1 >conftest.err
9770
  rm -f conftest.er1
9771
  cat conftest.err >&5
9772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773
  (exit $ac_status); } &&
9774
         { ac_try='test -z "$ac_c_werror_flag"
9775
                         || test ! -s conftest.err'
9776
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777
  (eval $ac_try) 2>&5
9778
  ac_status=$?
9779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780
  (exit $ac_status); }; } &&
9781
         { ac_try='test -s conftest$ac_exeext'
9782
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783
  (eval $ac_try) 2>&5
9784
  ac_status=$?
9785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786
  (exit $ac_status); }; }; then
9787
  ac_cv_func_dlopen=yes
9788
else
9789
  echo "$as_me: failed program was:" >&5
9790
sed 's/^/| /' conftest.$ac_ext >&5
9791
 
9792
ac_cv_func_dlopen=no
9793
fi
9794
rm -f conftest.err conftest.$ac_objext \
9795
      conftest$ac_exeext conftest.$ac_ext
9796
fi
9797
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9798
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9799
if test $ac_cv_func_dlopen = yes; then
9800
  lt_cv_dlopen="dlopen"
9801
else
9802
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9803
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9804
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9805
  echo $ECHO_N "(cached) $ECHO_C" >&6
9806
else
9807
  ac_check_lib_save_LIBS=$LIBS
9808
LIBS="-ldl  $LIBS"
9809
cat >conftest.$ac_ext <<_ACEOF
9810
/* confdefs.h.  */
9811
_ACEOF
9812
cat confdefs.h >>conftest.$ac_ext
9813
cat >>conftest.$ac_ext <<_ACEOF
9814
/* end confdefs.h.  */
9815
 
9816
/* Override any gcc2 internal prototype to avoid an error.  */
9817
#ifdef __cplusplus
9818
extern "C"
9819
#endif
9820
/* We use char because int might match the return type of a gcc2
9821
   builtin and then its argument prototype would still apply.  */
9822
char dlopen ();
9823
int
9824
main ()
9825
{
9826
dlopen ();
9827
  ;
9828
  return 0;
9829
}
9830
_ACEOF
9831
rm -f conftest.$ac_objext conftest$ac_exeext
9832
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9833
  (eval $ac_link) 2>conftest.er1
9834
  ac_status=$?
9835
  grep -v '^ *+' conftest.er1 >conftest.err
9836
  rm -f conftest.er1
9837
  cat conftest.err >&5
9838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839
  (exit $ac_status); } &&
9840
         { ac_try='test -z "$ac_c_werror_flag"
9841
                         || test ! -s conftest.err'
9842
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843
  (eval $ac_try) 2>&5
9844
  ac_status=$?
9845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846
  (exit $ac_status); }; } &&
9847
         { ac_try='test -s conftest$ac_exeext'
9848
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849
  (eval $ac_try) 2>&5
9850
  ac_status=$?
9851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852
  (exit $ac_status); }; }; then
9853
  ac_cv_lib_dl_dlopen=yes
9854
else
9855
  echo "$as_me: failed program was:" >&5
9856
sed 's/^/| /' conftest.$ac_ext >&5
9857
 
9858
ac_cv_lib_dl_dlopen=no
9859
fi
9860
rm -f conftest.err conftest.$ac_objext \
9861
      conftest$ac_exeext conftest.$ac_ext
9862
LIBS=$ac_check_lib_save_LIBS
9863
fi
9864
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9865
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9866
if test $ac_cv_lib_dl_dlopen = yes; then
9867
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9868
else
9869
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9870
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9871
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9872
  echo $ECHO_N "(cached) $ECHO_C" >&6
9873
else
9874
  ac_check_lib_save_LIBS=$LIBS
9875
LIBS="-lsvld  $LIBS"
9876
cat >conftest.$ac_ext <<_ACEOF
9877
/* confdefs.h.  */
9878
_ACEOF
9879
cat confdefs.h >>conftest.$ac_ext
9880
cat >>conftest.$ac_ext <<_ACEOF
9881
/* end confdefs.h.  */
9882
 
9883
/* Override any gcc2 internal prototype to avoid an error.  */
9884
#ifdef __cplusplus
9885
extern "C"
9886
#endif
9887
/* We use char because int might match the return type of a gcc2
9888
   builtin and then its argument prototype would still apply.  */
9889
char dlopen ();
9890
int
9891
main ()
9892
{
9893
dlopen ();
9894
  ;
9895
  return 0;
9896
}
9897
_ACEOF
9898
rm -f conftest.$ac_objext conftest$ac_exeext
9899
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900
  (eval $ac_link) 2>conftest.er1
9901
  ac_status=$?
9902
  grep -v '^ *+' conftest.er1 >conftest.err
9903
  rm -f conftest.er1
9904
  cat conftest.err >&5
9905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906
  (exit $ac_status); } &&
9907
         { ac_try='test -z "$ac_c_werror_flag"
9908
                         || test ! -s conftest.err'
9909
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910
  (eval $ac_try) 2>&5
9911
  ac_status=$?
9912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913
  (exit $ac_status); }; } &&
9914
         { ac_try='test -s conftest$ac_exeext'
9915
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916
  (eval $ac_try) 2>&5
9917
  ac_status=$?
9918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919
  (exit $ac_status); }; }; then
9920
  ac_cv_lib_svld_dlopen=yes
9921
else
9922
  echo "$as_me: failed program was:" >&5
9923
sed 's/^/| /' conftest.$ac_ext >&5
9924
 
9925
ac_cv_lib_svld_dlopen=no
9926
fi
9927
rm -f conftest.err conftest.$ac_objext \
9928
      conftest$ac_exeext conftest.$ac_ext
9929
LIBS=$ac_check_lib_save_LIBS
9930
fi
9931
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9932
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9933
if test $ac_cv_lib_svld_dlopen = yes; then
9934
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9935
else
9936
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9937
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9938
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9939
  echo $ECHO_N "(cached) $ECHO_C" >&6
9940
else
9941
  ac_check_lib_save_LIBS=$LIBS
9942
LIBS="-ldld  $LIBS"
9943
cat >conftest.$ac_ext <<_ACEOF
9944
/* confdefs.h.  */
9945
_ACEOF
9946
cat confdefs.h >>conftest.$ac_ext
9947
cat >>conftest.$ac_ext <<_ACEOF
9948
/* end confdefs.h.  */
9949
 
9950
/* Override any gcc2 internal prototype to avoid an error.  */
9951
#ifdef __cplusplus
9952
extern "C"
9953
#endif
9954
/* We use char because int might match the return type of a gcc2
9955
   builtin and then its argument prototype would still apply.  */
9956
char dld_link ();
9957
int
9958
main ()
9959
{
9960
dld_link ();
9961
  ;
9962
  return 0;
9963
}
9964
_ACEOF
9965
rm -f conftest.$ac_objext conftest$ac_exeext
9966
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9967
  (eval $ac_link) 2>conftest.er1
9968
  ac_status=$?
9969
  grep -v '^ *+' conftest.er1 >conftest.err
9970
  rm -f conftest.er1
9971
  cat conftest.err >&5
9972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973
  (exit $ac_status); } &&
9974
         { ac_try='test -z "$ac_c_werror_flag"
9975
                         || test ! -s conftest.err'
9976
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977
  (eval $ac_try) 2>&5
9978
  ac_status=$?
9979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980
  (exit $ac_status); }; } &&
9981
         { ac_try='test -s conftest$ac_exeext'
9982
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983
  (eval $ac_try) 2>&5
9984
  ac_status=$?
9985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986
  (exit $ac_status); }; }; then
9987
  ac_cv_lib_dld_dld_link=yes
9988
else
9989
  echo "$as_me: failed program was:" >&5
9990
sed 's/^/| /' conftest.$ac_ext >&5
9991
 
9992
ac_cv_lib_dld_dld_link=no
9993
fi
9994
rm -f conftest.err conftest.$ac_objext \
9995
      conftest$ac_exeext conftest.$ac_ext
9996
LIBS=$ac_check_lib_save_LIBS
9997
fi
9998
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9999
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10000
if test $ac_cv_lib_dld_dld_link = yes; then
10001
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10002
fi
10003
 
10004
 
10005
fi
10006
 
10007
 
10008
fi
10009
 
10010
 
10011
fi
10012
 
10013
 
10014
fi
10015
 
10016
 
10017
fi
10018
 
10019
    ;;
10020
  esac
10021
 
10022
  if test "x$lt_cv_dlopen" != xno; then
10023
    enable_dlopen=yes
10024
  else
10025
    enable_dlopen=no
10026
  fi
10027
 
10028
  case $lt_cv_dlopen in
10029
  dlopen)
10030
    save_CPPFLAGS="$CPPFLAGS"
10031
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10032
 
10033
    save_LDFLAGS="$LDFLAGS"
10034
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10035
 
10036
    save_LIBS="$LIBS"
10037
    LIBS="$lt_cv_dlopen_libs $LIBS"
10038
 
10039
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10040
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10041
if test "${lt_cv_dlopen_self+set}" = set; then
10042
  echo $ECHO_N "(cached) $ECHO_C" >&6
10043
else
10044
          if test "$cross_compiling" = yes; then :
10045
  lt_cv_dlopen_self=cross
10046
else
10047
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10048
  lt_status=$lt_dlunknown
10049
  cat > conftest.$ac_ext <<_LT_EOF
10050
#line 10050 "configure"
10051
#include "confdefs.h"
10052
 
10053
#if HAVE_DLFCN_H
10054
#include 
10055
#endif
10056
 
10057
#include 
10058
 
10059
#ifdef RTLD_GLOBAL
10060
#  define LT_DLGLOBAL           RTLD_GLOBAL
10061
#else
10062
#  ifdef DL_GLOBAL
10063
#    define LT_DLGLOBAL         DL_GLOBAL
10064
#  else
10065
#    define LT_DLGLOBAL         0
10066
#  endif
10067
#endif
10068
 
10069
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10070
   find out it does not work in some platform. */
10071
#ifndef LT_DLLAZY_OR_NOW
10072
#  ifdef RTLD_LAZY
10073
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10074
#  else
10075
#    ifdef DL_LAZY
10076
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10077
#    else
10078
#      ifdef RTLD_NOW
10079
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10080
#      else
10081
#        ifdef DL_NOW
10082
#          define LT_DLLAZY_OR_NOW      DL_NOW
10083
#        else
10084
#          define LT_DLLAZY_OR_NOW      0
10085
#        endif
10086
#      endif
10087
#    endif
10088
#  endif
10089
#endif
10090
 
10091
#ifdef __cplusplus
10092
extern "C" void exit (int);
10093
#endif
10094
 
10095
void fnord() { int i=42;}
10096
int main ()
10097
{
10098
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10099
  int status = $lt_dlunknown;
10100
 
10101
  if (self)
10102
    {
10103
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10104
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10105
      /* dlclose (self); */
10106
    }
10107
  else
10108
    puts (dlerror ());
10109
 
10110
    exit (status);
10111
}
10112
_LT_EOF
10113
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10114
  (eval $ac_link) 2>&5
10115
  ac_status=$?
10116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10118
    (./conftest; exit; ) >&5 2>/dev/null
10119
    lt_status=$?
10120
    case x$lt_status in
10121
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10122
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10123
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10124
    esac
10125
  else :
10126
    # compilation failed
10127
    lt_cv_dlopen_self=no
10128
  fi
10129
fi
10130
rm -fr conftest*
10131
 
10132
 
10133
fi
10134
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10135
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10136
 
10137
    if test "x$lt_cv_dlopen_self" = xyes; then
10138
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10139
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10140
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10141
if test "${lt_cv_dlopen_self_static+set}" = set; then
10142
  echo $ECHO_N "(cached) $ECHO_C" >&6
10143
else
10144
          if test "$cross_compiling" = yes; then :
10145
  lt_cv_dlopen_self_static=cross
10146
else
10147
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10148
  lt_status=$lt_dlunknown
10149
  cat > conftest.$ac_ext <<_LT_EOF
10150
#line 10150 "configure"
10151
#include "confdefs.h"
10152
 
10153
#if HAVE_DLFCN_H
10154
#include 
10155
#endif
10156
 
10157
#include 
10158
 
10159
#ifdef RTLD_GLOBAL
10160
#  define LT_DLGLOBAL           RTLD_GLOBAL
10161
#else
10162
#  ifdef DL_GLOBAL
10163
#    define LT_DLGLOBAL         DL_GLOBAL
10164
#  else
10165
#    define LT_DLGLOBAL         0
10166
#  endif
10167
#endif
10168
 
10169
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10170
   find out it does not work in some platform. */
10171
#ifndef LT_DLLAZY_OR_NOW
10172
#  ifdef RTLD_LAZY
10173
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10174
#  else
10175
#    ifdef DL_LAZY
10176
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10177
#    else
10178
#      ifdef RTLD_NOW
10179
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10180
#      else
10181
#        ifdef DL_NOW
10182
#          define LT_DLLAZY_OR_NOW      DL_NOW
10183
#        else
10184
#          define LT_DLLAZY_OR_NOW      0
10185
#        endif
10186
#      endif
10187
#    endif
10188
#  endif
10189
#endif
10190
 
10191
#ifdef __cplusplus
10192
extern "C" void exit (int);
10193
#endif
10194
 
10195
void fnord() { int i=42;}
10196
int main ()
10197
{
10198
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10199
  int status = $lt_dlunknown;
10200
 
10201
  if (self)
10202
    {
10203
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10204
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10205
      /* dlclose (self); */
10206
    }
10207
  else
10208
    puts (dlerror ());
10209
 
10210
    exit (status);
10211
}
10212
_LT_EOF
10213
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10214
  (eval $ac_link) 2>&5
10215
  ac_status=$?
10216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10218
    (./conftest; exit; ) >&5 2>/dev/null
10219
    lt_status=$?
10220
    case x$lt_status in
10221
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10222
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10223
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10224
    esac
10225
  else :
10226
    # compilation failed
10227
    lt_cv_dlopen_self_static=no
10228
  fi
10229
fi
10230
rm -fr conftest*
10231
 
10232
 
10233
fi
10234
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10235
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10236
    fi
10237
 
10238
    CPPFLAGS="$save_CPPFLAGS"
10239
    LDFLAGS="$save_LDFLAGS"
10240
    LIBS="$save_LIBS"
10241
    ;;
10242
  esac
10243
 
10244
  case $lt_cv_dlopen_self in
10245
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10246
  *) enable_dlopen_self=unknown ;;
10247
  esac
10248
 
10249
  case $lt_cv_dlopen_self_static in
10250
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10251
  *) enable_dlopen_self_static=unknown ;;
10252
  esac
10253
fi
10254
 
10255
 
10256
 
10257
 
10258
 
10259
 
10260
 
10261
 
10262
 
10263
 
10264
 
10265
 
10266
 
10267
 
10268
 
10269
 
10270
 
10271
striplib=
10272
old_striplib=
10273
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10274
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10275
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10276
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10277
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10278
  echo "$as_me:$LINENO: result: yes" >&5
10279
echo "${ECHO_T}yes" >&6
10280
else
10281
# FIXME - insert some real tests, host_os isn't really good enough
10282
  case $host_os in
10283
  darwin*)
10284
    if test -n "$STRIP" ; then
10285
      striplib="$STRIP -x"
10286
      old_striplib="$STRIP -S"
10287
      echo "$as_me:$LINENO: result: yes" >&5
10288
echo "${ECHO_T}yes" >&6
10289
    else
10290
      echo "$as_me:$LINENO: result: no" >&5
10291
echo "${ECHO_T}no" >&6
10292
    fi
10293
    ;;
10294
  *)
10295
    echo "$as_me:$LINENO: result: no" >&5
10296
echo "${ECHO_T}no" >&6
10297
    ;;
10298
  esac
10299
fi
10300
 
10301
 
10302
 
10303
 
10304
 
10305
 
10306
 
10307
 
10308
 
10309
 
10310
 
10311
 
10312
  # Report which library types will actually be built
10313
  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10314
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10315
  echo "$as_me:$LINENO: result: $can_build_shared" >&5
10316
echo "${ECHO_T}$can_build_shared" >&6
10317
 
10318
  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10319
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10320
  test "$can_build_shared" = "no" && enable_shared=no
10321
 
10322
  # On AIX, shared libraries and static libraries use the same namespace, and
10323
  # are all built from PIC.
10324
  case $host_os in
10325
  aix3*)
10326
    test "$enable_shared" = yes && enable_static=no
10327
    if test -n "$RANLIB"; then
10328
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10329
      postinstall_cmds='$RANLIB $lib'
10330
    fi
10331
    ;;
10332
 
10333
  aix[4-9]*)
10334
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10335
      test "$enable_shared" = yes && enable_static=no
10336
    fi
10337
    ;;
10338
  esac
10339
  echo "$as_me:$LINENO: result: $enable_shared" >&5
10340
echo "${ECHO_T}$enable_shared" >&6
10341
 
10342
  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10343
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10344
  # Make sure either enable_shared or enable_static is yes.
10345
  test "$enable_shared" = yes || enable_static=yes
10346
  echo "$as_me:$LINENO: result: $enable_static" >&5
10347
echo "${ECHO_T}$enable_static" >&6
10348
 
10349
 
10350
 
10351
 
10352
fi
10353
ac_ext=c
10354
ac_cpp='$CPP $CPPFLAGS'
10355
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10356
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10357
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10358
 
10359
CC="$lt_save_CC"
10360
 
10361
 
10362
 
10363
 
10364
 
10365
 
10366
 
10367
 
10368
 
10369
 
10370
 
10371
 
10372
 
10373
                  ac_config_commands="$ac_config_commands libtool"
10374
 
10375
 
10376
 
10377
 
10378
# Only expand once:
10379
 
10380
 
10381
 
10382
 
10383
for ac_func in setmode
10384
do
10385
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10386
echo "$as_me:$LINENO: checking for $ac_func" >&5
10387
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10388
if eval "test \"\${$as_ac_var+set}\" = set"; then
10389
  echo $ECHO_N "(cached) $ECHO_C" >&6
10390
else
10391
  cat >conftest.$ac_ext <<_ACEOF
10392
/* confdefs.h.  */
10393
_ACEOF
10394
cat confdefs.h >>conftest.$ac_ext
10395
cat >>conftest.$ac_ext <<_ACEOF
10396
/* end confdefs.h.  */
10397
/* Define $ac_func to an innocuous variant, in case  declares $ac_func.
10398
   For example, HP-UX 11i  declares gettimeofday.  */
10399
#define $ac_func innocuous_$ac_func
10400
 
10401
/* System header to define __stub macros and hopefully few prototypes,
10402
    which can conflict with char $ac_func (); below.
10403
    Prefer  to  if __STDC__ is defined, since
10404
     exists even on freestanding compilers.  */
10405
 
10406
#ifdef __STDC__
10407
# include 
10408
#else
10409
# include 
10410
#endif
10411
 
10412
#undef $ac_func
10413
 
10414
/* Override any gcc2 internal prototype to avoid an error.  */
10415
#ifdef __cplusplus
10416
extern "C"
10417
{
10418
#endif
10419
/* We use char because int might match the return type of a gcc2
10420
   builtin and then its argument prototype would still apply.  */
10421
char $ac_func ();
10422
/* The GNU C library defines this for functions which it implements
10423
    to always fail with ENOSYS.  Some functions are actually named
10424
    something starting with __ and the normal name is an alias.  */
10425
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10426
choke me
10427
#else
10428
char (*f) () = $ac_func;
10429
#endif
10430
#ifdef __cplusplus
10431
}
10432
#endif
10433
 
10434
int
10435
main ()
10436
{
10437
return f != $ac_func;
10438
  ;
10439
  return 0;
10440
}
10441
_ACEOF
10442
rm -f conftest.$ac_objext conftest$ac_exeext
10443
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10444
  (eval $ac_link) 2>conftest.er1
10445
  ac_status=$?
10446
  grep -v '^ *+' conftest.er1 >conftest.err
10447
  rm -f conftest.er1
10448
  cat conftest.err >&5
10449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450
  (exit $ac_status); } &&
10451
         { ac_try='test -z "$ac_c_werror_flag"
10452
                         || test ! -s conftest.err'
10453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454
  (eval $ac_try) 2>&5
10455
  ac_status=$?
10456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457
  (exit $ac_status); }; } &&
10458
         { ac_try='test -s conftest$ac_exeext'
10459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460
  (eval $ac_try) 2>&5
10461
  ac_status=$?
10462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463
  (exit $ac_status); }; }; then
10464
  eval "$as_ac_var=yes"
10465
else
10466
  echo "$as_me: failed program was:" >&5
10467
sed 's/^/| /' conftest.$ac_ext >&5
10468
 
10469
eval "$as_ac_var=no"
10470
fi
10471
rm -f conftest.err conftest.$ac_objext \
10472
      conftest$ac_exeext conftest.$ac_ext
10473
fi
10474
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10475
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10476
if test `eval echo '${'$as_ac_var'}'` = yes; then
10477
  cat >>confdefs.h <<_ACEOF
10478
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10479
_ACEOF
10480
 
10481
fi
10482
done
10483
 
10484
 
10485
ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi"
10486
# If we haven't got the data from the intl directory,
10487
# assume NLS is disabled.
10488
USE_NLS=no
10489
LIBINTL=
10490
LIBINTL_DEP=
10491
INCINTL=
10492
XGETTEXT=
10493
GMSGFMT=
10494
POSUB=
10495
 
10496
if test -f  ../intl/config.intl; then
10497
  .  ../intl/config.intl
10498
fi
10499
echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10500
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10501
if test x"$USE_NLS" != xyes; then
10502
  echo "$as_me:$LINENO: result: no" >&5
10503
echo "${ECHO_T}no" >&6
10504
else
10505
  echo "$as_me:$LINENO: result: yes" >&5
10506
echo "${ECHO_T}yes" >&6
10507
 
10508
cat >>confdefs.h <<\_ACEOF
10509
#define ENABLE_NLS 1
10510
_ACEOF
10511
 
10512
 
10513
  echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10514
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10515
  # Look for .po and .gmo files in the source directory.
10516
  CATALOGS=
10517
  XLINGUAS=
10518
  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10519
    # If there aren't any .gmo files the shell will give us the
10520
    # literal string "../path/to/srcdir/po/*.gmo" which has to be
10521
    # weeded out.
10522
    case "$cat" in *\**)
10523
      continue;;
10524
    esac
10525
    # The quadruple backslash is collapsed to a double backslash
10526
    # by the backticks, then collapsed again by the double quotes,
10527
    # leaving us with one backslash in the sed expression (right
10528
    # before the dot that mustn't act as a wildcard).
10529
    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10530
    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10531
    # The user is allowed to set LINGUAS to a list of languages to
10532
    # install catalogs for.  If it's empty that means "all of them."
10533
    if test "x$LINGUAS" = x; then
10534
      CATALOGS="$CATALOGS $cat"
10535
      XLINGUAS="$XLINGUAS $lang"
10536
    else
10537
      case "$LINGUAS" in *$lang*)
10538
        CATALOGS="$CATALOGS $cat"
10539
        XLINGUAS="$XLINGUAS $lang"
10540
        ;;
10541
      esac
10542
    fi
10543
  done
10544
  LINGUAS="$XLINGUAS"
10545
  echo "$as_me:$LINENO: result: $LINGUAS" >&5
10546
echo "${ECHO_T}$LINGUAS" >&6
10547
 
10548
 
10549
    DATADIRNAME=share
10550
 
10551
  INSTOBJEXT=.mo
10552
 
10553
  GENCAT=gencat
10554
 
10555
  CATOBJEXT=.gmo
10556
 
10557
fi
10558
 
10559
        MKINSTALLDIRS=
10560
  if test -n "$ac_aux_dir"; then
10561
    case "$ac_aux_dir" in
10562
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10563
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10564
    esac
10565
  fi
10566
  if test -z "$MKINSTALLDIRS"; then
10567
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10568
  fi
10569
 
10570
 
10571
 
10572
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10573
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10574
    # Check whether --enable-nls or --disable-nls was given.
10575
if test "${enable_nls+set}" = set; then
10576
  enableval="$enable_nls"
10577
  USE_NLS=$enableval
10578
else
10579
  USE_NLS=yes
10580
fi;
10581
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
10582
echo "${ECHO_T}$USE_NLS" >&6
10583
 
10584
 
10585
 
10586
 
10587
 
10588
 
10589
# Prepare PATH_SEPARATOR.
10590
# The user is always right.
10591
if test "${PATH_SEPARATOR+set}" != set; then
10592
  echo "#! /bin/sh" >conf$$.sh
10593
  echo  "exit 0"   >>conf$$.sh
10594
  chmod +x conf$$.sh
10595
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10596
    PATH_SEPARATOR=';'
10597
  else
10598
    PATH_SEPARATOR=:
10599
  fi
10600
  rm -f conf$$.sh
10601
fi
10602
 
10603
# Find out how to test for executable files. Don't use a zero-byte file,
10604
# as systems may use methods other than mode bits to determine executability.
10605
cat >conf$$.file <<_ASEOF
10606
#! /bin/sh
10607
exit 0
10608
_ASEOF
10609
chmod +x conf$$.file
10610
if test -x conf$$.file >/dev/null 2>&1; then
10611
  ac_executable_p="test -x"
10612
else
10613
  ac_executable_p="test -f"
10614
fi
10615
rm -f conf$$.file
10616
 
10617
# Extract the first word of "msgfmt", so it can be a program name with args.
10618
set dummy msgfmt; ac_word=$2
10619
echo "$as_me:$LINENO: checking for $ac_word" >&5
10620
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10621
if test "${ac_cv_path_MSGFMT+set}" = set; then
10622
  echo $ECHO_N "(cached) $ECHO_C" >&6
10623
else
10624
  case "$MSGFMT" in
10625
  [\\/]* | ?:[\\/]*)
10626
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10627
    ;;
10628
  *)
10629
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10630
    for ac_dir in $PATH; do
10631
      IFS="$ac_save_IFS"
10632
      test -z "$ac_dir" && ac_dir=.
10633
      for ac_exec_ext in '' $ac_executable_extensions; do
10634
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10635
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10636
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10637
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10638
            break 2
10639
          fi
10640
        fi
10641
      done
10642
    done
10643
    IFS="$ac_save_IFS"
10644
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10645
    ;;
10646
esac
10647
fi
10648
MSGFMT="$ac_cv_path_MSGFMT"
10649
if test "$MSGFMT" != ":"; then
10650
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
10651
echo "${ECHO_T}$MSGFMT" >&6
10652
else
10653
  echo "$as_me:$LINENO: result: no" >&5
10654
echo "${ECHO_T}no" >&6
10655
fi
10656
 
10657
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
10658
set dummy gmsgfmt; ac_word=$2
10659
echo "$as_me:$LINENO: checking for $ac_word" >&5
10660
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10661
if test "${ac_cv_path_GMSGFMT+set}" = set; then
10662
  echo $ECHO_N "(cached) $ECHO_C" >&6
10663
else
10664
  case $GMSGFMT in
10665
  [\\/]* | ?:[\\/]*)
10666
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10667
  ;;
10668
  *)
10669
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670
for as_dir in $PATH
10671
do
10672
  IFS=$as_save_IFS
10673
  test -z "$as_dir" && as_dir=.
10674
  for ac_exec_ext in '' $ac_executable_extensions; do
10675
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10676
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10677
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10678
    break 2
10679
  fi
10680
done
10681
done
10682
 
10683
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10684
  ;;
10685
esac
10686
fi
10687
GMSGFMT=$ac_cv_path_GMSGFMT
10688
 
10689
if test -n "$GMSGFMT"; then
10690
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10691
echo "${ECHO_T}$GMSGFMT" >&6
10692
else
10693
  echo "$as_me:$LINENO: result: no" >&5
10694
echo "${ECHO_T}no" >&6
10695
fi
10696
 
10697
 
10698
 
10699
# Prepare PATH_SEPARATOR.
10700
# The user is always right.
10701
if test "${PATH_SEPARATOR+set}" != set; then
10702
  echo "#! /bin/sh" >conf$$.sh
10703
  echo  "exit 0"   >>conf$$.sh
10704
  chmod +x conf$$.sh
10705
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10706
    PATH_SEPARATOR=';'
10707
  else
10708
    PATH_SEPARATOR=:
10709
  fi
10710
  rm -f conf$$.sh
10711
fi
10712
 
10713
# Find out how to test for executable files. Don't use a zero-byte file,
10714
# as systems may use methods other than mode bits to determine executability.
10715
cat >conf$$.file <<_ASEOF
10716
#! /bin/sh
10717
exit 0
10718
_ASEOF
10719
chmod +x conf$$.file
10720
if test -x conf$$.file >/dev/null 2>&1; then
10721
  ac_executable_p="test -x"
10722
else
10723
  ac_executable_p="test -f"
10724
fi
10725
rm -f conf$$.file
10726
 
10727
# Extract the first word of "xgettext", so it can be a program name with args.
10728
set dummy xgettext; ac_word=$2
10729
echo "$as_me:$LINENO: checking for $ac_word" >&5
10730
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10731
if test "${ac_cv_path_XGETTEXT+set}" = set; then
10732
  echo $ECHO_N "(cached) $ECHO_C" >&6
10733
else
10734
  case "$XGETTEXT" in
10735
  [\\/]* | ?:[\\/]*)
10736
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10737
    ;;
10738
  *)
10739
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10740
    for ac_dir in $PATH; do
10741
      IFS="$ac_save_IFS"
10742
      test -z "$ac_dir" && ac_dir=.
10743
      for ac_exec_ext in '' $ac_executable_extensions; do
10744
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10745
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10746
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10747
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10748
            break 2
10749
          fi
10750
        fi
10751
      done
10752
    done
10753
    IFS="$ac_save_IFS"
10754
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10755
    ;;
10756
esac
10757
fi
10758
XGETTEXT="$ac_cv_path_XGETTEXT"
10759
if test "$XGETTEXT" != ":"; then
10760
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10761
echo "${ECHO_T}$XGETTEXT" >&6
10762
else
10763
  echo "$as_me:$LINENO: result: no" >&5
10764
echo "${ECHO_T}no" >&6
10765
fi
10766
 
10767
    rm -f messages.po
10768
 
10769
 
10770
# Prepare PATH_SEPARATOR.
10771
# The user is always right.
10772
if test "${PATH_SEPARATOR+set}" != set; then
10773
  echo "#! /bin/sh" >conf$$.sh
10774
  echo  "exit 0"   >>conf$$.sh
10775
  chmod +x conf$$.sh
10776
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10777
    PATH_SEPARATOR=';'
10778
  else
10779
    PATH_SEPARATOR=:
10780
  fi
10781
  rm -f conf$$.sh
10782
fi
10783
 
10784
# Find out how to test for executable files. Don't use a zero-byte file,
10785
# as systems may use methods other than mode bits to determine executability.
10786
cat >conf$$.file <<_ASEOF
10787
#! /bin/sh
10788
exit 0
10789
_ASEOF
10790
chmod +x conf$$.file
10791
if test -x conf$$.file >/dev/null 2>&1; then
10792
  ac_executable_p="test -x"
10793
else
10794
  ac_executable_p="test -f"
10795
fi
10796
rm -f conf$$.file
10797
 
10798
# Extract the first word of "msgmerge", so it can be a program name with args.
10799
set dummy msgmerge; ac_word=$2
10800
echo "$as_me:$LINENO: checking for $ac_word" >&5
10801
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10802
if test "${ac_cv_path_MSGMERGE+set}" = set; then
10803
  echo $ECHO_N "(cached) $ECHO_C" >&6
10804
else
10805
  case "$MSGMERGE" in
10806
  [\\/]* | ?:[\\/]*)
10807
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10808
    ;;
10809
  *)
10810
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10811
    for ac_dir in $PATH; do
10812
      IFS="$ac_save_IFS"
10813
      test -z "$ac_dir" && ac_dir=.
10814
      for ac_exec_ext in '' $ac_executable_extensions; do
10815
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10816
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10817
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10818
            break 2
10819
          fi
10820
        fi
10821
      done
10822
    done
10823
    IFS="$ac_save_IFS"
10824
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10825
    ;;
10826
esac
10827
fi
10828
MSGMERGE="$ac_cv_path_MSGMERGE"
10829
if test "$MSGMERGE" != ":"; then
10830
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10831
echo "${ECHO_T}$MSGMERGE" >&6
10832
else
10833
  echo "$as_me:$LINENO: result: no" >&5
10834
echo "${ECHO_T}no" >&6
10835
fi
10836
 
10837
 
10838
      if test "$GMSGFMT" != ":"; then
10839
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10840
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10841
      : ;
10842
    else
10843
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10844
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10845
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10846
      GMSGFMT=":"
10847
    fi
10848
  fi
10849
 
10850
      if test "$XGETTEXT" != ":"; then
10851
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10852
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10853
      : ;
10854
    else
10855
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10856
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10857
      XGETTEXT=":"
10858
    fi
10859
        rm -f messages.po
10860
  fi
10861
 
10862
            ac_config_commands="$ac_config_commands default-1"
10863
 
10864
 
10865
 
10866
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10867
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10868
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10869
if test "${enable_maintainer_mode+set}" = set; then
10870
  enableval="$enable_maintainer_mode"
10871
  USE_MAINTAINER_MODE=$enableval
10872
else
10873
  USE_MAINTAINER_MODE=no
10874
fi;
10875
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10876
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10877
 
10878
 
10879
if test $USE_MAINTAINER_MODE = yes; then
10880
  MAINTAINER_MODE_TRUE=
10881
  MAINTAINER_MODE_FALSE='#'
10882
else
10883
  MAINTAINER_MODE_TRUE='#'
10884
  MAINTAINER_MODE_FALSE=
10885
fi
10886
 
10887
  MAINT=$MAINTAINER_MODE_TRUE
10888
 
10889
 
10890
 
10891
 
10892
if false; then
10893
  GENINSRC_NEVER_TRUE=
10894
  GENINSRC_NEVER_FALSE='#'
10895
else
10896
  GENINSRC_NEVER_TRUE='#'
10897
  GENINSRC_NEVER_FALSE=
10898
fi
10899
 
10900
 
10901
 
10902
 
10903
for ac_header in sys/gmon_out.h
10904
do
10905
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10906
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10907
  echo "$as_me:$LINENO: checking for $ac_header" >&5
10908
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10909
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10910
  echo $ECHO_N "(cached) $ECHO_C" >&6
10911
fi
10912
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10913
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10914
else
10915
  # Is the header compilable?
10916
echo "$as_me:$LINENO: checking $ac_header usability" >&5
10917
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10918
cat >conftest.$ac_ext <<_ACEOF
10919
/* confdefs.h.  */
10920
_ACEOF
10921
cat confdefs.h >>conftest.$ac_ext
10922
cat >>conftest.$ac_ext <<_ACEOF
10923
/* end confdefs.h.  */
10924
$ac_includes_default
10925
#include <$ac_header>
10926
_ACEOF
10927
rm -f conftest.$ac_objext
10928
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10929
  (eval $ac_compile) 2>conftest.er1
10930
  ac_status=$?
10931
  grep -v '^ *+' conftest.er1 >conftest.err
10932
  rm -f conftest.er1
10933
  cat conftest.err >&5
10934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935
  (exit $ac_status); } &&
10936
         { ac_try='test -z "$ac_c_werror_flag"
10937
                         || test ! -s conftest.err'
10938
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939
  (eval $ac_try) 2>&5
10940
  ac_status=$?
10941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942
  (exit $ac_status); }; } &&
10943
         { ac_try='test -s conftest.$ac_objext'
10944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945
  (eval $ac_try) 2>&5
10946
  ac_status=$?
10947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948
  (exit $ac_status); }; }; then
10949
  ac_header_compiler=yes
10950
else
10951
  echo "$as_me: failed program was:" >&5
10952
sed 's/^/| /' conftest.$ac_ext >&5
10953
 
10954
ac_header_compiler=no
10955
fi
10956
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10957
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10958
echo "${ECHO_T}$ac_header_compiler" >&6
10959
 
10960
# Is the header present?
10961
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10962
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10963
cat >conftest.$ac_ext <<_ACEOF
10964
/* confdefs.h.  */
10965
_ACEOF
10966
cat confdefs.h >>conftest.$ac_ext
10967
cat >>conftest.$ac_ext <<_ACEOF
10968
/* end confdefs.h.  */
10969
#include <$ac_header>
10970
_ACEOF
10971
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10972
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10973
  ac_status=$?
10974
  grep -v '^ *+' conftest.er1 >conftest.err
10975
  rm -f conftest.er1
10976
  cat conftest.err >&5
10977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978
  (exit $ac_status); } >/dev/null; then
10979
  if test -s conftest.err; then
10980
    ac_cpp_err=$ac_c_preproc_warn_flag
10981
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10982
  else
10983
    ac_cpp_err=
10984
  fi
10985
else
10986
  ac_cpp_err=yes
10987
fi
10988
if test -z "$ac_cpp_err"; then
10989
  ac_header_preproc=yes
10990
else
10991
  echo "$as_me: failed program was:" >&5
10992
sed 's/^/| /' conftest.$ac_ext >&5
10993
 
10994
  ac_header_preproc=no
10995
fi
10996
rm -f conftest.err conftest.$ac_ext
10997
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10998
echo "${ECHO_T}$ac_header_preproc" >&6
10999
 
11000
# So?  What about this header?
11001
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11002
  yes:no: )
11003
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11004
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11005
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11006
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11007
    ac_header_preproc=yes
11008
    ;;
11009
  no:yes:* )
11010
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11011
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11012
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11013
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11014
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11015
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11016
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11017
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11018
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11019
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11020
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11021
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11022
    (
11023
      cat <<\_ASBOX
11024
## ------------------------------------------ ##
11025
## Report this to the AC_PACKAGE_NAME lists.  ##
11026
## ------------------------------------------ ##
11027
_ASBOX
11028
    ) |
11029
      sed "s/^/$as_me: WARNING:     /" >&2
11030
    ;;
11031
esac
11032
echo "$as_me:$LINENO: checking for $ac_header" >&5
11033
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11034
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11035
  echo $ECHO_N "(cached) $ECHO_C" >&6
11036
else
11037
  eval "$as_ac_Header=\$ac_header_preproc"
11038
fi
11039
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11040
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11041
 
11042
fi
11043
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11044
  cat >>confdefs.h <<_ACEOF
11045
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11046
_ACEOF
11047
 
11048
fi
11049
 
11050
done
11051
 
11052
 
11053
echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
11054
echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
11055
if test "${gprof_cv_decl_getopt_unistd_h+set}" = set; then
11056
  echo $ECHO_N "(cached) $ECHO_C" >&6
11057
else
11058
  cat >conftest.$ac_ext <<_ACEOF
11059
/* confdefs.h.  */
11060
_ACEOF
11061
cat confdefs.h >>conftest.$ac_ext
11062
cat >>conftest.$ac_ext <<_ACEOF
11063
/* end confdefs.h.  */
11064
#include 
11065
int
11066
main ()
11067
{
11068
extern int getopt (int, char *const*, const char *);
11069
  ;
11070
  return 0;
11071
}
11072
_ACEOF
11073
rm -f conftest.$ac_objext
11074
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075
  (eval $ac_compile) 2>conftest.er1
11076
  ac_status=$?
11077
  grep -v '^ *+' conftest.er1 >conftest.err
11078
  rm -f conftest.er1
11079
  cat conftest.err >&5
11080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081
  (exit $ac_status); } &&
11082
         { ac_try='test -z "$ac_c_werror_flag"
11083
                         || test ! -s conftest.err'
11084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085
  (eval $ac_try) 2>&5
11086
  ac_status=$?
11087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088
  (exit $ac_status); }; } &&
11089
         { ac_try='test -s conftest.$ac_objext'
11090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091
  (eval $ac_try) 2>&5
11092
  ac_status=$?
11093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094
  (exit $ac_status); }; }; then
11095
  gprof_cv_decl_getopt_unistd_h=yes
11096
else
11097
  echo "$as_me: failed program was:" >&5
11098
sed 's/^/| /' conftest.$ac_ext >&5
11099
 
11100
gprof_cv_decl_getopt_unistd_h=no
11101
fi
11102
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11103
fi
11104
 
11105
echo "$as_me:$LINENO: result: $gprof_cv_decl_getopt_unistd_h" >&5
11106
echo "${ECHO_T}$gprof_cv_decl_getopt_unistd_h" >&6
11107
if test $gprof_cv_decl_getopt_unistd_h = yes; then
11108
 
11109
cat >>confdefs.h <<\_ACEOF
11110
#define HAVE_DECL_GETOPT 1
11111
_ACEOF
11112
 
11113
fi
11114
 
11115
# Some systems have fabs only in -lm, not in -lc.
11116
echo "$as_me:$LINENO: checking for library containing fabs" >&5
11117
echo $ECHO_N "checking for library containing fabs... $ECHO_C" >&6
11118
if test "${ac_cv_search_fabs+set}" = set; then
11119
  echo $ECHO_N "(cached) $ECHO_C" >&6
11120
else
11121
  ac_func_search_save_LIBS=$LIBS
11122
ac_cv_search_fabs=no
11123
cat >conftest.$ac_ext <<_ACEOF
11124
/* confdefs.h.  */
11125
_ACEOF
11126
cat confdefs.h >>conftest.$ac_ext
11127
cat >>conftest.$ac_ext <<_ACEOF
11128
/* end confdefs.h.  */
11129
 
11130
/* Override any gcc2 internal prototype to avoid an error.  */
11131
#ifdef __cplusplus
11132
extern "C"
11133
#endif
11134
/* We use char because int might match the return type of a gcc2
11135
   builtin and then its argument prototype would still apply.  */
11136
char fabs ();
11137
int
11138
main ()
11139
{
11140
fabs ();
11141
  ;
11142
  return 0;
11143
}
11144
_ACEOF
11145
rm -f conftest.$ac_objext conftest$ac_exeext
11146
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11147
  (eval $ac_link) 2>conftest.er1
11148
  ac_status=$?
11149
  grep -v '^ *+' conftest.er1 >conftest.err
11150
  rm -f conftest.er1
11151
  cat conftest.err >&5
11152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153
  (exit $ac_status); } &&
11154
         { ac_try='test -z "$ac_c_werror_flag"
11155
                         || test ! -s conftest.err'
11156
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157
  (eval $ac_try) 2>&5
11158
  ac_status=$?
11159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160
  (exit $ac_status); }; } &&
11161
         { ac_try='test -s conftest$ac_exeext'
11162
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163
  (eval $ac_try) 2>&5
11164
  ac_status=$?
11165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166
  (exit $ac_status); }; }; then
11167
  ac_cv_search_fabs="none required"
11168
else
11169
  echo "$as_me: failed program was:" >&5
11170
sed 's/^/| /' conftest.$ac_ext >&5
11171
 
11172
fi
11173
rm -f conftest.err conftest.$ac_objext \
11174
      conftest$ac_exeext conftest.$ac_ext
11175
if test "$ac_cv_search_fabs" = no; then
11176
  for ac_lib in m; do
11177
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11178
    cat >conftest.$ac_ext <<_ACEOF
11179
/* confdefs.h.  */
11180
_ACEOF
11181
cat confdefs.h >>conftest.$ac_ext
11182
cat >>conftest.$ac_ext <<_ACEOF
11183
/* end confdefs.h.  */
11184
 
11185
/* Override any gcc2 internal prototype to avoid an error.  */
11186
#ifdef __cplusplus
11187
extern "C"
11188
#endif
11189
/* We use char because int might match the return type of a gcc2
11190
   builtin and then its argument prototype would still apply.  */
11191
char fabs ();
11192
int
11193
main ()
11194
{
11195
fabs ();
11196
  ;
11197
  return 0;
11198
}
11199
_ACEOF
11200
rm -f conftest.$ac_objext conftest$ac_exeext
11201
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11202
  (eval $ac_link) 2>conftest.er1
11203
  ac_status=$?
11204
  grep -v '^ *+' conftest.er1 >conftest.err
11205
  rm -f conftest.er1
11206
  cat conftest.err >&5
11207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208
  (exit $ac_status); } &&
11209
         { ac_try='test -z "$ac_c_werror_flag"
11210
                         || test ! -s conftest.err'
11211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212
  (eval $ac_try) 2>&5
11213
  ac_status=$?
11214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215
  (exit $ac_status); }; } &&
11216
         { ac_try='test -s conftest$ac_exeext'
11217
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218
  (eval $ac_try) 2>&5
11219
  ac_status=$?
11220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221
  (exit $ac_status); }; }; then
11222
  ac_cv_search_fabs="-l$ac_lib"
11223
break
11224
else
11225
  echo "$as_me: failed program was:" >&5
11226
sed 's/^/| /' conftest.$ac_ext >&5
11227
 
11228
fi
11229
rm -f conftest.err conftest.$ac_objext \
11230
      conftest$ac_exeext conftest.$ac_ext
11231
  done
11232
fi
11233
LIBS=$ac_func_search_save_LIBS
11234
fi
11235
echo "$as_me:$LINENO: result: $ac_cv_search_fabs" >&5
11236
echo "${ECHO_T}$ac_cv_search_fabs" >&6
11237
if test "$ac_cv_search_fabs" != no; then
11238
  test "$ac_cv_search_fabs" = "none required" || LIBS="$ac_cv_search_fabs $LIBS"
11239
 
11240
fi
11241
 
11242
 
11243
 
11244
GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11245
 
11246
# Check whether --enable-werror or --disable-werror was given.
11247
if test "${enable_werror+set}" = set; then
11248
  enableval="$enable_werror"
11249
  case "${enableval}" in
11250
     yes | y) ERROR_ON_WARNING="yes" ;;
11251
     no | n)  ERROR_ON_WARNING="no" ;;
11252
     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11253
echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11254
   { (exit 1); exit 1; }; } ;;
11255
   esac
11256
fi;
11257
 
11258
# Enable -Wno-format by default when using gcc on mingw
11259
case "${host}" in
11260
  *-*-mingw32*)
11261
    if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11262
      GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11263
    fi
11264
    ;;
11265
  *) ;;
11266
esac
11267
 
11268
# Enable -Werror by default when using gcc
11269
if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11270
    ERROR_ON_WARNING=yes
11271
fi
11272
 
11273
NO_WERROR=
11274
if test "${ERROR_ON_WARNING}" = yes ; then
11275
    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11276
    NO_WERROR="-Wno-error"
11277
fi
11278
 
11279
if test "${GCC}" = yes ; then
11280
  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11281
fi
11282
 
11283
# Check whether --enable-build-warnings or --disable-build-warnings was given.
11284
if test "${enable_build_warnings+set}" = set; then
11285
  enableval="$enable_build_warnings"
11286
  case "${enableval}" in
11287
  yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11288
  no)   if test "${GCC}" = yes ; then
11289
          WARN_CFLAGS="-w"
11290
        fi;;
11291
  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11292
        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11293
  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11294
        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11295
  *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11296
esac
11297
fi;
11298
 
11299
if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11300
  echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11301
fi
11302
 
11303
 
11304
 
11305
 
11306
 
11307
 
11308
 
11309
 
11310
 
11311
                    ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11312
 
11313
cat >confcache <<\_ACEOF
11314
# This file is a shell script that caches the results of configure
11315
# tests run on this system so they can be shared between configure
11316
# scripts and configure runs, see configure's option --config-cache.
11317
# It is not useful on other systems.  If it contains results you don't
11318
# want to keep, you may remove or edit it.
11319
#
11320
# config.status only pays attention to the cache file if you give it
11321
# the --recheck option to rerun configure.
11322
#
11323
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11324
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11325
# following values.
11326
 
11327
_ACEOF
11328
 
11329
# The following way of writing the cache mishandles newlines in values,
11330
# but we know of no workaround that is simple, portable, and efficient.
11331
# So, don't put newlines in cache variables' values.
11332
# Ultrix sh set writes to stderr and can't be redirected directly,
11333
# and sets the high bit in the cache file unless we assign to the vars.
11334
{
11335
  (set) 2>&1 |
11336
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11337
    *ac_space=\ *)
11338
      # `set' does not quote correctly, so add quotes (double-quote
11339
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11340
      sed -n \
11341
        "s/'/'\\\\''/g;
11342
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11343
      ;;
11344
    *)
11345
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11346
      sed -n \
11347
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11348
      ;;
11349
    esac;
11350
} |
11351
  sed '
11352
     t clear
11353
     : clear
11354
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11355
     t end
11356
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11357
     : end' >>confcache
11358
if diff $cache_file confcache >/dev/null 2>&1; then :; else
11359
  if test -w $cache_file; then
11360
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11361
    cat confcache >$cache_file
11362
  else
11363
    echo "not updating unwritable cache $cache_file"
11364
  fi
11365
fi
11366
rm -f confcache
11367
 
11368
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11369
# Let make expand exec_prefix.
11370
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11371
 
11372
# VPATH may cause trouble with some makes, so we remove $(srcdir),
11373
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11374
# trailing colons and then remove the whole line if VPATH becomes empty
11375
# (actually we leave an empty line to preserve line numbers).
11376
if test "x$srcdir" = x.; then
11377
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
11378
s/:*\$(srcdir):*/:/;
11379
s/:*\${srcdir}:*/:/;
11380
s/:*@srcdir@:*/:/;
11381
s/^\([^=]*=[     ]*\):*/\1/;
11382
s/:*$//;
11383
s/^[^=]*=[       ]*$//;
11384
}'
11385
fi
11386
 
11387
DEFS=-DHAVE_CONFIG_H
11388
 
11389
ac_libobjs=
11390
ac_ltlibobjs=
11391
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11392
  # 1. Remove the extension, and $U if already installed.
11393
  ac_i=`echo "$ac_i" |
11394
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11395
  # 2. Add them.
11396
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11397
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11398
done
11399
LIBOBJS=$ac_libobjs
11400
 
11401
LTLIBOBJS=$ac_ltlibobjs
11402
 
11403
 
11404
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11405
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11406
Usually this means the macro was only invoked conditionally." >&5
11407
echo "$as_me: error: conditional \"AMDEP\" was never defined.
11408
Usually this means the macro was only invoked conditionally." >&2;}
11409
   { (exit 1); exit 1; }; }
11410
fi
11411
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11412
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11413
Usually this means the macro was only invoked conditionally." >&5
11414
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11415
Usually this means the macro was only invoked conditionally." >&2;}
11416
   { (exit 1); exit 1; }; }
11417
fi
11418
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11419
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11420
Usually this means the macro was only invoked conditionally." >&5
11421
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11422
Usually this means the macro was only invoked conditionally." >&2;}
11423
   { (exit 1); exit 1; }; }
11424
fi
11425
if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
11426
  { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
11427
Usually this means the macro was only invoked conditionally." >&5
11428
echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
11429
Usually this means the macro was only invoked conditionally." >&2;}
11430
   { (exit 1); exit 1; }; }
11431
fi
11432
 
11433
: ${CONFIG_STATUS=./config.status}
11434
ac_clean_files_save=$ac_clean_files
11435
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11436
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11437
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11438
cat >$CONFIG_STATUS <<_ACEOF
11439
#! $SHELL
11440
# Generated by $as_me.
11441
# Run this file to recreate the current configuration.
11442
# Compiler output produced by configure, useful for debugging
11443
# configure, is in config.log if it exists.
11444
 
11445
debug=false
11446
ac_cs_recheck=false
11447
ac_cs_silent=false
11448
SHELL=\${CONFIG_SHELL-$SHELL}
11449
_ACEOF
11450
 
11451
cat >>$CONFIG_STATUS <<\_ACEOF
11452
## --------------------- ##
11453
## M4sh Initialization.  ##
11454
## --------------------- ##
11455
 
11456
# Be Bourne compatible
11457
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11458
  emulate sh
11459
  NULLCMD=:
11460
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11461
  # is contrary to our usage.  Disable this feature.
11462
  alias -g '${1+"$@"}'='"$@"'
11463
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11464
  set -o posix
11465
fi
11466
DUALCASE=1; export DUALCASE # for MKS sh
11467
 
11468
# Support unset when possible.
11469
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11470
  as_unset=unset
11471
else
11472
  as_unset=false
11473
fi
11474
 
11475
 
11476
# Work around bugs in pre-3.0 UWIN ksh.
11477
$as_unset ENV MAIL MAILPATH
11478
PS1='$ '
11479
PS2='> '
11480
PS4='+ '
11481
 
11482
# NLS nuisances.
11483
for as_var in \
11484
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11485
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11486
  LC_TELEPHONE LC_TIME
11487
do
11488
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11489
    eval $as_var=C; export $as_var
11490
  else
11491
    $as_unset $as_var
11492
  fi
11493
done
11494
 
11495
# Required to use basename.
11496
if expr a : '\(a\)' >/dev/null 2>&1; then
11497
  as_expr=expr
11498
else
11499
  as_expr=false
11500
fi
11501
 
11502
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11503
  as_basename=basename
11504
else
11505
  as_basename=false
11506
fi
11507
 
11508
 
11509
# Name of the executable.
11510
as_me=`$as_basename "$0" ||
11511
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11512
         X"$0" : 'X\(//\)$' \| \
11513
         X"$0" : 'X\(/\)$' \| \
11514
         .     : '\(.\)' 2>/dev/null ||
11515
echo X/"$0" |
11516
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11517
          /^X\/\(\/\/\)$/{ s//\1/; q; }
11518
          /^X\/\(\/\).*/{ s//\1/; q; }
11519
          s/.*/./; q'`
11520
 
11521
 
11522
# PATH needs CR, and LINENO needs CR and PATH.
11523
# Avoid depending upon Character Ranges.
11524
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11525
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11526
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11527
as_cr_digits='0123456789'
11528
as_cr_alnum=$as_cr_Letters$as_cr_digits
11529
 
11530
# The user is always right.
11531
if test "${PATH_SEPARATOR+set}" != set; then
11532
  echo "#! /bin/sh" >conf$$.sh
11533
  echo  "exit 0"   >>conf$$.sh
11534
  chmod +x conf$$.sh
11535
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11536
    PATH_SEPARATOR=';'
11537
  else
11538
    PATH_SEPARATOR=:
11539
  fi
11540
  rm -f conf$$.sh
11541
fi
11542
 
11543
 
11544
  as_lineno_1=$LINENO
11545
  as_lineno_2=$LINENO
11546
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11547
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11548
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11549
  # Find who we are.  Look in the path if we contain no path at all
11550
  # relative or not.
11551
  case $0 in
11552
    *[\\/]* ) as_myself=$0 ;;
11553
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554
for as_dir in $PATH
11555
do
11556
  IFS=$as_save_IFS
11557
  test -z "$as_dir" && as_dir=.
11558
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11559
done
11560
 
11561
       ;;
11562
  esac
11563
  # We did not find ourselves, most probably we were run as `sh COMMAND'
11564
  # in which case we are not to be found in the path.
11565
  if test "x$as_myself" = x; then
11566
    as_myself=$0
11567
  fi
11568
  if test ! -f "$as_myself"; then
11569
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11570
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11571
   { (exit 1); exit 1; }; }
11572
  fi
11573
  case $CONFIG_SHELL in
11574
  '')
11575
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11577
do
11578
  IFS=$as_save_IFS
11579
  test -z "$as_dir" && as_dir=.
11580
  for as_base in sh bash ksh sh5; do
11581
         case $as_dir in
11582
         /*)
11583
           if ("$as_dir/$as_base" -c '
11584
  as_lineno_1=$LINENO
11585
  as_lineno_2=$LINENO
11586
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11587
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11588
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11589
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11590
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11591
             CONFIG_SHELL=$as_dir/$as_base
11592
             export CONFIG_SHELL
11593
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11594
           fi;;
11595
         esac
11596
       done
11597
done
11598
;;
11599
  esac
11600
 
11601
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11602
  # uniformly replaced by the line number.  The first 'sed' inserts a
11603
  # line-number line before each line; the second 'sed' does the real
11604
  # work.  The second script uses 'N' to pair each line-number line
11605
  # with the numbered line, and appends trailing '-' during
11606
  # substitution so that $LINENO is not a special case at line end.
11607
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11608
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11609
  sed '=' <$as_myself |
11610
    sed '
11611
      N
11612
      s,$,-,
11613
      : loop
11614
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11615
      t loop
11616
      s,-$,,
11617
      s,^['$as_cr_digits']*\n,,
11618
    ' >$as_me.lineno &&
11619
  chmod +x $as_me.lineno ||
11620
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11621
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11622
   { (exit 1); exit 1; }; }
11623
 
11624
  # Don't try to exec as it changes $[0], causing all sort of problems
11625
  # (the dirname of $[0] is not the place where we might find the
11626
  # original and so on.  Autoconf is especially sensible to this).
11627
  . ./$as_me.lineno
11628
  # Exit status is that of the last command.
11629
  exit
11630
}
11631
 
11632
 
11633
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11634
  *c*,-n*) ECHO_N= ECHO_C='
11635
' ECHO_T='      ' ;;
11636
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11637
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11638
esac
11639
 
11640
if expr a : '\(a\)' >/dev/null 2>&1; then
11641
  as_expr=expr
11642
else
11643
  as_expr=false
11644
fi
11645
 
11646
rm -f conf$$ conf$$.exe conf$$.file
11647
echo >conf$$.file
11648
if ln -s conf$$.file conf$$ 2>/dev/null; then
11649
  # We could just check for DJGPP; but this test a) works b) is more generic
11650
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11651
  if test -f conf$$.exe; then
11652
    # Don't use ln at all; we don't have any links
11653
    as_ln_s='cp -p'
11654
  else
11655
    as_ln_s='ln -s'
11656
  fi
11657
elif ln conf$$.file conf$$ 2>/dev/null; then
11658
  as_ln_s=ln
11659
else
11660
  as_ln_s='cp -p'
11661
fi
11662
rm -f conf$$ conf$$.exe conf$$.file
11663
 
11664
if mkdir -p . 2>/dev/null; then
11665
  as_mkdir_p=:
11666
else
11667
  test -d ./-p && rmdir ./-p
11668
  as_mkdir_p=false
11669
fi
11670
 
11671
as_executable_p="test -f"
11672
 
11673
# Sed expression to map a string onto a valid CPP name.
11674
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11675
 
11676
# Sed expression to map a string onto a valid variable name.
11677
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11678
 
11679
 
11680
# IFS
11681
# We need space, tab and new line, in precisely that order.
11682
as_nl='
11683
'
11684
IFS="   $as_nl"
11685
 
11686
# CDPATH.
11687
$as_unset CDPATH
11688
 
11689
exec 6>&1
11690
 
11691
# Open the log real soon, to keep \$[0] and so on meaningful, and to
11692
# report actual input values of CONFIG_FILES etc. instead of their
11693
# values after options handling.  Logging --version etc. is OK.
11694
exec 5>>config.log
11695
{
11696
  echo
11697
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11698
## Running $as_me. ##
11699
_ASBOX
11700
} >&5
11701
cat >&5 <<_CSEOF
11702
 
11703
This file was extended by $as_me, which was
11704
generated by GNU Autoconf 2.59.  Invocation command line was
11705
 
11706
  CONFIG_FILES    = $CONFIG_FILES
11707
  CONFIG_HEADERS  = $CONFIG_HEADERS
11708
  CONFIG_LINKS    = $CONFIG_LINKS
11709
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11710
  $ $0 $@
11711
 
11712
_CSEOF
11713
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11714
echo >&5
11715
_ACEOF
11716
 
11717
# Files that config.status was made for.
11718
if test -n "$ac_config_files"; then
11719
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11720
fi
11721
 
11722
if test -n "$ac_config_headers"; then
11723
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11724
fi
11725
 
11726
if test -n "$ac_config_links"; then
11727
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11728
fi
11729
 
11730
if test -n "$ac_config_commands"; then
11731
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11732
fi
11733
 
11734
cat >>$CONFIG_STATUS <<\_ACEOF
11735
 
11736
ac_cs_usage="\
11737
\`$as_me' instantiates files from templates according to the
11738
current configuration.
11739
 
11740
Usage: $0 [OPTIONS] [FILE]...
11741
 
11742
  -h, --help       print this help, then exit
11743
  -V, --version    print version number, then exit
11744
  -q, --quiet      do not print progress messages
11745
  -d, --debug      don't remove temporary files
11746
      --recheck    update $as_me by reconfiguring in the same conditions
11747
  --file=FILE[:TEMPLATE]
11748
                   instantiate the configuration file FILE
11749
  --header=FILE[:TEMPLATE]
11750
                   instantiate the configuration header FILE
11751
 
11752
Configuration files:
11753
$config_files
11754
 
11755
Configuration headers:
11756
$config_headers
11757
 
11758
Configuration commands:
11759
$config_commands
11760
 
11761
Report bugs to ."
11762
_ACEOF
11763
 
11764
cat >>$CONFIG_STATUS <<_ACEOF
11765
ac_cs_version="\\
11766
config.status
11767
configured by $0, generated by GNU Autoconf 2.59,
11768
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11769
 
11770
Copyright (C) 2003 Free Software Foundation, Inc.
11771
This config.status script is free software; the Free Software Foundation
11772
gives unlimited permission to copy, distribute and modify it."
11773
srcdir=$srcdir
11774
INSTALL="$INSTALL"
11775
_ACEOF
11776
 
11777
cat >>$CONFIG_STATUS <<\_ACEOF
11778
# If no file are specified by the user, then we need to provide default
11779
# value.  By we need to know if files were specified by the user.
11780
ac_need_defaults=:
11781
while test $# != 0
11782
do
11783
  case $1 in
11784
  --*=*)
11785
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
11786
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11787
    ac_shift=:
11788
    ;;
11789
  -*)
11790
    ac_option=$1
11791
    ac_optarg=$2
11792
    ac_shift=shift
11793
    ;;
11794
  *) # This is not an option, so the user has probably given explicit
11795
     # arguments.
11796
     ac_option=$1
11797
     ac_need_defaults=false;;
11798
  esac
11799
 
11800
  case $ac_option in
11801
  # Handling of the options.
11802
_ACEOF
11803
cat >>$CONFIG_STATUS <<\_ACEOF
11804
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11805
    ac_cs_recheck=: ;;
11806
  --version | --vers* | -V )
11807
    echo "$ac_cs_version"; exit 0 ;;
11808
  --he | --h)
11809
    # Conflict between --help and --header
11810
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
11811
Try \`$0 --help' for more information." >&5
11812
echo "$as_me: error: ambiguous option: $1
11813
Try \`$0 --help' for more information." >&2;}
11814
   { (exit 1); exit 1; }; };;
11815
  --help | --hel | -h )
11816
    echo "$ac_cs_usage"; exit 0 ;;
11817
  --debug | --d* | -d )
11818
    debug=: ;;
11819
  --file | --fil | --fi | --f )
11820
    $ac_shift
11821
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11822
    ac_need_defaults=false;;
11823
  --header | --heade | --head | --hea )
11824
    $ac_shift
11825
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11826
    ac_need_defaults=false;;
11827
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11828
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11829
    ac_cs_silent=: ;;
11830
 
11831
  # This is an error.
11832
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11833
Try \`$0 --help' for more information." >&5
11834
echo "$as_me: error: unrecognized option: $1
11835
Try \`$0 --help' for more information." >&2;}
11836
   { (exit 1); exit 1; }; } ;;
11837
 
11838
  *) ac_config_targets="$ac_config_targets $1" ;;
11839
 
11840
  esac
11841
  shift
11842
done
11843
 
11844
ac_configure_extra_args=
11845
 
11846
if $ac_cs_silent; then
11847
  exec 6>/dev/null
11848
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11849
fi
11850
 
11851
_ACEOF
11852
cat >>$CONFIG_STATUS <<_ACEOF
11853
if \$ac_cs_recheck; then
11854
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11855
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11856
fi
11857
 
11858
_ACEOF
11859
 
11860
cat >>$CONFIG_STATUS <<_ACEOF
11861
#
11862
# INIT-COMMANDS section.
11863
#
11864
 
11865
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11866
 
11867
 
11868
# The HP-UX ksh and POSIX shell print the target directory to stdout
11869
# if CDPATH is set.
11870
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11871
 
11872
sed_quote_subst='$sed_quote_subst'
11873
double_quote_subst='$double_quote_subst'
11874
delay_variable_subst='$delay_variable_subst'
11875
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11876
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11877
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11878
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11879
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11880
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11881
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11882
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11883
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11884
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11885
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11886
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11887
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11888
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11889
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11890
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11891
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11892
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11893
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11894
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11895
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11896
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11897
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11898
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11899
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11900
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11901
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11902
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11903
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11904
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11905
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11906
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11907
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11908
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11909
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11910
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11911
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11912
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11913
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11914
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11915
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11916
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11917
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11918
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"`'
11919
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11920
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11921
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11922
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11923
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11924
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11925
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11926
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11927
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11928
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11929
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11930
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11931
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11932
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11933
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11934
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11935
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11936
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11937
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11938
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11939
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11940
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11941
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11942
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11943
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11944
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11945
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11946
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11947
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11948
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11949
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11950
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11951
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11952
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11953
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11954
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11955
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11956
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11957
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11958
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11959
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11960
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11961
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11962
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11963
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11964
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11965
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11966
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11967
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11968
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11969
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11970
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11971
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11972
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11973
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11974
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11975
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11976
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11977
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11978
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11979
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11980
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11981
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11982
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11983
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11984
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11985
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11986
 
11987
LTCC='$LTCC'
11988
LTCFLAGS='$LTCFLAGS'
11989
compiler='$compiler_DEFAULT'
11990
 
11991
# Quote evaled strings.
11992
for var in SED \
11993
GREP \
11994
EGREP \
11995
FGREP \
11996
LD \
11997
NM \
11998
LN_S \
11999
lt_SP2NL \
12000
lt_NL2SP \
12001
reload_flag \
12002
deplibs_check_method \
12003
file_magic_cmd \
12004
AR \
12005
AR_FLAGS \
12006
STRIP \
12007
RANLIB \
12008
CC \
12009
CFLAGS \
12010
compiler \
12011
lt_cv_sys_global_symbol_pipe \
12012
lt_cv_sys_global_symbol_to_cdecl \
12013
lt_cv_sys_global_symbol_to_c_name_address \
12014
SHELL \
12015
ECHO \
12016
lt_prog_compiler_no_builtin_flag \
12017
lt_prog_compiler_wl \
12018
lt_prog_compiler_pic \
12019
lt_prog_compiler_static \
12020
lt_cv_prog_compiler_c_o \
12021
need_locks \
12022
shrext_cmds \
12023
export_dynamic_flag_spec \
12024
whole_archive_flag_spec \
12025
compiler_needs_object \
12026
with_gnu_ld \
12027
allow_undefined_flag \
12028
no_undefined_flag \
12029
hardcode_libdir_flag_spec \
12030
hardcode_libdir_flag_spec_ld \
12031
hardcode_libdir_separator \
12032
fix_srcfile_path \
12033
exclude_expsyms \
12034
include_expsyms \
12035
file_list_spec \
12036
variables_saved_for_relink \
12037
libname_spec \
12038
library_names_spec \
12039
soname_spec \
12040
finish_eval \
12041
old_striplib \
12042
striplib; do
12043
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12044
    *[\\\\\\\`\\"\\\$]*)
12045
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12046
      ;;
12047
    *)
12048
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12049
      ;;
12050
    esac
12051
done
12052
 
12053
# Double-quote double-evaled strings.
12054
for var in reload_cmds \
12055
old_postinstall_cmds \
12056
old_postuninstall_cmds \
12057
old_archive_cmds \
12058
extract_expsyms_cmds \
12059
old_archive_from_new_cmds \
12060
old_archive_from_expsyms_cmds \
12061
archive_cmds \
12062
archive_expsym_cmds \
12063
module_cmds \
12064
module_expsym_cmds \
12065
export_symbols_cmds \
12066
prelink_cmds \
12067
postinstall_cmds \
12068
postuninstall_cmds \
12069
finish_cmds \
12070
sys_lib_search_path_spec \
12071
sys_lib_dlsearch_path_spec; do
12072
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12073
    *[\\\\\\\`\\"\\\$]*)
12074
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12075
      ;;
12076
    *)
12077
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12078
      ;;
12079
    esac
12080
done
12081
 
12082
# Fix-up fallback echo if it was mangled by the above quoting rules.
12083
case \$lt_ECHO in
12084
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12085
  ;;
12086
esac
12087
 
12088
ac_aux_dir='$ac_aux_dir'
12089
xsi_shell='$xsi_shell'
12090
lt_shell_append='$lt_shell_append'
12091
 
12092
# See if we are running on zsh, and set the options which allow our
12093
# commands through without removal of \ escapes INIT.
12094
if test -n "\${ZSH_VERSION+set}" ; then
12095
   setopt NO_GLOB_SUBST
12096
fi
12097
 
12098
 
12099
    PACKAGE='$PACKAGE'
12100
    VERSION='$VERSION'
12101
    TIMESTAMP='$TIMESTAMP'
12102
    RM='$RM'
12103
    ofile='$ofile'
12104
 
12105
 
12106
 
12107
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12108
    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12109
    # from automake.
12110
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12111
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
12112
    LINGUAS="${LINGUAS-%UNSET%}"
12113
 
12114
 
12115
_ACEOF
12116
 
12117
 
12118
 
12119
cat >>$CONFIG_STATUS <<\_ACEOF
12120
for ac_config_target in $ac_config_targets
12121
do
12122
  case "$ac_config_target" in
12123
  # Handling of arguments.
12124
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12125
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12126
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12127
  "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12128
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12129
  "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;;
12130
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12131
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12132
   { (exit 1); exit 1; }; };;
12133
  esac
12134
done
12135
 
12136
# If the user did not use the arguments to specify the items to instantiate,
12137
# then the envvar interface is used.  Set only those that are not.
12138
# We use the long form for the default assignment because of an extremely
12139
# bizarre bug on SunOS 4.1.3.
12140
if $ac_need_defaults; then
12141
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12142
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12143
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12144
fi
12145
 
12146
# Have a temporary directory for convenience.  Make it in the build tree
12147
# simply because there is no reason to put it here, and in addition,
12148
# creating and moving files from /tmp can sometimes cause problems.
12149
# Create a temporary directory, and hook for its removal unless debugging.
12150
$debug ||
12151
{
12152
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12153
  trap '{ (exit 1); exit 1; }' 1 2 13 15
12154
}
12155
 
12156
# Create a (secure) tmp directory for tmp files.
12157
 
12158
{
12159
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12160
  test -n "$tmp" && test -d "$tmp"
12161
}  ||
12162
{
12163
  tmp=./confstat$$-$RANDOM
12164
  (umask 077 && mkdir $tmp)
12165
} ||
12166
{
12167
   echo "$me: cannot create a temporary directory in ." >&2
12168
   { (exit 1); exit 1; }
12169
}
12170
 
12171
_ACEOF
12172
 
12173
cat >>$CONFIG_STATUS <<_ACEOF
12174
 
12175
#
12176
# CONFIG_FILES section.
12177
#
12178
 
12179
# No need to generate the scripts if there are no CONFIG_FILES.
12180
# This happens for instance when ./config.status config.h
12181
if test -n "\$CONFIG_FILES"; then
12182
  # Protect against being on the right side of a sed subst in config.status.
12183
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12184
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12185
s,@SHELL@,$SHELL,;t t
12186
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12187
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12188
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12189
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12190
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12191
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12192
s,@exec_prefix@,$exec_prefix,;t t
12193
s,@prefix@,$prefix,;t t
12194
s,@program_transform_name@,$program_transform_name,;t t
12195
s,@bindir@,$bindir,;t t
12196
s,@sbindir@,$sbindir,;t t
12197
s,@libexecdir@,$libexecdir,;t t
12198
s,@datadir@,$datadir,;t t
12199
s,@sysconfdir@,$sysconfdir,;t t
12200
s,@sharedstatedir@,$sharedstatedir,;t t
12201
s,@localstatedir@,$localstatedir,;t t
12202
s,@libdir@,$libdir,;t t
12203
s,@includedir@,$includedir,;t t
12204
s,@oldincludedir@,$oldincludedir,;t t
12205
s,@infodir@,$infodir,;t t
12206
s,@mandir@,$mandir,;t t
12207
s,@build_alias@,$build_alias,;t t
12208
s,@host_alias@,$host_alias,;t t
12209
s,@target_alias@,$target_alias,;t t
12210
s,@DEFS@,$DEFS,;t t
12211
s,@ECHO_C@,$ECHO_C,;t t
12212
s,@ECHO_N@,$ECHO_N,;t t
12213
s,@ECHO_T@,$ECHO_T,;t t
12214
s,@LIBS@,$LIBS,;t t
12215
s,@build@,$build,;t t
12216
s,@build_cpu@,$build_cpu,;t t
12217
s,@build_vendor@,$build_vendor,;t t
12218
s,@build_os@,$build_os,;t t
12219
s,@host@,$host,;t t
12220
s,@host_cpu@,$host_cpu,;t t
12221
s,@host_vendor@,$host_vendor,;t t
12222
s,@host_os@,$host_os,;t t
12223
s,@target@,$target,;t t
12224
s,@target_cpu@,$target_cpu,;t t
12225
s,@target_vendor@,$target_vendor,;t t
12226
s,@target_os@,$target_os,;t t
12227
s,@CC@,$CC,;t t
12228
s,@CFLAGS@,$CFLAGS,;t t
12229
s,@LDFLAGS@,$LDFLAGS,;t t
12230
s,@CPPFLAGS@,$CPPFLAGS,;t t
12231
s,@ac_ct_CC@,$ac_ct_CC,;t t
12232
s,@EXEEXT@,$EXEEXT,;t t
12233
s,@OBJEXT@,$OBJEXT,;t t
12234
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12235
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12236
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12237
s,@CYGPATH_W@,$CYGPATH_W,;t t
12238
s,@PACKAGE@,$PACKAGE,;t t
12239
s,@VERSION@,$VERSION,;t t
12240
s,@ACLOCAL@,$ACLOCAL,;t t
12241
s,@AUTOCONF@,$AUTOCONF,;t t
12242
s,@AUTOMAKE@,$AUTOMAKE,;t t
12243
s,@AUTOHEADER@,$AUTOHEADER,;t t
12244
s,@MAKEINFO@,$MAKEINFO,;t t
12245
s,@install_sh@,$install_sh,;t t
12246
s,@STRIP@,$STRIP,;t t
12247
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12248
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12249
s,@mkdir_p@,$mkdir_p,;t t
12250
s,@AWK@,$AWK,;t t
12251
s,@SET_MAKE@,$SET_MAKE,;t t
12252
s,@am__leading_dot@,$am__leading_dot,;t t
12253
s,@AMTAR@,$AMTAR,;t t
12254
s,@am__tar@,$am__tar,;t t
12255
s,@am__untar@,$am__untar,;t t
12256
s,@DEPDIR@,$DEPDIR,;t t
12257
s,@am__include@,$am__include,;t t
12258
s,@am__quote@,$am__quote,;t t
12259
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12260
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12261
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12262
s,@CCDEPMODE@,$CCDEPMODE,;t t
12263
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12264
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12265
s,@LIBTOOL@,$LIBTOOL,;t t
12266
s,@SED@,$SED,;t t
12267
s,@EGREP@,$EGREP,;t t
12268
s,@FGREP@,$FGREP,;t t
12269
s,@GREP@,$GREP,;t t
12270
s,@LD@,$LD,;t t
12271
s,@DUMPBIN@,$DUMPBIN,;t t
12272
s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12273
s,@NM@,$NM,;t t
12274
s,@LN_S@,$LN_S,;t t
12275
s,@AR@,$AR,;t t
12276
s,@ac_ct_AR@,$ac_ct_AR,;t t
12277
s,@RANLIB@,$RANLIB,;t t
12278
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12279
s,@lt_ECHO@,$lt_ECHO,;t t
12280
s,@CPP@,$CPP,;t t
12281
s,@USE_NLS@,$USE_NLS,;t t
12282
s,@LIBINTL@,$LIBINTL,;t t
12283
s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12284
s,@INCINTL@,$INCINTL,;t t
12285
s,@XGETTEXT@,$XGETTEXT,;t t
12286
s,@GMSGFMT@,$GMSGFMT,;t t
12287
s,@POSUB@,$POSUB,;t t
12288
s,@CATALOGS@,$CATALOGS,;t t
12289
s,@DATADIRNAME@,$DATADIRNAME,;t t
12290
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12291
s,@GENCAT@,$GENCAT,;t t
12292
s,@CATOBJEXT@,$CATOBJEXT,;t t
12293
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12294
s,@MSGFMT@,$MSGFMT,;t t
12295
s,@MSGMERGE@,$MSGMERGE,;t t
12296
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12297
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12298
s,@MAINT@,$MAINT,;t t
12299
s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
12300
s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
12301
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12302
s,@NO_WERROR@,$NO_WERROR,;t t
12303
s,@datarootdir@,$datarootdir,;t t
12304
s,@docdir@,$docdir,;t t
12305
s,@htmldir@,$htmldir,;t t
12306
s,@LIBOBJS@,$LIBOBJS,;t t
12307
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12308
CEOF
12309
 
12310
_ACEOF
12311
 
12312
  cat >>$CONFIG_STATUS <<\_ACEOF
12313
  # Split the substitutions into bite-sized pieces for seds with
12314
  # small command number limits, like on Digital OSF/1 and HP-UX.
12315
  ac_max_sed_lines=48
12316
  ac_sed_frag=1 # Number of current file.
12317
  ac_beg=1 # First line for current file.
12318
  ac_end=$ac_max_sed_lines # Line after last line for current file.
12319
  ac_more_lines=:
12320
  ac_sed_cmds=
12321
  while $ac_more_lines; do
12322
    if test $ac_beg -gt 1; then
12323
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12324
    else
12325
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12326
    fi
12327
    if test ! -s $tmp/subs.frag; then
12328
      ac_more_lines=false
12329
    else
12330
      # The purpose of the label and of the branching condition is to
12331
      # speed up the sed processing (if there are no `@' at all, there
12332
      # is no need to browse any of the substitutions).
12333
      # These are the two extra sed commands mentioned above.
12334
      (echo ':t
12335
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12336
      if test -z "$ac_sed_cmds"; then
12337
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12338
      else
12339
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12340
      fi
12341
      ac_sed_frag=`expr $ac_sed_frag + 1`
12342
      ac_beg=$ac_end
12343
      ac_end=`expr $ac_end + $ac_max_sed_lines`
12344
    fi
12345
  done
12346
  if test -z "$ac_sed_cmds"; then
12347
    ac_sed_cmds=cat
12348
  fi
12349
fi # test -n "$CONFIG_FILES"
12350
 
12351
_ACEOF
12352
cat >>$CONFIG_STATUS <<\_ACEOF
12353
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12354
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12355
  case $ac_file in
12356
  - | *:- | *:-:* ) # input from stdin
12357
        cat >$tmp/stdin
12358
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12359
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12360
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12361
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12362
  * )   ac_file_in=$ac_file.in ;;
12363
  esac
12364
 
12365
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12366
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12367
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12368
         X"$ac_file" : 'X\(//\)[^/]' \| \
12369
         X"$ac_file" : 'X\(//\)$' \| \
12370
         X"$ac_file" : 'X\(/\)' \| \
12371
         .     : '\(.\)' 2>/dev/null ||
12372
echo X"$ac_file" |
12373
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12374
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12375
          /^X\(\/\/\)$/{ s//\1/; q; }
12376
          /^X\(\/\).*/{ s//\1/; q; }
12377
          s/.*/./; q'`
12378
  { if $as_mkdir_p; then
12379
    mkdir -p "$ac_dir"
12380
  else
12381
    as_dir="$ac_dir"
12382
    as_dirs=
12383
    while test ! -d "$as_dir"; do
12384
      as_dirs="$as_dir $as_dirs"
12385
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12386
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12387
         X"$as_dir" : 'X\(//\)[^/]' \| \
12388
         X"$as_dir" : 'X\(//\)$' \| \
12389
         X"$as_dir" : 'X\(/\)' \| \
12390
         .     : '\(.\)' 2>/dev/null ||
12391
echo X"$as_dir" |
12392
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12393
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12394
          /^X\(\/\/\)$/{ s//\1/; q; }
12395
          /^X\(\/\).*/{ s//\1/; q; }
12396
          s/.*/./; q'`
12397
    done
12398
    test ! -n "$as_dirs" || mkdir $as_dirs
12399
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12400
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12401
   { (exit 1); exit 1; }; }; }
12402
 
12403
  ac_builddir=.
12404
 
12405
if test "$ac_dir" != .; then
12406
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12407
  # A "../" for each directory in $ac_dir_suffix.
12408
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12409
else
12410
  ac_dir_suffix= ac_top_builddir=
12411
fi
12412
 
12413
case $srcdir in
12414
  .)  # No --srcdir option.  We are building in place.
12415
    ac_srcdir=.
12416
    if test -z "$ac_top_builddir"; then
12417
       ac_top_srcdir=.
12418
    else
12419
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12420
    fi ;;
12421
  [\\/]* | ?:[\\/]* )  # Absolute path.
12422
    ac_srcdir=$srcdir$ac_dir_suffix;
12423
    ac_top_srcdir=$srcdir ;;
12424
  *) # Relative path.
12425
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12426
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12427
esac
12428
 
12429
# Do not use `cd foo && pwd` to compute absolute paths, because
12430
# the directories may not exist.
12431
case `pwd` in
12432
.) ac_abs_builddir="$ac_dir";;
12433
*)
12434
  case "$ac_dir" in
12435
  .) ac_abs_builddir=`pwd`;;
12436
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12437
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12438
  esac;;
12439
esac
12440
case $ac_abs_builddir in
12441
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12442
*)
12443
  case ${ac_top_builddir}. in
12444
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12445
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12446
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12447
  esac;;
12448
esac
12449
case $ac_abs_builddir in
12450
.) ac_abs_srcdir=$ac_srcdir;;
12451
*)
12452
  case $ac_srcdir in
12453
  .) ac_abs_srcdir=$ac_abs_builddir;;
12454
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12455
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12456
  esac;;
12457
esac
12458
case $ac_abs_builddir in
12459
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12460
*)
12461
  case $ac_top_srcdir in
12462
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12463
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12464
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12465
  esac;;
12466
esac
12467
 
12468
 
12469
  case $INSTALL in
12470
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12471
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12472
  esac
12473
 
12474
  if test x"$ac_file" != x-; then
12475
    { echo "$as_me:$LINENO: creating $ac_file" >&5
12476
echo "$as_me: creating $ac_file" >&6;}
12477
    rm -f "$ac_file"
12478
  fi
12479
  # Let's still pretend it is `configure' which instantiates (i.e., don't
12480
  # use $as_me), people would be surprised to read:
12481
  #    /* config.h.  Generated by config.status.  */
12482
  if test x"$ac_file" = x-; then
12483
    configure_input=
12484
  else
12485
    configure_input="$ac_file.  "
12486
  fi
12487
  configure_input=$configure_input"Generated from `echo $ac_file_in |
12488
                                     sed 's,.*/,,'` by configure."
12489
 
12490
  # First look for the input files in the build tree, otherwise in the
12491
  # src tree.
12492
  ac_file_inputs=`IFS=:
12493
    for f in $ac_file_in; do
12494
      case $f in
12495
      -) echo $tmp/stdin ;;
12496
      [\\/$]*)
12497
         # Absolute (can't be DOS-style, as IFS=:)
12498
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12499
echo "$as_me: error: cannot find input file: $f" >&2;}
12500
   { (exit 1); exit 1; }; }
12501
         echo "$f";;
12502
      *) # Relative
12503
         if test -f "$f"; then
12504
           # Build tree
12505
           echo "$f"
12506
         elif test -f "$srcdir/$f"; then
12507
           # Source tree
12508
           echo "$srcdir/$f"
12509
         else
12510
           # /dev/null tree
12511
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12512
echo "$as_me: error: cannot find input file: $f" >&2;}
12513
   { (exit 1); exit 1; }; }
12514
         fi;;
12515
      esac
12516
    done` || { (exit 1); exit 1; }
12517
_ACEOF
12518
cat >>$CONFIG_STATUS <<_ACEOF
12519
  sed "$ac_vpsub
12520
$extrasub
12521
_ACEOF
12522
cat >>$CONFIG_STATUS <<\_ACEOF
12523
:t
12524
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12525
s,@configure_input@,$configure_input,;t t
12526
s,@srcdir@,$ac_srcdir,;t t
12527
s,@abs_srcdir@,$ac_abs_srcdir,;t t
12528
s,@top_srcdir@,$ac_top_srcdir,;t t
12529
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12530
s,@builddir@,$ac_builddir,;t t
12531
s,@abs_builddir@,$ac_abs_builddir,;t t
12532
s,@top_builddir@,$ac_top_builddir,;t t
12533
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12534
s,@INSTALL@,$ac_INSTALL,;t t
12535
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12536
  rm -f $tmp/stdin
12537
  if test x"$ac_file" != x-; then
12538
    mv $tmp/out $ac_file
12539
  else
12540
    cat $tmp/out
12541
    rm -f $tmp/out
12542
  fi
12543
 
12544
done
12545
_ACEOF
12546
cat >>$CONFIG_STATUS <<\_ACEOF
12547
 
12548
#
12549
# CONFIG_HEADER section.
12550
#
12551
 
12552
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12553
# NAME is the cpp macro being defined and VALUE is the value it is being given.
12554
#
12555
# ac_d sets the value in "#define NAME VALUE" lines.
12556
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12557
ac_dB='[         ].*$,\1#\2'
12558
ac_dC=' '
12559
ac_dD=',;t'
12560
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12561
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12562
ac_uB='$,\1#\2define\3'
12563
ac_uC=' '
12564
ac_uD=',;t'
12565
 
12566
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12567
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12568
  case $ac_file in
12569
  - | *:- | *:-:* ) # input from stdin
12570
        cat >$tmp/stdin
12571
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12572
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12573
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12574
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12575
  * )   ac_file_in=$ac_file.in ;;
12576
  esac
12577
 
12578
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12579
echo "$as_me: creating $ac_file" >&6;}
12580
 
12581
  # First look for the input files in the build tree, otherwise in the
12582
  # src tree.
12583
  ac_file_inputs=`IFS=:
12584
    for f in $ac_file_in; do
12585
      case $f in
12586
      -) echo $tmp/stdin ;;
12587
      [\\/$]*)
12588
         # Absolute (can't be DOS-style, as IFS=:)
12589
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12590
echo "$as_me: error: cannot find input file: $f" >&2;}
12591
   { (exit 1); exit 1; }; }
12592
         # Do quote $f, to prevent DOS paths from being IFS'd.
12593
         echo "$f";;
12594
      *) # Relative
12595
         if test -f "$f"; then
12596
           # Build tree
12597
           echo "$f"
12598
         elif test -f "$srcdir/$f"; then
12599
           # Source tree
12600
           echo "$srcdir/$f"
12601
         else
12602
           # /dev/null tree
12603
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12604
echo "$as_me: error: cannot find input file: $f" >&2;}
12605
   { (exit 1); exit 1; }; }
12606
         fi;;
12607
      esac
12608
    done` || { (exit 1); exit 1; }
12609
  # Remove the trailing spaces.
12610
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12611
 
12612
_ACEOF
12613
 
12614
# Transform confdefs.h into two sed scripts, `conftest.defines' and
12615
# `conftest.undefs', that substitutes the proper values into
12616
# config.h.in to produce config.h.  The first handles `#define'
12617
# templates, and the second `#undef' templates.
12618
# And first: Protect against being on the right side of a sed subst in
12619
# config.status.  Protect against being in an unquoted here document
12620
# in config.status.
12621
rm -f conftest.defines conftest.undefs
12622
# Using a here document instead of a string reduces the quoting nightmare.
12623
# Putting comments in sed scripts is not portable.
12624
#
12625
# `end' is used to avoid that the second main sed command (meant for
12626
# 0-ary CPP macros) applies to n-ary macro definitions.
12627
# See the Autoconf documentation for `clear'.
12628
cat >confdef2sed.sed <<\_ACEOF
12629
s/[\\&,]/\\&/g
12630
s,[\\$`],\\&,g
12631
t clear
12632
: clear
12633
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12634
t end
12635
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12636
: end
12637
_ACEOF
12638
# If some macros were called several times there might be several times
12639
# the same #defines, which is useless.  Nevertheless, we may not want to
12640
# sort them, since we want the *last* AC-DEFINE to be honored.
12641
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12642
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12643
rm -f confdef2sed.sed
12644
 
12645
# This sed command replaces #undef with comments.  This is necessary, for
12646
# example, in the case of _POSIX_SOURCE, which is predefined and required
12647
# on some systems where configure will not decide to define it.
12648
cat >>conftest.undefs <<\_ACEOF
12649
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12650
_ACEOF
12651
 
12652
# Break up conftest.defines because some shells have a limit on the size
12653
# of here documents, and old seds have small limits too (100 cmds).
12654
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12655
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12656
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12657
echo '  :' >>$CONFIG_STATUS
12658
rm -f conftest.tail
12659
while grep . conftest.defines >/dev/null
12660
do
12661
  # Write a limited-size here document to $tmp/defines.sed.
12662
  echo '  cat >$tmp/defines.sed <>$CONFIG_STATUS
12663
  # Speed up: don't consider the non `#define' lines.
12664
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12665
  # Work around the forget-to-reset-the-flag bug.
12666
  echo 't clr' >>$CONFIG_STATUS
12667
  echo ': clr' >>$CONFIG_STATUS
12668
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12669
  echo 'CEOF
12670
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
12671
  rm -f $tmp/in
12672
  mv $tmp/out $tmp/in
12673
' >>$CONFIG_STATUS
12674
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12675
  rm -f conftest.defines
12676
  mv conftest.tail conftest.defines
12677
done
12678
rm -f conftest.defines
12679
echo '  fi # grep' >>$CONFIG_STATUS
12680
echo >>$CONFIG_STATUS
12681
 
12682
# Break up conftest.undefs because some shells have a limit on the size
12683
# of here documents, and old seds have small limits too (100 cmds).
12684
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12685
rm -f conftest.tail
12686
while grep . conftest.undefs >/dev/null
12687
do
12688
  # Write a limited-size here document to $tmp/undefs.sed.
12689
  echo '  cat >$tmp/undefs.sed <>$CONFIG_STATUS
12690
  # Speed up: don't consider the non `#undef'
12691
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12692
  # Work around the forget-to-reset-the-flag bug.
12693
  echo 't clr' >>$CONFIG_STATUS
12694
  echo ': clr' >>$CONFIG_STATUS
12695
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12696
  echo 'CEOF
12697
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12698
  rm -f $tmp/in
12699
  mv $tmp/out $tmp/in
12700
' >>$CONFIG_STATUS
12701
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12702
  rm -f conftest.undefs
12703
  mv conftest.tail conftest.undefs
12704
done
12705
rm -f conftest.undefs
12706
 
12707
cat >>$CONFIG_STATUS <<\_ACEOF
12708
  # Let's still pretend it is `configure' which instantiates (i.e., don't
12709
  # use $as_me), people would be surprised to read:
12710
  #    /* config.h.  Generated by config.status.  */
12711
  if test x"$ac_file" = x-; then
12712
    echo "/* Generated by configure.  */" >$tmp/config.h
12713
  else
12714
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12715
  fi
12716
  cat $tmp/in >>$tmp/config.h
12717
  rm -f $tmp/in
12718
  if test x"$ac_file" != x-; then
12719
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12720
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12721
echo "$as_me: $ac_file is unchanged" >&6;}
12722
    else
12723
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12724
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12725
         X"$ac_file" : 'X\(//\)[^/]' \| \
12726
         X"$ac_file" : 'X\(//\)$' \| \
12727
         X"$ac_file" : 'X\(/\)' \| \
12728
         .     : '\(.\)' 2>/dev/null ||
12729
echo X"$ac_file" |
12730
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12731
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12732
          /^X\(\/\/\)$/{ s//\1/; q; }
12733
          /^X\(\/\).*/{ s//\1/; q; }
12734
          s/.*/./; q'`
12735
      { if $as_mkdir_p; then
12736
    mkdir -p "$ac_dir"
12737
  else
12738
    as_dir="$ac_dir"
12739
    as_dirs=
12740
    while test ! -d "$as_dir"; do
12741
      as_dirs="$as_dir $as_dirs"
12742
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12743
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12744
         X"$as_dir" : 'X\(//\)[^/]' \| \
12745
         X"$as_dir" : 'X\(//\)$' \| \
12746
         X"$as_dir" : 'X\(/\)' \| \
12747
         .     : '\(.\)' 2>/dev/null ||
12748
echo X"$as_dir" |
12749
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12750
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12751
          /^X\(\/\/\)$/{ s//\1/; q; }
12752
          /^X\(\/\).*/{ s//\1/; q; }
12753
          s/.*/./; q'`
12754
    done
12755
    test ! -n "$as_dirs" || mkdir $as_dirs
12756
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12757
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12758
   { (exit 1); exit 1; }; }; }
12759
 
12760
      rm -f $ac_file
12761
      mv $tmp/config.h $ac_file
12762
    fi
12763
  else
12764
    cat $tmp/config.h
12765
    rm -f $tmp/config.h
12766
  fi
12767
# Compute $ac_file's index in $config_headers.
12768
_am_stamp_count=1
12769
for _am_header in $config_headers :; do
12770
  case $_am_header in
12771
    $ac_file | $ac_file:* )
12772
      break ;;
12773
    * )
12774
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12775
  esac
12776
done
12777
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12778
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12779
         X$ac_file : 'X\(//\)[^/]' \| \
12780
         X$ac_file : 'X\(//\)$' \| \
12781
         X$ac_file : 'X\(/\)' \| \
12782
         .     : '\(.\)' 2>/dev/null ||
12783
echo X$ac_file |
12784
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12785
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12786
          /^X\(\/\/\)$/{ s//\1/; q; }
12787
          /^X\(\/\).*/{ s//\1/; q; }
12788
          s/.*/./; q'`/stamp-h$_am_stamp_count
12789
done
12790
_ACEOF
12791
cat >>$CONFIG_STATUS <<\_ACEOF
12792
 
12793
#
12794
# CONFIG_COMMANDS section.
12795
#
12796
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12797
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12798
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12799
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12800
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12801
         X"$ac_dest" : 'X\(//\)[^/]' \| \
12802
         X"$ac_dest" : 'X\(//\)$' \| \
12803
         X"$ac_dest" : 'X\(/\)' \| \
12804
         .     : '\(.\)' 2>/dev/null ||
12805
echo X"$ac_dest" |
12806
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12807
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12808
          /^X\(\/\/\)$/{ s//\1/; q; }
12809
          /^X\(\/\).*/{ s//\1/; q; }
12810
          s/.*/./; q'`
12811
  { if $as_mkdir_p; then
12812
    mkdir -p "$ac_dir"
12813
  else
12814
    as_dir="$ac_dir"
12815
    as_dirs=
12816
    while test ! -d "$as_dir"; do
12817
      as_dirs="$as_dir $as_dirs"
12818
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12819
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12820
         X"$as_dir" : 'X\(//\)[^/]' \| \
12821
         X"$as_dir" : 'X\(//\)$' \| \
12822
         X"$as_dir" : 'X\(/\)' \| \
12823
         .     : '\(.\)' 2>/dev/null ||
12824
echo X"$as_dir" |
12825
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12826
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12827
          /^X\(\/\/\)$/{ s//\1/; q; }
12828
          /^X\(\/\).*/{ s//\1/; q; }
12829
          s/.*/./; q'`
12830
    done
12831
    test ! -n "$as_dirs" || mkdir $as_dirs
12832
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12833
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12834
   { (exit 1); exit 1; }; }; }
12835
 
12836
  ac_builddir=.
12837
 
12838
if test "$ac_dir" != .; then
12839
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12840
  # A "../" for each directory in $ac_dir_suffix.
12841
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12842
else
12843
  ac_dir_suffix= ac_top_builddir=
12844
fi
12845
 
12846
case $srcdir in
12847
  .)  # No --srcdir option.  We are building in place.
12848
    ac_srcdir=.
12849
    if test -z "$ac_top_builddir"; then
12850
       ac_top_srcdir=.
12851
    else
12852
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12853
    fi ;;
12854
  [\\/]* | ?:[\\/]* )  # Absolute path.
12855
    ac_srcdir=$srcdir$ac_dir_suffix;
12856
    ac_top_srcdir=$srcdir ;;
12857
  *) # Relative path.
12858
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12859
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12860
esac
12861
 
12862
# Do not use `cd foo && pwd` to compute absolute paths, because
12863
# the directories may not exist.
12864
case `pwd` in
12865
.) ac_abs_builddir="$ac_dir";;
12866
*)
12867
  case "$ac_dir" in
12868
  .) ac_abs_builddir=`pwd`;;
12869
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12870
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12871
  esac;;
12872
esac
12873
case $ac_abs_builddir in
12874
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12875
*)
12876
  case ${ac_top_builddir}. in
12877
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12878
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12879
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12880
  esac;;
12881
esac
12882
case $ac_abs_builddir in
12883
.) ac_abs_srcdir=$ac_srcdir;;
12884
*)
12885
  case $ac_srcdir in
12886
  .) ac_abs_srcdir=$ac_abs_builddir;;
12887
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12888
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12889
  esac;;
12890
esac
12891
case $ac_abs_builddir in
12892
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12893
*)
12894
  case $ac_top_srcdir in
12895
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12896
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12897
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12898
  esac;;
12899
esac
12900
 
12901
 
12902
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12903
echo "$as_me: executing $ac_dest commands" >&6;}
12904
  case $ac_dest in
12905
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12906
  # Strip MF so we end up with the name of the file.
12907
  mf=`echo "$mf" | sed -e 's/:.*$//'`
12908
  # Check whether this is an Automake generated Makefile or not.
12909
  # We used to match only the files named `Makefile.in', but
12910
  # some people rename them; so instead we look at the file content.
12911
  # Grep'ing the first line is not enough: some people post-process
12912
  # each Makefile.in and add a new line on top of each file to say so.
12913
  # So let's grep whole file.
12914
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12915
    dirpart=`(dirname "$mf") 2>/dev/null ||
12916
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12917
         X"$mf" : 'X\(//\)[^/]' \| \
12918
         X"$mf" : 'X\(//\)$' \| \
12919
         X"$mf" : 'X\(/\)' \| \
12920
         .     : '\(.\)' 2>/dev/null ||
12921
echo X"$mf" |
12922
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12923
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12924
          /^X\(\/\/\)$/{ s//\1/; q; }
12925
          /^X\(\/\).*/{ s//\1/; q; }
12926
          s/.*/./; q'`
12927
  else
12928
    continue
12929
  fi
12930
  # Extract the definition of DEPDIR, am__include, and am__quote
12931
  # from the Makefile without running `make'.
12932
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12933
  test -z "$DEPDIR" && continue
12934
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
12935
  test -z "am__include" && continue
12936
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12937
  # When using ansi2knr, U may be empty or an underscore; expand it
12938
  U=`sed -n 's/^U = //p' < "$mf"`
12939
  # Find all dependency output files, they are included files with
12940
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
12941
  # simplest approach to changing $(DEPDIR) to its actual value in the
12942
  # expansion.
12943
  for file in `sed -n "
12944
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12945
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12946
    # Make sure the directory exists.
12947
    test -f "$dirpart/$file" && continue
12948
    fdir=`(dirname "$file") 2>/dev/null ||
12949
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12950
         X"$file" : 'X\(//\)[^/]' \| \
12951
         X"$file" : 'X\(//\)$' \| \
12952
         X"$file" : 'X\(/\)' \| \
12953
         .     : '\(.\)' 2>/dev/null ||
12954
echo X"$file" |
12955
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12956
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12957
          /^X\(\/\/\)$/{ s//\1/; q; }
12958
          /^X\(\/\).*/{ s//\1/; q; }
12959
          s/.*/./; q'`
12960
    { if $as_mkdir_p; then
12961
    mkdir -p $dirpart/$fdir
12962
  else
12963
    as_dir=$dirpart/$fdir
12964
    as_dirs=
12965
    while test ! -d "$as_dir"; do
12966
      as_dirs="$as_dir $as_dirs"
12967
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12968
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12969
         X"$as_dir" : 'X\(//\)[^/]' \| \
12970
         X"$as_dir" : 'X\(//\)$' \| \
12971
         X"$as_dir" : 'X\(/\)' \| \
12972
         .     : '\(.\)' 2>/dev/null ||
12973
echo X"$as_dir" |
12974
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12975
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12976
          /^X\(\/\/\)$/{ s//\1/; q; }
12977
          /^X\(\/\).*/{ s//\1/; q; }
12978
          s/.*/./; q'`
12979
    done
12980
    test ! -n "$as_dirs" || mkdir $as_dirs
12981
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12982
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12983
   { (exit 1); exit 1; }; }; }
12984
 
12985
    # echo "creating $dirpart/$file"
12986
    echo '# dummy' > "$dirpart/$file"
12987
  done
12988
done
12989
 ;;
12990
    libtool )
12991
 
12992
    # See if we are running on zsh, and set the options which allow our
12993
    # commands through without removal of \ escapes.
12994
    if test -n "${ZSH_VERSION+set}" ; then
12995
      setopt NO_GLOB_SUBST
12996
    fi
12997
 
12998
    cfgfile="${ofile}T"
12999
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13000
    $RM "$cfgfile"
13001
 
13002
    cat <<_LT_EOF >> "$cfgfile"
13003
#! $SHELL
13004
 
13005
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13006
# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13007
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13008
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13009
#
13010
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13011
# 2006, 2007 Free Software Foundation, Inc.
13012
#
13013
# This file is part of GNU Libtool:
13014
# Originally by Gordon Matzigkeit , 1996
13015
#
13016
# This program is free software; you can redistribute it and/or modify
13017
# it under the terms of the GNU General Public License as published by
13018
# the Free Software Foundation; either version 2 of the License, or
13019
# (at your option) any later version.
13020
#
13021
# This program is distributed in the hope that it will be useful, but
13022
# WITHOUT ANY WARRANTY; without even the implied warranty of
13023
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13024
# General Public License for more details.
13025
#
13026
# You should have received a copy of the GNU General Public License
13027
# along with this program; if not, a copy can be downloaded from
13028
# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
13029
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
13030
# MA 02110-1301, USA.
13031
#
13032
# As a special exception to the GNU General Public License, if you
13033
# distribute this file as part of a program that contains a
13034
# configuration script generated by Autoconf, you may include it under
13035
# the same distribution terms that you use for the rest of that program.
13036
 
13037
 
13038
# The names of the tagged configurations supported by this script.
13039
available_tags=""
13040
 
13041
# ### BEGIN LIBTOOL CONFIG
13042
 
13043
# Which release of libtool.m4 was used?
13044
macro_version=$macro_version
13045
macro_revision=$macro_revision
13046
 
13047
# Whether or not to build shared libraries.
13048
build_libtool_libs=$enable_shared
13049
 
13050
# Whether or not to build static libraries.
13051
build_old_libs=$enable_static
13052
 
13053
# What type of objects to build.
13054
pic_mode=$pic_mode
13055
 
13056
# Whether or not to optimize for fast installation.
13057
fast_install=$enable_fast_install
13058
 
13059
# The host system.
13060
host_alias=$host_alias
13061
host=$host
13062
host_os=$host_os
13063
 
13064
# The build system.
13065
build_alias=$build_alias
13066
build=$build
13067
build_os=$build_os
13068
 
13069
# A sed program that does not truncate output.
13070
SED=$lt_SED
13071
 
13072
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13073
Xsed="\$SED -e 1s/^X//"
13074
 
13075
# A grep program that handles long lines.
13076
GREP=$lt_GREP
13077
 
13078
# An ERE matcher.
13079
EGREP=$lt_EGREP
13080
 
13081
# A literal string matcher.
13082
FGREP=$lt_FGREP
13083
 
13084
# A BSD- or MS-compatible name lister.
13085
NM=$lt_NM
13086
 
13087
# Whether we need soft or hard links.
13088
LN_S=$lt_LN_S
13089
 
13090
# What is the maximum length of a command?
13091
max_cmd_len=$max_cmd_len
13092
 
13093
# Object file suffix (normally "o").
13094
objext=$ac_objext
13095
 
13096
# Executable file suffix (normally "").
13097
exeext=$exeext
13098
 
13099
# whether the shell understands "unset".
13100
lt_unset=$lt_unset
13101
 
13102
# turn spaces into newlines.
13103
SP2NL=$lt_lt_SP2NL
13104
 
13105
# turn newlines into spaces.
13106
NL2SP=$lt_lt_NL2SP
13107
 
13108
# How to create reloadable object files.
13109
reload_flag=$lt_reload_flag
13110
reload_cmds=$lt_reload_cmds
13111
 
13112
# Method to check whether dependent libraries are shared objects.
13113
deplibs_check_method=$lt_deplibs_check_method
13114
 
13115
# Command to use when deplibs_check_method == "file_magic".
13116
file_magic_cmd=$lt_file_magic_cmd
13117
 
13118
# The archiver.
13119
AR=$lt_AR
13120
AR_FLAGS=$lt_AR_FLAGS
13121
 
13122
# A symbol stripping program.
13123
STRIP=$lt_STRIP
13124
 
13125
# Commands used to install an old-style archive.
13126
RANLIB=$lt_RANLIB
13127
old_postinstall_cmds=$lt_old_postinstall_cmds
13128
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13129
 
13130
# A C compiler.
13131
LTCC=$lt_CC
13132
 
13133
# LTCC compiler flags.
13134
LTCFLAGS=$lt_CFLAGS
13135
 
13136
# Take the output of nm and produce a listing of raw symbols and C names.
13137
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13138
 
13139
# Transform the output of nm in a proper C declaration.
13140
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13141
 
13142
# Transform the output of nm in a C name address pair.
13143
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13144
 
13145
# The name of the directory that contains temporary libtool files.
13146
objdir=$objdir
13147
 
13148
# Shell to use when invoking shell scripts.
13149
SHELL=$lt_SHELL
13150
 
13151
# An echo program that does not interpret backslashes.
13152
ECHO=$lt_ECHO
13153
 
13154
# Used to examine libraries when file_magic_cmd begins with "file".
13155
MAGIC_CMD=$MAGIC_CMD
13156
 
13157
# Must we lock files when doing compilation?
13158
need_locks=$lt_need_locks
13159
 
13160
# Old archive suffix (normally "a").
13161
libext=$libext
13162
 
13163
# Shared library suffix (normally ".so").
13164
shrext_cmds=$lt_shrext_cmds
13165
 
13166
# The commands to extract the exported symbol list from a shared archive.
13167
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13168
 
13169
# Variables whose values should be saved in libtool wrapper scripts and
13170
# restored at link time.
13171
variables_saved_for_relink=$lt_variables_saved_for_relink
13172
 
13173
# Do we need the "lib" prefix for modules?
13174
need_lib_prefix=$need_lib_prefix
13175
 
13176
# Do we need a version for libraries?
13177
need_version=$need_version
13178
 
13179
# Library versioning type.
13180
version_type=$version_type
13181
 
13182
# Shared library runtime path variable.
13183
runpath_var=$runpath_var
13184
 
13185
# Shared library path variable.
13186
shlibpath_var=$shlibpath_var
13187
 
13188
# Is shlibpath searched before the hard-coded library search path?
13189
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13190
 
13191
# Format of library name prefix.
13192
libname_spec=$lt_libname_spec
13193
 
13194
# List of archive names.  First name is the real one, the rest are links.
13195
# The last name is the one that the linker finds with -lNAME
13196
library_names_spec=$lt_library_names_spec
13197
 
13198
# The coded name of the library, if different from the real name.
13199
soname_spec=$lt_soname_spec
13200
 
13201
# Command to use after installation of a shared archive.
13202
postinstall_cmds=$lt_postinstall_cmds
13203
 
13204
# Command to use after uninstallation of a shared archive.
13205
postuninstall_cmds=$lt_postuninstall_cmds
13206
 
13207
# Commands used to finish a libtool library installation in a directory.
13208
finish_cmds=$lt_finish_cmds
13209
 
13210
# As "finish_cmds", except a single script fragment to be evaled but
13211
# not shown.
13212
finish_eval=$lt_finish_eval
13213
 
13214
# Whether we should hardcode library paths into libraries.
13215
hardcode_into_libs=$hardcode_into_libs
13216
 
13217
# Compile-time system search path for libraries.
13218
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13219
 
13220
# Run-time system search path for libraries.
13221
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13222
 
13223
# Whether dlopen is supported.
13224
dlopen_support=$enable_dlopen
13225
 
13226
# Whether dlopen of programs is supported.
13227
dlopen_self=$enable_dlopen_self
13228
 
13229
# Whether dlopen of statically linked programs is supported.
13230
dlopen_self_static=$enable_dlopen_self_static
13231
 
13232
# Commands to strip libraries.
13233
old_striplib=$lt_old_striplib
13234
striplib=$lt_striplib
13235
 
13236
 
13237
# The linker used to build libraries.
13238
LD=$lt_LD
13239
 
13240
# Commands used to build an old-style archive.
13241
old_archive_cmds=$lt_old_archive_cmds
13242
 
13243
# A language specific compiler.
13244
CC=$lt_compiler
13245
 
13246
# Is the compiler the GNU compiler?
13247
with_gcc=$GCC
13248
 
13249
# Compiler flag to turn off builtin functions.
13250
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13251
 
13252
# How to pass a linker flag through the compiler.
13253
wl=$lt_lt_prog_compiler_wl
13254
 
13255
# Additional compiler flags for building library objects.
13256
pic_flag=$lt_lt_prog_compiler_pic
13257
 
13258
# Compiler flag to prevent dynamic linking.
13259
link_static_flag=$lt_lt_prog_compiler_static
13260
 
13261
# Does compiler simultaneously support -c and -o options?
13262
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13263
 
13264
# Whether or not to add -lc for building shared libraries.
13265
build_libtool_need_lc=$archive_cmds_need_lc
13266
 
13267
# Whether or not to disallow shared libs when runtime libs are static.
13268
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13269
 
13270
# Compiler flag to allow reflexive dlopens.
13271
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13272
 
13273
# Compiler flag to generate shared objects directly from archives.
13274
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13275
 
13276
# Whether the compiler copes with passing no objects directly.
13277
compiler_needs_object=$lt_compiler_needs_object
13278
 
13279
# Create an old-style archive from a shared archive.
13280
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13281
 
13282
# Create a temporary old-style archive to link instead of a shared archive.
13283
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13284
 
13285
# Commands used to build a shared archive.
13286
archive_cmds=$lt_archive_cmds
13287
archive_expsym_cmds=$lt_archive_expsym_cmds
13288
 
13289
# Commands used to build a loadable module if different from building
13290
# a shared archive.
13291
module_cmds=$lt_module_cmds
13292
module_expsym_cmds=$lt_module_expsym_cmds
13293
 
13294
# Whether we are building with GNU ld or not.
13295
with_gnu_ld=$lt_with_gnu_ld
13296
 
13297
# Flag that allows shared libraries with undefined symbols to be built.
13298
allow_undefined_flag=$lt_allow_undefined_flag
13299
 
13300
# Flag that enforces no undefined symbols.
13301
no_undefined_flag=$lt_no_undefined_flag
13302
 
13303
# Flag to hardcode \$libdir into a binary during linking.
13304
# This must work even if \$libdir does not exist
13305
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13306
 
13307
# If ld is used when linking, flag to hardcode \$libdir into a binary
13308
# during linking.  This must work even if \$libdir does not exist.
13309
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13310
 
13311
# Whether we need a single "-rpath" flag with a separated argument.
13312
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13313
 
13314
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13315
# DIR into the resulting binary.
13316
hardcode_direct=$hardcode_direct
13317
 
13318
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13319
# DIR into the resulting binary and the resulting library dependency is
13320
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13321
# library is relocated.
13322
hardcode_direct_absolute=$hardcode_direct_absolute
13323
 
13324
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13325
# into the resulting binary.
13326
hardcode_minus_L=$hardcode_minus_L
13327
 
13328
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13329
# into the resulting binary.
13330
hardcode_shlibpath_var=$hardcode_shlibpath_var
13331
 
13332
# Set to "yes" if building a shared library automatically hardcodes DIR
13333
# into the library and all subsequent libraries and executables linked
13334
# against it.
13335
hardcode_automatic=$hardcode_automatic
13336
 
13337
# Set to yes if linker adds runtime paths of dependent libraries
13338
# to runtime path list.
13339
inherit_rpath=$inherit_rpath
13340
 
13341
# Whether libtool must link a program against all its dependency libraries.
13342
link_all_deplibs=$link_all_deplibs
13343
 
13344
# Fix the shell variable \$srcfile for the compiler.
13345
fix_srcfile_path=$lt_fix_srcfile_path
13346
 
13347
# Set to "yes" if exported symbols are required.
13348
always_export_symbols=$always_export_symbols
13349
 
13350
# The commands to list exported symbols.
13351
export_symbols_cmds=$lt_export_symbols_cmds
13352
 
13353
# Symbols that should not be listed in the preloaded symbols.
13354
exclude_expsyms=$lt_exclude_expsyms
13355
 
13356
# Symbols that must always be exported.
13357
include_expsyms=$lt_include_expsyms
13358
 
13359
# Commands necessary for linking programs (against libraries) with templates.
13360
prelink_cmds=$lt_prelink_cmds
13361
 
13362
# Specify filename containing input files.
13363
file_list_spec=$lt_file_list_spec
13364
 
13365
# How to hardcode a shared library path into an executable.
13366
hardcode_action=$hardcode_action
13367
 
13368
# ### END LIBTOOL CONFIG
13369
 
13370
_LT_EOF
13371
 
13372
  case $host_os in
13373
  aix3*)
13374
    cat <<\_LT_EOF >> "$cfgfile"
13375
# AIX sometimes has problems with the GCC collect2 program.  For some
13376
# reason, if we set the COLLECT_NAMES environment variable, the problems
13377
# vanish in a puff of smoke.
13378
if test "X${COLLECT_NAMES+set}" != Xset; then
13379
  COLLECT_NAMES=
13380
  export COLLECT_NAMES
13381
fi
13382
_LT_EOF
13383
    ;;
13384
  esac
13385
 
13386
 
13387
ltmain="$ac_aux_dir/ltmain.sh"
13388
 
13389
 
13390
  # We use sed instead of cat because bash on DJGPP gets confused if
13391
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13392
  # text mode, it properly converts lines to CR/LF.  This bash problem
13393
  # is reportedly fixed, but why not run on old versions too?
13394
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13395
    || (rm -f "$cfgfile"; exit 1)
13396
 
13397
  case $xsi_shell in
13398
  yes)
13399
    cat << \_LT_EOF >> "$cfgfile"
13400
# func_dirname file append nondir_replacement
13401
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13402
# otherwise set result to NONDIR_REPLACEMENT.
13403
func_dirname ()
13404
{
13405
  case ${1} in
13406
    */*) func_dirname_result="${1%/*}${2}" ;;
13407
    *  ) func_dirname_result="${3}" ;;
13408
  esac
13409
}
13410
 
13411
# func_basename file
13412
func_basename ()
13413
{
13414
  func_basename_result="${1##*/}"
13415
}
13416
 
13417
# func_stripname prefix suffix name
13418
# strip PREFIX and SUFFIX off of NAME.
13419
# PREFIX and SUFFIX must not contain globbing or regex special
13420
# characters, hashes, percent signs, but SUFFIX may contain a leading
13421
# dot (in which case that matches only a dot).
13422
func_stripname ()
13423
{
13424
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13425
  # positional parameters, so assign one to ordinary parameter first.
13426
  func_stripname_result=${3}
13427
  func_stripname_result=${func_stripname_result#"${1}"}
13428
  func_stripname_result=${func_stripname_result%"${2}"}
13429
}
13430
 
13431
# func_opt_split
13432
func_opt_split ()
13433
{
13434
  func_opt_split_opt=${1%%=*}
13435
  func_opt_split_arg=${1#*=}
13436
}
13437
 
13438
# func_lo2o object
13439
func_lo2o ()
13440
{
13441
  case ${1} in
13442
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13443
    *)    func_lo2o_result=${1} ;;
13444
  esac
13445
}
13446
_LT_EOF
13447
    ;;
13448
  *) # Bourne compatible functions.
13449
    cat << \_LT_EOF >> "$cfgfile"
13450
# func_dirname file append nondir_replacement
13451
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13452
# otherwise set result to NONDIR_REPLACEMENT.
13453
func_dirname ()
13454
{
13455
  # Extract subdirectory from the argument.
13456
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13457
  if test "X$func_dirname_result" = "X${1}"; then
13458
    func_dirname_result="${3}"
13459
  else
13460
    func_dirname_result="$func_dirname_result${2}"
13461
  fi
13462
}
13463
 
13464
# func_basename file
13465
func_basename ()
13466
{
13467
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13468
}
13469
 
13470
# func_stripname prefix suffix name
13471
# strip PREFIX and SUFFIX off of NAME.
13472
# PREFIX and SUFFIX must not contain globbing or regex special
13473
# characters, hashes, percent signs, but SUFFIX may contain a leading
13474
# dot (in which case that matches only a dot).
13475
# func_strip_suffix prefix name
13476
func_stripname ()
13477
{
13478
  case ${2} in
13479
    .*) func_stripname_result=`$ECHO "X${3}" \
13480
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13481
    *)  func_stripname_result=`$ECHO "X${3}" \
13482
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13483
  esac
13484
}
13485
 
13486
# sed scripts:
13487
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13488
my_sed_long_arg='1s/^-[^=]*=//'
13489
 
13490
# func_opt_split
13491
func_opt_split ()
13492
{
13493
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13494
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13495
}
13496
 
13497
# func_lo2o object
13498
func_lo2o ()
13499
{
13500
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13501
}
13502
_LT_EOF
13503
esac
13504
 
13505
case $lt_shell_append in
13506
  yes)
13507
    cat << \_LT_EOF >> "$cfgfile"
13508
 
13509
# func_append var value
13510
# Append VALUE to the end of shell variable VAR.
13511
func_append ()
13512
{
13513
  eval "$1+=\$2"
13514
}
13515
_LT_EOF
13516
    ;;
13517
  *)
13518
    cat << \_LT_EOF >> "$cfgfile"
13519
 
13520
# func_append var value
13521
# Append VALUE to the end of shell variable VAR.
13522
func_append ()
13523
{
13524
  eval "$1=\$$1\$2"
13525
}
13526
_LT_EOF
13527
    ;;
13528
  esac
13529
 
13530
 
13531
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13532
    || (rm -f "$cfgfile"; exit 1)
13533
 
13534
  mv -f "$cfgfile" "$ofile" ||
13535
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13536
  chmod +x "$ofile"
13537
 
13538
 ;;
13539
    default-1 )
13540
    for ac_file in $CONFIG_FILES; do
13541
      # Support "outfile[:infile[:infile...]]"
13542
      case "$ac_file" in
13543
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13544
      esac
13545
      # PO directories have a Makefile.in generated from Makefile.in.in.
13546
      case "$ac_file" in */Makefile.in)
13547
        # Adjust a relative srcdir.
13548
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13549
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13550
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13551
        # In autoconf-2.13 it is called $ac_given_srcdir.
13552
        # In autoconf-2.50 it is called $srcdir.
13553
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13554
        case "$ac_given_srcdir" in
13555
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13556
          /*) top_srcdir="$ac_given_srcdir" ;;
13557
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
13558
        esac
13559
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13560
          rm -f "$ac_dir/POTFILES"
13561
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13562
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13563
          POMAKEFILEDEPS="POTFILES.in"
13564
          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13565
          # on $ac_dir but don't depend on user-specified configuration
13566
          # parameters.
13567
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13568
            # The LINGUAS file contains the set of available languages.
13569
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
13570
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13571
            fi
13572
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13573
            # Hide the ALL_LINGUAS assigment from automake.
13574
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13575
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13576
          else
13577
            # The set of available languages was given in configure.in.
13578
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13579
          fi
13580
          case "$ac_given_srcdir" in
13581
            .) srcdirpre= ;;
13582
            *) srcdirpre='$(srcdir)/' ;;
13583
          esac
13584
          POFILES=
13585
          GMOFILES=
13586
          UPDATEPOFILES=
13587
          DUMMYPOFILES=
13588
          for lang in $ALL_LINGUAS; do
13589
            POFILES="$POFILES $srcdirpre$lang.po"
13590
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13591
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13592
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13593
          done
13594
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
13595
          # environment variable.
13596
          INST_LINGUAS=
13597
          if test -n "$ALL_LINGUAS"; then
13598
            for presentlang in $ALL_LINGUAS; do
13599
              useit=no
13600
              if test "%UNSET%" != "$LINGUAS"; then
13601
                desiredlanguages="$LINGUAS"
13602
              else
13603
                desiredlanguages="$ALL_LINGUAS"
13604
              fi
13605
              for desiredlang in $desiredlanguages; do
13606
                # Use the presentlang catalog if desiredlang is
13607
                #   a. equal to presentlang, or
13608
                #   b. a variant of presentlang (because in this case,
13609
                #      presentlang can be used as a fallback for messages
13610
                #      which are not translated in the desiredlang catalog).
13611
                case "$desiredlang" in
13612
                  "$presentlang"*) useit=yes;;
13613
                esac
13614
              done
13615
              if test $useit = yes; then
13616
                INST_LINGUAS="$INST_LINGUAS $presentlang"
13617
              fi
13618
            done
13619
          fi
13620
          CATALOGS=
13621
          if test -n "$INST_LINGUAS"; then
13622
            for lang in $INST_LINGUAS; do
13623
              CATALOGS="$CATALOGS $lang.gmo"
13624
            done
13625
          fi
13626
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13627
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13628
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13629
            if test -f "$f"; then
13630
              case "$f" in
13631
                *.orig | *.bak | *~) ;;
13632
                *) cat "$f" >> "$ac_dir/Makefile" ;;
13633
              esac
13634
            fi
13635
          done
13636
        fi
13637
        ;;
13638
      esac
13639
    done ;;
13640
  esac
13641
done
13642
_ACEOF
13643
 
13644
cat >>$CONFIG_STATUS <<\_ACEOF
13645
 
13646
{ (exit 0); exit 0; }
13647
_ACEOF
13648
chmod +x $CONFIG_STATUS
13649
ac_clean_files=$ac_clean_files_save
13650
 
13651
 
13652
# configure is writing to config.log, and then calls config.status.
13653
# config.status does its own redirection, appending to config.log.
13654
# Unfortunately, on DOS this fails, as config.log is still kept open
13655
# by configure, so config.status won't be able to write to it; its
13656
# output is simply discarded.  So we exec the FD to /dev/null,
13657
# effectively closing config.log, so it can be properly (re)opened and
13658
# appended to by config.status.  When coming back to configure, we
13659
# need to make the FD available again.
13660
if test "$no_create" != yes; then
13661
  ac_cs_success=:
13662
  ac_config_status_args=
13663
  test "$silent" = yes &&
13664
    ac_config_status_args="$ac_config_status_args --quiet"
13665
  exec 5>/dev/null
13666
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13667
  exec 5>>config.log
13668
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13669
  # would make configure fail if this is the last instruction.
13670
  $ac_cs_success || { (exit 1); exit 1; }
13671
fi
13672
 

powered by: WebSVN 2.1.0

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