Switch to unified view

a b/unac/configure
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.53.
4
#
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6
# Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
10
# Find the correct PATH separator.  Usually this is `:', but
11
# DJGPP uses `;' like DOS.
12
if test "X${PATH_SEPARATOR+set}" != Xset; then
13
  UNAME=${UNAME-`uname 2>/dev/null`}
14
  case X$UNAME in
15
    *-DOS) lt_cv_sys_path_separator=';' ;;
16
    *)     lt_cv_sys_path_separator=':' ;;
17
  esac
18
  PATH_SEPARATOR=$lt_cv_sys_path_separator
19
fi
20
21
22
# Check that we are running under the correct shell.
23
SHELL=${CONFIG_SHELL-/bin/sh}
24
25
case X$ECHO in
26
X*--fallback-echo)
27
  # Remove one level of quotation (which was required for Make).
28
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
29
  ;;
30
esac
31
32
echo=${ECHO-echo}
33
if test "X$1" = X--no-reexec; then
34
  # Discard the --no-reexec flag, and continue.
35
  shift
36
elif test "X$1" = X--fallback-echo; then
37
  # Avoid inline document here, it may be left over
38
  :
39
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40
  # Yippee, $echo works!
41
  :
42
else
43
  # Restart under the correct shell.
44
  exec $SHELL "$0" --no-reexec ${1+"$@"}
45
fi
46
47
if test "X$1" = X--fallback-echo; then
48
  # used as fallback echo
49
  shift
50
  cat <<EOF
51
52
EOF
53
  exit 0
54
fi
55
56
# The HP-UX ksh and POSIX shell print the target directory to stdout
57
# if CDPATH is set.
58
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59
60
if test -z "$ECHO"; then
61
if test "X${echo_test_string+set}" != Xset; then
62
# find a string as large as possible, as long as the shell can cope with it
63
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
64
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
65
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
66
       echo_test_string="`eval $cmd`" &&
67
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
68
    then
69
      break
70
    fi
71
  done
72
fi
73
74
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
75
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
76
   test "X$echo_testing_string" = "X$echo_test_string"; then
77
  :
78
else
79
  # The Solaris, AIX, and Digital Unix default echo programs unquote
80
  # backslashes.  This makes it impossible to quote backslashes using
81
  #   echo "$something" | sed 's/\\/\\\\/g'
82
  #
83
  # So, first we look for a working echo in the user's PATH.
84
85
  IFS="${IFS=     }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
86
  for dir in $PATH /usr/ucb; do
87
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
88
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
89
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
90
       test "X$echo_testing_string" = "X$echo_test_string"; then
91
      echo="$dir/echo"
92
      break
93
    fi
94
  done
95
  IFS="$save_ifs"
96
97
  if test "X$echo" = Xecho; then
98
    # We didn't find a better echo, so look for alternatives.
99
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
100
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
101
       test "X$echo_testing_string" = "X$echo_test_string"; then
102
      # This shell has a builtin print -r that does the trick.
103
      echo='print -r'
104
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
105
   test "X$CONFIG_SHELL" != X/bin/ksh; then
106
      # If we have ksh, try running configure again with it.
107
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
108
      export ORIGINAL_CONFIG_SHELL
109
      CONFIG_SHELL=/bin/ksh
110
      export CONFIG_SHELL
111
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
112
    else
113
      # Try using printf.
114
      echo='printf %s\n'
115
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
116
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
117
   test "X$echo_testing_string" = "X$echo_test_string"; then
118
  # Cool, printf works
119
  :
120
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121
     test "X$echo_testing_string" = 'X\t' &&
122
     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123
     test "X$echo_testing_string" = "X$echo_test_string"; then
124
  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125
  export CONFIG_SHELL
126
  SHELL="$CONFIG_SHELL"
127
  export SHELL
128
  echo="$CONFIG_SHELL $0 --fallback-echo"
129
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
130
     test "X$echo_testing_string" = 'X\t' &&
131
     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
132
     test "X$echo_testing_string" = "X$echo_test_string"; then
133
  echo="$CONFIG_SHELL $0 --fallback-echo"
134
      else
135
  # maybe with a smaller string...
136
  prev=:
137
138
  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
139
    if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
140
    then
141
      break
142
    fi
143
    prev="$cmd"
144
  done
145
146
  if test "$prev" != 'sed 50q "$0"'; then
147
    echo_test_string=`eval $prev`
148
    export echo_test_string
149
    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150
  else
151
    # Oops.  We lost completely, so just stick with echo.
152
    echo=echo
153
  fi
154
      fi
155
    fi
156
  fi
157
fi
158
fi
159
160
# Copy echo and quote the copy suitably for passing to libtool from
161
# the Makefile, instead of quoting the original, which is used later.
162
ECHO=$echo
163
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
164
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
165
fi
166
167
168
169
if expr a : '\(a\)' >/dev/null 2>&1; then
170
  as_expr=expr
171
else
172
  as_expr=false
173
fi
174
175
176
## --------------------- ##
177
## M4sh Initialization.  ##
178
## --------------------- ##
179
180
# Be Bourne compatible
181
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
182
  emulate sh
183
  NULLCMD=:
184
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
185
  set -o posix
186
fi
187
188
# NLS nuisances.
189
# Support unset when possible.
190
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
191
  as_unset=unset
192
else
193
  as_unset=false
194
fi
195
196
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
197
    { $as_unset LANG || test "${LANG+set}" != set; } ||
198
      { LANG=C; export LANG; }
199
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
200
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
201
      { LC_ALL=C; export LC_ALL; }
202
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
203
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
204
      { LC_TIME=C; export LC_TIME; }
205
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
206
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
207
      { LC_CTYPE=C; export LC_CTYPE; }
208
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
209
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
210
      { LANGUAGE=C; export LANGUAGE; }
211
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
212
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
213
      { LC_COLLATE=C; export LC_COLLATE; }
214
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
215
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
216
      { LC_NUMERIC=C; export LC_NUMERIC; }
217
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
218
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
219
      { LC_MESSAGES=C; export LC_MESSAGES; }
220
221
222
# Name of the executable.
223
as_me=`(basename "$0") 2>/dev/null ||
224
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
225
   X"$0" : 'X\(//\)$' \| \
226
   X"$0" : 'X\(/\)$' \| \
227
   .     : '\(.\)' 2>/dev/null ||
228
echo X/"$0" |
229
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
230
        /^X\/\(\/\/\)$/{ s//\1/; q; }
231
        /^X\/\(\/\).*/{ s//\1/; q; }
232
        s/.*/./; q'`
233
234
# PATH needs CR, and LINENO needs CR and PATH.
235
# Avoid depending upon Character Ranges.
236
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
237
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
238
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
239
as_cr_digits='0123456789'
240
as_cr_alnum=$as_cr_Letters$as_cr_digits
241
242
# The user is always right.
243
if test "${PATH_SEPARATOR+set}" != set; then
244
  echo "#! /bin/sh" >conftest.sh
245
  echo  "exit 0"   >>conftest.sh
246
  chmod +x conftest.sh
247
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
248
    PATH_SEPARATOR=';'
249
  else
250
    PATH_SEPARATOR=:
251
  fi
252
  rm -f conftest.sh
253
fi
254
255
256
  as_lineno_1=$LINENO
257
  as_lineno_2=$LINENO
258
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
259
  test "x$as_lineno_1" != "x$as_lineno_2" &&
260
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
261
  # Find who we are.  Look in the path if we contain no path at all
262
  # relative or not.
263
  case $0 in
264
    *[\\/]* ) as_myself=$0 ;;
265
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
266
for as_dir in $PATH
267
do
268
  IFS=$as_save_IFS
269
  test -z "$as_dir" && as_dir=.
270
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
271
done
272
273
       ;;
274
  esac
275
  # We did not find ourselves, most probably we were run as `sh COMMAND'
276
  # in which case we are not to be found in the path.
277
  if test "x$as_myself" = x; then
278
    as_myself=$0
279
  fi
280
  if test ! -f "$as_myself"; then
281
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
282
   { (exit 1); exit 1; }; }
283
  fi
284
  case $CONFIG_SHELL in
285
  '')
286
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
288
do
289
  IFS=$as_save_IFS
290
  test -z "$as_dir" && as_dir=.
291
  for as_base in sh bash ksh sh5; do
292
   case $as_dir in
293
   /*)
294
     if ("$as_dir/$as_base" -c '
295
  as_lineno_1=$LINENO
296
  as_lineno_2=$LINENO
297
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
298
  test "x$as_lineno_1" != "x$as_lineno_2" &&
299
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
300
       CONFIG_SHELL=$as_dir/$as_base
301
       export CONFIG_SHELL
302
       exec "$CONFIG_SHELL" "$0" ${1+"$@"}
303
     fi;;
304
   esac
305
       done
306
done
307
;;
308
  esac
309
310
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
311
  # uniformly replaced by the line number.  The first 'sed' inserts a
312
  # line-number line before each line; the second 'sed' does the real
313
  # work.  The second script uses 'N' to pair each line-number line
314
  # with the numbered line, and appends trailing '-' during
315
  # substitution so that $LINENO is not a special case at line end.
316
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
317
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
318
  sed '=' <$as_myself |
319
    sed '
320
      N
321
      s,$,-,
322
      : loop
323
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
324
      t loop
325
      s,-$,,
326
      s,^['$as_cr_digits']*\n,,
327
    ' >$as_me.lineno &&
328
  chmod +x $as_me.lineno ||
329
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
330
   { (exit 1); exit 1; }; }
331
332
  # Don't try to exec as it changes $[0], causing all sort of problems
333
  # (the dirname of $[0] is not the place where we might find the
334
  # original and so on.  Autoconf is especially sensible to this).
335
  . ./$as_me.lineno
336
  # Exit status is that of the last command.
337
  exit
338
}
339
340
341
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
342
  *c*,-n*) ECHO_N= ECHO_C='
343
' ECHO_T='    ' ;;
344
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
345
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
346
esac
347
348
if expr a : '\(a\)' >/dev/null 2>&1; then
349
  as_expr=expr
350
else
351
  as_expr=false
352
fi
353
354
rm -f conf$$ conf$$.exe conf$$.file
355
echo >conf$$.file
356
if ln -s conf$$.file conf$$ 2>/dev/null; then
357
  # We could just check for DJGPP; but this test a) works b) is more generic
358
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
359
  if test -f conf$$.exe; then
360
    # Don't use ln at all; we don't have any links
361
    as_ln_s='cp -p'
362
  else
363
    as_ln_s='ln -s'
364
  fi
365
elif ln conf$$.file conf$$ 2>/dev/null; then
366
  as_ln_s=ln
367
else
368
  as_ln_s='cp -p'
369
fi
370
rm -f conf$$ conf$$.exe conf$$.file
371
372
as_executable_p="test -f"
373
374
# Sed expression to map a string onto a valid CPP name.
375
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
376
377
# Sed expression to map a string onto a valid variable name.
378
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
379
380
381
# IFS
382
# We need space, tab and new line, in precisely that order.
383
as_nl='
384
'
385
IFS="     $as_nl"
386
387
# CDPATH.
388
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
389
390
391
# Name of the host.
392
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
393
# so uname gets run too.
394
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
395
396
exec 6>&1
397
398
#
399
# Initializations.
400
#
401
ac_default_prefix=/usr/local
402
cross_compiling=no
403
subdirs=
404
MFLAGS=
405
MAKEFLAGS=
406
SHELL=${CONFIG_SHELL-/bin/sh}
407
408
# Maximum number of lines to put in a shell here document.
409
# This variable seems obsolete.  It should probably be removed, and
410
# only ac_max_sed_lines should be used.
411
: ${ac_max_here_lines=38}
412
413
# Identity of this package.
414
PACKAGE_NAME=
415
PACKAGE_TARNAME=
416
PACKAGE_VERSION=
417
PACKAGE_STRING=
418
PACKAGE_BUGREPORT=
419
420
ac_unique_file="config.h.in"
421
# Factoring default headers for most tests.
422
ac_includes_default="\
423
#include <stdio.h>
424
#if HAVE_SYS_TYPES_H
425
# include <sys/types.h>
426
#endif
427
#if HAVE_SYS_STAT_H
428
# include <sys/stat.h>
429
#endif
430
#if STDC_HEADERS
431
# include <stdlib.h>
432
# include <stddef.h>
433
#else
434
# if HAVE_STDLIB_H
435
#  include <stdlib.h>
436
# endif
437
#endif
438
#if HAVE_STRING_H
439
# if !STDC_HEADERS && HAVE_MEMORY_H
440
#  include <memory.h>
441
# endif
442
# include <string.h>
443
#endif
444
#if HAVE_STRINGS_H
445
# include <strings.h>
446
#endif
447
#if HAVE_INTTYPES_H
448
# include <inttypes.h>
449
#else
450
# if HAVE_STDINT_H
451
#  include <stdint.h>
452
# endif
453
#endif
454
#if HAVE_UNISTD_H
455
# include <unistd.h>
456
#endif"
457
458
459
# Initialize some variables set by options.
460
ac_init_help=
461
ac_init_version=false
462
# The variables have the same names as the options, with
463
# dashes changed to underlines.
464
cache_file=/dev/null
465
exec_prefix=NONE
466
no_create=
467
no_recursion=
468
prefix=NONE
469
program_prefix=NONE
470
program_suffix=NONE
471
program_transform_name=s,x,x,
472
silent=
473
site=
474
srcdir=
475
verbose=
476
x_includes=NONE
477
x_libraries=NONE
478
479
# Installation directory options.
480
# These are left unexpanded so users can "make install exec_prefix=/foo"
481
# and all the variables that are supposed to be based on exec_prefix
482
# by default will actually change.
483
# Use braces instead of parens because sh, perl, etc. also accept them.
484
bindir='${exec_prefix}/bin'
485
sbindir='${exec_prefix}/sbin'
486
libexecdir='${exec_prefix}/libexec'
487
datadir='${prefix}/share'
488
sysconfdir='${prefix}/etc'
489
sharedstatedir='${prefix}/com'
490
localstatedir='${prefix}/var'
491
libdir='${exec_prefix}/lib'
492
includedir='${prefix}/include'
493
oldincludedir='/usr/include'
494
infodir='${prefix}/info'
495
mandir='${prefix}/man'
496
497
ac_prev=
498
for ac_option
499
do
500
  # If the previous option needs an argument, assign it.
501
  if test -n "$ac_prev"; then
502
    eval "$ac_prev=\$ac_option"
503
    ac_prev=
504
    continue
505
  fi
506
507
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
508
509
  # Accept the important Cygnus configure options, so we can diagnose typos.
510
511
  case $ac_option in
512
513
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
514
    ac_prev=bindir ;;
515
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
516
    bindir=$ac_optarg ;;
517
518
  -build | --build | --buil | --bui | --bu)
519
    ac_prev=build_alias ;;
520
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
521
    build_alias=$ac_optarg ;;
522
523
  -cache-file | --cache-file | --cache-fil | --cache-fi \
524
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
525
    ac_prev=cache_file ;;
526
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
527
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
528
    cache_file=$ac_optarg ;;
529
530
  --config-cache | -C)
531
    cache_file=config.cache ;;
532
533
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
534
    ac_prev=datadir ;;
535
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
536
  | --da=*)
537
    datadir=$ac_optarg ;;
538
539
  -disable-* | --disable-*)
540
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
541
    # Reject names that are not valid shell variable names.
542
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
543
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
544
   { (exit 1); exit 1; }; }
545
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
546
    eval "enable_$ac_feature=no" ;;
547
548
  -enable-* | --enable-*)
549
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
550
    # Reject names that are not valid shell variable names.
551
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553
   { (exit 1); exit 1; }; }
554
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555
    case $ac_option in
556
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557
      *) ac_optarg=yes ;;
558
    esac
559
    eval "enable_$ac_feature='$ac_optarg'" ;;
560
561
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
562
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
563
  | --exec | --exe | --ex)
564
    ac_prev=exec_prefix ;;
565
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
566
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
567
  | --exec=* | --exe=* | --ex=*)
568
    exec_prefix=$ac_optarg ;;
569
570
  -gas | --gas | --ga | --g)
571
    # Obsolete; use --with-gas.
572
    with_gas=yes ;;
573
574
  -help | --help | --hel | --he | -h)
575
    ac_init_help=long ;;
576
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
577
    ac_init_help=recursive ;;
578
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
579
    ac_init_help=short ;;
580
581
  -host | --host | --hos | --ho)
582
    ac_prev=host_alias ;;
583
  -host=* | --host=* | --hos=* | --ho=*)
584
    host_alias=$ac_optarg ;;
585
586
  -includedir | --includedir | --includedi | --included | --include \
587
  | --includ | --inclu | --incl | --inc)
588
    ac_prev=includedir ;;
589
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
590
  | --includ=* | --inclu=* | --incl=* | --inc=*)
591
    includedir=$ac_optarg ;;
592
593
  -infodir | --infodir | --infodi | --infod | --info | --inf)
594
    ac_prev=infodir ;;
595
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
596
    infodir=$ac_optarg ;;
597
598
  -libdir | --libdir | --libdi | --libd)
599
    ac_prev=libdir ;;
600
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
601
    libdir=$ac_optarg ;;
602
603
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
604
  | --libexe | --libex | --libe)
605
    ac_prev=libexecdir ;;
606
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
607
  | --libexe=* | --libex=* | --libe=*)
608
    libexecdir=$ac_optarg ;;
609
610
  -localstatedir | --localstatedir | --localstatedi | --localstated \
611
  | --localstate | --localstat | --localsta | --localst \
612
  | --locals | --local | --loca | --loc | --lo)
613
    ac_prev=localstatedir ;;
614
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
615
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
616
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
617
    localstatedir=$ac_optarg ;;
618
619
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
620
    ac_prev=mandir ;;
621
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
622
    mandir=$ac_optarg ;;
623
624
  -nfp | --nfp | --nf)
625
    # Obsolete; use --without-fp.
626
    with_fp=no ;;
627
628
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
629
  | --no-cr | --no-c | -n)
630
    no_create=yes ;;
631
632
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
633
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
634
    no_recursion=yes ;;
635
636
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
637
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
638
  | --oldin | --oldi | --old | --ol | --o)
639
    ac_prev=oldincludedir ;;
640
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
641
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
642
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
643
    oldincludedir=$ac_optarg ;;
644
645
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
646
    ac_prev=prefix ;;
647
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
648
    prefix=$ac_optarg ;;
649
650
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
651
  | --program-pre | --program-pr | --program-p)
652
    ac_prev=program_prefix ;;
653
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
654
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
655
    program_prefix=$ac_optarg ;;
656
657
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
658
  | --program-suf | --program-su | --program-s)
659
    ac_prev=program_suffix ;;
660
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
661
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
662
    program_suffix=$ac_optarg ;;
663
664
  -program-transform-name | --program-transform-name \
665
  | --program-transform-nam | --program-transform-na \
666
  | --program-transform-n | --program-transform- \
667
  | --program-transform | --program-transfor \
668
  | --program-transfo | --program-transf \
669
  | --program-trans | --program-tran \
670
  | --progr-tra | --program-tr | --program-t)
671
    ac_prev=program_transform_name ;;
672
  -program-transform-name=* | --program-transform-name=* \
673
  | --program-transform-nam=* | --program-transform-na=* \
674
  | --program-transform-n=* | --program-transform-=* \
675
  | --program-transform=* | --program-transfor=* \
676
  | --program-transfo=* | --program-transf=* \
677
  | --program-trans=* | --program-tran=* \
678
  | --progr-tra=* | --program-tr=* | --program-t=*)
679
    program_transform_name=$ac_optarg ;;
680
681
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
682
  | -silent | --silent | --silen | --sile | --sil)
683
    silent=yes ;;
684
685
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
686
    ac_prev=sbindir ;;
687
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
688
  | --sbi=* | --sb=*)
689
    sbindir=$ac_optarg ;;
690
691
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
692
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
693
  | --sharedst | --shareds | --shared | --share | --shar \
694
  | --sha | --sh)
695
    ac_prev=sharedstatedir ;;
696
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
697
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
698
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
699
  | --sha=* | --sh=*)
700
    sharedstatedir=$ac_optarg ;;
701
702
  -site | --site | --sit)
703
    ac_prev=site ;;
704
  -site=* | --site=* | --sit=*)
705
    site=$ac_optarg ;;
706
707
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
708
    ac_prev=srcdir ;;
709
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
710
    srcdir=$ac_optarg ;;
711
712
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
713
  | --syscon | --sysco | --sysc | --sys | --sy)
714
    ac_prev=sysconfdir ;;
715
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
716
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
717
    sysconfdir=$ac_optarg ;;
718
719
  -target | --target | --targe | --targ | --tar | --ta | --t)
720
    ac_prev=target_alias ;;
721
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
722
    target_alias=$ac_optarg ;;
723
724
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
725
    verbose=yes ;;
726
727
  -version | --version | --versio | --versi | --vers | -V)
728
    ac_init_version=: ;;
729
730
  -with-* | --with-*)
731
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
732
    # Reject names that are not valid shell variable names.
733
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
734
      { echo "$as_me: error: invalid package name: $ac_package" >&2
735
   { (exit 1); exit 1; }; }
736
    ac_package=`echo $ac_package| sed 's/-/_/g'`
737
    case $ac_option in
738
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
739
      *) ac_optarg=yes ;;
740
    esac
741
    eval "with_$ac_package='$ac_optarg'" ;;
742
743
  -without-* | --without-*)
744
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
745
    # Reject names that are not valid shell variable names.
746
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747
      { echo "$as_me: error: invalid package name: $ac_package" >&2
748
   { (exit 1); exit 1; }; }
749
    ac_package=`echo $ac_package | sed 's/-/_/g'`
750
    eval "with_$ac_package=no" ;;
751
752
  --x)
753
    # Obsolete; use --with-x.
754
    with_x=yes ;;
755
756
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
757
  | --x-incl | --x-inc | --x-in | --x-i)
758
    ac_prev=x_includes ;;
759
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
760
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
761
    x_includes=$ac_optarg ;;
762
763
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
764
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
765
    ac_prev=x_libraries ;;
766
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
767
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
768
    x_libraries=$ac_optarg ;;
769
770
  -*) { echo "$as_me: error: unrecognized option: $ac_option
771
Try \`$0 --help' for more information." >&2
772
   { (exit 1); exit 1; }; }
773
    ;;
774
775
  *=*)
776
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
777
    # Reject names that are not valid shell variable names.
778
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
779
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
780
   { (exit 1); exit 1; }; }
781
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
782
    eval "$ac_envvar='$ac_optarg'"
783
    export $ac_envvar ;;
784
785
  *)
786
    # FIXME: should be removed in autoconf 3.0.
787
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
788
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
789
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
790
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
791
    ;;
792
793
  esac
794
done
795
796
if test -n "$ac_prev"; then
797
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
798
  { echo "$as_me: error: missing argument to $ac_option" >&2
799
   { (exit 1); exit 1; }; }
800
fi
801
802
# Be sure to have absolute paths.
803
for ac_var in exec_prefix prefix
804
do
805
  eval ac_val=$`echo $ac_var`
806
  case $ac_val in
807
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
808
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
809
   { (exit 1); exit 1; }; };;
810
  esac
811
done
812
813
# Be sure to have absolute paths.
814
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
815
              localstatedir libdir includedir oldincludedir infodir mandir
816
do
817
  eval ac_val=$`echo $ac_var`
818
  case $ac_val in
819
    [\\/$]* | ?:[\\/]* ) ;;
820
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821
   { (exit 1); exit 1; }; };;
822
  esac
823
done
824
825
# There might be people who depend on the old broken behavior: `$host'
826
# used to hold the argument of --host etc.
827
# FIXME: To remove some day.
828
build=$build_alias
829
host=$host_alias
830
target=$target_alias
831
832
# FIXME: To remove some day.
833
if test "x$host_alias" != x; then
834
  if test "x$build_alias" = x; then
835
    cross_compiling=maybe
836
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
837
    If a cross compiler is detected then cross compile mode will be used." >&2
838
  elif test "x$build_alias" != "x$host_alias"; then
839
    cross_compiling=yes
840
  fi
841
fi
842
843
ac_tool_prefix=
844
test -n "$host_alias" && ac_tool_prefix=$host_alias-
845
846
test "$silent" = yes && exec 6>/dev/null
847
848
849
# Find the source files, if location was not specified.
850
if test -z "$srcdir"; then
851
  ac_srcdir_defaulted=yes
852
  # Try the directory containing this script, then its parent.
853
  ac_confdir=`(dirname "$0") 2>/dev/null ||
854
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
855
         X"$0" : 'X\(//\)[^/]' \| \
856
         X"$0" : 'X\(//\)$' \| \
857
         X"$0" : 'X\(/\)' \| \
858
         .     : '\(.\)' 2>/dev/null ||
859
echo X"$0" |
860
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
861
        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
862
        /^X\(\/\/\)$/{ s//\1/; q; }
863
        /^X\(\/\).*/{ s//\1/; q; }
864
        s/.*/./; q'`
865
  srcdir=$ac_confdir
866
  if test ! -r $srcdir/$ac_unique_file; then
867
    srcdir=..
868
  fi
869
else
870
  ac_srcdir_defaulted=no
871
fi
872
if test ! -r $srcdir/$ac_unique_file; then
873
  if test "$ac_srcdir_defaulted" = yes; then
874
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
875
   { (exit 1); exit 1; }; }
876
  else
877
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
878
   { (exit 1); exit 1; }; }
879
  fi
880
fi
881
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
882
ac_env_build_alias_set=${build_alias+set}
883
ac_env_build_alias_value=$build_alias
884
ac_cv_env_build_alias_set=${build_alias+set}
885
ac_cv_env_build_alias_value=$build_alias
886
ac_env_host_alias_set=${host_alias+set}
887
ac_env_host_alias_value=$host_alias
888
ac_cv_env_host_alias_set=${host_alias+set}
889
ac_cv_env_host_alias_value=$host_alias
890
ac_env_target_alias_set=${target_alias+set}
891
ac_env_target_alias_value=$target_alias
892
ac_cv_env_target_alias_set=${target_alias+set}
893
ac_cv_env_target_alias_value=$target_alias
894
ac_env_CC_set=${CC+set}
895
ac_env_CC_value=$CC
896
ac_cv_env_CC_set=${CC+set}
897
ac_cv_env_CC_value=$CC
898
ac_env_CFLAGS_set=${CFLAGS+set}
899
ac_env_CFLAGS_value=$CFLAGS
900
ac_cv_env_CFLAGS_set=${CFLAGS+set}
901
ac_cv_env_CFLAGS_value=$CFLAGS
902
ac_env_LDFLAGS_set=${LDFLAGS+set}
903
ac_env_LDFLAGS_value=$LDFLAGS
904
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
905
ac_cv_env_LDFLAGS_value=$LDFLAGS
906
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907
ac_env_CPPFLAGS_value=$CPPFLAGS
908
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910
ac_env_CPP_set=${CPP+set}
911
ac_env_CPP_value=$CPP
912
ac_cv_env_CPP_set=${CPP+set}
913
ac_cv_env_CPP_value=$CPP
914
915
#
916
# Report the --help message.
917
#
918
if test "$ac_init_help" = "long"; then
919
  # Omit some internal or obsolete options to make the list less imposing.
920
  # This message is too long to be a string in the A/UX 3.1 sh.
921
  cat <<_ACEOF
922
\`configure' configures this package to adapt to many kinds of systems.
923
924
Usage: $0 [OPTION]... [VAR=VALUE]...
925
926
To assign environment variables (e.g., CC, CFLAGS...), specify them as
927
VAR=VALUE.  See below for descriptions of some of the useful variables.
928
929
Defaults for the options are specified in brackets.
930
931
Configuration:
932
  -h, --help              display this help and exit
933
      --help=short        display options specific to this package
934
      --help=recursive    display the short help of all the included packages
935
  -V, --version           display version information and exit
936
  -q, --quiet, --silent   do not print \`checking...' messages
937
      --cache-file=FILE   cache test results in FILE [disabled]
938
  -C, --config-cache      alias for \`--cache-file=config.cache'
939
  -n, --no-create         do not create output files
940
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
941
942
_ACEOF
943
944
  cat <<_ACEOF
945
Installation directories:
946
  --prefix=PREFIX         install architecture-independent files in PREFIX
947
                          [$ac_default_prefix]
948
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
949
                          [PREFIX]
950
951
By default, \`make install' will install all the files in
952
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
953
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
954
for instance \`--prefix=\$HOME'.
955
956
For better control, use the options below.
957
958
Fine tuning of the installation directories:
959
  --bindir=DIR           user executables [EPREFIX/bin]
960
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
961
  --libexecdir=DIR       program executables [EPREFIX/libexec]
962
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
963
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
964
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
965
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
966
  --libdir=DIR           object code libraries [EPREFIX/lib]
967
  --includedir=DIR       C header files [PREFIX/include]
968
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
969
  --infodir=DIR          info documentation [PREFIX/info]
970
  --mandir=DIR           man documentation [PREFIX/man]
971
_ACEOF
972
973
  cat <<\_ACEOF
974
975
Program names:
976
  --program-prefix=PREFIX            prepend PREFIX to installed program names
977
  --program-suffix=SUFFIX            append SUFFIX to installed program names
978
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
979
980
System types:
981
  --build=BUILD     configure for building on BUILD [guessed]
982
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
983
_ACEOF
984
fi
985
986
if test -n "$ac_init_help"; then
987
988
  cat <<\_ACEOF
989
990
Optional Features:
991
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
992
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
993
  --disable-dependency-tracking Speeds up one-time builds
994
  --enable-dependency-tracking  Do not reject slow dependency extractors
995
  --enable-shared=PKGS  build shared libraries default=yes
996
  --enable-static=PKGS  build static libraries default=yes
997
  --enable-fast-install=PKGS  optimize for fast installation default=yes
998
  --disable-libtool-lock  avoid locking (might break parallel builds)
999
  --enable-maintainer-mode enable make rules and dependencies not useful
1000
                          (and sometimes confusing) to the casual installer
1001
  --disable-rpath         do not hardcode runtime library paths
1002
1003
Optional Packages:
1004
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1005
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1006
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1007
  --with-pic              try to use only PIC/non-PIC objects default=use both
1008
  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1009
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1010
1011
Some influential environment variables:
1012
  CC          C compiler command
1013
  CFLAGS      C compiler flags
1014
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1015
              nonstandard directory <lib dir>
1016
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1017
              headers in a nonstandard directory <include dir>
1018
  CPP         C preprocessor
1019
1020
Use these variables to override the choices made by `configure' or to help
1021
it to find libraries and programs with nonstandard names/locations.
1022
1023
_ACEOF
1024
fi
1025
1026
if test "$ac_init_help" = "recursive"; then
1027
  # If there are subdirs, report their specific --help.
1028
  ac_popdir=`pwd`
1029
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1030
    test -d $ac_dir || continue
1031
    ac_builddir=.
1032
1033
if test "$ac_dir" != .; then
1034
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1035
  # A "../" for each directory in $ac_dir_suffix.
1036
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1037
else
1038
  ac_dir_suffix= ac_top_builddir=
1039
fi
1040
1041
case $srcdir in
1042
  .)  # No --srcdir option.  We are building in place.
1043
    ac_srcdir=.
1044
    if test -z "$ac_top_builddir"; then
1045
       ac_top_srcdir=.
1046
    else
1047
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1048
    fi ;;
1049
  [\\/]* | ?:[\\/]* )  # Absolute path.
1050
    ac_srcdir=$srcdir$ac_dir_suffix;
1051
    ac_top_srcdir=$srcdir ;;
1052
  *) # Relative path.
1053
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1054
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1055
esac
1056
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1057
# absolute.
1058
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1059
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1060
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1061
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1062
1063
    cd $ac_dir
1064
    # Check for guested configure; otherwise get Cygnus style configure.
1065
    if test -f $ac_srcdir/configure.gnu; then
1066
      echo
1067
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1068
    elif test -f $ac_srcdir/configure; then
1069
      echo
1070
      $SHELL $ac_srcdir/configure  --help=recursive
1071
    elif test -f $ac_srcdir/configure.ac ||
1072
           test -f $ac_srcdir/configure.in; then
1073
      echo
1074
      $ac_configure --help
1075
    else
1076
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1077
    fi
1078
    cd $ac_popdir
1079
  done
1080
fi
1081
1082
test -n "$ac_init_help" && exit 0
1083
if $ac_init_version; then
1084
  cat <<\_ACEOF
1085
1086
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1087
Free Software Foundation, Inc.
1088
This configure script is free software; the Free Software Foundation
1089
gives unlimited permission to copy, distribute and modify it.
1090
_ACEOF
1091
  exit 0
1092
fi
1093
exec 5>config.log
1094
cat >&5 <<_ACEOF
1095
This file contains any messages produced by compilers while
1096
running configure, to aid debugging if configure makes a mistake.
1097
1098
It was created by $as_me, which was
1099
generated by GNU Autoconf 2.53.  Invocation command line was
1100
1101
  $ $0 $@
1102
1103
_ACEOF
1104
{
1105
cat <<_ASUNAME
1106
## --------- ##
1107
## Platform. ##
1108
## --------- ##
1109
1110
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1111
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1112
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1113
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1114
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1115
1116
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1117
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1118
1119
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1120
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1121
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1122
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1123
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1124
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1125
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1126
1127
_ASUNAME
1128
1129
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1130
for as_dir in $PATH
1131
do
1132
  IFS=$as_save_IFS
1133
  test -z "$as_dir" && as_dir=.
1134
  echo "PATH: $as_dir"
1135
done
1136
1137
} >&5
1138
1139
cat >&5 <<_ACEOF
1140
1141
1142
## ----------- ##
1143
## Core tests. ##
1144
## ----------- ##
1145
1146
_ACEOF
1147
1148
1149
# Keep a trace of the command line.
1150
# Strip out --no-create and --no-recursion so they do not pile up.
1151
# Also quote any args containing shell meta-characters.
1152
ac_configure_args=
1153
ac_sep=
1154
for ac_arg
1155
do
1156
  case $ac_arg in
1157
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158
  | --no-cr | --no-c | -n ) continue ;;
1159
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161
    continue ;;
1162
  *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1163
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1164
  esac
1165
  case " $ac_configure_args " in
1166
    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1167
    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1168
       ac_sep=" " ;;
1169
  esac
1170
  # Get rid of the leading space.
1171
done
1172
1173
# When interrupted or exit'd, cleanup temporary files, and complete
1174
# config.log.  We remove comments because anyway the quotes in there
1175
# would cause problems or look ugly.
1176
# WARNING: Be sure not to use single quotes in there, as some shells,
1177
# such as our DU 5.0 friend, will then `close' the trap.
1178
trap 'exit_status=$?
1179
  # Save into config.log some information that might help in debugging.
1180
  {
1181
    echo
1182
    cat <<\_ASBOX
1183
## ---------------- ##
1184
## Cache variables. ##
1185
## ---------------- ##
1186
_ASBOX
1187
    echo
1188
    # The following way of writing the cache mishandles newlines in values,
1189
{
1190
  (set) 2>&1 |
1191
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1192
    *ac_space=\ *)
1193
      sed -n \
1194
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1195
        s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1196
      ;;
1197
    *)
1198
      sed -n \
1199
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1200
      ;;
1201
    esac;
1202
}
1203
    echo
1204
    if test -s confdefs.h; then
1205
      cat <<\_ASBOX
1206
## ----------- ##
1207
## confdefs.h. ##
1208
## ----------- ##
1209
_ASBOX
1210
      echo
1211
      sed "/^$/d" confdefs.h
1212
      echo
1213
    fi
1214
    test "$ac_signal" != 0 &&
1215
      echo "$as_me: caught signal $ac_signal"
1216
    echo "$as_me: exit $exit_status"
1217
  } >&5
1218
  rm -f core core.* *.core &&
1219
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1220
    exit $exit_status
1221
     ' 0
1222
for ac_signal in 1 2 13 15; do
1223
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1224
done
1225
ac_signal=0
1226
1227
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1228
rm -rf conftest* confdefs.h
1229
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1230
echo >confdefs.h
1231
1232
# Predefined preprocessor variables.
1233
1234
cat >>confdefs.h <<_ACEOF
1235
#define PACKAGE_NAME "$PACKAGE_NAME"
1236
_ACEOF
1237
1238
1239
cat >>confdefs.h <<_ACEOF
1240
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1241
_ACEOF
1242
1243
1244
cat >>confdefs.h <<_ACEOF
1245
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1246
_ACEOF
1247
1248
1249
cat >>confdefs.h <<_ACEOF
1250
#define PACKAGE_STRING "$PACKAGE_STRING"
1251
_ACEOF
1252
1253
1254
cat >>confdefs.h <<_ACEOF
1255
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1256
_ACEOF
1257
1258
1259
# Let the site file select an alternate cache file if it wants to.
1260
# Prefer explicitly selected file to automatically selected ones.
1261
if test -z "$CONFIG_SITE"; then
1262
  if test "x$prefix" != xNONE; then
1263
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1264
  else
1265
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1266
  fi
1267
fi
1268
for ac_site_file in $CONFIG_SITE; do
1269
  if test -r "$ac_site_file"; then
1270
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1271
echo "$as_me: loading site script $ac_site_file" >&6;}
1272
    sed 's/^/| /' "$ac_site_file" >&5
1273
    . "$ac_site_file"
1274
  fi
1275
done
1276
1277
if test -r "$cache_file"; then
1278
  # Some versions of bash will fail to source /dev/null (special
1279
  # files actually), so we avoid doing that.
1280
  if test -f "$cache_file"; then
1281
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1282
echo "$as_me: loading cache $cache_file" >&6;}
1283
    case $cache_file in
1284
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1285
      *)                      . ./$cache_file;;
1286
    esac
1287
  fi
1288
else
1289
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1290
echo "$as_me: creating cache $cache_file" >&6;}
1291
  >$cache_file
1292
fi
1293
1294
# Check that the precious variables saved in the cache have kept the same
1295
# value.
1296
ac_cache_corrupted=false
1297
for ac_var in `(set) 2>&1 |
1298
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1299
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1300
  eval ac_new_set=\$ac_env_${ac_var}_set
1301
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1302
  eval ac_new_val="\$ac_env_${ac_var}_value"
1303
  case $ac_old_set,$ac_new_set in
1304
    set,)
1305
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1306
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1307
      ac_cache_corrupted=: ;;
1308
    ,set)
1309
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1310
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1311
      ac_cache_corrupted=: ;;
1312
    ,);;
1313
    *)
1314
      if test "x$ac_old_val" != "x$ac_new_val"; then
1315
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1316
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1317
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1318
echo "$as_me:   former value:  $ac_old_val" >&2;}
1319
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1320
echo "$as_me:   current value: $ac_new_val" >&2;}
1321
        ac_cache_corrupted=:
1322
      fi;;
1323
  esac
1324
  # Pass precious variables to config.status.
1325
  if test "$ac_new_set" = set; then
1326
    case $ac_new_val in
1327
    *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1328
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1329
    *) ac_arg=$ac_var=$ac_new_val ;;
1330
    esac
1331
    case " $ac_configure_args " in
1332
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1333
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1334
    esac
1335
  fi
1336
done
1337
if $ac_cache_corrupted; then
1338
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1339
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1340
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1341
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1342
   { (exit 1); exit 1; }; }
1343
fi
1344
1345
ac_ext=c
1346
ac_cpp='$CPP $CPPFLAGS'
1347
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1348
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1349
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
VERSION=`cat ${srcdir}/.version`
1369
MAJOR_VERSION=`expr $VERSION : '\([0-9][0-9]*\)'`
1370
1371
MINOR_VERSION=`expr $VERSION : '[0-9][0-9]*\.\([0-9][0-9]*\)'`
1372
1373
MICRO_VERSION=`expr $VERSION : '[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)'`
1374
1375
ac_aux_dir=
1376
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1377
  if test -f $ac_dir/install-sh; then
1378
    ac_aux_dir=$ac_dir
1379
    ac_install_sh="$ac_aux_dir/install-sh -c"
1380
    break
1381
  elif test -f $ac_dir/install.sh; then
1382
    ac_aux_dir=$ac_dir
1383
    ac_install_sh="$ac_aux_dir/install.sh -c"
1384
    break
1385
  elif test -f $ac_dir/shtool; then
1386
    ac_aux_dir=$ac_dir
1387
    ac_install_sh="$ac_aux_dir/shtool install -c"
1388
    break
1389
  fi
1390
done
1391
if test -z "$ac_aux_dir"; then
1392
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1393
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1394
   { (exit 1); exit 1; }; }
1395
fi
1396
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1397
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1398
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1399
1400
# Find a good install program.  We prefer a C program (faster),
1401
# so one script is as good as another.  But avoid the broken or
1402
# incompatible versions:
1403
# SysV /etc/install, /usr/sbin/install
1404
# SunOS /usr/etc/install
1405
# IRIX /sbin/install
1406
# AIX /bin/install
1407
# AmigaOS /C/install, which installs bootblocks on floppy discs
1408
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1409
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1410
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1411
# ./install, which can be erroneously created by make from ./install.sh.
1412
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1413
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1414
if test -z "$INSTALL"; then
1415
if test "${ac_cv_path_install+set}" = set; then
1416
  echo $ECHO_N "(cached) $ECHO_C" >&6
1417
else
1418
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419
for as_dir in $PATH
1420
do
1421
  IFS=$as_save_IFS
1422
  test -z "$as_dir" && as_dir=.
1423
  # Account for people who put trailing slashes in PATH elements.
1424
case $as_dir/ in
1425
  ./ | .// | /cC/* | \
1426
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1427
  /usr/ucb/* ) ;;
1428
  *)
1429
    # OSF1 and SCO ODT 3.0 have their own names for install.
1430
    # Don't use installbsd from OSF since it installs stuff as root
1431
    # by default.
1432
    for ac_prog in ginstall scoinst install; do
1433
      for ac_exec_ext in '' $ac_executable_extensions; do
1434
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1435
          if test $ac_prog = install &&
1436
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1437
            # AIX install.  It has an incompatible calling convention.
1438
            :
1439
          elif test $ac_prog = install &&
1440
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1441
            # program-specific install script used by HP pwplus--don't use.
1442
            :
1443
          else
1444
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1445
            break 3
1446
          fi
1447
        fi
1448
      done
1449
    done
1450
    ;;
1451
esac
1452
done
1453
1454
1455
fi
1456
  if test "${ac_cv_path_install+set}" = set; then
1457
    INSTALL=$ac_cv_path_install
1458
  else
1459
    # As a last resort, use the slow shell script.  We don't cache a
1460
    # path for INSTALL within a source directory, because that will
1461
    # break other packages using the cache if that directory is
1462
    # removed, or if the path is relative.
1463
    INSTALL=$ac_install_sh
1464
  fi
1465
fi
1466
echo "$as_me:$LINENO: result: $INSTALL" >&5
1467
echo "${ECHO_T}$INSTALL" >&6
1468
1469
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1470
# It thinks the first close brace ends the variable substitution.
1471
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1472
1473
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1474
1475
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1476
1477
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1478
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1479
# Just in case
1480
sleep 1
1481
echo timestamp > conftest.file
1482
# Do `set' in a subshell so we don't clobber the current shell's
1483
# arguments.  Must try -L first in case configure is actually a
1484
# symlink; some systems play weird games with the mod time of symlinks
1485
# (eg FreeBSD returns the mod time of the symlink's containing
1486
# directory).
1487
if (
1488
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1489
   if test "$*" = "X"; then
1490
      # -L didn't work.
1491
      set X `ls -t $srcdir/configure conftest.file`
1492
   fi
1493
   rm -f conftest.file
1494
   if test "$*" != "X $srcdir/configure conftest.file" \
1495
      && test "$*" != "X conftest.file $srcdir/configure"; then
1496
1497
      # If neither matched, then we have a broken ls.  This can happen
1498
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1499
      # broken ls alias from the environment.  This has actually
1500
      # happened.  Such a system could not be considered "sane".
1501
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1502
alias in your environment" >&5
1503
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1504
alias in your environment" >&2;}
1505
   { (exit 1); exit 1; }; }
1506
   fi
1507
1508
   test "$2" = conftest.file
1509
   )
1510
then
1511
   # Ok.
1512
   :
1513
else
1514
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1515
Check your system clock" >&5
1516
echo "$as_me: error: newly created file is older than distributed files!
1517
Check your system clock" >&2;}
1518
   { (exit 1); exit 1; }; }
1519
fi
1520
echo "$as_me:$LINENO: result: yes" >&5
1521
echo "${ECHO_T}yes" >&6
1522
test "$program_prefix" != NONE &&
1523
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1524
# Use a double $ so make ignores it.
1525
test "$program_suffix" != NONE &&
1526
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1527
# Double any \ or $.  echo might interpret backslashes.
1528
# By default was `s,x,x', remove it if useless.
1529
cat <<\_ACEOF >conftest.sed
1530
s/[\\$]/&&/g;s/;s,x,x,$//
1531
_ACEOF
1532
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1533
rm conftest.sed
1534
1535
1536
# expand $ac_aux_dir to an absolute path
1537
am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1538
1539
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1540
# Use eval to expand $SHELL
1541
if eval "$MISSING --run true"; then
1542
  am_missing_run="$MISSING --run "
1543
else
1544
  am_missing_run=
1545
  am_backtick='`'
1546
  { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1547
echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1548
fi
1549
1550
for ac_prog in gawk mawk nawk awk
1551
do
1552
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1553
set dummy $ac_prog; ac_word=$2
1554
echo "$as_me:$LINENO: checking for $ac_word" >&5
1555
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556
if test "${ac_cv_prog_AWK+set}" = set; then
1557
  echo $ECHO_N "(cached) $ECHO_C" >&6
1558
else
1559
  if test -n "$AWK"; then
1560
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1561
else
1562
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563
for as_dir in $PATH
1564
do
1565
  IFS=$as_save_IFS
1566
  test -z "$as_dir" && as_dir=.
1567
  for ac_exec_ext in '' $ac_executable_extensions; do
1568
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1569
    ac_cv_prog_AWK="$ac_prog"
1570
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571
    break 2
1572
  fi
1573
done
1574
done
1575
1576
fi
1577
fi
1578
AWK=$ac_cv_prog_AWK
1579
if test -n "$AWK"; then
1580
  echo "$as_me:$LINENO: result: $AWK" >&5
1581
echo "${ECHO_T}$AWK" >&6
1582
else
1583
  echo "$as_me:$LINENO: result: no" >&5
1584
echo "${ECHO_T}no" >&6
1585
fi
1586
1587
  test -n "$AWK" && break
1588
done
1589
1590
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1591
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1592
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1593
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1594
  echo $ECHO_N "(cached) $ECHO_C" >&6
1595
else
1596
  cat >conftest.make <<\_ACEOF
1597
all:
1598
  @echo 'ac_maketemp="${MAKE}"'
1599
_ACEOF
1600
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1601
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1602
if test -n "$ac_maketemp"; then
1603
  eval ac_cv_prog_make_${ac_make}_set=yes
1604
else
1605
  eval ac_cv_prog_make_${ac_make}_set=no
1606
fi
1607
rm -f conftest.make
1608
fi
1609
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1610
  echo "$as_me:$LINENO: result: yes" >&5
1611
echo "${ECHO_T}yes" >&6
1612
  SET_MAKE=
1613
else
1614
  echo "$as_me:$LINENO: result: no" >&5
1615
echo "${ECHO_T}no" >&6
1616
  SET_MAKE="MAKE=${MAKE-make}"
1617
fi
1618
1619
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1620
if test "${enable_dependency_tracking+set}" = set; then
1621
  enableval="$enable_dependency_tracking"
1622
1623
fi;
1624
if test "x$enable_dependency_tracking" != xno; then
1625
  am_depcomp="$ac_aux_dir/depcomp"
1626
  AMDEPBACKSLASH='\'
1627
fi
1628
1629
1630
if test "x$enable_dependency_tracking" != xno; then
1631
  AMDEP_TRUE=
1632
  AMDEP_FALSE='#'
1633
else
1634
  AMDEP_TRUE='#'
1635
  AMDEP_FALSE=
1636
fi
1637
1638
1639
1640
1641
rm -f .deps 2>/dev/null
1642
mkdir .deps 2>/dev/null
1643
if test -d .deps; then
1644
  DEPDIR=.deps
1645
else
1646
  # MS-DOS does not allow filenames that begin with a dot.
1647
  DEPDIR=_deps
1648
fi
1649
rmdir .deps 2>/dev/null
1650
1651
1652
# test to see if srcdir already configured
1653
if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1654
   test -f $srcdir/config.status; then
1655
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1656
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1657
   { (exit 1); exit 1; }; }
1658
fi
1659
1660
# Define the identity of the package.
1661
PACKAGE=unac
1662
VERSION=$VERSION
1663
1664
1665
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
1666
# the ones we care about.
1667
1668
# Autoconf 2.50 always computes EXEEXT.  However we need to be
1669
# compatible with 2.13, for now.  So we always define EXEEXT, but we
1670
# don't compute it.
1671
1672
# Similar for OBJEXT -- only we only use OBJEXT if the user actually
1673
# requests that it be used.  This is a bit dumb.
1674
: ${OBJEXT=o}
1675
1676
1677
# Some tools Automake needs.
1678
1679
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1680
1681
1682
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1683
1684
1685
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1686
1687
1688
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1689
1690
1691
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1692
1693
1694
AMTAR=${AMTAR-"${am_missing_run}tar"}
1695
1696
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1697
1698
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1699
1700
# We need awk for the "check" target.  The system "awk" is bad on
1701
# some platforms.
1702
1703
1704
1705
1706
1707
1708
                                  ac_config_headers="$ac_config_headers config.h"
1709
1710
1711
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1712
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1713
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1714
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1715
  echo $ECHO_N "(cached) $ECHO_C" >&6
1716
else
1717
  cat >conftest.make <<\_ACEOF
1718
all:
1719
  @echo 'ac_maketemp="${MAKE}"'
1720
_ACEOF
1721
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1722
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1723
if test -n "$ac_maketemp"; then
1724
  eval ac_cv_prog_make_${ac_make}_set=yes
1725
else
1726
  eval ac_cv_prog_make_${ac_make}_set=no
1727
fi
1728
rm -f conftest.make
1729
fi
1730
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1731
  echo "$as_me:$LINENO: result: yes" >&5
1732
echo "${ECHO_T}yes" >&6
1733
  SET_MAKE=
1734
else
1735
  echo "$as_me:$LINENO: result: no" >&5
1736
echo "${ECHO_T}no" >&6
1737
  SET_MAKE="MAKE=${MAKE-make}"
1738
fi
1739
1740
1741
UNICODE_VERSION=3.2.0
1742
1743
1744
ac_ext=c
1745
ac_cpp='$CPP $CPPFLAGS'
1746
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1747
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1748
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1749
if test -n "$ac_tool_prefix"; then
1750
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1751
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1752
echo "$as_me:$LINENO: checking for $ac_word" >&5
1753
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754
if test "${ac_cv_prog_CC+set}" = set; then
1755
  echo $ECHO_N "(cached) $ECHO_C" >&6
1756
else
1757
  if test -n "$CC"; then
1758
  ac_cv_prog_CC="$CC" # Let the user override the test.
1759
else
1760
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761
for as_dir in $PATH
1762
do
1763
  IFS=$as_save_IFS
1764
  test -z "$as_dir" && as_dir=.
1765
  for ac_exec_ext in '' $ac_executable_extensions; do
1766
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1768
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769
    break 2
1770
  fi
1771
done
1772
done
1773
1774
fi
1775
fi
1776
CC=$ac_cv_prog_CC
1777
if test -n "$CC"; then
1778
  echo "$as_me:$LINENO: result: $CC" >&5
1779
echo "${ECHO_T}$CC" >&6
1780
else
1781
  echo "$as_me:$LINENO: result: no" >&5
1782
echo "${ECHO_T}no" >&6
1783
fi
1784
1785
fi
1786
if test -z "$ac_cv_prog_CC"; then
1787
  ac_ct_CC=$CC
1788
  # Extract the first word of "gcc", so it can be a program name with args.
1789
set dummy gcc; ac_word=$2
1790
echo "$as_me:$LINENO: checking for $ac_word" >&5
1791
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793
  echo $ECHO_N "(cached) $ECHO_C" >&6
1794
else
1795
  if test -n "$ac_ct_CC"; then
1796
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1797
else
1798
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799
for as_dir in $PATH
1800
do
1801
  IFS=$as_save_IFS
1802
  test -z "$as_dir" && as_dir=.
1803
  for ac_exec_ext in '' $ac_executable_extensions; do
1804
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805
    ac_cv_prog_ac_ct_CC="gcc"
1806
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807
    break 2
1808
  fi
1809
done
1810
done
1811
1812
fi
1813
fi
1814
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815
if test -n "$ac_ct_CC"; then
1816
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817
echo "${ECHO_T}$ac_ct_CC" >&6
1818
else
1819
  echo "$as_me:$LINENO: result: no" >&5
1820
echo "${ECHO_T}no" >&6
1821
fi
1822
1823
  CC=$ac_ct_CC
1824
else
1825
  CC="$ac_cv_prog_CC"
1826
fi
1827
1828
if test -z "$CC"; then
1829
  if test -n "$ac_tool_prefix"; then
1830
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1831
set dummy ${ac_tool_prefix}cc; ac_word=$2
1832
echo "$as_me:$LINENO: checking for $ac_word" >&5
1833
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834
if test "${ac_cv_prog_CC+set}" = set; then
1835
  echo $ECHO_N "(cached) $ECHO_C" >&6
1836
else
1837
  if test -n "$CC"; then
1838
  ac_cv_prog_CC="$CC" # Let the user override the test.
1839
else
1840
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841
for as_dir in $PATH
1842
do
1843
  IFS=$as_save_IFS
1844
  test -z "$as_dir" && as_dir=.
1845
  for ac_exec_ext in '' $ac_executable_extensions; do
1846
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1848
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849
    break 2
1850
  fi
1851
done
1852
done
1853
1854
fi
1855
fi
1856
CC=$ac_cv_prog_CC
1857
if test -n "$CC"; then
1858
  echo "$as_me:$LINENO: result: $CC" >&5
1859
echo "${ECHO_T}$CC" >&6
1860
else
1861
  echo "$as_me:$LINENO: result: no" >&5
1862
echo "${ECHO_T}no" >&6
1863
fi
1864
1865
fi
1866
if test -z "$ac_cv_prog_CC"; then
1867
  ac_ct_CC=$CC
1868
  # Extract the first word of "cc", so it can be a program name with args.
1869
set dummy cc; ac_word=$2
1870
echo "$as_me:$LINENO: checking for $ac_word" >&5
1871
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1873
  echo $ECHO_N "(cached) $ECHO_C" >&6
1874
else
1875
  if test -n "$ac_ct_CC"; then
1876
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1877
else
1878
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879
for as_dir in $PATH
1880
do
1881
  IFS=$as_save_IFS
1882
  test -z "$as_dir" && as_dir=.
1883
  for ac_exec_ext in '' $ac_executable_extensions; do
1884
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885
    ac_cv_prog_ac_ct_CC="cc"
1886
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887
    break 2
1888
  fi
1889
done
1890
done
1891
1892
fi
1893
fi
1894
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895
if test -n "$ac_ct_CC"; then
1896
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897
echo "${ECHO_T}$ac_ct_CC" >&6
1898
else
1899
  echo "$as_me:$LINENO: result: no" >&5
1900
echo "${ECHO_T}no" >&6
1901
fi
1902
1903
  CC=$ac_ct_CC
1904
else
1905
  CC="$ac_cv_prog_CC"
1906
fi
1907
1908
fi
1909
if test -z "$CC"; then
1910
  # Extract the first word of "cc", so it can be a program name with args.
1911
set dummy cc; ac_word=$2
1912
echo "$as_me:$LINENO: checking for $ac_word" >&5
1913
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914
if test "${ac_cv_prog_CC+set}" = set; then
1915
  echo $ECHO_N "(cached) $ECHO_C" >&6
1916
else
1917
  if test -n "$CC"; then
1918
  ac_cv_prog_CC="$CC" # Let the user override the test.
1919
else
1920
  ac_prog_rejected=no
1921
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922
for as_dir in $PATH
1923
do
1924
  IFS=$as_save_IFS
1925
  test -z "$as_dir" && as_dir=.
1926
  for ac_exec_ext in '' $ac_executable_extensions; do
1927
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1929
       ac_prog_rejected=yes
1930
       continue
1931
     fi
1932
    ac_cv_prog_CC="cc"
1933
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934
    break 2
1935
  fi
1936
done
1937
done
1938
1939
if test $ac_prog_rejected = yes; then
1940
  # We found a bogon in the path, so make sure we never use it.
1941
  set dummy $ac_cv_prog_CC
1942
  shift
1943
  if test $# != 0; then
1944
    # We chose a different compiler from the bogus one.
1945
    # However, it has the same basename, so the bogon will be chosen
1946
    # first if we set CC to just the basename; use the full file name.
1947
    shift
1948
    set dummy "$as_dir/$ac_word" ${1+"$@"}
1949
    shift
1950
    ac_cv_prog_CC="$@"
1951
  fi
1952
fi
1953
fi
1954
fi
1955
CC=$ac_cv_prog_CC
1956
if test -n "$CC"; then
1957
  echo "$as_me:$LINENO: result: $CC" >&5
1958
echo "${ECHO_T}$CC" >&6
1959
else
1960
  echo "$as_me:$LINENO: result: no" >&5
1961
echo "${ECHO_T}no" >&6
1962
fi
1963
1964
fi
1965
if test -z "$CC"; then
1966
  if test -n "$ac_tool_prefix"; then
1967
  for ac_prog in cl
1968
  do
1969
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1970
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1971
echo "$as_me:$LINENO: checking for $ac_word" >&5
1972
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973
if test "${ac_cv_prog_CC+set}" = set; then
1974
  echo $ECHO_N "(cached) $ECHO_C" >&6
1975
else
1976
  if test -n "$CC"; then
1977
  ac_cv_prog_CC="$CC" # Let the user override the test.
1978
else
1979
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980
for as_dir in $PATH
1981
do
1982
  IFS=$as_save_IFS
1983
  test -z "$as_dir" && as_dir=.
1984
  for ac_exec_ext in '' $ac_executable_extensions; do
1985
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1987
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988
    break 2
1989
  fi
1990
done
1991
done
1992
1993
fi
1994
fi
1995
CC=$ac_cv_prog_CC
1996
if test -n "$CC"; then
1997
  echo "$as_me:$LINENO: result: $CC" >&5
1998
echo "${ECHO_T}$CC" >&6
1999
else
2000
  echo "$as_me:$LINENO: result: no" >&5
2001
echo "${ECHO_T}no" >&6
2002
fi
2003
2004
    test -n "$CC" && break
2005
  done
2006
fi
2007
if test -z "$CC"; then
2008
  ac_ct_CC=$CC
2009
  for ac_prog in cl
2010
do
2011
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2012
set dummy $ac_prog; ac_word=$2
2013
echo "$as_me:$LINENO: checking for $ac_word" >&5
2014
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2015
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016
  echo $ECHO_N "(cached) $ECHO_C" >&6
2017
else
2018
  if test -n "$ac_ct_CC"; then
2019
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020
else
2021
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022
for as_dir in $PATH
2023
do
2024
  IFS=$as_save_IFS
2025
  test -z "$as_dir" && as_dir=.
2026
  for ac_exec_ext in '' $ac_executable_extensions; do
2027
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2028
    ac_cv_prog_ac_ct_CC="$ac_prog"
2029
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030
    break 2
2031
  fi
2032
done
2033
done
2034
2035
fi
2036
fi
2037
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2038
if test -n "$ac_ct_CC"; then
2039
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2040
echo "${ECHO_T}$ac_ct_CC" >&6
2041
else
2042
  echo "$as_me:$LINENO: result: no" >&5
2043
echo "${ECHO_T}no" >&6
2044
fi
2045
2046
  test -n "$ac_ct_CC" && break
2047
done
2048
2049
  CC=$ac_ct_CC
2050
fi
2051
2052
fi
2053
2054
2055
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2056
echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2057
   { (exit 1); exit 1; }; }
2058
2059
# Provide some information about the compiler.
2060
echo "$as_me:$LINENO:" \
2061
     "checking for C compiler version" >&5
2062
ac_compiler=`set X $ac_compile; echo $2`
2063
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2064
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2065
  ac_status=$?
2066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067
  (exit $ac_status); }
2068
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2069
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2070
  ac_status=$?
2071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072
  (exit $ac_status); }
2073
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2074
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2075
  ac_status=$?
2076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077
  (exit $ac_status); }
2078
2079
cat >conftest.$ac_ext <<_ACEOF
2080
#line $LINENO "configure"
2081
#include "confdefs.h"
2082
2083
#ifdef F77_DUMMY_MAIN
2084
#  ifdef __cplusplus
2085
     extern "C"
2086
#  endif
2087
   int F77_DUMMY_MAIN() { return 1; }
2088
#endif
2089
int
2090
main ()
2091
{
2092
2093
  ;
2094
  return 0;
2095
}
2096
_ACEOF
2097
ac_clean_files_save=$ac_clean_files
2098
ac_clean_files="$ac_clean_files a.out a.exe"
2099
# Try to create an executable without -o first, disregard a.out.
2100
# It will help us diagnose broken compilers, and finding out an intuition
2101
# of exeext.
2102
echo "$as_me:$LINENO: checking for C compiler default output" >&5
2103
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2104
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2105
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2106
  (eval $ac_link_default) 2>&5
2107
  ac_status=$?
2108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109
  (exit $ac_status); }; then
2110
  # Find the output, starting from the most likely.  This scheme is
2111
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2112
# resort.
2113
2114
# Be careful to initialize this variable, since it used to be cached.
2115
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2116
ac_cv_exeext=
2117
for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2118
                ls a.out conftest 2>/dev/null;
2119
                ls a.* conftest.* 2>/dev/null`; do
2120
  case $ac_file in
2121
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2122
    a.out ) # We found the default executable, but exeext='' is most
2123
            # certainly right.
2124
            break;;
2125
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2126
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2127
          export ac_cv_exeext
2128
          break;;
2129
    * ) break;;
2130
  esac
2131
done
2132
else
2133
  echo "$as_me: failed program was:" >&5
2134
cat conftest.$ac_ext >&5
2135
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2136
echo "$as_me: error: C compiler cannot create executables" >&2;}
2137
   { (exit 77); exit 77; }; }
2138
fi
2139
2140
ac_exeext=$ac_cv_exeext
2141
echo "$as_me:$LINENO: result: $ac_file" >&5
2142
echo "${ECHO_T}$ac_file" >&6
2143
2144
# Check the compiler produces executables we can run.  If not, either
2145
# the compiler is broken, or we cross compile.
2146
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2147
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2148
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2149
# If not cross compiling, check that we can run a simple program.
2150
if test "$cross_compiling" != yes; then
2151
  if { ac_try='./$ac_file'
2152
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153
  (eval $ac_try) 2>&5
2154
  ac_status=$?
2155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156
  (exit $ac_status); }; }; then
2157
    cross_compiling=no
2158
  else
2159
    if test "$cross_compiling" = maybe; then
2160
  cross_compiling=yes
2161
    else
2162
  { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2163
If you meant to cross compile, use \`--host'." >&5
2164
echo "$as_me: error: cannot run C compiled programs.
2165
If you meant to cross compile, use \`--host'." >&2;}
2166
   { (exit 1); exit 1; }; }
2167
    fi
2168
  fi
2169
fi
2170
echo "$as_me:$LINENO: result: yes" >&5
2171
echo "${ECHO_T}yes" >&6
2172
2173
rm -f a.out a.exe conftest$ac_cv_exeext
2174
ac_clean_files=$ac_clean_files_save
2175
# Check the compiler produces executables we can run.  If not, either
2176
# the compiler is broken, or we cross compile.
2177
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2178
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2179
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2180
echo "${ECHO_T}$cross_compiling" >&6
2181
2182
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2183
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2184
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2185
  (eval $ac_link) 2>&5
2186
  ac_status=$?
2187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188
  (exit $ac_status); }; then
2189
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2190
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2191
# work properly (i.e., refer to `conftest.exe'), while it won't with
2192
# `rm'.
2193
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2194
  case $ac_file in
2195
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2196
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197
          export ac_cv_exeext
2198
          break;;
2199
    * ) break;;
2200
  esac
2201
done
2202
else
2203
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2204
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2205
   { (exit 1); exit 1; }; }
2206
fi
2207
2208
rm -f conftest$ac_cv_exeext
2209
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2210
echo "${ECHO_T}$ac_cv_exeext" >&6
2211
2212
rm -f conftest.$ac_ext
2213
EXEEXT=$ac_cv_exeext
2214
ac_exeext=$EXEEXT
2215
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2216
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2217
if test "${ac_cv_objext+set}" = set; then
2218
  echo $ECHO_N "(cached) $ECHO_C" >&6
2219
else
2220
  cat >conftest.$ac_ext <<_ACEOF
2221
#line $LINENO "configure"
2222
#include "confdefs.h"
2223
2224
#ifdef F77_DUMMY_MAIN
2225
#  ifdef __cplusplus
2226
     extern "C"
2227
#  endif
2228
   int F77_DUMMY_MAIN() { return 1; }
2229
#endif
2230
int
2231
main ()
2232
{
2233
2234
  ;
2235
  return 0;
2236
}
2237
_ACEOF
2238
rm -f conftest.o conftest.obj
2239
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2240
  (eval $ac_compile) 2>&5
2241
  ac_status=$?
2242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243
  (exit $ac_status); }; then
2244
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2245
  case $ac_file in
2246
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2247
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2248
       break;;
2249
  esac
2250
done
2251
else
2252
  echo "$as_me: failed program was:" >&5
2253
cat conftest.$ac_ext >&5
2254
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2255
echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2256
   { (exit 1); exit 1; }; }
2257
fi
2258
2259
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2260
fi
2261
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2262
echo "${ECHO_T}$ac_cv_objext" >&6
2263
OBJEXT=$ac_cv_objext
2264
ac_objext=$OBJEXT
2265
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2266
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2267
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2268
  echo $ECHO_N "(cached) $ECHO_C" >&6
2269
else
2270
  cat >conftest.$ac_ext <<_ACEOF
2271
#line $LINENO "configure"
2272
#include "confdefs.h"
2273
2274
#ifdef F77_DUMMY_MAIN
2275
#  ifdef __cplusplus
2276
     extern "C"
2277
#  endif
2278
   int F77_DUMMY_MAIN() { return 1; }
2279
#endif
2280
int
2281
main ()
2282
{
2283
#ifndef __GNUC__
2284
       choke me
2285
#endif
2286
2287
  ;
2288
  return 0;
2289
}
2290
_ACEOF
2291
rm -f conftest.$ac_objext
2292
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293
  (eval $ac_compile) 2>&5
2294
  ac_status=$?
2295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296
  (exit $ac_status); } &&
2297
         { ac_try='test -s conftest.$ac_objext'
2298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299
  (eval $ac_try) 2>&5
2300
  ac_status=$?
2301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302
  (exit $ac_status); }; }; then
2303
  ac_compiler_gnu=yes
2304
else
2305
  echo "$as_me: failed program was:" >&5
2306
cat conftest.$ac_ext >&5
2307
ac_compiler_gnu=no
2308
fi
2309
rm -f conftest.$ac_objext conftest.$ac_ext
2310
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2311
2312
fi
2313
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2314
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2315
GCC=`test $ac_compiler_gnu = yes && echo yes`
2316
ac_test_CFLAGS=${CFLAGS+set}
2317
ac_save_CFLAGS=$CFLAGS
2318
CFLAGS="-g"
2319
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2320
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2321
if test "${ac_cv_prog_cc_g+set}" = set; then
2322
  echo $ECHO_N "(cached) $ECHO_C" >&6
2323
else
2324
  cat >conftest.$ac_ext <<_ACEOF
2325
#line $LINENO "configure"
2326
#include "confdefs.h"
2327
2328
#ifdef F77_DUMMY_MAIN
2329
#  ifdef __cplusplus
2330
     extern "C"
2331
#  endif
2332
   int F77_DUMMY_MAIN() { return 1; }
2333
#endif
2334
int
2335
main ()
2336
{
2337
2338
  ;
2339
  return 0;
2340
}
2341
_ACEOF
2342
rm -f conftest.$ac_objext
2343
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344
  (eval $ac_compile) 2>&5
2345
  ac_status=$?
2346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347
  (exit $ac_status); } &&
2348
         { ac_try='test -s conftest.$ac_objext'
2349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350
  (eval $ac_try) 2>&5
2351
  ac_status=$?
2352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353
  (exit $ac_status); }; }; then
2354
  ac_cv_prog_cc_g=yes
2355
else
2356
  echo "$as_me: failed program was:" >&5
2357
cat conftest.$ac_ext >&5
2358
ac_cv_prog_cc_g=no
2359
fi
2360
rm -f conftest.$ac_objext conftest.$ac_ext
2361
fi
2362
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2363
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2364
if test "$ac_test_CFLAGS" = set; then
2365
  CFLAGS=$ac_save_CFLAGS
2366
elif test $ac_cv_prog_cc_g = yes; then
2367
  if test "$GCC" = yes; then
2368
    CFLAGS="-g -O2"
2369
  else
2370
    CFLAGS="-g"
2371
  fi
2372
else
2373
  if test "$GCC" = yes; then
2374
    CFLAGS="-O2"
2375
  else
2376
    CFLAGS=
2377
  fi
2378
fi
2379
# Some people use a C++ compiler to compile C.  Since we use `exit',
2380
# in C++ we need to declare it.  In case someone uses the same compiler
2381
# for both compiling C and C++ we need to have the C++ compiler decide
2382
# the declaration of exit, since it's the most demanding environment.
2383
cat >conftest.$ac_ext <<_ACEOF
2384
#ifndef __cplusplus
2385
  choke me
2386
#endif
2387
_ACEOF
2388
rm -f conftest.$ac_objext
2389
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390
  (eval $ac_compile) 2>&5
2391
  ac_status=$?
2392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393
  (exit $ac_status); } &&
2394
         { ac_try='test -s conftest.$ac_objext'
2395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396
  (eval $ac_try) 2>&5
2397
  ac_status=$?
2398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399
  (exit $ac_status); }; }; then
2400
  for ac_declaration in \
2401
   ''\
2402
   '#include <stdlib.h>' \
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
#line $LINENO "configure"
2411
#include "confdefs.h"
2412
#include <stdlib.h>
2413
$ac_declaration
2414
#ifdef F77_DUMMY_MAIN
2415
#  ifdef __cplusplus
2416
     extern "C"
2417
#  endif
2418
   int F77_DUMMY_MAIN() { return 1; }
2419
#endif
2420
int
2421
main ()
2422
{
2423
exit (42);
2424
  ;
2425
  return 0;
2426
}
2427
_ACEOF
2428
rm -f conftest.$ac_objext
2429
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430
  (eval $ac_compile) 2>&5
2431
  ac_status=$?
2432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433
  (exit $ac_status); } &&
2434
         { ac_try='test -s conftest.$ac_objext'
2435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436
  (eval $ac_try) 2>&5
2437
  ac_status=$?
2438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439
  (exit $ac_status); }; }; then
2440
  :
2441
else
2442
  echo "$as_me: failed program was:" >&5
2443
cat conftest.$ac_ext >&5
2444
continue
2445
fi
2446
rm -f conftest.$ac_objext conftest.$ac_ext
2447
  cat >conftest.$ac_ext <<_ACEOF
2448
#line $LINENO "configure"
2449
#include "confdefs.h"
2450
$ac_declaration
2451
#ifdef F77_DUMMY_MAIN
2452
#  ifdef __cplusplus
2453
     extern "C"
2454
#  endif
2455
   int F77_DUMMY_MAIN() { return 1; }
2456
#endif
2457
int
2458
main ()
2459
{
2460
exit (42);
2461
  ;
2462
  return 0;
2463
}
2464
_ACEOF
2465
rm -f conftest.$ac_objext
2466
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467
  (eval $ac_compile) 2>&5
2468
  ac_status=$?
2469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470
  (exit $ac_status); } &&
2471
         { ac_try='test -s conftest.$ac_objext'
2472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473
  (eval $ac_try) 2>&5
2474
  ac_status=$?
2475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476
  (exit $ac_status); }; }; then
2477
  break
2478
else
2479
  echo "$as_me: failed program was:" >&5
2480
cat conftest.$ac_ext >&5
2481
fi
2482
rm -f conftest.$ac_objext conftest.$ac_ext
2483
done
2484
rm -f conftest*
2485
if test -n "$ac_declaration"; then
2486
  echo '#ifdef __cplusplus' >>confdefs.h
2487
  echo $ac_declaration      >>confdefs.h
2488
  echo '#endif'             >>confdefs.h
2489
fi
2490
2491
else
2492
  echo "$as_me: failed program was:" >&5
2493
cat conftest.$ac_ext >&5
2494
fi
2495
rm -f conftest.$ac_objext conftest.$ac_ext
2496
ac_ext=c
2497
ac_cpp='$CPP $CPPFLAGS'
2498
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2501
2502
ac_config_commands="$ac_config_commands default-1"
2503
2504
am_make=${MAKE-make}
2505
cat > confinc << 'END'
2506
doit:
2507
  @echo done
2508
END
2509
# If we don't find an include directive, just comment out the code.
2510
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2511
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2512
am__include='#'
2513
am__quote=
2514
_am_result=none
2515
# First try GNU make style include.
2516
echo "include confinc" > confmf
2517
# We grep out `Entering directory' and `Leaving directory'
2518
# messages which can occur if `w' ends up in MAKEFLAGS.
2519
# In particular we don't look at `^make:' because GNU make might
2520
# be invoked under some other name (usually "gmake"), in which
2521
# case it prints its new name instead of `make'.
2522
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2523
   am__include=include
2524
   am__quote=
2525
   _am_result=GNU
2526
fi
2527
# Now try BSD make style include.
2528
if test "$am__include" = "#"; then
2529
   echo '.include "confinc"' > confmf
2530
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2531
      am__include=.include
2532
      am__quote='"'
2533
      _am_result=BSD
2534
   fi
2535
fi
2536
2537
2538
echo "$as_me:$LINENO: result: $_am_result" >&5
2539
echo "${ECHO_T}$_am_result" >&6
2540
rm -f confinc confmf
2541
2542
2543
depcc="$CC"   am_compiler_list=
2544
2545
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2546
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2547
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2548
  echo $ECHO_N "(cached) $ECHO_C" >&6
2549
else
2550
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2551
  # We make a subdir and do the tests there.  Otherwise we can end up
2552
  # making bogus files that we don't know about and never remove.  For
2553
  # instance it was reported that on HP-UX the gcc test will end up
2554
  # making a dummy file named `D' -- because `-MD' means `put the output
2555
  # in D'.
2556
  mkdir conftest.dir
2557
  # Copy depcomp to subdir because otherwise we won't find it if we're
2558
  # using a relative directory.
2559
  cp "$am_depcomp" conftest.dir
2560
  cd conftest.dir
2561
2562
  am_cv_CC_dependencies_compiler_type=none
2563
  if test "$am_compiler_list" = ""; then
2564
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2565
  fi
2566
  for depmode in $am_compiler_list; do
2567
    # We need to recreate these files for each test, as the compiler may
2568
    # overwrite some of them when testing with obscure command lines.
2569
    # This happens at least with the AIX C compiler.
2570
    echo '#include "conftest.h"' > conftest.c
2571
    echo 'int i;' > conftest.h
2572
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2573
2574
    case $depmode in
2575
    nosideeffect)
2576
      # after this tag, mechanisms are not by side-effect, so they'll
2577
      # only be used when explicitly requested
2578
      if test "x$enable_dependency_tracking" = xyes; then
2579
  continue
2580
      else
2581
  break
2582
      fi
2583
      ;;
2584
    none) break ;;
2585
    esac
2586
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2587
    # mode.  It turns out that the SunPro C++ compiler does not properly
2588
    # handle `-M -o', and we need to detect this.
2589
    if depmode=$depmode \
2590
       source=conftest.c object=conftest.o \
2591
       depfile=conftest.Po tmpdepfile=conftest.TPo \
2592
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2593
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2594
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2595
      am_cv_CC_dependencies_compiler_type=$depmode
2596
      break
2597
    fi
2598
  done
2599
2600
  cd ..
2601
  rm -rf conftest.dir
2602
else
2603
  am_cv_CC_dependencies_compiler_type=none
2604
fi
2605
2606
fi
2607
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2608
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2609
CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2610
2611
2612
2613
ac_ext=c
2614
ac_cpp='$CPP $CPPFLAGS'
2615
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2619
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2620
# On Suns, sometimes $CPP names a directory.
2621
if test -n "$CPP" && test -d "$CPP"; then
2622
  CPP=
2623
fi
2624
if test -z "$CPP"; then
2625
  if test "${ac_cv_prog_CPP+set}" = set; then
2626
  echo $ECHO_N "(cached) $ECHO_C" >&6
2627
else
2628
      # Double quotes because CPP needs to be expanded
2629
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2630
    do
2631
      ac_preproc_ok=false
2632
for ac_c_preproc_warn_flag in '' yes
2633
do
2634
  # Use a header file that comes with gcc, so configuring glibc
2635
  # with a fresh cross-compiler works.
2636
  # On the NeXT, cc -E runs the code through the compiler's parser,
2637
  # not just through cpp. "Syntax error" is here to catch this case.
2638
  cat >conftest.$ac_ext <<_ACEOF
2639
#line $LINENO "configure"
2640
#include "confdefs.h"
2641
#include <assert.h>
2642
                     Syntax error
2643
_ACEOF
2644
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2645
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2646
  ac_status=$?
2647
  egrep -v '^ *\+' conftest.er1 >conftest.err
2648
  rm -f conftest.er1
2649
  cat conftest.err >&5
2650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651
  (exit $ac_status); } >/dev/null; then
2652
  if test -s conftest.err; then
2653
    ac_cpp_err=$ac_c_preproc_warn_flag
2654
  else
2655
    ac_cpp_err=
2656
  fi
2657
else
2658
  ac_cpp_err=yes
2659
fi
2660
if test -z "$ac_cpp_err"; then
2661
  :
2662
else
2663
  echo "$as_me: failed program was:" >&5
2664
  cat conftest.$ac_ext >&5
2665
  # Broken: fails on valid input.
2666
continue
2667
fi
2668
rm -f conftest.err conftest.$ac_ext
2669
2670
  # OK, works on sane cases.  Now check whether non-existent headers
2671
  # can be detected and how.
2672
  cat >conftest.$ac_ext <<_ACEOF
2673
#line $LINENO "configure"
2674
#include "confdefs.h"
2675
#include <ac_nonexistent.h>
2676
_ACEOF
2677
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2678
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2679
  ac_status=$?
2680
  egrep -v '^ *\+' conftest.er1 >conftest.err
2681
  rm -f conftest.er1
2682
  cat conftest.err >&5
2683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684
  (exit $ac_status); } >/dev/null; then
2685
  if test -s conftest.err; then
2686
    ac_cpp_err=$ac_c_preproc_warn_flag
2687
  else
2688
    ac_cpp_err=
2689
  fi
2690
else
2691
  ac_cpp_err=yes
2692
fi
2693
if test -z "$ac_cpp_err"; then
2694
  # Broken: success on invalid input.
2695
continue
2696
else
2697
  echo "$as_me: failed program was:" >&5
2698
  cat conftest.$ac_ext >&5
2699
  # Passes both tests.
2700
ac_preproc_ok=:
2701
break
2702
fi
2703
rm -f conftest.err conftest.$ac_ext
2704
2705
done
2706
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2707
rm -f conftest.err conftest.$ac_ext
2708
if $ac_preproc_ok; then
2709
  break
2710
fi
2711
2712
    done
2713
    ac_cv_prog_CPP=$CPP
2714
2715
fi
2716
  CPP=$ac_cv_prog_CPP
2717
else
2718
  ac_cv_prog_CPP=$CPP
2719
fi
2720
echo "$as_me:$LINENO: result: $CPP" >&5
2721
echo "${ECHO_T}$CPP" >&6
2722
ac_preproc_ok=false
2723
for ac_c_preproc_warn_flag in '' yes
2724
do
2725
  # Use a header file that comes with gcc, so configuring glibc
2726
  # with a fresh cross-compiler works.
2727
  # On the NeXT, cc -E runs the code through the compiler's parser,
2728
  # not just through cpp. "Syntax error" is here to catch this case.
2729
  cat >conftest.$ac_ext <<_ACEOF
2730
#line $LINENO "configure"
2731
#include "confdefs.h"
2732
#include <assert.h>
2733
                     Syntax error
2734
_ACEOF
2735
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2736
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2737
  ac_status=$?
2738
  egrep -v '^ *\+' conftest.er1 >conftest.err
2739
  rm -f conftest.er1
2740
  cat conftest.err >&5
2741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742
  (exit $ac_status); } >/dev/null; then
2743
  if test -s conftest.err; then
2744
    ac_cpp_err=$ac_c_preproc_warn_flag
2745
  else
2746
    ac_cpp_err=
2747
  fi
2748
else
2749
  ac_cpp_err=yes
2750
fi
2751
if test -z "$ac_cpp_err"; then
2752
  :
2753
else
2754
  echo "$as_me: failed program was:" >&5
2755
  cat conftest.$ac_ext >&5
2756
  # Broken: fails on valid input.
2757
continue
2758
fi
2759
rm -f conftest.err conftest.$ac_ext
2760
2761
  # OK, works on sane cases.  Now check whether non-existent headers
2762
  # can be detected and how.
2763
  cat >conftest.$ac_ext <<_ACEOF
2764
#line $LINENO "configure"
2765
#include "confdefs.h"
2766
#include <ac_nonexistent.h>
2767
_ACEOF
2768
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2769
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2770
  ac_status=$?
2771
  egrep -v '^ *\+' conftest.er1 >conftest.err
2772
  rm -f conftest.er1
2773
  cat conftest.err >&5
2774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775
  (exit $ac_status); } >/dev/null; then
2776
  if test -s conftest.err; then
2777
    ac_cpp_err=$ac_c_preproc_warn_flag
2778
  else
2779
    ac_cpp_err=
2780
  fi
2781
else
2782
  ac_cpp_err=yes
2783
fi
2784
if test -z "$ac_cpp_err"; then
2785
  # Broken: success on invalid input.
2786
continue
2787
else
2788
  echo "$as_me: failed program was:" >&5
2789
  cat conftest.$ac_ext >&5
2790
  # Passes both tests.
2791
ac_preproc_ok=:
2792
break
2793
fi
2794
rm -f conftest.err conftest.$ac_ext
2795
2796
done
2797
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2798
rm -f conftest.err conftest.$ac_ext
2799
if $ac_preproc_ok; then
2800
  :
2801
else
2802
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2803
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2804
   { (exit 1); exit 1; }; }
2805
fi
2806
2807
ac_ext=c
2808
ac_cpp='$CPP $CPPFLAGS'
2809
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2812
2813
2814
2815
echo "$as_me:$LINENO: checking for AIX" >&5
2816
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2817
cat >conftest.$ac_ext <<_ACEOF
2818
#line $LINENO "configure"
2819
#include "confdefs.h"
2820
#ifdef _AIX
2821
  yes
2822
#endif
2823
2824
_ACEOF
2825
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2826
  egrep "yes" >/dev/null 2>&1; then
2827
  echo "$as_me:$LINENO: result: yes" >&5
2828
echo "${ECHO_T}yes" >&6
2829
cat >>confdefs.h <<\_ACEOF
2830
#define _ALL_SOURCE 1
2831
_ACEOF
2832
2833
else
2834
  echo "$as_me:$LINENO: result: no" >&5
2835
echo "${ECHO_T}no" >&6
2836
fi
2837
rm -f conftest*
2838
2839
2840
echo "$as_me:$LINENO: checking maximum warning verbosity option" >&5
2841
echo $ECHO_N "checking maximum warning verbosity option... $ECHO_C" >&6
2842
if test -n "$CXX"
2843
then
2844
  if test "$GXX" = "yes"
2845
  then
2846
    ac_compile_warnings_opt='-Wall -Woverloaded-virtual'
2847
  fi
2848
  CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
2849
  ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
2850
fi
2851
2852
if test -n "$CC"
2853
then
2854
  if test "$GCC" = "yes"
2855
  then
2856
    ac_compile_warnings_opt='-Wall -Wmissing-declarations -Wmissing-prototypes'
2857
  fi
2858
  CFLAGS="$CFLAGS $ac_compile_warnings_opt"
2859
  ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
2860
fi
2861
echo "$as_me:$LINENO: result: $ac_compile_warnings_msg" >&5
2862
echo "${ECHO_T}$ac_compile_warnings_msg" >&6
2863
unset ac_compile_warnings_msg
2864
unset ac_compile_warnings_opt
2865
2866
2867
# Check whether --enable-shared or --disable-shared was given.
2868
if test "${enable_shared+set}" = set; then
2869
  enableval="$enable_shared"
2870
  p=${PACKAGE-default}
2871
case $enableval in
2872
yes) enable_shared=yes ;;
2873
no) enable_shared=no ;;
2874
*)
2875
  enable_shared=no
2876
  # Look at the argument we got.  We use all the common list separators.
2877
  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2878
  for pkg in $enableval; do
2879
    if test "X$pkg" = "X$p"; then
2880
      enable_shared=yes
2881
    fi
2882
  done
2883
  IFS="$ac_save_ifs"
2884
  ;;
2885
esac
2886
else
2887
  enable_shared=yes
2888
fi;
2889
# Check whether --enable-static or --disable-static was given.
2890
if test "${enable_static+set}" = set; then
2891
  enableval="$enable_static"
2892
  p=${PACKAGE-default}
2893
case $enableval in
2894
yes) enable_static=yes ;;
2895
no) enable_static=no ;;
2896
*)
2897
  enable_static=no
2898
  # Look at the argument we got.  We use all the common list separators.
2899
  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2900
  for pkg in $enableval; do
2901
    if test "X$pkg" = "X$p"; then
2902
      enable_static=yes
2903
    fi
2904
  done
2905
  IFS="$ac_save_ifs"
2906
  ;;
2907
esac
2908
else
2909
  enable_static=yes
2910
fi;
2911
# Check whether --enable-fast-install or --disable-fast-install was given.
2912
if test "${enable_fast_install+set}" = set; then
2913
  enableval="$enable_fast_install"
2914
  p=${PACKAGE-default}
2915
case $enableval in
2916
yes) enable_fast_install=yes ;;
2917
no) enable_fast_install=no ;;
2918
*)
2919
  enable_fast_install=no
2920
  # Look at the argument we got.  We use all the common list separators.
2921
  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2922
  for pkg in $enableval; do
2923
    if test "X$pkg" = "X$p"; then
2924
      enable_fast_install=yes
2925
    fi
2926
  done
2927
  IFS="$ac_save_ifs"
2928
  ;;
2929
esac
2930
else
2931
  enable_fast_install=yes
2932
fi;
2933
# Make sure we can run config.sub.
2934
$ac_config_sub sun4 >/dev/null 2>&1 ||
2935
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2936
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2937
   { (exit 1); exit 1; }; }
2938
2939
echo "$as_me:$LINENO: checking build system type" >&5
2940
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2941
if test "${ac_cv_build+set}" = set; then
2942
  echo $ECHO_N "(cached) $ECHO_C" >&6
2943
else
2944
  ac_cv_build_alias=$build_alias
2945
test -z "$ac_cv_build_alias" &&
2946
  ac_cv_build_alias=`$ac_config_guess`
2947
test -z "$ac_cv_build_alias" &&
2948
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2949
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2950
   { (exit 1); exit 1; }; }
2951
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2952
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2953
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2954
   { (exit 1); exit 1; }; }
2955
2956
fi
2957
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2958
echo "${ECHO_T}$ac_cv_build" >&6
2959
build=$ac_cv_build
2960
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2961
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2962
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2963
2964
2965
echo "$as_me:$LINENO: checking host system type" >&5
2966
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2967
if test "${ac_cv_host+set}" = set; then
2968
  echo $ECHO_N "(cached) $ECHO_C" >&6
2969
else
2970
  ac_cv_host_alias=$host_alias
2971
test -z "$ac_cv_host_alias" &&
2972
  ac_cv_host_alias=$ac_cv_build_alias
2973
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2974
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2975
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2976
   { (exit 1); exit 1; }; }
2977
2978
fi
2979
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2980
echo "${ECHO_T}$ac_cv_host" >&6
2981
host=$ac_cv_host
2982
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2983
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2984
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2985
2986
2987
# Find the correct PATH separator.  Usually this is `:', but
2988
# DJGPP uses `;' like DOS.
2989
if test "X${PATH_SEPARATOR+set}" != Xset; then
2990
  UNAME=${UNAME-`uname 2>/dev/null`}
2991
  case X$UNAME in
2992
    *-DOS) lt_cv_sys_path_separator=';' ;;
2993
    *)     lt_cv_sys_path_separator=':' ;;
2994
  esac
2995
  PATH_SEPARATOR=$lt_cv_sys_path_separator
2996
fi
2997
2998
2999
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3000
if test "${with_gnu_ld+set}" = set; then
3001
  withval="$with_gnu_ld"
3002
  test "$withval" = no || with_gnu_ld=yes
3003
else
3004
  with_gnu_ld=no
3005
fi;
3006
ac_prog=ld
3007
if test "$GCC" = yes; then
3008
  # Check if gcc -print-prog-name=ld gives a path.
3009
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3010
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3011
  case $host in
3012
  *-*-mingw*)
3013
    # gcc leaves a trailing carriage return which upsets mingw
3014
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3015
  *)
3016
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3017
  esac
3018
  case $ac_prog in
3019
    # Accept absolute paths.
3020
    [\\/]* | [A-Za-z]:[\\/]*)
3021
      re_direlt='/[^/][^/]*/\.\./'
3022
      # Canonicalize the path of ld
3023
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3024
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3025
  ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3026
      done
3027
      test -z "$LD" && LD="$ac_prog"
3028
      ;;
3029
  "")
3030
    # If it fails, then pretend we aren't using GCC.
3031
    ac_prog=ld
3032
    ;;
3033
  *)
3034
    # If it is relative, then search for the first ld in PATH.
3035
    with_gnu_ld=unknown
3036
    ;;
3037
  esac
3038
elif test "$with_gnu_ld" = yes; then
3039
  echo "$as_me:$LINENO: checking for GNU ld" >&5
3040
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3041
else
3042
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3043
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3044
fi
3045
if test "${lt_cv_path_LD+set}" = set; then
3046
  echo $ECHO_N "(cached) $ECHO_C" >&6
3047
else
3048
  if test -z "$LD"; then
3049
  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3050
  for ac_dir in $PATH; do
3051
    test -z "$ac_dir" && ac_dir=.
3052
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3053
      lt_cv_path_LD="$ac_dir/$ac_prog"
3054
      # Check to see if the program is GNU ld.  I'd rather use --version,
3055
      # but apparently some GNU ld's only accept -v.
3056
      # Break only if it was the GNU/non-GNU ld that we prefer.
3057
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3058
  test "$with_gnu_ld" != no && break
3059
      else
3060
  test "$with_gnu_ld" != yes && break
3061
      fi
3062
    fi
3063
  done
3064
  IFS="$ac_save_ifs"
3065
else
3066
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3067
fi
3068
fi
3069
3070
LD="$lt_cv_path_LD"
3071
if test -n "$LD"; then
3072
  echo "$as_me:$LINENO: result: $LD" >&5
3073
echo "${ECHO_T}$LD" >&6
3074
else
3075
  echo "$as_me:$LINENO: result: no" >&5
3076
echo "${ECHO_T}no" >&6
3077
fi
3078
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3079
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3080
   { (exit 1); exit 1; }; }
3081
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3082
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3083
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3084
  echo $ECHO_N "(cached) $ECHO_C" >&6
3085
else
3086
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3087
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3088
  lt_cv_prog_gnu_ld=yes
3089
else
3090
  lt_cv_prog_gnu_ld=no
3091
fi
3092
fi
3093
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3094
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3095
with_gnu_ld=$lt_cv_prog_gnu_ld
3096
3097
3098
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3099
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3100
if test "${lt_cv_ld_reload_flag+set}" = set; then
3101
  echo $ECHO_N "(cached) $ECHO_C" >&6
3102
else
3103
  lt_cv_ld_reload_flag='-r'
3104
fi
3105
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3106
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3107
reload_flag=$lt_cv_ld_reload_flag
3108
test -n "$reload_flag" && reload_flag=" $reload_flag"
3109
3110
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3111
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3112
if test "${lt_cv_path_NM+set}" = set; then
3113
  echo $ECHO_N "(cached) $ECHO_C" >&6
3114
else
3115
  if test -n "$NM"; then
3116
  # Let the user override the test.
3117
  lt_cv_path_NM="$NM"
3118
else
3119
  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3120
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3121
    test -z "$ac_dir" && ac_dir=.
3122
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3123
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3124
      # Check to see if the nm accepts a BSD-compat flag.
3125
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3126
      #   nm: unknown option "B" ignored
3127
      # Tru64's nm complains that /dev/null is an invalid object file
3128
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3129
  lt_cv_path_NM="$tmp_nm -B"
3130
  break
3131
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3132
  lt_cv_path_NM="$tmp_nm -p"
3133
  break
3134
      else
3135
  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3136
  continue # so that we can try to find one that supports BSD flags
3137
      fi
3138
    fi
3139
  done
3140
  IFS="$ac_save_ifs"
3141
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3142
fi
3143
fi
3144
3145
NM="$lt_cv_path_NM"
3146
echo "$as_me:$LINENO: result: $NM" >&5
3147
echo "${ECHO_T}$NM" >&6
3148
3149
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3150
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3151
if test "${lt_cv_path_SED+set}" = set; then
3152
  echo $ECHO_N "(cached) $ECHO_C" >&6
3153
else
3154
  # Loop through the user's path and test for sed and gsed.
3155
# Then use that list of sed's as ones to test for truncation.
3156
as_executable_p="test -f"
3157
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158
for as_dir in $PATH
3159
do
3160
  IFS=$as_save_IFS
3161
  test -z "$as_dir" && as_dir=.
3162
  for ac_prog in sed gsed; do
3163
    for ac_exec_ext in '' $ac_executable_extensions; do
3164
      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3165
        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3166
      fi
3167
    done
3168
  done
3169
done
3170
3171
  # Create a temporary directory, and hook for its removal unless debugging.
3172
$debug ||
3173
{
3174
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3175
  trap '{ (exit 1); exit 1; }' 1 2 13 15
3176
}
3177
3178
# Create a (secure) tmp directory for tmp files.
3179
: ${TMPDIR=/tmp}
3180
{
3181
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3182
  test -n "$tmp" && test -d "$tmp"
3183
}  ||
3184
{
3185
  tmp=$TMPDIR/sed$$-$RANDOM
3186
  (umask 077 && mkdir $tmp)
3187
} ||
3188
{
3189
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3190
   { (exit 1); exit 1; }
3191
}
3192
  _max=0
3193
  _count=0
3194
  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3195
  # along with /bin/sed that truncates output.
3196
  for _sed in $_sed_list /usr/xpg4/bin/sed; do
3197
    test ! -f ${_sed} && break
3198
    cat /dev/null > "$tmp/sed.in"
3199
    _count=0
3200
    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3201
    # Check for GNU sed and select it if it is found.
3202
    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3203
      lt_cv_path_SED=${_sed}
3204
      break;
3205
    fi
3206
    while true; do
3207
      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3208
      mv "$tmp/sed.tmp" "$tmp/sed.in"
3209
      cp "$tmp/sed.in" "$tmp/sed.nl"
3210
      echo >>"$tmp/sed.nl"
3211
      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3212
      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3213
      # 40000 chars as input seems more than enough
3214
      test $_count -gt 10 && break
3215
      _count=`expr $_count + 1`
3216
      if test $_count -gt $_max; then
3217
        _max=$_count
3218
        lt_cv_path_SED=$_sed
3219
      fi
3220
    done
3221
  done
3222
  rm -rf "$tmp"
3223
3224
fi
3225
3226
if test "X$SED" != "X"; then
3227
  lt_cv_path_SED=$SED
3228
else
3229
  SED=$lt_cv_path_SED
3230
fi
3231
echo "$as_me:$LINENO: result: $SED" >&5
3232
echo "${ECHO_T}$SED" >&6
3233
3234
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3235
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3236
LN_S=$as_ln_s
3237
if test "$LN_S" = "ln -s"; then
3238
  echo "$as_me:$LINENO: result: yes" >&5
3239
echo "${ECHO_T}yes" >&6
3240
else
3241
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3242
echo "${ECHO_T}no, using $LN_S" >&6
3243
fi
3244
3245
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3246
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3247
if test "${lt_cv_deplibs_check_method+set}" = set; then
3248
  echo $ECHO_N "(cached) $ECHO_C" >&6
3249
else
3250
  lt_cv_file_magic_cmd='$MAGIC_CMD'
3251
lt_cv_file_magic_test_file=
3252
lt_cv_deplibs_check_method='unknown'
3253
# Need to set the preceding variable on all platforms that support
3254
# interlibrary dependencies.
3255
# 'none' -- dependencies not supported.
3256
# `unknown' -- same as none, but documents that we really don't know.
3257
# 'pass_all' -- all dependencies passed with no checks.
3258
# 'test_compile' -- check by making test program.
3259
# 'file_magic [[regex]]' -- check by looking for files in library path
3260
# which responds to the $file_magic_cmd with a given egrep regex.
3261
# If you have `file' or equivalent on your system and you're not sure
3262
# whether `pass_all' will *always* work, you probably want this one.
3263
3264
case $host_os in
3265
aix4* | aix5*)
3266
  lt_cv_deplibs_check_method=pass_all
3267
  ;;
3268
3269
beos*)
3270
  lt_cv_deplibs_check_method=pass_all
3271
  ;;
3272
3273
bsdi4*)
3274
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3275
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3276
  lt_cv_file_magic_test_file=/shlib/libc.so
3277
  ;;
3278
3279
cygwin* | mingw* | pw32*)
3280
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3281
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3282
  ;;
3283
3284
darwin* | rhapsody*)
3285
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3286
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3287
  case "$host_os" in
3288
  rhapsody* | darwin1.[012])
3289
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3290
    ;;
3291
  *) # Darwin 1.3 on
3292
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3293
    ;;
3294
  esac
3295
  ;;
3296
3297
freebsd*)
3298
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3299
    case $host_cpu in
3300
    i*86 )
3301
      # Not sure whether the presence of OpenBSD here was a mistake.
3302
      # Let's accept both of them until this is cleared up.
3303
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3304
      lt_cv_file_magic_cmd=/usr/bin/file
3305
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3306
      ;;
3307
    esac
3308
  else
3309
    lt_cv_deplibs_check_method=pass_all
3310
  fi
3311
  ;;
3312
3313
gnu*)
3314
  lt_cv_deplibs_check_method=pass_all
3315
  ;;
3316
3317
hpux10.20*|hpux11*)
3318
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3319
  lt_cv_file_magic_cmd=/usr/bin/file
3320
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
3321
  ;;
3322
3323
irix5* | irix6* | nonstopux*)
3324
  case $host_os in
3325
  irix5* | nonstopux*)
3326
    # this will be overridden with pass_all, but let us keep it just in case
3327
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3328
    ;;
3329
  *)
3330
    case $LD in
3331
    *-32|*"-32 ") libmagic=32-bit;;
3332
    *-n32|*"-n32 ") libmagic=N32;;
3333
    *-64|*"-64 ") libmagic=64-bit;;
3334
    *) libmagic=never-match;;
3335
    esac
3336
    # this will be overridden with pass_all, but let us keep it just in case
3337
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3338
    ;;
3339
  esac
3340
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3341
  lt_cv_deplibs_check_method=pass_all
3342
  ;;
3343
3344
# This must be Linux ELF.
3345
linux-gnu*)
3346
  case $host_cpu in
3347
  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3348
    lt_cv_deplibs_check_method=pass_all ;;
3349
  *)
3350
    # glibc up to 2.1.1 does not perform some relocations on ARM
3351
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3352
  esac
3353
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3354
  ;;
3355
3356
netbsd*)
3357
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3358
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3359
  else
3360
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3361
  fi
3362
  ;;
3363
3364
newos6*)
3365
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3366
  lt_cv_file_magic_cmd=/usr/bin/file
3367
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3368
  ;;
3369
3370
openbsd*)
3371
  lt_cv_file_magic_cmd=/usr/bin/file
3372
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3373
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3374
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3375
  else
3376
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3377
  fi
3378
  ;;
3379
3380
osf3* | osf4* | osf5*)
3381
  # this will be overridden with pass_all, but let us keep it just in case
3382
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3383
  lt_cv_file_magic_test_file=/shlib/libc.so
3384
  lt_cv_deplibs_check_method=pass_all
3385
  ;;
3386
3387
sco3.2v5*)
3388
  lt_cv_deplibs_check_method=pass_all
3389
  ;;
3390
3391
solaris*)
3392
  lt_cv_deplibs_check_method=pass_all
3393
  lt_cv_file_magic_test_file=/lib/libc.so
3394
  ;;
3395
3396
sysv5uw[78]* | sysv4*uw2*)
3397
  lt_cv_deplibs_check_method=pass_all
3398
  ;;
3399
3400
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3401
  case $host_vendor in
3402
  motorola)
3403
    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]'
3404
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3405
    ;;
3406
  ncr)
3407
    lt_cv_deplibs_check_method=pass_all
3408
    ;;
3409
  sequent)
3410
    lt_cv_file_magic_cmd='/bin/file'
3411
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3412
    ;;
3413
  sni)
3414
    lt_cv_file_magic_cmd='/bin/file'
3415
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3416
    lt_cv_file_magic_test_file=/lib/libc.so
3417
    ;;
3418
  siemens)
3419
    lt_cv_deplibs_check_method=pass_all
3420
    ;;
3421
  esac
3422
  ;;
3423
esac
3424
3425
fi
3426
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3427
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3428
file_magic_cmd=$lt_cv_file_magic_cmd
3429
deplibs_check_method=$lt_cv_deplibs_check_method
3430
3431
3432
3433
3434
3435
3436
3437
# Check for command to grab the raw symbol name followed by C symbol from nm.
3438
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3439
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3440
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3441
  echo $ECHO_N "(cached) $ECHO_C" >&6
3442
else
3443
3444
# These are sane defaults that work on at least a few old systems.
3445
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3446
3447
# Character class describing NM global symbol codes.
3448
symcode='[BCDEGRST]'
3449
3450
# Regexp to match symbols that can be accessed directly from C.
3451
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3452
3453
# Transform the above into a raw symbol and a C symbol.
3454
symxfrm='\1 \2\3 \3'
3455
3456
# Transform an extracted symbol line into a proper C declaration
3457
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3458
3459
# Transform an extracted symbol line into symbol name and symbol address
3460
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3461
3462
# Define system-specific variables.
3463
case $host_os in
3464
aix*)
3465
  symcode='[BCDT]'
3466
  ;;
3467
cygwin* | mingw* | pw32*)
3468
  symcode='[ABCDGISTW]'
3469
  ;;
3470
hpux*) # Its linker distinguishes data from code symbols
3471
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3472
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3473
  ;;
3474
irix* | nonstopux*)
3475
  symcode='[BCDEGRST]'
3476
  ;;
3477
solaris* | sysv5*)
3478
  symcode='[BDT]'
3479
  ;;
3480
sysv4)
3481
  symcode='[DFNSTU]'
3482
  ;;
3483
esac
3484
3485
# Handle CRLF in mingw tool chain
3486
opt_cr=
3487
case $host_os in
3488
mingw*)
3489
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3490
  ;;
3491
esac
3492
3493
# If we're using GNU nm, then use its standard symbol codes.
3494
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3495
  symcode='[ABCDGISTW]'
3496
fi
3497
3498
# Try without a prefix undercore, then with it.
3499
for ac_symprfx in "" "_"; do
3500
3501
  # Write the raw and C identifiers.
3502
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[   ]\($symcode$symcode*\)[     ][  ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3503
3504
  # Check to see that the pipe works correctly.
3505
  pipe_works=no
3506
  rm -f conftest*
3507
  cat > conftest.$ac_ext <<EOF
3508
#ifdef __cplusplus
3509
extern "C" {
3510
#endif
3511
char nm_test_var;
3512
void nm_test_func(){}
3513
#ifdef __cplusplus
3514
}
3515
#endif
3516
int main(){nm_test_var='a';nm_test_func();return(0);}
3517
EOF
3518
3519
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520
  (eval $ac_compile) 2>&5
3521
  ac_status=$?
3522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523
  (exit $ac_status); }; then
3524
    # Now try to grab the symbols.
3525
    nlist=conftest.nm
3526
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3527
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3528
  ac_status=$?
3529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530
  (exit $ac_status); } && test -s "$nlist"; then
3531
      # Try sorting and uniquifying the output.
3532
      if sort "$nlist" | uniq > "$nlist"T; then
3533
  mv -f "$nlist"T "$nlist"
3534
      else
3535
  rm -f "$nlist"T
3536
      fi
3537
3538
      # Make sure that we snagged all the symbols we need.
3539
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3540
  if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3541
    cat <<EOF > conftest.$ac_ext
3542
#ifdef __cplusplus
3543
extern "C" {
3544
#endif
3545
3546
EOF
3547
    # Now generate the symbol file.
3548
    eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3549
3550
    cat <<EOF >> conftest.$ac_ext
3551
#if defined (__STDC__) && __STDC__
3552
# define lt_ptr void *
3553
#else
3554
# define lt_ptr char *
3555
# define const
3556
#endif
3557
3558
/* The mapping between symbol names and symbols. */
3559
const struct {
3560
  const char *name;
3561
  lt_ptr address;
3562
}
3563
lt_preloaded_symbols[] =
3564
{
3565
EOF
3566
    sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3567
    cat <<\EOF >> conftest.$ac_ext
3568
  {0, (lt_ptr) 0}
3569
};
3570
3571
#ifdef __cplusplus
3572
}
3573
#endif
3574
EOF
3575
    # Now try linking the two files.
3576
    mv conftest.$ac_objext conftstm.$ac_objext
3577
    save_LIBS="$LIBS"
3578
    save_CFLAGS="$CFLAGS"
3579
    LIBS="conftstm.$ac_objext"
3580
    CFLAGS="$CFLAGS$no_builtin_flag"
3581
    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3582
  (eval $ac_link) 2>&5
3583
  ac_status=$?
3584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585
  (exit $ac_status); } && test -s conftest; then
3586
      pipe_works=yes
3587
    fi
3588
    LIBS="$save_LIBS"
3589
    CFLAGS="$save_CFLAGS"
3590
  else
3591
    echo "cannot find nm_test_func in $nlist" >&5
3592
  fi
3593
      else
3594
  echo "cannot find nm_test_var in $nlist" >&5
3595
      fi
3596
    else
3597
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3598
    fi
3599
  else
3600
    echo "$progname: failed program was:" >&5
3601
    cat conftest.$ac_ext >&5
3602
  fi
3603
  rm -f conftest* conftst*
3604
3605
  # Do not use the global_symbol_pipe unless it works.
3606
  if test "$pipe_works" = yes; then
3607
    break
3608
  else
3609
    lt_cv_sys_global_symbol_pipe=
3610
  fi
3611
done
3612
3613
fi
3614
3615
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3616
if test -z "$lt_cv_sys_global_symbol_pipe"; then
3617
  global_symbol_to_cdecl=
3618
  global_symbol_to_c_name_address=
3619
else
3620
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3621
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3622
fi
3623
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3624
then
3625
  echo "$as_me:$LINENO: result: failed" >&5
3626
echo "${ECHO_T}failed" >&6
3627
else
3628
  echo "$as_me:$LINENO: result: ok" >&5
3629
echo "${ECHO_T}ok" >&6
3630
fi
3631
3632
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3633
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3634
if test "${ac_cv_header_stdc+set}" = set; then
3635
  echo $ECHO_N "(cached) $ECHO_C" >&6
3636
else
3637
  cat >conftest.$ac_ext <<_ACEOF
3638
#line $LINENO "configure"
3639
#include "confdefs.h"
3640
#include <stdlib.h>
3641
#include <stdarg.h>
3642
#include <string.h>
3643
#include <float.h>
3644
3645
_ACEOF
3646
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3647
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3648
  ac_status=$?
3649
  egrep -v '^ *\+' conftest.er1 >conftest.err
3650
  rm -f conftest.er1
3651
  cat conftest.err >&5
3652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653
  (exit $ac_status); } >/dev/null; then
3654
  if test -s conftest.err; then
3655
    ac_cpp_err=$ac_c_preproc_warn_flag
3656
  else
3657
    ac_cpp_err=
3658
  fi
3659
else
3660
  ac_cpp_err=yes
3661
fi
3662
if test -z "$ac_cpp_err"; then
3663
  ac_cv_header_stdc=yes
3664
else
3665
  echo "$as_me: failed program was:" >&5
3666
  cat conftest.$ac_ext >&5
3667
  ac_cv_header_stdc=no
3668
fi
3669
rm -f conftest.err conftest.$ac_ext
3670
3671
if test $ac_cv_header_stdc = yes; then
3672
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3673
  cat >conftest.$ac_ext <<_ACEOF
3674
#line $LINENO "configure"
3675
#include "confdefs.h"
3676
#include <string.h>
3677
3678
_ACEOF
3679
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3680
  egrep "memchr" >/dev/null 2>&1; then
3681
  :
3682
else
3683
  ac_cv_header_stdc=no
3684
fi
3685
rm -f conftest*
3686
3687
fi
3688
3689
if test $ac_cv_header_stdc = yes; then
3690
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3691
  cat >conftest.$ac_ext <<_ACEOF
3692
#line $LINENO "configure"
3693
#include "confdefs.h"
3694
#include <stdlib.h>
3695
3696
_ACEOF
3697
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3698
  egrep "free" >/dev/null 2>&1; then
3699
  :
3700
else
3701
  ac_cv_header_stdc=no
3702
fi
3703
rm -f conftest*
3704
3705
fi
3706
3707
if test $ac_cv_header_stdc = yes; then
3708
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3709
  if test "$cross_compiling" = yes; then
3710
  :
3711
else
3712
  cat >conftest.$ac_ext <<_ACEOF
3713
#line $LINENO "configure"
3714
#include "confdefs.h"
3715
#include <ctype.h>
3716
#if ((' ' & 0x0FF) == 0x020)
3717
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3718
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3719
#else
3720
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3721
                     || ('j' <= (c) && (c) <= 'r') \
3722
                     || ('s' <= (c) && (c) <= 'z'))
3723
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3724
#endif
3725
3726
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3727
int
3728
main ()
3729
{
3730
  int i;
3731
  for (i = 0; i < 256; i++)
3732
    if (XOR (islower (i), ISLOWER (i))
3733
        || toupper (i) != TOUPPER (i))
3734
      exit(2);
3735
  exit (0);
3736
}
3737
_ACEOF
3738
rm -f conftest$ac_exeext
3739
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3740
  (eval $ac_link) 2>&5
3741
  ac_status=$?
3742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745
  (eval $ac_try) 2>&5
3746
  ac_status=$?
3747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748
  (exit $ac_status); }; }; then
3749
  :
3750
else
3751
  echo "$as_me: program exited with status $ac_status" >&5
3752
echo "$as_me: failed program was:" >&5
3753
cat conftest.$ac_ext >&5
3754
( exit $ac_status )
3755
ac_cv_header_stdc=no
3756
fi
3757
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3758
fi
3759
fi
3760
fi
3761
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3762
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3763
if test $ac_cv_header_stdc = yes; then
3764
3765
cat >>confdefs.h <<\_ACEOF
3766
#define STDC_HEADERS 1
3767
_ACEOF
3768
3769
fi
3770
3771
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3782
                  inttypes.h stdint.h unistd.h
3783
do
3784
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3785
echo "$as_me:$LINENO: checking for $ac_header" >&5
3786
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3787
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3788
  echo $ECHO_N "(cached) $ECHO_C" >&6
3789
else
3790
  cat >conftest.$ac_ext <<_ACEOF
3791
#line $LINENO "configure"
3792
#include "confdefs.h"
3793
$ac_includes_default
3794
3795
#include <$ac_header>
3796
_ACEOF
3797
rm -f conftest.$ac_objext
3798
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3799
  (eval $ac_compile) 2>&5
3800
  ac_status=$?
3801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802
  (exit $ac_status); } &&
3803
         { ac_try='test -s conftest.$ac_objext'
3804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805
  (eval $ac_try) 2>&5
3806
  ac_status=$?
3807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808
  (exit $ac_status); }; }; then
3809
  eval "$as_ac_Header=yes"
3810
else
3811
  echo "$as_me: failed program was:" >&5
3812
cat conftest.$ac_ext >&5
3813
eval "$as_ac_Header=no"
3814
fi
3815
rm -f conftest.$ac_objext conftest.$ac_ext
3816
fi
3817
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3818
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3819
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3820
  cat >>confdefs.h <<_ACEOF
3821
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3822
_ACEOF
3823
3824
fi
3825
3826
done
3827
3828
3829
3830
for ac_header in dlfcn.h
3831
do
3832
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3833
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3834
  echo "$as_me:$LINENO: checking for $ac_header" >&5
3835
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3836
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3837
  echo $ECHO_N "(cached) $ECHO_C" >&6
3838
fi
3839
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3840
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3841
else
3842
  # Is the header compilable?
3843
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3844
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3845
cat >conftest.$ac_ext <<_ACEOF
3846
#line $LINENO "configure"
3847
#include "confdefs.h"
3848
$ac_includes_default
3849
#include <$ac_header>
3850
_ACEOF
3851
rm -f conftest.$ac_objext
3852
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3853
  (eval $ac_compile) 2>&5
3854
  ac_status=$?
3855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856
  (exit $ac_status); } &&
3857
         { ac_try='test -s conftest.$ac_objext'
3858
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859
  (eval $ac_try) 2>&5
3860
  ac_status=$?
3861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862
  (exit $ac_status); }; }; then
3863
  ac_header_compiler=yes
3864
else
3865
  echo "$as_me: failed program was:" >&5
3866
cat conftest.$ac_ext >&5
3867
ac_header_compiler=no
3868
fi
3869
rm -f conftest.$ac_objext conftest.$ac_ext
3870
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3871
echo "${ECHO_T}$ac_header_compiler" >&6
3872
3873
# Is the header present?
3874
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3875
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3876
cat >conftest.$ac_ext <<_ACEOF
3877
#line $LINENO "configure"
3878
#include "confdefs.h"
3879
#include <$ac_header>
3880
_ACEOF
3881
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3882
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3883
  ac_status=$?
3884
  egrep -v '^ *\+' conftest.er1 >conftest.err
3885
  rm -f conftest.er1
3886
  cat conftest.err >&5
3887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888
  (exit $ac_status); } >/dev/null; then
3889
  if test -s conftest.err; then
3890
    ac_cpp_err=$ac_c_preproc_warn_flag
3891
  else
3892
    ac_cpp_err=
3893
  fi
3894
else
3895
  ac_cpp_err=yes
3896
fi
3897
if test -z "$ac_cpp_err"; then
3898
  ac_header_preproc=yes
3899
else
3900
  echo "$as_me: failed program was:" >&5
3901
  cat conftest.$ac_ext >&5
3902
  ac_header_preproc=no
3903
fi
3904
rm -f conftest.err conftest.$ac_ext
3905
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3906
echo "${ECHO_T}$ac_header_preproc" >&6
3907
3908
# So?  What about this header?
3909
case $ac_header_compiler:$ac_header_preproc in
3910
  yes:no )
3911
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3912
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3913
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3914
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3915
  no:yes )
3916
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3917
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3918
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3919
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3920
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3921
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3922
esac
3923
echo "$as_me:$LINENO: checking for $ac_header" >&5
3924
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3925
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3926
  echo $ECHO_N "(cached) $ECHO_C" >&6
3927
else
3928
  eval "$as_ac_Header=$ac_header_preproc"
3929
fi
3930
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3931
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3932
3933
fi
3934
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3935
  cat >>confdefs.h <<_ACEOF
3936
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3937
_ACEOF
3938
3939
fi
3940
3941
done
3942
3943
3944
3945
3946
3947
3948
# Only perform the check for file, if the check method requires it
3949
case $deplibs_check_method in
3950
file_magic*)
3951
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3952
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3953
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3954
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3955
  echo $ECHO_N "(cached) $ECHO_C" >&6
3956
else
3957
  case $MAGIC_CMD in
3958
  /*)
3959
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3960
  ;;
3961
  ?:/*)
3962
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3963
  ;;
3964
  *)
3965
  ac_save_MAGIC_CMD="$MAGIC_CMD"
3966
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3967
  ac_dummy="/usr/bin:$PATH"
3968
  for ac_dir in $ac_dummy; do
3969
    test -z "$ac_dir" && ac_dir=.
3970
    if test -f $ac_dir/${ac_tool_prefix}file; then
3971
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3972
      if test -n "$file_magic_test_file"; then
3973
  case $deplibs_check_method in
3974
  "file_magic "*)
3975
    file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3976
    MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3977
    if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3978
      egrep "$file_magic_regex" > /dev/null; then
3979
      :
3980
    else
3981
      cat <<EOF 1>&2
3982
3983
*** Warning: the command libtool uses to detect shared libraries,
3984
*** $file_magic_cmd, produces output that libtool cannot recognize.
3985
*** The result is that libtool may fail to recognize shared libraries
3986
*** as such.  This will affect the creation of libtool libraries that
3987
*** depend on shared libraries, but programs linked with such libtool
3988
*** libraries will work regardless of this problem.  Nevertheless, you
3989
*** may want to report the problem to your system manager and/or to
3990
*** bug-libtool@gnu.org
3991
3992
EOF
3993
    fi ;;
3994
  esac
3995
      fi
3996
      break
3997
    fi
3998
  done
3999
  IFS="$ac_save_ifs"
4000
  MAGIC_CMD="$ac_save_MAGIC_CMD"
4001
  ;;
4002
esac
4003
fi
4004
4005
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4006
if test -n "$MAGIC_CMD"; then
4007
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4008
echo "${ECHO_T}$MAGIC_CMD" >&6
4009
else
4010
  echo "$as_me:$LINENO: result: no" >&5
4011
echo "${ECHO_T}no" >&6
4012
fi
4013
4014
if test -z "$lt_cv_path_MAGIC_CMD"; then
4015
  if test -n "$ac_tool_prefix"; then
4016
    echo "$as_me:$LINENO: checking for file" >&5
4017
echo $ECHO_N "checking for file... $ECHO_C" >&6
4018
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4019
  echo $ECHO_N "(cached) $ECHO_C" >&6
4020
else
4021
  case $MAGIC_CMD in
4022
  /*)
4023
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4024
  ;;
4025
  ?:/*)
4026
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4027
  ;;
4028
  *)
4029
  ac_save_MAGIC_CMD="$MAGIC_CMD"
4030
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4031
  ac_dummy="/usr/bin:$PATH"
4032
  for ac_dir in $ac_dummy; do
4033
    test -z "$ac_dir" && ac_dir=.
4034
    if test -f $ac_dir/file; then
4035
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
4036
      if test -n "$file_magic_test_file"; then
4037
  case $deplibs_check_method in
4038
  "file_magic "*)
4039
    file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4040
    MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4041
    if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4042
      egrep "$file_magic_regex" > /dev/null; then
4043
      :
4044
    else
4045
      cat <<EOF 1>&2
4046
4047
*** Warning: the command libtool uses to detect shared libraries,
4048
*** $file_magic_cmd, produces output that libtool cannot recognize.
4049
*** The result is that libtool may fail to recognize shared libraries
4050
*** as such.  This will affect the creation of libtool libraries that
4051
*** depend on shared libraries, but programs linked with such libtool
4052
*** libraries will work regardless of this problem.  Nevertheless, you
4053
*** may want to report the problem to your system manager and/or to
4054
*** bug-libtool@gnu.org
4055
4056
EOF
4057
    fi ;;
4058
  esac
4059
      fi
4060
      break
4061
    fi
4062
  done
4063
  IFS="$ac_save_ifs"
4064
  MAGIC_CMD="$ac_save_MAGIC_CMD"
4065
  ;;
4066
esac
4067
fi
4068
4069
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4070
if test -n "$MAGIC_CMD"; then
4071
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4072
echo "${ECHO_T}$MAGIC_CMD" >&6
4073
else
4074
  echo "$as_me:$LINENO: result: no" >&5
4075
echo "${ECHO_T}no" >&6
4076
fi
4077
4078
  else
4079
    MAGIC_CMD=:
4080
  fi
4081
fi
4082
4083
  fi
4084
  ;;
4085
esac
4086
4087
if test -n "$ac_tool_prefix"; then
4088
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4089
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4090
echo "$as_me:$LINENO: checking for $ac_word" >&5
4091
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4092
if test "${ac_cv_prog_RANLIB+set}" = set; then
4093
  echo $ECHO_N "(cached) $ECHO_C" >&6
4094
else
4095
  if test -n "$RANLIB"; then
4096
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4097
else
4098
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099
for as_dir in $PATH
4100
do
4101
  IFS=$as_save_IFS
4102
  test -z "$as_dir" && as_dir=.
4103
  for ac_exec_ext in '' $ac_executable_extensions; do
4104
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4106
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107
    break 2
4108
  fi
4109
done
4110
done
4111
4112
fi
4113
fi
4114
RANLIB=$ac_cv_prog_RANLIB
4115
if test -n "$RANLIB"; then
4116
  echo "$as_me:$LINENO: result: $RANLIB" >&5
4117
echo "${ECHO_T}$RANLIB" >&6
4118
else
4119
  echo "$as_me:$LINENO: result: no" >&5
4120
echo "${ECHO_T}no" >&6
4121
fi
4122
4123
fi
4124
if test -z "$ac_cv_prog_RANLIB"; then
4125
  ac_ct_RANLIB=$RANLIB
4126
  # Extract the first word of "ranlib", so it can be a program name with args.
4127
set dummy ranlib; ac_word=$2
4128
echo "$as_me:$LINENO: checking for $ac_word" >&5
4129
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4130
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4131
  echo $ECHO_N "(cached) $ECHO_C" >&6
4132
else
4133
  if test -n "$ac_ct_RANLIB"; then
4134
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4135
else
4136
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137
for as_dir in $PATH
4138
do
4139
  IFS=$as_save_IFS
4140
  test -z "$as_dir" && as_dir=.
4141
  for ac_exec_ext in '' $ac_executable_extensions; do
4142
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4143
    ac_cv_prog_ac_ct_RANLIB="ranlib"
4144
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4145
    break 2
4146
  fi
4147
done
4148
done
4149
4150
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4151
fi
4152
fi
4153
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4154
if test -n "$ac_ct_RANLIB"; then
4155
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4156
echo "${ECHO_T}$ac_ct_RANLIB" >&6
4157
else
4158
  echo "$as_me:$LINENO: result: no" >&5
4159
echo "${ECHO_T}no" >&6
4160
fi
4161
4162
  RANLIB=$ac_ct_RANLIB
4163
else
4164
  RANLIB="$ac_cv_prog_RANLIB"
4165
fi
4166
4167
if test -n "$ac_tool_prefix"; then
4168
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4169
set dummy ${ac_tool_prefix}strip; ac_word=$2
4170
echo "$as_me:$LINENO: checking for $ac_word" >&5
4171
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4172
if test "${ac_cv_prog_STRIP+set}" = set; then
4173
  echo $ECHO_N "(cached) $ECHO_C" >&6
4174
else
4175
  if test -n "$STRIP"; then
4176
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4177
else
4178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179
for as_dir in $PATH
4180
do
4181
  IFS=$as_save_IFS
4182
  test -z "$as_dir" && as_dir=.
4183
  for ac_exec_ext in '' $ac_executable_extensions; do
4184
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4186
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4187
    break 2
4188
  fi
4189
done
4190
done
4191
4192
fi
4193
fi
4194
STRIP=$ac_cv_prog_STRIP
4195
if test -n "$STRIP"; then
4196
  echo "$as_me:$LINENO: result: $STRIP" >&5
4197
echo "${ECHO_T}$STRIP" >&6
4198
else
4199
  echo "$as_me:$LINENO: result: no" >&5
4200
echo "${ECHO_T}no" >&6
4201
fi
4202
4203
fi
4204
if test -z "$ac_cv_prog_STRIP"; then
4205
  ac_ct_STRIP=$STRIP
4206
  # Extract the first word of "strip", so it can be a program name with args.
4207
set dummy strip; ac_word=$2
4208
echo "$as_me:$LINENO: checking for $ac_word" >&5
4209
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4210
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4211
  echo $ECHO_N "(cached) $ECHO_C" >&6
4212
else
4213
  if test -n "$ac_ct_STRIP"; then
4214
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4215
else
4216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217
for as_dir in $PATH
4218
do
4219
  IFS=$as_save_IFS
4220
  test -z "$as_dir" && as_dir=.
4221
  for ac_exec_ext in '' $ac_executable_extensions; do
4222
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4223
    ac_cv_prog_ac_ct_STRIP="strip"
4224
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225
    break 2
4226
  fi
4227
done
4228
done
4229
4230
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4231
fi
4232
fi
4233
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4234
if test -n "$ac_ct_STRIP"; then
4235
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4236
echo "${ECHO_T}$ac_ct_STRIP" >&6
4237
else
4238
  echo "$as_me:$LINENO: result: no" >&5
4239
echo "${ECHO_T}no" >&6
4240
fi
4241
4242
  STRIP=$ac_ct_STRIP
4243
else
4244
  STRIP="$ac_cv_prog_STRIP"
4245
fi
4246
4247
4248
enable_dlopen=no
4249
enable_win32_dll=no
4250
4251
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4252
if test "${enable_libtool_lock+set}" = set; then
4253
  enableval="$enable_libtool_lock"
4254
4255
fi;
4256
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4257
4258
# Some flags need to be propagated to the compiler or linker for good
4259
# libtool support.
4260
case $host in
4261
*-*-irix6*)
4262
  # Find out which ABI we are using.
4263
  echo '#line 4263 "configure"' > conftest.$ac_ext
4264
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4265
  (eval $ac_compile) 2>&5
4266
  ac_status=$?
4267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268
  (exit $ac_status); }; then
4269
    case `/usr/bin/file conftest.$ac_objext` in
4270
    *32-bit*)
4271
      LD="${LD-ld} -32"
4272
      ;;
4273
    *N32*)
4274
      LD="${LD-ld} -n32"
4275
      ;;
4276
    *64-bit*)
4277
      LD="${LD-ld} -64"
4278
      ;;
4279
    esac
4280
  fi
4281
  rm -rf conftest*
4282
  ;;
4283
4284
*-*-sco3.2v5*)
4285
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4286
  SAVE_CFLAGS="$CFLAGS"
4287
  CFLAGS="$CFLAGS -belf"
4288
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4289
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4290
if test "${lt_cv_cc_needs_belf+set}" = set; then
4291
  echo $ECHO_N "(cached) $ECHO_C" >&6
4292
else
4293
4294
4295
     ac_ext=c
4296
ac_cpp='$CPP $CPPFLAGS'
4297
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300
4301
     cat >conftest.$ac_ext <<_ACEOF
4302
#line $LINENO "configure"
4303
#include "confdefs.h"
4304
4305
#ifdef F77_DUMMY_MAIN
4306
#  ifdef __cplusplus
4307
     extern "C"
4308
#  endif
4309
   int F77_DUMMY_MAIN() { return 1; }
4310
#endif
4311
int
4312
main ()
4313
{
4314
4315
  ;
4316
  return 0;
4317
}
4318
_ACEOF
4319
rm -f conftest.$ac_objext conftest$ac_exeext
4320
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4321
  (eval $ac_link) 2>&5
4322
  ac_status=$?
4323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324
  (exit $ac_status); } &&
4325
         { ac_try='test -s conftest$ac_exeext'
4326
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327
  (eval $ac_try) 2>&5
4328
  ac_status=$?
4329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330
  (exit $ac_status); }; }; then
4331
  lt_cv_cc_needs_belf=yes
4332
else
4333
  echo "$as_me: failed program was:" >&5
4334
cat conftest.$ac_ext >&5
4335
lt_cv_cc_needs_belf=no
4336
fi
4337
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4338
     ac_ext=c
4339
ac_cpp='$CPP $CPPFLAGS'
4340
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343
4344
fi
4345
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4346
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4347
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4348
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4349
    CFLAGS="$SAVE_CFLAGS"
4350
  fi
4351
  ;;
4352
4353
4354
esac
4355
4356
# Sed substitution that helps us do robust quoting.  It backslashifies
4357
# metacharacters that are still active within double-quoted strings.
4358
Xsed='sed -e s/^X//'
4359
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4360
4361
# Same as above, but do not quote variable references.
4362
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4363
4364
# Sed substitution to delay expansion of an escaped shell variable in a
4365
# double_quote_subst'ed string.
4366
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4367
4368
# Constants:
4369
rm="rm -f"
4370
4371
# Global variables:
4372
default_ofile=libtool
4373
can_build_shared=yes
4374
4375
# All known linkers require a `.a' archive for static linking (except M$VC,
4376
# which needs '.lib').
4377
libext=a
4378
ltmain="$ac_aux_dir/ltmain.sh"
4379
ofile="$default_ofile"
4380
with_gnu_ld="$lt_cv_prog_gnu_ld"
4381
need_locks="$enable_libtool_lock"
4382
4383
old_CC="$CC"
4384
old_CFLAGS="$CFLAGS"
4385
4386
# Set sane defaults for various variables
4387
test -z "$AR" && AR=ar
4388
test -z "$AR_FLAGS" && AR_FLAGS=cru
4389
test -z "$AS" && AS=as
4390
test -z "$CC" && CC=cc
4391
test -z "$DLLTOOL" && DLLTOOL=dlltool
4392
test -z "$LD" && LD=ld
4393
test -z "$LN_S" && LN_S="ln -s"
4394
test -z "$MAGIC_CMD" && MAGIC_CMD=file
4395
test -z "$NM" && NM=nm
4396
test -z "$OBJDUMP" && OBJDUMP=objdump
4397
test -z "$RANLIB" && RANLIB=:
4398
test -z "$STRIP" && STRIP=:
4399
test -z "$ac_objext" && ac_objext=o
4400
4401
if test x"$host" != x"$build"; then
4402
  ac_tool_prefix=${host_alias}-
4403
else
4404
  ac_tool_prefix=
4405
fi
4406
4407
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4408
case $host_os in
4409
linux-gnu*) ;;
4410
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4411
esac
4412
4413
case $host_os in
4414
aix3*)
4415
  # AIX sometimes has problems with the GCC collect2 program.  For some
4416
  # reason, if we set the COLLECT_NAMES environment variable, the problems
4417
  # vanish in a puff of smoke.
4418
  if test "X${COLLECT_NAMES+set}" != Xset; then
4419
    COLLECT_NAMES=
4420
    export COLLECT_NAMES
4421
  fi
4422
  ;;
4423
esac
4424
4425
# Determine commands to create old-style static archives.
4426
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4427
old_postinstall_cmds='chmod 644 $oldlib'
4428
old_postuninstall_cmds=
4429
4430
if test -n "$RANLIB"; then
4431
  case $host_os in
4432
  openbsd*)
4433
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4434
    ;;
4435
  *)
4436
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4437
    ;;
4438
  esac
4439
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4440
fi
4441
4442
# Allow CC to be a program name with arguments.
4443
set dummy $CC
4444
compiler="$2"
4445
4446
echo "$as_me:$LINENO: checking for objdir" >&5
4447
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4448
rm -f .libs 2>/dev/null
4449
mkdir .libs 2>/dev/null
4450
if test -d .libs; then
4451
  objdir=.libs
4452
else
4453
  # MS-DOS does not allow filenames that begin with a dot.
4454
  objdir=_libs
4455
fi
4456
rmdir .libs 2>/dev/null
4457
echo "$as_me:$LINENO: result: $objdir" >&5
4458
echo "${ECHO_T}$objdir" >&6
4459
4460
4461
4462
# Check whether --with-pic or --without-pic was given.
4463
if test "${with_pic+set}" = set; then
4464
  withval="$with_pic"
4465
  pic_mode="$withval"
4466
else
4467
  pic_mode=default
4468
fi;
4469
test -z "$pic_mode" && pic_mode=default
4470
4471
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4472
# in isolation, and that seeing it set (from the cache) indicates that
4473
# the associated values are set (in the cache) correctly too.
4474
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4475
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4476
if test "${lt_cv_prog_cc_pic+set}" = set; then
4477
  echo $ECHO_N "(cached) $ECHO_C" >&6
4478
else
4479
   lt_cv_prog_cc_pic=
4480
  lt_cv_prog_cc_shlib=
4481
  lt_cv_prog_cc_wl=
4482
  lt_cv_prog_cc_static=
4483
  lt_cv_prog_cc_no_builtin=
4484
  lt_cv_prog_cc_can_build_shared=$can_build_shared
4485
4486
  if test "$GCC" = yes; then
4487
    lt_cv_prog_cc_wl='-Wl,'
4488
    lt_cv_prog_cc_static='-static'
4489
4490
    case $host_os in
4491
    aix*)
4492
      # Below there is a dirty hack to force normal static linking with -ldl
4493
      # The problem is because libdl dynamically linked with both libc and
4494
      # libC (AIX C++ library), which obviously doesn't included in libraries
4495
      # list by gcc. This cause undefined symbols with -static flags.
4496
      # This hack allows C programs to be linked with "-static -ldl", but
4497
      # not sure about C++ programs.
4498
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4499
      ;;
4500
    amigaos*)
4501
      # FIXME: we need at least 68020 code to build shared libraries, but
4502
      # adding the `-m68020' flag to GCC prevents building anything better,
4503
      # like `-m68040'.
4504
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4505
      ;;
4506
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4507
      # PIC is the default for these OSes.
4508
      ;;
4509
    darwin* | rhapsody*)
4510
      # PIC is the default on this platform
4511
      # Common symbols not allowed in MH_DYLIB files
4512
      lt_cv_prog_cc_pic='-fno-common'
4513
      ;;
4514
    cygwin* | mingw* | pw32* | os2*)
4515
      # This hack is so that the source file can tell whether it is being
4516
      # built for inclusion in a dll (and should export symbols for example).
4517
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4518
      ;;
4519
    sysv4*MP*)
4520
      if test -d /usr/nec; then
4521
   lt_cv_prog_cc_pic=-Kconform_pic
4522
      fi
4523
      ;;
4524
    *)
4525
      lt_cv_prog_cc_pic='-fPIC'
4526
      ;;
4527
    esac
4528
  else
4529
    # PORTME Check for PIC flags for the system compiler.
4530
    case $host_os in
4531
    aix3* | aix4* | aix5*)
4532
      lt_cv_prog_cc_wl='-Wl,'
4533
      # All AIX code is PIC.
4534
      if test "$host_cpu" = ia64; then
4535
  # AIX 5 now supports IA64 processor
4536
  lt_cv_prog_cc_static='-Bstatic'
4537
      else
4538
  lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4539
      fi
4540
      ;;
4541
4542
    hpux9* | hpux10* | hpux11*)
4543
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4544
      lt_cv_prog_cc_wl='-Wl,'
4545
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4546
      lt_cv_prog_cc_pic='+Z'
4547
      ;;
4548
4549
    irix5* | irix6* | nonstopux*)
4550
      lt_cv_prog_cc_wl='-Wl,'
4551
      lt_cv_prog_cc_static='-non_shared'
4552
      # PIC (with -KPIC) is the default.
4553
      ;;
4554
4555
    cygwin* | mingw* | pw32* | os2*)
4556
      # This hack is so that the source file can tell whether it is being
4557
      # built for inclusion in a dll (and should export symbols for example).
4558
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4559
      ;;
4560
4561
    newsos6)
4562
      lt_cv_prog_cc_pic='-KPIC'
4563
      lt_cv_prog_cc_static='-Bstatic'
4564
      ;;
4565
4566
    osf3* | osf4* | osf5*)
4567
      # All OSF/1 code is PIC.
4568
      lt_cv_prog_cc_wl='-Wl,'
4569
      lt_cv_prog_cc_static='-non_shared'
4570
      ;;
4571
4572
    sco3.2v5*)
4573
      lt_cv_prog_cc_pic='-Kpic'
4574
      lt_cv_prog_cc_static='-dn'
4575
      lt_cv_prog_cc_shlib='-belf'
4576
      ;;
4577
4578
    solaris*)
4579
      lt_cv_prog_cc_pic='-KPIC'
4580
      lt_cv_prog_cc_static='-Bstatic'
4581
      lt_cv_prog_cc_wl='-Wl,'
4582
      ;;
4583
4584
    sunos4*)
4585
      lt_cv_prog_cc_pic='-PIC'
4586
      lt_cv_prog_cc_static='-Bstatic'
4587
      lt_cv_prog_cc_wl='-Qoption ld '
4588
      ;;
4589
4590
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4591
      lt_cv_prog_cc_pic='-KPIC'
4592
      lt_cv_prog_cc_static='-Bstatic'
4593
      lt_cv_prog_cc_wl='-Wl,'
4594
      ;;
4595
4596
    uts4*)
4597
      lt_cv_prog_cc_pic='-pic'
4598
      lt_cv_prog_cc_static='-Bstatic'
4599
      ;;
4600
4601
    sysv4*MP*)
4602
      if test -d /usr/nec ;then
4603
  lt_cv_prog_cc_pic='-Kconform_pic'
4604
  lt_cv_prog_cc_static='-Bstatic'
4605
      fi
4606
      ;;
4607
4608
    *)
4609
      lt_cv_prog_cc_can_build_shared=no
4610
      ;;
4611
    esac
4612
  fi
4613
4614
fi
4615
4616
if test -z "$lt_cv_prog_cc_pic"; then
4617
  echo "$as_me:$LINENO: result: none" >&5
4618
echo "${ECHO_T}none" >&6
4619
else
4620
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4621
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4622
4623
  # Check to make sure the pic_flag actually works.
4624
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4625
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4626
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4627
  echo $ECHO_N "(cached) $ECHO_C" >&6
4628
else
4629
      save_CFLAGS="$CFLAGS"
4630
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4631
    cat >conftest.$ac_ext <<_ACEOF
4632
#line $LINENO "configure"
4633
#include "confdefs.h"
4634
4635
#ifdef F77_DUMMY_MAIN
4636
#  ifdef __cplusplus
4637
     extern "C"
4638
#  endif
4639
   int F77_DUMMY_MAIN() { return 1; }
4640
#endif
4641
int
4642
main ()
4643
{
4644
4645
  ;
4646
  return 0;
4647
}
4648
_ACEOF
4649
rm -f conftest.$ac_objext
4650
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4651
  (eval $ac_compile) 2>&5
4652
  ac_status=$?
4653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654
  (exit $ac_status); } &&
4655
         { ac_try='test -s conftest.$ac_objext'
4656
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657
  (eval $ac_try) 2>&5
4658
  ac_status=$?
4659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660
  (exit $ac_status); }; }; then
4661
        case $host_os in
4662
      hpux9* | hpux10* | hpux11*)
4663
  # On HP-UX, both CC and GCC only warn that PIC is supported... then
4664
  # they create non-PIC objects.  So, if there were any warnings, we
4665
  # assume that PIC is not supported.
4666
  if test -s conftest.err; then
4667
    lt_cv_prog_cc_pic_works=no
4668
  else
4669
    lt_cv_prog_cc_pic_works=yes
4670
  fi
4671
  ;;
4672
      *)
4673
  lt_cv_prog_cc_pic_works=yes
4674
  ;;
4675
      esac
4676
4677
else
4678
  echo "$as_me: failed program was:" >&5
4679
cat conftest.$ac_ext >&5
4680
      lt_cv_prog_cc_pic_works=no
4681
4682
fi
4683
rm -f conftest.$ac_objext conftest.$ac_ext
4684
    CFLAGS="$save_CFLAGS"
4685
4686
fi
4687
4688
4689
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4690
    lt_cv_prog_cc_pic=
4691
    lt_cv_prog_cc_can_build_shared=no
4692
  else
4693
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4694
  fi
4695
4696
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4697
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4698
fi
4699
4700
# Check for any special shared library compilation flags.
4701
if test -n "$lt_cv_prog_cc_shlib"; then
4702
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4703
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4704
  if echo "$old_CC $old_CFLAGS " | egrep -e "[    ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4705
  else
4706
   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4707
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4708
    lt_cv_prog_cc_can_build_shared=no
4709
  fi
4710
fi
4711
4712
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4713
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4714
if test "${lt_cv_prog_cc_static_works+set}" = set; then
4715
  echo $ECHO_N "(cached) $ECHO_C" >&6
4716
else
4717
    lt_cv_prog_cc_static_works=no
4718
  save_LDFLAGS="$LDFLAGS"
4719
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4720
  cat >conftest.$ac_ext <<_ACEOF
4721
#line $LINENO "configure"
4722
#include "confdefs.h"
4723
4724
#ifdef F77_DUMMY_MAIN
4725
#  ifdef __cplusplus
4726
     extern "C"
4727
#  endif
4728
   int F77_DUMMY_MAIN() { return 1; }
4729
#endif
4730
int
4731
main ()
4732
{
4733
4734
  ;
4735
  return 0;
4736
}
4737
_ACEOF
4738
rm -f conftest.$ac_objext conftest$ac_exeext
4739
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4740
  (eval $ac_link) 2>&5
4741
  ac_status=$?
4742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743
  (exit $ac_status); } &&
4744
         { ac_try='test -s conftest$ac_exeext'
4745
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746
  (eval $ac_try) 2>&5
4747
  ac_status=$?
4748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749
  (exit $ac_status); }; }; then
4750
  lt_cv_prog_cc_static_works=yes
4751
else
4752
  echo "$as_me: failed program was:" >&5
4753
cat conftest.$ac_ext >&5
4754
fi
4755
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4756
  LDFLAGS="$save_LDFLAGS"
4757
4758
fi
4759
4760
4761
# Belt *and* braces to stop my trousers falling down:
4762
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4763
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4764
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4765
4766
pic_flag="$lt_cv_prog_cc_pic"
4767
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4768
wl="$lt_cv_prog_cc_wl"
4769
link_static_flag="$lt_cv_prog_cc_static"
4770
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4771
can_build_shared="$lt_cv_prog_cc_can_build_shared"
4772
4773
4774
# Check to see if options -o and -c are simultaneously supported by compiler
4775
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4776
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4777
if test "${lt_cv_compiler_c_o+set}" = set; then
4778
  echo $ECHO_N "(cached) $ECHO_C" >&6
4779
else
4780
4781
$rm -r conftest 2>/dev/null
4782
mkdir conftest
4783
cd conftest
4784
echo "int some_variable = 0;" > conftest.$ac_ext
4785
mkdir out
4786
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4787
# that will create temporary files in the current directory regardless of
4788
# the output directory.  Thus, making CWD read-only will cause this test
4789
# to fail, enabling locking or at least warning the user not to do parallel
4790
# builds.
4791
chmod -w .
4792
save_CFLAGS="$CFLAGS"
4793
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4794
compiler_c_o=no
4795
if { (eval echo configure:4795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4796
  # The compiler can only warn and ignore the option if not recognized
4797
  # So say no if there are warnings
4798
  if test -s out/conftest.err; then
4799
    lt_cv_compiler_c_o=no
4800
  else
4801
    lt_cv_compiler_c_o=yes
4802
  fi
4803
else
4804
  # Append any errors to the config.log.
4805
  cat out/conftest.err 1>&5
4806
  lt_cv_compiler_c_o=no
4807
fi
4808
CFLAGS="$save_CFLAGS"
4809
chmod u+w .
4810
$rm conftest* out/*
4811
rmdir out
4812
cd ..
4813
rmdir conftest
4814
$rm -r conftest 2>/dev/null
4815
4816
fi
4817
4818
compiler_c_o=$lt_cv_compiler_c_o
4819
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4820
echo "${ECHO_T}$compiler_c_o" >&6
4821
4822
if test x"$compiler_c_o" = x"yes"; then
4823
  # Check to see if we can write to a .lo
4824
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4825
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4826
  if test "${lt_cv_compiler_o_lo+set}" = set; then
4827
  echo $ECHO_N "(cached) $ECHO_C" >&6
4828
else
4829
4830
  lt_cv_compiler_o_lo=no
4831
  save_CFLAGS="$CFLAGS"
4832
  CFLAGS="$CFLAGS -c -o conftest.lo"
4833
  save_objext="$ac_objext"
4834
  ac_objext=lo
4835
  cat >conftest.$ac_ext <<_ACEOF
4836
#line $LINENO "configure"
4837
#include "confdefs.h"
4838
4839
#ifdef F77_DUMMY_MAIN
4840
#  ifdef __cplusplus
4841
     extern "C"
4842
#  endif
4843
   int F77_DUMMY_MAIN() { return 1; }
4844
#endif
4845
int
4846
main ()
4847
{
4848
int some_variable = 0;
4849
  ;
4850
  return 0;
4851
}
4852
_ACEOF
4853
rm -f conftest.$ac_objext
4854
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855
  (eval $ac_compile) 2>&5
4856
  ac_status=$?
4857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858
  (exit $ac_status); } &&
4859
         { ac_try='test -s conftest.$ac_objext'
4860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861
  (eval $ac_try) 2>&5
4862
  ac_status=$?
4863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864
  (exit $ac_status); }; }; then
4865
      # The compiler can only warn and ignore the option if not recognized
4866
    # So say no if there are warnings
4867
    if test -s conftest.err; then
4868
      lt_cv_compiler_o_lo=no
4869
    else
4870
      lt_cv_compiler_o_lo=yes
4871
    fi
4872
4873
else
4874
  echo "$as_me: failed program was:" >&5
4875
cat conftest.$ac_ext >&5
4876
fi
4877
rm -f conftest.$ac_objext conftest.$ac_ext
4878
  ac_objext="$save_objext"
4879
  CFLAGS="$save_CFLAGS"
4880
4881
fi
4882
4883
  compiler_o_lo=$lt_cv_compiler_o_lo
4884
  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4885
echo "${ECHO_T}$compiler_o_lo" >&6
4886
else
4887
  compiler_o_lo=no
4888
fi
4889
4890
# Check to see if we can do hard links to lock some files if needed
4891
hard_links="nottested"
4892
if test "$compiler_c_o" = no && test "$need_locks" != no; then
4893
  # do not overwrite the value of need_locks provided by the user
4894
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4895
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4896
  hard_links=yes
4897
  $rm conftest*
4898
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4899
  touch conftest.a
4900
  ln conftest.a conftest.b 2>&5 || hard_links=no
4901
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4902
  echo "$as_me:$LINENO: result: $hard_links" >&5
4903
echo "${ECHO_T}$hard_links" >&6
4904
  if test "$hard_links" = no; then
4905
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4906
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4907
    need_locks=warn
4908
  fi
4909
else
4910
  need_locks=no
4911
fi
4912
4913
if test "$GCC" = yes; then
4914
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4915
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4916
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4917
  echo "int some_variable = 0;" > conftest.$ac_ext
4918
  save_CFLAGS="$CFLAGS"
4919
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4920
  compiler_rtti_exceptions=no
4921
  cat >conftest.$ac_ext <<_ACEOF
4922
#line $LINENO "configure"
4923
#include "confdefs.h"
4924
4925
#ifdef F77_DUMMY_MAIN
4926
#  ifdef __cplusplus
4927
     extern "C"
4928
#  endif
4929
   int F77_DUMMY_MAIN() { return 1; }
4930
#endif
4931
int
4932
main ()
4933
{
4934
int some_variable = 0;
4935
  ;
4936
  return 0;
4937
}
4938
_ACEOF
4939
rm -f conftest.$ac_objext
4940
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941
  (eval $ac_compile) 2>&5
4942
  ac_status=$?
4943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944
  (exit $ac_status); } &&
4945
         { ac_try='test -s conftest.$ac_objext'
4946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947
  (eval $ac_try) 2>&5
4948
  ac_status=$?
4949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950
  (exit $ac_status); }; }; then
4951
      # The compiler can only warn and ignore the option if not recognized
4952
    # So say no if there are warnings
4953
    if test -s conftest.err; then
4954
      compiler_rtti_exceptions=no
4955
    else
4956
      compiler_rtti_exceptions=yes
4957
    fi
4958
4959
else
4960
  echo "$as_me: failed program was:" >&5
4961
cat conftest.$ac_ext >&5
4962
fi
4963
rm -f conftest.$ac_objext conftest.$ac_ext
4964
  CFLAGS="$save_CFLAGS"
4965
  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4966
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4967
4968
  if test "$compiler_rtti_exceptions" = "yes"; then
4969
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4970
  else
4971
    no_builtin_flag=' -fno-builtin'
4972
  fi
4973
fi
4974
4975
# See if the linker supports building shared libraries.
4976
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4977
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4978
4979
allow_undefined_flag=
4980
no_undefined_flag=
4981
need_lib_prefix=unknown
4982
need_version=unknown
4983
# when you set need_version to no, make sure it does not cause -set_version
4984
# flags to be left without arguments
4985
archive_cmds=
4986
archive_expsym_cmds=
4987
old_archive_from_new_cmds=
4988
old_archive_from_expsyms_cmds=
4989
export_dynamic_flag_spec=
4990
whole_archive_flag_spec=
4991
thread_safe_flag_spec=
4992
hardcode_into_libs=no
4993
hardcode_libdir_flag_spec=
4994
hardcode_libdir_separator=
4995
hardcode_direct=no
4996
hardcode_minus_L=no
4997
hardcode_shlibpath_var=unsupported
4998
runpath_var=
4999
link_all_deplibs=unknown
5000
always_export_symbols=no
5001
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5002
# include_expsyms should be a list of space-separated symbols to be *always*
5003
# included in the symbol list
5004
include_expsyms=
5005
# exclude_expsyms can be an egrep regular expression of symbols to exclude
5006
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5007
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5008
# as well as any symbol that contains `d'.
5009
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5010
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5011
# platforms (ab)use it in PIC code, but their linkers get confused if
5012
# the symbol is explicitly referenced.  Since portable code cannot
5013
# rely on this symbol name, it's probably fine to never include it in
5014
# preloaded symbol tables.
5015
extract_expsyms_cmds=
5016
5017
case $host_os in
5018
cygwin* | mingw* | pw32*)
5019
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
5020
  # When not using gcc, we currently assume that we are using
5021
  # Microsoft Visual C++.
5022
  if test "$GCC" != yes; then
5023
    with_gnu_ld=no
5024
  fi
5025
  ;;
5026
openbsd*)
5027
  with_gnu_ld=no
5028
  ;;
5029
esac
5030
5031
ld_shlibs=yes
5032
if test "$with_gnu_ld" = yes; then
5033
  # If archive_cmds runs LD, not CC, wlarc should be empty
5034
  wlarc='${wl}'
5035
5036
  # See if GNU ld supports shared libraries.
5037
  case $host_os in
5038
  aix3* | aix4* | aix5*)
5039
    # On AIX, the GNU linker is very broken
5040
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5041
    ld_shlibs=no
5042
    cat <<EOF 1>&2
5043
5044
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5045
*** to be unable to reliably create shared libraries on AIX.
5046
*** Therefore, libtool is disabling shared libraries support.  If you
5047
*** really care for shared libraries, you may want to modify your PATH
5048
*** so that a non-GNU linker is found, and then restart.
5049
5050
EOF
5051
    ;;
5052
5053
  amigaos*)
5054
    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)'
5055
    hardcode_libdir_flag_spec='-L$libdir'
5056
    hardcode_minus_L=yes
5057
5058
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5059
    # that the semantics of dynamic libraries on AmigaOS, at least up
5060
    # to version 4, is to share data among multiple programs linked
5061
    # with the same dynamic library.  Since this doesn't match the
5062
    # behavior of shared libraries on other platforms, we can use
5063
    # them.
5064
    ld_shlibs=no
5065
    ;;
5066
5067
  beos*)
5068
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5069
      allow_undefined_flag=unsupported
5070
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5071
      # support --undefined.  This deserves some investigation.  FIXME
5072
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5073
    else
5074
      ld_shlibs=no
5075
    fi
5076
    ;;
5077
5078
  cygwin* | mingw* | pw32*)
5079
    # hardcode_libdir_flag_spec is actually meaningless, as there is
5080
    # no search path for DLLs.
5081
    hardcode_libdir_flag_spec='-L$libdir'
5082
    allow_undefined_flag=unsupported
5083
    always_export_symbols=yes
5084
5085
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5086
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5087
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5088
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5089
      else $CC -o impgen impgen.c ; fi)~
5090
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5091
5092
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5093
5094
    # cygwin and mingw dlls have different entry points and sets of symbols
5095
    # to exclude.
5096
    # FIXME: what about values for MSVC?
5097
    dll_entry=__cygwin_dll_entry@12
5098
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5099
    case $host_os in
5100
    mingw*)
5101
      # mingw values
5102
      dll_entry=_DllMainCRTStartup@12
5103
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5104
      ;;
5105
    esac
5106
5107
    # mingw and cygwin differ, and it's simplest to just exclude the union
5108
    # of the two symbol sets.
5109
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5110
5111
    # recent cygwin and mingw systems supply a stub DllMain which the user
5112
    # can override, but on older systems we have to supply one (in ltdll.c)
5113
    if test "x$lt_cv_need_dllmain" = "xyes"; then
5114
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5115
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5116
  test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5117
    else
5118
      ltdll_obj=
5119
      ltdll_cmds=
5120
    fi
5121
5122
    # Extract the symbol export list from an `--export-all' def file,
5123
    # then regenerate the def file from the symbol export list, so that
5124
    # the compiled dll only exports the symbol export list.
5125
    # Be careful not to strip the DATA tag left be newer dlltools.
5126
    export_symbols_cmds="$ltdll_cmds"'
5127
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5128
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5129
5130
    # If the export-symbols file already is a .def file (1st line
5131
    # is EXPORTS), use it as is.
5132
    # If DATA tags from a recent dlltool are present, honour them!
5133
    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5134
  cp $export_symbols $output_objdir/$soname-def;
5135
      else
5136
  echo EXPORTS > $output_objdir/$soname-def;
5137
  _lt_hint=1;
5138
  cat $export_symbols | while read symbol; do
5139
   set dummy \$symbol;
5140
   case \$# in
5141
     2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5142
     4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5143
     *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5144
   esac;
5145
   _lt_hint=`expr 1 + \$_lt_hint`;
5146
  done;
5147
      fi~
5148
      '"$ltdll_cmds"'
5149
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5150
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5151
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5152
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5153
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5154
    ;;
5155
5156
  netbsd*)
5157
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5158
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5159
      wlarc=
5160
    else
5161
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5162
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5163
    fi
5164
    ;;
5165
5166
  solaris* | sysv5*)
5167
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5168
      ld_shlibs=no
5169
      cat <<EOF 1>&2
5170
5171
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5172
*** create shared libraries on Solaris systems.  Therefore, libtool
5173
*** is disabling shared libraries support.  We urge you to upgrade GNU
5174
*** binutils to release 2.9.1 or newer.  Another option is to modify
5175
*** your PATH or compiler configuration so that the native linker is
5176
*** used, and then restart.
5177
5178
EOF
5179
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5180
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5181
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5182
    else
5183
      ld_shlibs=no
5184
    fi
5185
    ;;
5186
5187
  sunos4*)
5188
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5189
    wlarc=
5190
    hardcode_direct=yes
5191
    hardcode_shlibpath_var=no
5192
    ;;
5193
5194
  *)
5195
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5196
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5197
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5198
    else
5199
      ld_shlibs=no
5200
    fi
5201
    ;;
5202
  esac
5203
5204
  if test "$ld_shlibs" = yes; then
5205
    runpath_var=LD_RUN_PATH
5206
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5207
    export_dynamic_flag_spec='${wl}--export-dynamic'
5208
    case $host_os in
5209
    cygwin* | mingw* | pw32*)
5210
      # dlltool doesn't understand --whole-archive et. al.
5211
      whole_archive_flag_spec=
5212
      ;;
5213
    *)
5214
      # ancient GNU ld didn't support --whole-archive et. al.
5215
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5216
  whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5217
      else
5218
  whole_archive_flag_spec=
5219
      fi
5220
      ;;
5221
    esac
5222
  fi
5223
else
5224
  # PORTME fill in a description of your system's linker (not GNU ld)
5225
  case $host_os in
5226
  aix3*)
5227
    allow_undefined_flag=unsupported
5228
    always_export_symbols=yes
5229
    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'
5230
    # Note: this linker hardcodes the directories in LIBPATH if there
5231
    # are no directories specified by -L.
5232
    hardcode_minus_L=yes
5233
    if test "$GCC" = yes && test -z "$link_static_flag"; then
5234
      # Neither direct hardcoding nor static linking is supported with a
5235
      # broken collect2.
5236
      hardcode_direct=unsupported
5237
    fi
5238
    ;;
5239
5240
  aix4* | aix5*)
5241
    if test "$host_cpu" = ia64; then
5242
      # On IA64, the linker does run time linking by default, so we don't
5243
      # have to do anything special.
5244
      aix_use_runtimelinking=no
5245
      exp_sym_flag='-Bexport'
5246
      no_entry_flag=""
5247
    else
5248
      aix_use_runtimelinking=no
5249
5250
      # Test if we are trying to use run time linking or normal
5251
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5252
      # need to do runtime linking.
5253
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5254
  for ld_flag in $LDFLAGS; do
5255
    if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5256
      aix_use_runtimelinking=yes
5257
      break
5258
    fi
5259
  done
5260
      esac
5261
5262
      exp_sym_flag='-bexport'
5263
      no_entry_flag='-bnoentry'
5264
    fi
5265
5266
    # When large executables or shared objects are built, AIX ld can
5267
    # have problems creating the table of contents.  If linking a library
5268
    # or program results in "error TOC overflow" add -mminimal-toc to
5269
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5270
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5271
5272
    hardcode_direct=yes
5273
    archive_cmds=''
5274
    hardcode_libdir_separator=':'
5275
    if test "$GCC" = yes; then
5276
      case $host_os in aix4.[012]|aix4.[012].*)
5277
  collect2name=`${CC} -print-prog-name=collect2`
5278
  if test -f "$collect2name" && \
5279
    strings "$collect2name" | grep resolve_lib_name >/dev/null
5280
  then
5281
    # We have reworked collect2
5282
    hardcode_direct=yes
5283
  else
5284
    # We have old collect2
5285
    hardcode_direct=unsupported
5286
    # It fails to find uninstalled libraries when the uninstalled
5287
    # path is not listed in the libpath.  Setting hardcode_minus_L
5288
    # to unsupported forces relinking
5289
    hardcode_minus_L=yes
5290
    hardcode_libdir_flag_spec='-L$libdir'
5291
    hardcode_libdir_separator=
5292
  fi
5293
      esac
5294
5295
      shared_flag='-shared'
5296
    else
5297
      # not using gcc
5298
      if test "$host_cpu" = ia64; then
5299
  shared_flag='${wl}-G'
5300
      else
5301
  if test "$aix_use_runtimelinking" = yes; then
5302
    shared_flag='${wl}-G'
5303
  else
5304
    shared_flag='${wl}-bM:SRE'
5305
  fi
5306
      fi
5307
    fi
5308
5309
    # It seems that -bexpall can do strange things, so it is better to
5310
    # generate a list of symbols to export.
5311
    always_export_symbols=yes
5312
    if test "$aix_use_runtimelinking" = yes; then
5313
      # Warning - without using the other runtime loading flags (-brtl),
5314
      # -berok will link without error, but may produce a broken library.
5315
      allow_undefined_flag='-berok'
5316
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5317
      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5318
    else
5319
      if test "$host_cpu" = ia64; then
5320
  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5321
  allow_undefined_flag="-z nodefs"
5322
  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5323
      else
5324
  hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5325
  # Warning - without using the other run time loading flags,
5326
  # -berok will link without error, but may produce a broken library.
5327
  allow_undefined_flag='${wl}-berok'
5328
  # This is a bit strange, but is similar to how AIX traditionally builds
5329
  # it's shared libraries.
5330
  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5331
      fi
5332
    fi
5333
    ;;
5334
5335
  amigaos*)
5336
    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)'
5337
    hardcode_libdir_flag_spec='-L$libdir'
5338
    hardcode_minus_L=yes
5339
    # see comment about different semantics on the GNU ld section
5340
    ld_shlibs=no
5341
    ;;
5342
5343
  cygwin* | mingw* | pw32*)
5344
    # When not using gcc, we currently assume that we are using
5345
    # Microsoft Visual C++.
5346
    # hardcode_libdir_flag_spec is actually meaningless, as there is
5347
    # no search path for DLLs.
5348
    hardcode_libdir_flag_spec=' '
5349
    allow_undefined_flag=unsupported
5350
    # Tell ltmain to make .lib files, not .a files.
5351
    libext=lib
5352
    # FIXME: Setting linknames here is a bad hack.
5353
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5354
    # The linker will automatically build a .lib file if we build a DLL.
5355
    old_archive_from_new_cmds='true'
5356
    # FIXME: Should let the user specify the lib program.
5357
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5358
    fix_srcfile_path='`cygpath -w "$srcfile"`'
5359
    ;;
5360
5361
  darwin* | rhapsody*)
5362
    case "$host_os" in
5363
    rhapsody* | darwin1.[012])
5364
      allow_undefined_flag='-undefined suppress'
5365
      ;;
5366
    *) # Darwin 1.3 on
5367
      allow_undefined_flag='-flat_namespace -undefined suppress'
5368
      ;;
5369
    esac
5370
    # FIXME: Relying on posixy $() will cause problems for
5371
    #        cross-compilation, but unfortunately the echo tests do not
5372
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5373
    #      `"' quotes if we put them in here... so don't!
5374
    archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5375
    # We need to add '_' to the symbols in $export_symbols first
5376
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5377
    hardcode_direct=yes
5378
    hardcode_shlibpath_var=no
5379
    whole_archive_flag_spec='-all_load $convenience'
5380
    ;;
5381
5382
  freebsd1*)
5383
    ld_shlibs=no
5384
    ;;
5385
5386
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5387
  # support.  Future versions do this automatically, but an explicit c++rt0.o
5388
  # does not break anything, and helps significantly (at the cost of a little
5389
  # extra space).
5390
  freebsd2.2*)
5391
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5392
    hardcode_libdir_flag_spec='-R$libdir'
5393
    hardcode_direct=yes
5394
    hardcode_shlibpath_var=no
5395
    ;;
5396
5397
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5398
  freebsd2*)
5399
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5400
    hardcode_direct=yes
5401
    hardcode_minus_L=yes
5402
    hardcode_shlibpath_var=no
5403
    ;;
5404
5405
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5406
  freebsd*)
5407
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5408
    hardcode_libdir_flag_spec='-R$libdir'
5409
    hardcode_direct=yes
5410
    hardcode_shlibpath_var=no
5411
    ;;
5412
5413
  hpux9* | hpux10* | hpux11*)
5414
    case $host_os in
5415
    hpux9*) 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' ;;
5416
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5417
    esac
5418
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5419
    hardcode_libdir_separator=:
5420
    hardcode_direct=yes
5421
    hardcode_minus_L=yes # Not in the search PATH, but as the default
5422
           # location of the library.
5423
    export_dynamic_flag_spec='${wl}-E'
5424
    ;;
5425
5426
  irix5* | irix6* | nonstopux*)
5427
    if test "$GCC" = yes; then
5428
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5429
    else
5430
      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5431
    fi
5432
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5433
    hardcode_libdir_separator=:
5434
    link_all_deplibs=yes
5435
    ;;
5436
5437
  netbsd*)
5438
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5439
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5440
    else
5441
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5442
    fi
5443
    hardcode_libdir_flag_spec='-R$libdir'
5444
    hardcode_direct=yes
5445
    hardcode_shlibpath_var=no
5446
    ;;
5447
5448
  newsos6)
5449
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5450
    hardcode_direct=yes
5451
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5452
    hardcode_libdir_separator=:
5453
    hardcode_shlibpath_var=no
5454
    ;;
5455
5456
  openbsd*)
5457
    hardcode_direct=yes
5458
    hardcode_shlibpath_var=no
5459
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5460
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5461
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5462
      export_dynamic_flag_spec='${wl}-E'
5463
    else
5464
      case "$host_os" in
5465
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5466
  archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5467
  hardcode_libdir_flag_spec='-R$libdir'
5468
        ;;
5469
      *)
5470
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5471
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5472
        ;;
5473
      esac
5474
    fi
5475
    ;;
5476
5477
  os2*)
5478
    hardcode_libdir_flag_spec='-L$libdir'
5479
    hardcode_minus_L=yes
5480
    allow_undefined_flag=unsupported
5481
    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'
5482
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5483
    ;;
5484
5485
  osf3*)
5486
    if test "$GCC" = yes; then
5487
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5488
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5489
    else
5490
      allow_undefined_flag=' -expect_unresolved \*'
5491
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5492
    fi
5493
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5494
    hardcode_libdir_separator=:
5495
    ;;
5496
5497
  osf4* | osf5*)  # as osf3* with the addition of -msym flag
5498
    if test "$GCC" = yes; then
5499
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5500
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5501
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5502
    else
5503
      allow_undefined_flag=' -expect_unresolved \*'
5504
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5505
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5506
      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5507
5508
      #Both c and cxx compiler support -rpath directly
5509
      hardcode_libdir_flag_spec='-rpath $libdir'
5510
    fi
5511
    hardcode_libdir_separator=:
5512
    ;;
5513
5514
  sco3.2v5*)
5515
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5516
    hardcode_shlibpath_var=no
5517
    runpath_var=LD_RUN_PATH
5518
    hardcode_runpath_var=yes
5519
    export_dynamic_flag_spec='${wl}-Bexport'
5520
    ;;
5521
5522
  solaris*)
5523
    # gcc --version < 3.0 without binutils cannot create self contained
5524
    # shared libraries reliably, requiring libgcc.a to resolve some of
5525
    # the object symbols generated in some cases.  Libraries that use
5526
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
5527
    # a copy of libgcc.a into every shared library to guarantee resolving
5528
    # such symbols causes other problems:  According to Tim Van Holder
5529
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5530
    # (to the application) exception stack for one thing.
5531
    no_undefined_flag=' -z defs'
5532
    if test "$GCC" = yes; then
5533
      case `$CC --version 2>/dev/null` in
5534
      [12].*)
5535
  cat <<EOF 1>&2
5536
5537
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5538
*** create self contained shared libraries on Solaris systems, without
5539
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5540
*** -no-undefined support, which will at least allow you to build shared
5541
*** libraries.  However, you may find that when you link such libraries
5542
*** into an application without using GCC, you have to manually add
5543
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5544
*** upgrade to a newer version of GCC.  Another option is to rebuild your
5545
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5546
5547
EOF
5548
        no_undefined_flag=
5549
  ;;
5550
      esac
5551
    fi
5552
    # $CC -shared without GNU ld will not create a library from C++
5553
    # object files and a static libstdc++, better avoid it by now
5554
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5555
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5556
      $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5557
    hardcode_libdir_flag_spec='-R$libdir'
5558
    hardcode_shlibpath_var=no
5559
    case $host_os in
5560
    solaris2.[0-5] | solaris2.[0-5].*) ;;
5561
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5562
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5563
    esac
5564
    link_all_deplibs=yes
5565
    ;;
5566
5567
  sunos4*)
5568
    if test "x$host_vendor" = xsequent; then
5569
      # Use $CC to link under sequent, because it throws in some extra .o
5570
      # files that make .init and .fini sections work.
5571
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5572
    else
5573
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5574
    fi
5575
    hardcode_libdir_flag_spec='-L$libdir'
5576
    hardcode_direct=yes
5577
    hardcode_minus_L=yes
5578
    hardcode_shlibpath_var=no
5579
    ;;
5580
5581
  sysv4)
5582
    case $host_vendor in
5583
      sni)
5584
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5585
        hardcode_direct=yes # is this really true???
5586
        ;;
5587
      siemens)
5588
        ## LD is ld it makes a PLAMLIB
5589
        ## CC just makes a GrossModule.
5590
        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5591
        reload_cmds='$CC -r -o $output$reload_objs'
5592
        hardcode_direct=no
5593
        ;;
5594
      motorola)
5595
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5596
        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5597
        ;;
5598
    esac
5599
    runpath_var='LD_RUN_PATH'
5600
    hardcode_shlibpath_var=no
5601
    ;;
5602
5603
  sysv4.3*)
5604
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5605
    hardcode_shlibpath_var=no
5606
    export_dynamic_flag_spec='-Bexport'
5607
    ;;
5608
5609
  sysv5*)
5610
    no_undefined_flag=' -z text'
5611
    # $CC -shared without GNU ld will not create a library from C++
5612
    # object files and a static libstdc++, better avoid it by now
5613
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5614
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5615
      $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5616
    hardcode_libdir_flag_spec=
5617
    hardcode_shlibpath_var=no
5618
    runpath_var='LD_RUN_PATH'
5619
    ;;
5620
5621
  uts4*)
5622
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5623
    hardcode_libdir_flag_spec='-L$libdir'
5624
    hardcode_shlibpath_var=no
5625
    ;;
5626
5627
  dgux*)
5628
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5629
    hardcode_libdir_flag_spec='-L$libdir'
5630
    hardcode_shlibpath_var=no
5631
    ;;
5632
5633
  sysv4*MP*)
5634
    if test -d /usr/nec; then
5635
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5636
      hardcode_shlibpath_var=no
5637
      runpath_var=LD_RUN_PATH
5638
      hardcode_runpath_var=yes
5639
      ld_shlibs=yes
5640
    fi
5641
    ;;
5642
5643
  sysv4.2uw2*)
5644
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5645
    hardcode_direct=yes
5646
    hardcode_minus_L=no
5647
    hardcode_shlibpath_var=no
5648
    hardcode_runpath_var=yes
5649
    runpath_var=LD_RUN_PATH
5650
    ;;
5651
5652
  sysv5uw7* | unixware7*)
5653
    no_undefined_flag='${wl}-z ${wl}text'
5654
    if test "$GCC" = yes; then
5655
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5656
    else
5657
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5658
    fi
5659
    runpath_var='LD_RUN_PATH'
5660
    hardcode_shlibpath_var=no
5661
    ;;
5662
5663
  *)
5664
    ld_shlibs=no
5665
    ;;
5666
  esac
5667
fi
5668
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5669
echo "${ECHO_T}$ld_shlibs" >&6
5670
test "$ld_shlibs" = no && can_build_shared=no
5671
5672
# Check hardcoding attributes.
5673
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5674
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5675
hardcode_action=
5676
if test -n "$hardcode_libdir_flag_spec" || \
5677
   test -n "$runpath_var"; then
5678
5679
  # We can hardcode non-existant directories.
5680
  if test "$hardcode_direct" != no &&
5681
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
5682
     # have to relink, otherwise we might link with an installed library
5683
     # when we should be linking with a yet-to-be-installed one
5684
     ## test "$hardcode_shlibpath_var" != no &&
5685
     test "$hardcode_minus_L" != no; then
5686
    # Linking always hardcodes the temporary library directory.
5687
    hardcode_action=relink
5688
  else
5689
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
5690
    hardcode_action=immediate
5691
  fi
5692
else
5693
  # We cannot hardcode anything, or else we can only hardcode existing
5694
  # directories.
5695
  hardcode_action=unsupported
5696
fi
5697
echo "$as_me:$LINENO: result: $hardcode_action" >&5
5698
echo "${ECHO_T}$hardcode_action" >&6
5699
5700
striplib=
5701
old_striplib=
5702
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5703
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5704
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5705
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5706
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5707
  echo "$as_me:$LINENO: result: yes" >&5
5708
echo "${ECHO_T}yes" >&6
5709
else
5710
  echo "$as_me:$LINENO: result: no" >&5
5711
echo "${ECHO_T}no" >&6
5712
fi
5713
5714
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5715
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5716
5717
# PORTME Fill in your ld.so characteristics
5718
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5719
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5720
library_names_spec=
5721
libname_spec='lib$name'
5722
soname_spec=
5723
postinstall_cmds=
5724
postuninstall_cmds=
5725
finish_cmds=
5726
finish_eval=
5727
shlibpath_var=
5728
shlibpath_overrides_runpath=unknown
5729
version_type=none
5730
dynamic_linker="$host_os ld.so"
5731
sys_lib_dlsearch_path_spec="/lib /usr/lib"
5732
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5733
5734
case $host_os in
5735
aix3*)
5736
  version_type=linux
5737
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
5738
  shlibpath_var=LIBPATH
5739
5740
  # AIX has no versioning support, so we append a major version to the name.
5741
  soname_spec='${libname}${release}.so$major'
5742
  ;;
5743
5744
aix4* | aix5*)
5745
  version_type=linux
5746
  if test "$host_cpu" = ia64; then
5747
    # AIX 5 supports IA64
5748
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5749
    shlibpath_var=LD_LIBRARY_PATH
5750
  else
5751
    # With GCC up to 2.95.x, collect2 would create an import file
5752
    # for dependence libraries.  The import file would start with
5753
    # the line `#! .'.  This would cause the generated library to
5754
    # depend on `.', always an invalid library.  This was fixed in
5755
    # development snapshots of GCC prior to 3.0.
5756
    case $host_os in
5757
      aix4 | aix4.[01] | aix4.[01].*)
5758
  if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5759
       echo ' yes '
5760
       echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5761
    :
5762
  else
5763
    can_build_shared=no
5764
  fi
5765
  ;;
5766
    esac
5767
    # AIX (on Power*) has no versioning support, so currently we can
5768
    # not hardcode correct soname into executable. Probably we can
5769
    # add versioning support to collect2, so additional links can
5770
    # be useful in future.
5771
    if test "$aix_use_runtimelinking" = yes; then
5772
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5773
      # instead of lib<name>.a to let people know that these are not
5774
      # typical AIX shared libraries.
5775
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5776
    else
5777
      # We preserve .a as extension for shared libraries through AIX4.2
5778
      # and later when we are not doing run time linking.
5779
      library_names_spec='${libname}${release}.a $libname.a'
5780
      soname_spec='${libname}${release}.so$major'
5781
    fi
5782
    shlibpath_var=LIBPATH
5783
  fi
5784
  ;;
5785
5786
amigaos*)
5787
  library_names_spec='$libname.ixlibrary $libname.a'
5788
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
5789
  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'
5790
  ;;
5791
5792
beos*)
5793
  library_names_spec='${libname}.so'
5794
  dynamic_linker="$host_os ld.so"
5795
  shlibpath_var=LIBRARY_PATH
5796
  ;;
5797
5798
bsdi4*)
5799
  version_type=linux
5800
  need_version=no
5801
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5802
  soname_spec='${libname}${release}.so$major'
5803
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5804
  shlibpath_var=LD_LIBRARY_PATH
5805
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5806
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5807
  export_dynamic_flag_spec=-rdynamic
5808
  # the default ld.so.conf also contains /usr/contrib/lib and
5809
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5810
  # libtool to hard-code these into programs
5811
  ;;
5812
5813
cygwin* | mingw* | pw32*)
5814
  version_type=windows
5815
  need_version=no
5816
  need_lib_prefix=no
5817
  case $GCC,$host_os in
5818
  yes,cygwin*)
5819
    library_names_spec='$libname.dll.a'
5820
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5821
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5822
      dldir=$destdir/`dirname \$dlpath`~
5823
      test -d \$dldir || mkdir -p \$dldir~
5824
      $install_prog .libs/$dlname \$dldir/$dlname'
5825
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5826
      dlpath=$dir/\$dldll~
5827
       $rm \$dlpath'
5828
    ;;
5829
  yes,mingw*)
5830
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5831
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5832
    ;;
5833
  yes,pw32*)
5834
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5835
    ;;
5836
  *)
5837
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5838
    ;;
5839
  esac
5840
  dynamic_linker='Win32 ld.exe'
5841
  # FIXME: first we should search . and the directory the executable is in
5842
  shlibpath_var=PATH
5843
  ;;
5844
5845
darwin* | rhapsody*)
5846
  dynamic_linker="$host_os dyld"
5847
  version_type=darwin
5848
  need_lib_prefix=no
5849
  need_version=no
5850
  # FIXME: Relying on posixy $() will cause problems for
5851
  #        cross-compilation, but unfortunately the echo tests do not
5852
  #        yet detect zsh echo's removal of \ escapes.
5853
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5854
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5855
  shlibpath_overrides_runpath=yes
5856
  shlibpath_var=DYLD_LIBRARY_PATH
5857
  ;;
5858
5859
freebsd1*)
5860
  dynamic_linker=no
5861
  ;;
5862
5863
freebsd*)
5864
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5865
  version_type=freebsd-$objformat
5866
  case $version_type in
5867
    freebsd-elf*)
5868
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5869
      need_version=no
5870
      need_lib_prefix=no
5871
      ;;
5872
    freebsd-*)
5873
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5874
      need_version=yes
5875
      ;;
5876
  esac
5877
  shlibpath_var=LD_LIBRARY_PATH
5878
  case $host_os in
5879
  freebsd2*)
5880
    shlibpath_overrides_runpath=yes
5881
    ;;
5882
  *)
5883
    shlibpath_overrides_runpath=no
5884
    hardcode_into_libs=yes
5885
    ;;
5886
  esac
5887
  ;;
5888
5889
gnu*)
5890
  version_type=linux
5891
  need_lib_prefix=no
5892
  need_version=no
5893
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5894
  soname_spec='${libname}${release}.so$major'
5895
  shlibpath_var=LD_LIBRARY_PATH
5896
  hardcode_into_libs=yes
5897
  ;;
5898
5899
hpux9* | hpux10* | hpux11*)
5900
  # Give a soname corresponding to the major version so that dld.sl refuses to
5901
  # link against other versions.
5902
  dynamic_linker="$host_os dld.sl"
5903
  version_type=sunos
5904
  need_lib_prefix=no
5905
  need_version=no
5906
  shlibpath_var=SHLIB_PATH
5907
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5908
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5909
  soname_spec='${libname}${release}.sl$major'
5910
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
5911
  postinstall_cmds='chmod 555 $lib'
5912
  ;;
5913
5914
irix5* | irix6* | nonstopux*)
5915
  case $host_os in
5916
    nonstopux*) version_type=nonstopux ;;
5917
    *)          version_type=irix ;;
5918
  esac
5919
  need_lib_prefix=no
5920
  need_version=no
5921
  soname_spec='${libname}${release}.so$major'
5922
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5923
  case $host_os in
5924
  irix5* | nonstopux*)
5925
    libsuff= shlibsuff=
5926
    ;;
5927
  *)
5928
    case $LD in # libtool.m4 will add one of these switches to LD
5929
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5930
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5931
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5932
    *) libsuff= shlibsuff= libmagic=never-match;;
5933
    esac
5934
    ;;
5935
  esac
5936
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5937
  shlibpath_overrides_runpath=no
5938
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5939
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5940
  ;;
5941
5942
# No shared lib support for Linux oldld, aout, or coff.
5943
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5944
  dynamic_linker=no
5945
  ;;
5946
5947
# This must be Linux ELF.
5948
linux-gnu*)
5949
  version_type=linux
5950
  need_lib_prefix=no
5951
  need_version=no
5952
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5953
  soname_spec='${libname}${release}.so$major'
5954
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5955
  shlibpath_var=LD_LIBRARY_PATH
5956
  shlibpath_overrides_runpath=no
5957
  # This implies no fast_install, which is unacceptable.
5958
  # Some rework will be needed to allow for fast_install
5959
  # before this can be enabled.
5960
  hardcode_into_libs=yes
5961
5962
  # We used to test for /lib/ld.so.1 and disable shared libraries on
5963
  # powerpc, because MkLinux only supported shared libraries with the
5964
  # GNU dynamic linker.  Since this was broken with cross compilers,
5965
  # most powerpc-linux boxes support dynamic linking these days and
5966
  # people can always --disable-shared, the test was removed, and we
5967
  # assume the GNU/Linux dynamic linker is in use.
5968
  dynamic_linker='GNU/Linux ld.so'
5969
  ;;
5970
5971
netbsd*)
5972
  version_type=sunos
5973
  need_lib_prefix=no
5974
  need_version=no
5975
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5976
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5977
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5978
    dynamic_linker='NetBSD (a.out) ld.so'
5979
  else
5980
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5981
    soname_spec='${libname}${release}.so$major'
5982
    dynamic_linker='NetBSD ld.elf_so'
5983
  fi
5984
  shlibpath_var=LD_LIBRARY_PATH
5985
  shlibpath_overrides_runpath=yes
5986
  hardcode_into_libs=yes
5987
  ;;
5988
5989
newsos6)
5990
  version_type=linux
5991
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5992
  shlibpath_var=LD_LIBRARY_PATH
5993
  shlibpath_overrides_runpath=yes
5994
  ;;
5995
5996
openbsd*)
5997
  version_type=sunos
5998
  need_lib_prefix=no
5999
  need_version=no
6000
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6001
    case "$host_os" in
6002
    openbsd2.[89] | openbsd2.[89].*)
6003
      shlibpath_overrides_runpath=no
6004
      ;;
6005
    *)
6006
      shlibpath_overrides_runpath=yes
6007
      ;;
6008
    esac
6009
  else
6010
    shlibpath_overrides_runpath=yes
6011
  fi
6012
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6013
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6014
  shlibpath_var=LD_LIBRARY_PATH
6015
  ;;
6016
6017
os2*)
6018
  libname_spec='$name'
6019
  need_lib_prefix=no
6020
  library_names_spec='$libname.dll $libname.a'
6021
  dynamic_linker='OS/2 ld.exe'
6022
  shlibpath_var=LIBPATH
6023
  ;;
6024
6025
osf3* | osf4* | osf5*)
6026
  version_type=osf
6027
  need_version=no
6028
  soname_spec='${libname}${release}.so'
6029
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6030
  shlibpath_var=LD_LIBRARY_PATH
6031
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6032
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6033
  ;;
6034
6035
sco3.2v5*)
6036
  version_type=osf
6037
  soname_spec='${libname}${release}.so$major'
6038
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6039
  shlibpath_var=LD_LIBRARY_PATH
6040
  ;;
6041
6042
solaris*)
6043
  version_type=linux
6044
  need_lib_prefix=no
6045
  need_version=no
6046
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6047
  soname_spec='${libname}${release}.so$major'
6048
  shlibpath_var=LD_LIBRARY_PATH
6049
  shlibpath_overrides_runpath=yes
6050
  hardcode_into_libs=yes
6051
  # ldd complains unless libraries are executable
6052
  postinstall_cmds='chmod +x $lib'
6053
  ;;
6054
6055
sunos4*)
6056
  version_type=sunos
6057
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6058
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6059
  shlibpath_var=LD_LIBRARY_PATH
6060
  shlibpath_overrides_runpath=yes
6061
  if test "$with_gnu_ld" = yes; then
6062
    need_lib_prefix=no
6063
  fi
6064
  need_version=yes
6065
  ;;
6066
6067
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6068
  version_type=linux
6069
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6070
  soname_spec='${libname}${release}.so$major'
6071
  shlibpath_var=LD_LIBRARY_PATH
6072
  case $host_vendor in
6073
    sni)
6074
      shlibpath_overrides_runpath=no
6075
      need_lib_prefix=no
6076
      export_dynamic_flag_spec='${wl}-Blargedynsym'
6077
      runpath_var=LD_RUN_PATH
6078
      ;;
6079
    siemens)
6080
      need_lib_prefix=no
6081
      ;;
6082
    motorola)
6083
      need_lib_prefix=no
6084
      need_version=no
6085
      shlibpath_overrides_runpath=no
6086
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6087
      ;;
6088
  esac
6089
  ;;
6090
6091
uts4*)
6092
  version_type=linux
6093
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6094
  soname_spec='${libname}${release}.so$major'
6095
  shlibpath_var=LD_LIBRARY_PATH
6096
  ;;
6097
6098
dgux*)
6099
  version_type=linux
6100
  need_lib_prefix=no
6101
  need_version=no
6102
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6103
  soname_spec='${libname}${release}.so$major'
6104
  shlibpath_var=LD_LIBRARY_PATH
6105
  ;;
6106
6107
sysv4*MP*)
6108
  if test -d /usr/nec ;then
6109
    version_type=linux
6110
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6111
    soname_spec='$libname.so.$major'
6112
    shlibpath_var=LD_LIBRARY_PATH
6113
  fi
6114
  ;;
6115
6116
*)
6117
  dynamic_linker=no
6118
  ;;
6119
esac
6120
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6121
echo "${ECHO_T}$dynamic_linker" >&6
6122
test "$dynamic_linker" = no && can_build_shared=no
6123
6124
# Report the final consequences.
6125
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6126
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6127
echo "$as_me:$LINENO: result: $can_build_shared" >&5
6128
echo "${ECHO_T}$can_build_shared" >&6
6129
6130
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6131
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6132
test "$can_build_shared" = "no" && enable_shared=no
6133
6134
# On AIX, shared libraries and static libraries use the same namespace, and
6135
# are all built from PIC.
6136
case "$host_os" in
6137
aix3*)
6138
  test "$enable_shared" = yes && enable_static=no
6139
  if test -n "$RANLIB"; then
6140
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
6141
    postinstall_cmds='$RANLIB $lib'
6142
  fi
6143
  ;;
6144
6145
aix4*)
6146
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6147
    test "$enable_shared" = yes && enable_static=no
6148
  fi
6149
  ;;
6150
esac
6151
echo "$as_me:$LINENO: result: $enable_shared" >&5
6152
echo "${ECHO_T}$enable_shared" >&6
6153
6154
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6155
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6156
# Make sure either enable_shared or enable_static is yes.
6157
test "$enable_shared" = yes || enable_static=yes
6158
echo "$as_me:$LINENO: result: $enable_static" >&5
6159
echo "${ECHO_T}$enable_static" >&6
6160
6161
if test "$hardcode_action" = relink; then
6162
  # Fast installation is not supported
6163
  enable_fast_install=no
6164
elif test "$shlibpath_overrides_runpath" = yes ||
6165
     test "$enable_shared" = no; then
6166
  # Fast installation is not necessary
6167
  enable_fast_install=needless
6168
fi
6169
6170
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6171
if test "$GCC" = yes; then
6172
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6173
fi
6174
6175
if test "x$enable_dlopen" != xyes; then
6176
  enable_dlopen=unknown
6177
  enable_dlopen_self=unknown
6178
  enable_dlopen_self_static=unknown
6179
else
6180
  lt_cv_dlopen=no
6181
  lt_cv_dlopen_libs=
6182
6183
  case $host_os in
6184
  beos*)
6185
    lt_cv_dlopen="load_add_on"
6186
    lt_cv_dlopen_libs=
6187
    lt_cv_dlopen_self=yes
6188
    ;;
6189
6190
  cygwin* | mingw* | pw32*)
6191
    lt_cv_dlopen="LoadLibrary"
6192
    lt_cv_dlopen_libs=
6193
   ;;
6194
6195
  *)
6196
    echo "$as_me:$LINENO: checking for shl_load" >&5
6197
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6198
if test "${ac_cv_func_shl_load+set}" = set; then
6199
  echo $ECHO_N "(cached) $ECHO_C" >&6
6200
else
6201
  cat >conftest.$ac_ext <<_ACEOF
6202
#line $LINENO "configure"
6203
#include "confdefs.h"
6204
/* System header to define __stub macros and hopefully few prototypes,
6205
    which can conflict with char shl_load (); below.  */
6206
#include <assert.h>
6207
/* Override any gcc2 internal prototype to avoid an error.  */
6208
#ifdef __cplusplus
6209
extern "C"
6210
#endif
6211
/* We use char because int might match the return type of a gcc2
6212
   builtin and then its argument prototype would still apply.  */
6213
char shl_load ();
6214
char (*f) ();
6215
6216
#ifdef F77_DUMMY_MAIN
6217
#  ifdef __cplusplus
6218
     extern "C"
6219
#  endif
6220
   int F77_DUMMY_MAIN() { return 1; }
6221
#endif
6222
int
6223
main ()
6224
{
6225
/* The GNU C library defines this for functions which it implements
6226
    to always fail with ENOSYS.  Some functions are actually named
6227
    something starting with __ and the normal name is an alias.  */
6228
#if defined (__stub_shl_load) || defined (__stub___shl_load)
6229
choke me
6230
#else
6231
f = shl_load;
6232
#endif
6233
6234
  ;
6235
  return 0;
6236
}
6237
_ACEOF
6238
rm -f conftest.$ac_objext conftest$ac_exeext
6239
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6240
  (eval $ac_link) 2>&5
6241
  ac_status=$?
6242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243
  (exit $ac_status); } &&
6244
         { ac_try='test -s conftest$ac_exeext'
6245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246
  (eval $ac_try) 2>&5
6247
  ac_status=$?
6248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249
  (exit $ac_status); }; }; then
6250
  ac_cv_func_shl_load=yes
6251
else
6252
  echo "$as_me: failed program was:" >&5
6253
cat conftest.$ac_ext >&5
6254
ac_cv_func_shl_load=no
6255
fi
6256
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6257
fi
6258
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6259
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6260
if test $ac_cv_func_shl_load = yes; then
6261
  lt_cv_dlopen="shl_load"
6262
else
6263
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6264
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6265
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6266
  echo $ECHO_N "(cached) $ECHO_C" >&6
6267
else
6268
  ac_check_lib_save_LIBS=$LIBS
6269
LIBS="-ldld  $LIBS"
6270
cat >conftest.$ac_ext <<_ACEOF
6271
#line $LINENO "configure"
6272
#include "confdefs.h"
6273
6274
/* Override any gcc2 internal prototype to avoid an error.  */
6275
#ifdef __cplusplus
6276
extern "C"
6277
#endif
6278
/* We use char because int might match the return type of a gcc2
6279
   builtin and then its argument prototype would still apply.  */
6280
char shl_load ();
6281
#ifdef F77_DUMMY_MAIN
6282
#  ifdef __cplusplus
6283
     extern "C"
6284
#  endif
6285
   int F77_DUMMY_MAIN() { return 1; }
6286
#endif
6287
int
6288
main ()
6289
{
6290
shl_load ();
6291
  ;
6292
  return 0;
6293
}
6294
_ACEOF
6295
rm -f conftest.$ac_objext conftest$ac_exeext
6296
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6297
  (eval $ac_link) 2>&5
6298
  ac_status=$?
6299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300
  (exit $ac_status); } &&
6301
         { ac_try='test -s conftest$ac_exeext'
6302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303
  (eval $ac_try) 2>&5
6304
  ac_status=$?
6305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306
  (exit $ac_status); }; }; then
6307
  ac_cv_lib_dld_shl_load=yes
6308
else
6309
  echo "$as_me: failed program was:" >&5
6310
cat conftest.$ac_ext >&5
6311
ac_cv_lib_dld_shl_load=no
6312
fi
6313
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6314
LIBS=$ac_check_lib_save_LIBS
6315
fi
6316
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6317
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6318
if test $ac_cv_lib_dld_shl_load = yes; then
6319
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6320
else
6321
  echo "$as_me:$LINENO: checking for dlopen" >&5
6322
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6323
if test "${ac_cv_func_dlopen+set}" = set; then
6324
  echo $ECHO_N "(cached) $ECHO_C" >&6
6325
else
6326
  cat >conftest.$ac_ext <<_ACEOF
6327
#line $LINENO "configure"
6328
#include "confdefs.h"
6329
/* System header to define __stub macros and hopefully few prototypes,
6330
    which can conflict with char dlopen (); below.  */
6331
#include <assert.h>
6332
/* Override any gcc2 internal prototype to avoid an error.  */
6333
#ifdef __cplusplus
6334
extern "C"
6335
#endif
6336
/* We use char because int might match the return type of a gcc2
6337
   builtin and then its argument prototype would still apply.  */
6338
char dlopen ();
6339
char (*f) ();
6340
6341
#ifdef F77_DUMMY_MAIN
6342
#  ifdef __cplusplus
6343
     extern "C"
6344
#  endif
6345
   int F77_DUMMY_MAIN() { return 1; }
6346
#endif
6347
int
6348
main ()
6349
{
6350
/* The GNU C library defines this for functions which it implements
6351
    to always fail with ENOSYS.  Some functions are actually named
6352
    something starting with __ and the normal name is an alias.  */
6353
#if defined (__stub_dlopen) || defined (__stub___dlopen)
6354
choke me
6355
#else
6356
f = dlopen;
6357
#endif
6358
6359
  ;
6360
  return 0;
6361
}
6362
_ACEOF
6363
rm -f conftest.$ac_objext conftest$ac_exeext
6364
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6365
  (eval $ac_link) 2>&5
6366
  ac_status=$?
6367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368
  (exit $ac_status); } &&
6369
         { ac_try='test -s conftest$ac_exeext'
6370
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371
  (eval $ac_try) 2>&5
6372
  ac_status=$?
6373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374
  (exit $ac_status); }; }; then
6375
  ac_cv_func_dlopen=yes
6376
else
6377
  echo "$as_me: failed program was:" >&5
6378
cat conftest.$ac_ext >&5
6379
ac_cv_func_dlopen=no
6380
fi
6381
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6382
fi
6383
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6384
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6385
if test $ac_cv_func_dlopen = yes; then
6386
  lt_cv_dlopen="dlopen"
6387
else
6388
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6389
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6390
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6391
  echo $ECHO_N "(cached) $ECHO_C" >&6
6392
else
6393
  ac_check_lib_save_LIBS=$LIBS
6394
LIBS="-ldl  $LIBS"
6395
cat >conftest.$ac_ext <<_ACEOF
6396
#line $LINENO "configure"
6397
#include "confdefs.h"
6398
6399
/* Override any gcc2 internal prototype to avoid an error.  */
6400
#ifdef __cplusplus
6401
extern "C"
6402
#endif
6403
/* We use char because int might match the return type of a gcc2
6404
   builtin and then its argument prototype would still apply.  */
6405
char dlopen ();
6406
#ifdef F77_DUMMY_MAIN
6407
#  ifdef __cplusplus
6408
     extern "C"
6409
#  endif
6410
   int F77_DUMMY_MAIN() { return 1; }
6411
#endif
6412
int
6413
main ()
6414
{
6415
dlopen ();
6416
  ;
6417
  return 0;
6418
}
6419
_ACEOF
6420
rm -f conftest.$ac_objext conftest$ac_exeext
6421
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6422
  (eval $ac_link) 2>&5
6423
  ac_status=$?
6424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425
  (exit $ac_status); } &&
6426
         { ac_try='test -s conftest$ac_exeext'
6427
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428
  (eval $ac_try) 2>&5
6429
  ac_status=$?
6430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431
  (exit $ac_status); }; }; then
6432
  ac_cv_lib_dl_dlopen=yes
6433
else
6434
  echo "$as_me: failed program was:" >&5
6435
cat conftest.$ac_ext >&5
6436
ac_cv_lib_dl_dlopen=no
6437
fi
6438
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6439
LIBS=$ac_check_lib_save_LIBS
6440
fi
6441
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6442
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6443
if test $ac_cv_lib_dl_dlopen = yes; then
6444
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6445
else
6446
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6447
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6448
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6449
  echo $ECHO_N "(cached) $ECHO_C" >&6
6450
else
6451
  ac_check_lib_save_LIBS=$LIBS
6452
LIBS="-lsvld  $LIBS"
6453
cat >conftest.$ac_ext <<_ACEOF
6454
#line $LINENO "configure"
6455
#include "confdefs.h"
6456
6457
/* Override any gcc2 internal prototype to avoid an error.  */
6458
#ifdef __cplusplus
6459
extern "C"
6460
#endif
6461
/* We use char because int might match the return type of a gcc2
6462
   builtin and then its argument prototype would still apply.  */
6463
char dlopen ();
6464
#ifdef F77_DUMMY_MAIN
6465
#  ifdef __cplusplus
6466
     extern "C"
6467
#  endif
6468
   int F77_DUMMY_MAIN() { return 1; }
6469
#endif
6470
int
6471
main ()
6472
{
6473
dlopen ();
6474
  ;
6475
  return 0;
6476
}
6477
_ACEOF
6478
rm -f conftest.$ac_objext conftest$ac_exeext
6479
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6480
  (eval $ac_link) 2>&5
6481
  ac_status=$?
6482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483
  (exit $ac_status); } &&
6484
         { ac_try='test -s conftest$ac_exeext'
6485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486
  (eval $ac_try) 2>&5
6487
  ac_status=$?
6488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489
  (exit $ac_status); }; }; then
6490
  ac_cv_lib_svld_dlopen=yes
6491
else
6492
  echo "$as_me: failed program was:" >&5
6493
cat conftest.$ac_ext >&5
6494
ac_cv_lib_svld_dlopen=no
6495
fi
6496
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6497
LIBS=$ac_check_lib_save_LIBS
6498
fi
6499
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6500
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6501
if test $ac_cv_lib_svld_dlopen = yes; then
6502
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6503
else
6504
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6505
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6506
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6507
  echo $ECHO_N "(cached) $ECHO_C" >&6
6508
else
6509
  ac_check_lib_save_LIBS=$LIBS
6510
LIBS="-ldld  $LIBS"
6511
cat >conftest.$ac_ext <<_ACEOF
6512
#line $LINENO "configure"
6513
#include "confdefs.h"
6514
6515
/* Override any gcc2 internal prototype to avoid an error.  */
6516
#ifdef __cplusplus
6517
extern "C"
6518
#endif
6519
/* We use char because int might match the return type of a gcc2
6520
   builtin and then its argument prototype would still apply.  */
6521
char dld_link ();
6522
#ifdef F77_DUMMY_MAIN
6523
#  ifdef __cplusplus
6524
     extern "C"
6525
#  endif
6526
   int F77_DUMMY_MAIN() { return 1; }
6527
#endif
6528
int
6529
main ()
6530
{
6531
dld_link ();
6532
  ;
6533
  return 0;
6534
}
6535
_ACEOF
6536
rm -f conftest.$ac_objext conftest$ac_exeext
6537
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6538
  (eval $ac_link) 2>&5
6539
  ac_status=$?
6540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541
  (exit $ac_status); } &&
6542
         { ac_try='test -s conftest$ac_exeext'
6543
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544
  (eval $ac_try) 2>&5
6545
  ac_status=$?
6546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547
  (exit $ac_status); }; }; then
6548
  ac_cv_lib_dld_dld_link=yes
6549
else
6550
  echo "$as_me: failed program was:" >&5
6551
cat conftest.$ac_ext >&5
6552
ac_cv_lib_dld_dld_link=no
6553
fi
6554
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6555
LIBS=$ac_check_lib_save_LIBS
6556
fi
6557
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6558
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6559
if test $ac_cv_lib_dld_dld_link = yes; then
6560
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6561
fi
6562
6563
6564
fi
6565
6566
6567
fi
6568
6569
6570
fi
6571
6572
6573
fi
6574
6575
6576
fi
6577
6578
    ;;
6579
  esac
6580
6581
  if test "x$lt_cv_dlopen" != xno; then
6582
    enable_dlopen=yes
6583
  else
6584
    enable_dlopen=no
6585
  fi
6586
6587
  case $lt_cv_dlopen in
6588
  dlopen)
6589
    save_CPPFLAGS="$CPPFLAGS"
6590
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6591
6592
    save_LDFLAGS="$LDFLAGS"
6593
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6594
6595
    save_LIBS="$LIBS"
6596
    LIBS="$lt_cv_dlopen_libs $LIBS"
6597
6598
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6599
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6600
if test "${lt_cv_dlopen_self+set}" = set; then
6601
  echo $ECHO_N "(cached) $ECHO_C" >&6
6602
else
6603
        if test "$cross_compiling" = yes; then :
6604
  lt_cv_dlopen_self=cross
6605
else
6606
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6607
  lt_status=$lt_dlunknown
6608
  cat > conftest.$ac_ext <<EOF
6609
#line 6609 "configure"
6610
#include "confdefs.h"
6611
6612
#if HAVE_DLFCN_H
6613
#include <dlfcn.h>
6614
#endif
6615
6616
#include <stdio.h>
6617
6618
#ifdef RTLD_GLOBAL
6619
#  define LT_DLGLOBAL     RTLD_GLOBAL
6620
#else
6621
#  ifdef DL_GLOBAL
6622
#    define LT_DLGLOBAL       DL_GLOBAL
6623
#  else
6624
#    define LT_DLGLOBAL       0
6625
#  endif
6626
#endif
6627
6628
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6629
   find out it does not work in some platform. */
6630
#ifndef LT_DLLAZY_OR_NOW
6631
#  ifdef RTLD_LAZY
6632
#    define LT_DLLAZY_OR_NOW      RTLD_LAZY
6633
#  else
6634
#    ifdef DL_LAZY
6635
#      define LT_DLLAZY_OR_NOW        DL_LAZY
6636
#    else
6637
#      ifdef RTLD_NOW
6638
#        define LT_DLLAZY_OR_NOW  RTLD_NOW
6639
#      else
6640
#        ifdef DL_NOW
6641
#          define LT_DLLAZY_OR_NOW    DL_NOW
6642
#        else
6643
#          define LT_DLLAZY_OR_NOW    0
6644
#        endif
6645
#      endif
6646
#    endif
6647
#  endif
6648
#endif
6649
6650
#ifdef __cplusplus
6651
extern "C" void exit (int);
6652
#endif
6653
6654
void fnord() { int i=42;}
6655
int main ()
6656
{
6657
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6658
  int status = $lt_dlunknown;
6659
6660
  if (self)
6661
    {
6662
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6663
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6664
      /* dlclose (self); */
6665
    }
6666
6667
    exit (status);
6668
}
6669
EOF
6670
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6671
  (eval $ac_link) 2>&5
6672
  ac_status=$?
6673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6675
    (./conftest; exit; ) 2>/dev/null
6676
    lt_status=$?
6677
    case x$lt_status in
6678
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6679
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6680
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6681
    esac
6682
  else :
6683
    # compilation failed
6684
    lt_cv_dlopen_self=no
6685
  fi
6686
fi
6687
rm -fr conftest*
6688
6689
6690
fi
6691
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6692
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6693
6694
    if test "x$lt_cv_dlopen_self" = xyes; then
6695
      LDFLAGS="$LDFLAGS $link_static_flag"
6696
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6697
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6698
if test "${lt_cv_dlopen_self_static+set}" = set; then
6699
  echo $ECHO_N "(cached) $ECHO_C" >&6
6700
else
6701
        if test "$cross_compiling" = yes; then :
6702
  lt_cv_dlopen_self_static=cross
6703
else
6704
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6705
  lt_status=$lt_dlunknown
6706
  cat > conftest.$ac_ext <<EOF
6707
#line 6707 "configure"
6708
#include "confdefs.h"
6709
6710
#if HAVE_DLFCN_H
6711
#include <dlfcn.h>
6712
#endif
6713
6714
#include <stdio.h>
6715
6716
#ifdef RTLD_GLOBAL
6717
#  define LT_DLGLOBAL     RTLD_GLOBAL
6718
#else
6719
#  ifdef DL_GLOBAL
6720
#    define LT_DLGLOBAL       DL_GLOBAL
6721
#  else
6722
#    define LT_DLGLOBAL       0
6723
#  endif
6724
#endif
6725
6726
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6727
   find out it does not work in some platform. */
6728
#ifndef LT_DLLAZY_OR_NOW
6729
#  ifdef RTLD_LAZY
6730
#    define LT_DLLAZY_OR_NOW      RTLD_LAZY
6731
#  else
6732
#    ifdef DL_LAZY
6733
#      define LT_DLLAZY_OR_NOW        DL_LAZY
6734
#    else
6735
#      ifdef RTLD_NOW
6736
#        define LT_DLLAZY_OR_NOW  RTLD_NOW
6737
#      else
6738
#        ifdef DL_NOW
6739
#          define LT_DLLAZY_OR_NOW    DL_NOW
6740
#        else
6741
#          define LT_DLLAZY_OR_NOW    0
6742
#        endif
6743
#      endif
6744
#    endif
6745
#  endif
6746
#endif
6747
6748
#ifdef __cplusplus
6749
extern "C" void exit (int);
6750
#endif
6751
6752
void fnord() { int i=42;}
6753
int main ()
6754
{
6755
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6756
  int status = $lt_dlunknown;
6757
6758
  if (self)
6759
    {
6760
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6761
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6762
      /* dlclose (self); */
6763
    }
6764
6765
    exit (status);
6766
}
6767
EOF
6768
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6769
  (eval $ac_link) 2>&5
6770
  ac_status=$?
6771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6773
    (./conftest; exit; ) 2>/dev/null
6774
    lt_status=$?
6775
    case x$lt_status in
6776
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6777
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6778
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6779
    esac
6780
  else :
6781
    # compilation failed
6782
    lt_cv_dlopen_self_static=no
6783
  fi
6784
fi
6785
rm -fr conftest*
6786
6787
6788
fi
6789
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6790
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6791
    fi
6792
6793
    CPPFLAGS="$save_CPPFLAGS"
6794
    LDFLAGS="$save_LDFLAGS"
6795
    LIBS="$save_LIBS"
6796
    ;;
6797
  esac
6798
6799
  case $lt_cv_dlopen_self in
6800
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6801
  *) enable_dlopen_self=unknown ;;
6802
  esac
6803
6804
  case $lt_cv_dlopen_self_static in
6805
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6806
  *) enable_dlopen_self_static=unknown ;;
6807
  esac
6808
fi
6809
6810
6811
if test "$enable_shared" = yes && test "$GCC" = yes; then
6812
  case $archive_cmds in
6813
  *'~'*)
6814
    # FIXME: we may have to deal with multi-command sequences.
6815
    ;;
6816
  '$CC '*)
6817
    # Test whether the compiler implicitly links with -lc since on some
6818
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
6819
    # to ld, don't add -lc before -lgcc.
6820
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6821
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6822
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6823
  echo $ECHO_N "(cached) $ECHO_C" >&6
6824
else
6825
  $rm conftest*
6826
    echo 'static int dummy;' > conftest.$ac_ext
6827
6828
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6829
  (eval $ac_compile) 2>&5
6830
  ac_status=$?
6831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832
  (exit $ac_status); }; then
6833
      soname=conftest
6834
      lib=conftest
6835
      libobjs=conftest.$ac_objext
6836
      deplibs=
6837
      wl=$lt_cv_prog_cc_wl
6838
      compiler_flags=-v
6839
      linker_flags=-v
6840
      verstring=
6841
      output_objdir=.
6842
      libname=conftest
6843
      save_allow_undefined_flag=$allow_undefined_flag
6844
      allow_undefined_flag=
6845
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6846
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6847
  ac_status=$?
6848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849
  (exit $ac_status); }
6850
      then
6851
  lt_cv_archive_cmds_need_lc=no
6852
      else
6853
  lt_cv_archive_cmds_need_lc=yes
6854
      fi
6855
      allow_undefined_flag=$save_allow_undefined_flag
6856
    else
6857
      cat conftest.err 1>&5
6858
    fi
6859
fi
6860
6861
    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6862
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6863
    ;;
6864
  esac
6865
fi
6866
need_lc=${lt_cv_archive_cmds_need_lc-yes}
6867
6868
# The second clause should only fire when bootstrapping the
6869
# libtool distribution, otherwise you forgot to ship ltmain.sh
6870
# with your package, and you will get complaints that there are
6871
# no rules to generate ltmain.sh.
6872
if test -f "$ltmain"; then
6873
  :
6874
else
6875
  # If there is no Makefile yet, we rely on a make rule to execute
6876
  # `config.status --recheck' to rerun these tests and create the
6877
  # libtool script then.
6878
  test -f Makefile && make "$ltmain"
6879
fi
6880
6881
if test -f "$ltmain"; then
6882
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6883
  $rm -f "${ofile}T"
6884
6885
  echo creating $ofile
6886
6887
  # Now quote all the things that may contain metacharacters while being
6888
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
6889
  # variables and quote the copies for generation of the libtool script.
6890
  for var in echo old_CC old_CFLAGS SED \
6891
    AR AR_FLAGS CC LD LN_S NM SHELL \
6892
    reload_flag reload_cmds wl \
6893
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6894
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6895
    library_names_spec soname_spec \
6896
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6897
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6898
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6899
    old_striplib striplib file_magic_cmd export_symbols_cmds \
6900
    deplibs_check_method allow_undefined_flag no_undefined_flag \
6901
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6902
    global_symbol_to_c_name_address \
6903
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
6904
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6905
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6906
6907
    case $var in
6908
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6909
    old_postinstall_cmds | old_postuninstall_cmds | \
6910
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6911
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6912
    postinstall_cmds | postuninstall_cmds | \
6913
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6914
      # Double-quote double-evaled strings.
6915
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6916
      ;;
6917
    *)
6918
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6919
      ;;
6920
    esac
6921
  done
6922
6923
  cat <<__EOF__ > "${ofile}T"
6924
#! $SHELL
6925
6926
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6927
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6928
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6929
#
6930
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6931
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6932
#
6933
# This program is free software; you can redistribute it and/or modify
6934
# it under the terms of the GNU General Public License as published by
6935
# the Free Software Foundation; either version 2 of the License, or
6936
# (at your option) any later version.
6937
#
6938
# This program is distributed in the hope that it will be useful, but
6939
# WITHOUT ANY WARRANTY; without even the implied warranty of
6940
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6941
# General Public License for more details.
6942
#
6943
# You should have received a copy of the GNU General Public License
6944
# along with this program; if not, write to the Free Software
6945
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6946
#
6947
# As a special exception to the GNU General Public License, if you
6948
# distribute this file as part of a program that contains a
6949
# configuration script generated by Autoconf, you may include it under
6950
# the same distribution terms that you use for the rest of that program.
6951
6952
# A sed that does not truncate output.
6953
SED=$lt_SED
6954
6955
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6956
Xsed="${SED} -e s/^X//"
6957
6958
# The HP-UX ksh and POSIX shell print the target directory to stdout
6959
# if CDPATH is set.
6960
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6961
6962
# ### BEGIN LIBTOOL CONFIG
6963
6964
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6965
6966
# Shell to use when invoking shell scripts.
6967
SHELL=$lt_SHELL
6968
6969
# Whether or not to build shared libraries.
6970
build_libtool_libs=$enable_shared
6971
6972
# Whether or not to build static libraries.
6973
build_old_libs=$enable_static
6974
6975
# Whether or not to add -lc for building shared libraries.
6976
build_libtool_need_lc=$need_lc
6977
6978
# Whether or not to optimize for fast installation.
6979
fast_install=$enable_fast_install
6980
6981
# The host system.
6982
host_alias=$host_alias
6983
host=$host
6984
6985
# An echo program that does not interpret backslashes.
6986
echo=$lt_echo
6987
6988
# The archiver.
6989
AR=$lt_AR
6990
AR_FLAGS=$lt_AR_FLAGS
6991
6992
# The default C compiler.
6993
CC=$lt_CC
6994
6995
# Is the compiler the GNU C compiler?
6996
with_gcc=$GCC
6997
6998
# The linker used to build libraries.
6999
LD=$lt_LD
7000
7001
# Whether we need hard or soft links.
7002
LN_S=$lt_LN_S
7003
7004
# A BSD-compatible nm program.
7005
NM=$lt_NM
7006
7007
# A symbol stripping program
7008
STRIP=$STRIP
7009
7010
# Used to examine libraries when file_magic_cmd begins "file"
7011
MAGIC_CMD=$MAGIC_CMD
7012
7013
# Used on cygwin: DLL creation program.
7014
DLLTOOL="$DLLTOOL"
7015
7016
# Used on cygwin: object dumper.
7017
OBJDUMP="$OBJDUMP"
7018
7019
# Used on cygwin: assembler.
7020
AS="$AS"
7021
7022
# The name of the directory that contains temporary libtool files.
7023
objdir=$objdir
7024
7025
# How to create reloadable object files.
7026
reload_flag=$lt_reload_flag
7027
reload_cmds=$lt_reload_cmds
7028
7029
# How to pass a linker flag through the compiler.
7030
wl=$lt_wl
7031
7032
# Object file suffix (normally "o").
7033
objext="$ac_objext"
7034
7035
# Old archive suffix (normally "a").
7036
libext="$libext"
7037
7038
# Executable file suffix (normally "").
7039
exeext="$exeext"
7040
7041
# Additional compiler flags for building library objects.
7042
pic_flag=$lt_pic_flag
7043
pic_mode=$pic_mode
7044
7045
# Does compiler simultaneously support -c and -o options?
7046
compiler_c_o=$lt_compiler_c_o
7047
7048
# Can we write directly to a .lo ?
7049
compiler_o_lo=$lt_compiler_o_lo
7050
7051
# Must we lock files when doing compilation ?
7052
need_locks=$lt_need_locks
7053
7054
# Do we need the lib prefix for modules?
7055
need_lib_prefix=$need_lib_prefix
7056
7057
# Do we need a version for libraries?
7058
need_version=$need_version
7059
7060
# Whether dlopen is supported.
7061
dlopen_support=$enable_dlopen
7062
7063
# Whether dlopen of programs is supported.
7064
dlopen_self=$enable_dlopen_self
7065
7066
# Whether dlopen of statically linked programs is supported.
7067
dlopen_self_static=$enable_dlopen_self_static
7068
7069
# Compiler flag to prevent dynamic linking.
7070
link_static_flag=$lt_link_static_flag
7071
7072
# Compiler flag to turn off builtin functions.
7073
no_builtin_flag=$lt_no_builtin_flag
7074
7075
# Compiler flag to allow reflexive dlopens.
7076
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7077
7078
# Compiler flag to generate shared objects directly from archives.
7079
whole_archive_flag_spec=$lt_whole_archive_flag_spec
7080
7081
# Compiler flag to generate thread-safe objects.
7082
thread_safe_flag_spec=$lt_thread_safe_flag_spec
7083
7084
# Library versioning type.
7085
version_type=$version_type
7086
7087
# Format of library name prefix.
7088
libname_spec=$lt_libname_spec
7089
7090
# List of archive names.  First name is the real one, the rest are links.
7091
# The last name is the one that the linker finds with -lNAME.
7092
library_names_spec=$lt_library_names_spec
7093
7094
# The coded name of the library, if different from the real name.
7095
soname_spec=$lt_soname_spec
7096
7097
# Commands used to build and install an old-style archive.
7098
RANLIB=$lt_RANLIB
7099
old_archive_cmds=$lt_old_archive_cmds
7100
old_postinstall_cmds=$lt_old_postinstall_cmds
7101
old_postuninstall_cmds=$lt_old_postuninstall_cmds
7102
7103
# Create an old-style archive from a shared archive.
7104
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7105
7106
# Create a temporary old-style archive to link instead of a shared archive.
7107
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7108
7109
# Commands used to build and install a shared archive.
7110
archive_cmds=$lt_archive_cmds
7111
archive_expsym_cmds=$lt_archive_expsym_cmds
7112
postinstall_cmds=$lt_postinstall_cmds
7113
postuninstall_cmds=$lt_postuninstall_cmds
7114
7115
# Commands to strip libraries.
7116
old_striplib=$lt_old_striplib
7117
striplib=$lt_striplib
7118
7119
# Method to check whether dependent libraries are shared objects.
7120
deplibs_check_method=$lt_deplibs_check_method
7121
7122
# Command to use when deplibs_check_method == file_magic.
7123
file_magic_cmd=$lt_file_magic_cmd
7124
7125
# Flag that allows shared libraries with undefined symbols to be built.
7126
allow_undefined_flag=$lt_allow_undefined_flag
7127
7128
# Flag that forces no undefined symbols.
7129
no_undefined_flag=$lt_no_undefined_flag
7130
7131
# Commands used to finish a libtool library installation in a directory.
7132
finish_cmds=$lt_finish_cmds
7133
7134
# Same as above, but a single script fragment to be evaled but not shown.
7135
finish_eval=$lt_finish_eval
7136
7137
# Take the output of nm and produce a listing of raw symbols and C names.
7138
global_symbol_pipe=$lt_global_symbol_pipe
7139
7140
# Transform the output of nm in a proper C declaration
7141
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7142
7143
# Transform the output of nm in a C name address pair
7144
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7145
7146
# This is the shared library runtime path variable.
7147
runpath_var=$runpath_var
7148
7149
# This is the shared library path variable.
7150
shlibpath_var=$shlibpath_var
7151
7152
# Is shlibpath searched before the hard-coded library search path?
7153
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7154
7155
# How to hardcode a shared library path into an executable.
7156
hardcode_action=$hardcode_action
7157
7158
# Whether we should hardcode library paths into libraries.
7159
hardcode_into_libs=$hardcode_into_libs
7160
7161
# Flag to hardcode \$libdir into a binary during linking.
7162
# This must work even if \$libdir does not exist.
7163
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7164
7165
# Whether we need a single -rpath flag with a separated argument.
7166
hardcode_libdir_separator=$lt_hardcode_libdir_separator
7167
7168
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7169
# resulting binary.
7170
hardcode_direct=$hardcode_direct
7171
7172
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7173
# resulting binary.
7174
hardcode_minus_L=$hardcode_minus_L
7175
7176
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7177
# the resulting binary.
7178
hardcode_shlibpath_var=$hardcode_shlibpath_var
7179
7180
# Variables whose values should be saved in libtool wrapper scripts and
7181
# restored at relink time.
7182
variables_saved_for_relink="$variables_saved_for_relink"
7183
7184
# Whether libtool must link a program against all its dependency libraries.
7185
link_all_deplibs=$link_all_deplibs
7186
7187
# Compile-time system search path for libraries
7188
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7189
7190
# Run-time system search path for libraries
7191
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7192
7193
# Fix the shell variable \$srcfile for the compiler.
7194
fix_srcfile_path="$fix_srcfile_path"
7195
7196
# Set to yes if exported symbols are required.
7197
always_export_symbols=$always_export_symbols
7198
7199
# The commands to list exported symbols.
7200
export_symbols_cmds=$lt_export_symbols_cmds
7201
7202
# The commands to extract the exported symbol list from a shared archive.
7203
extract_expsyms_cmds=$lt_extract_expsyms_cmds
7204
7205
# Symbols that should not be listed in the preloaded symbols.
7206
exclude_expsyms=$lt_exclude_expsyms
7207
7208
# Symbols that must always be exported.
7209
include_expsyms=$lt_include_expsyms
7210
7211
# ### END LIBTOOL CONFIG
7212
7213
__EOF__
7214
7215
  case $host_os in
7216
  aix3*)
7217
    cat <<\EOF >> "${ofile}T"
7218
7219
# AIX sometimes has problems with the GCC collect2 program.  For some
7220
# reason, if we set the COLLECT_NAMES environment variable, the problems
7221
# vanish in a puff of smoke.
7222
if test "X${COLLECT_NAMES+set}" != Xset; then
7223
  COLLECT_NAMES=
7224
  export COLLECT_NAMES
7225
fi
7226
EOF
7227
    ;;
7228
  esac
7229
7230
  case $host_os in
7231
  cygwin* | mingw* | pw32* | os2*)
7232
    cat <<'EOF' >> "${ofile}T"
7233
      # This is a source program that is used to create dlls on Windows
7234
      # Don't remove nor modify the starting and closing comments
7235
# /* ltdll.c starts here */
7236
# #define WIN32_LEAN_AND_MEAN
7237
# #include <windows.h>
7238
# #undef WIN32_LEAN_AND_MEAN
7239
# #include <stdio.h>
7240
#
7241
# #ifndef __CYGWIN__
7242
# #  ifdef __CYGWIN32__
7243
# #    define __CYGWIN__ __CYGWIN32__
7244
# #  endif
7245
# #endif
7246
#
7247
# #ifdef __cplusplus
7248
# extern "C" {
7249
# #endif
7250
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7251
# #ifdef __cplusplus
7252
# }
7253
# #endif
7254
#
7255
# #ifdef __CYGWIN__
7256
# #include <cygwin/cygwin_dll.h>
7257
# DECLARE_CYGWIN_DLL( DllMain );
7258
# #endif
7259
# HINSTANCE __hDllInstance_base;
7260
#
7261
# BOOL APIENTRY
7262
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7263
# {
7264
#   __hDllInstance_base = hInst;
7265
#   return TRUE;
7266
# }
7267
# /* ltdll.c ends here */
7268
  # This is a source program that is used to create import libraries
7269
  # on Windows for dlls which lack them. Don't remove nor modify the
7270
  # starting and closing comments
7271
# /* impgen.c starts here */
7272
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7273
#
7274
#  This file is part of GNU libtool.
7275
#
7276
#  This program is free software; you can redistribute it and/or modify
7277
#  it under the terms of the GNU General Public License as published by
7278
#  the Free Software Foundation; either version 2 of the License, or
7279
#  (at your option) any later version.
7280
#
7281
#  This program is distributed in the hope that it will be useful,
7282
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
7283
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7284
#  GNU General Public License for more details.
7285
#
7286
#  You should have received a copy of the GNU General Public License
7287
#  along with this program; if not, write to the Free Software
7288
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7289
#  */
7290
#
7291
# #include <stdio.h>      /* for printf() */
7292
# #include <unistd.h>     /* for open(), lseek(), read() */
7293
# #include <fcntl.h>      /* for O_RDONLY, O_BINARY */
7294
# #include <string.h>     /* for strdup() */
7295
#
7296
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7297
# #ifndef O_BINARY
7298
# #define O_BINARY 0
7299
# #endif
7300
#
7301
# static unsigned int
7302
# pe_get16 (fd, offset)
7303
#      int fd;
7304
#      int offset;
7305
# {
7306
#   unsigned char b[2];
7307
#   lseek (fd, offset, SEEK_SET);
7308
#   read (fd, b, 2);
7309
#   return b[0] + (b[1]<<8);
7310
# }
7311
#
7312
# static unsigned int
7313
# pe_get32 (fd, offset)
7314
#     int fd;
7315
#     int offset;
7316
# {
7317
#   unsigned char b[4];
7318
#   lseek (fd, offset, SEEK_SET);
7319
#   read (fd, b, 4);
7320
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7321
# }
7322
#
7323
# static unsigned int
7324
# pe_as32 (ptr)
7325
#      void *ptr;
7326
# {
7327
#   unsigned char *b = ptr;
7328
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7329
# }
7330
#
7331
# int
7332
# main (argc, argv)
7333
#     int argc;
7334
#     char *argv[];
7335
# {
7336
#     int dll;
7337
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7338
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
7339
#     unsigned long name_rvas, nexp;
7340
#     unsigned char *expdata, *erva;
7341
#     char *filename, *dll_name;
7342
#
7343
#     filename = argv[1];
7344
#
7345
#     dll = open(filename, O_RDONLY|O_BINARY);
7346
#     if (dll < 1)
7347
#     return 1;
7348
#
7349
#     dll_name = filename;
7350
#
7351
#     for (i=0; filename[i]; i++)
7352
#     if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7353
#         dll_name = filename + i +1;
7354
#
7355
#     pe_header_offset = pe_get32 (dll, 0x3c);
7356
#     opthdr_ofs = pe_header_offset + 4 + 20;
7357
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7358
#
7359
#     if (num_entries < 1) /* no exports */
7360
#     return 1;
7361
#
7362
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7363
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
7364
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7365
#     secptr = (pe_header_offset + 4 + 20 +
7366
#           pe_get16 (dll, pe_header_offset + 4 + 16));
7367
#
7368
#     expptr = 0;
7369
#     for (i = 0; i < nsections; i++)
7370
#     {
7371
#     char sname[8];
7372
#     unsigned long secptr1 = secptr + 40 * i;
7373
#     unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7374
#     unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7375
#     unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7376
#     lseek(dll, secptr1, SEEK_SET);
7377
#     read(dll, sname, 8);
7378
#     if (vaddr <= export_rva && vaddr+vsize > export_rva)
7379
#     {
7380
#         expptr = fptr + (export_rva - vaddr);
7381
#         if (export_rva + export_size > vaddr + vsize)
7382
#         export_size = vsize - (export_rva - vaddr);
7383
#         break;
7384
#     }
7385
#     }
7386
#
7387
#     expdata = (unsigned char*)malloc(export_size);
7388
#     lseek (dll, expptr, SEEK_SET);
7389
#     read (dll, expdata, export_size);
7390
#     erva = expdata - export_rva;
7391
#
7392
#     nexp = pe_as32 (expdata+24);
7393
#     name_rvas = pe_as32 (expdata+32);
7394
#
7395
#     printf ("EXPORTS\n");
7396
#     for (i = 0; i<nexp; i++)
7397
#     {
7398
#     unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7399
#     printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7400
#     }
7401
#
7402
#     return 0;
7403
# }
7404
# /* impgen.c ends here */
7405
7406
EOF
7407
    ;;
7408
  esac
7409
7410
  # We use sed instead of cat because bash on DJGPP gets confused if
7411
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7412
  # text mode, it properly converts lines to CR/LF.  This bash problem
7413
  # is reportedly fixed, but why not run on old versions too?
7414
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7415
7416
  mv -f "${ofile}T" "$ofile" || \
7417
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7418
  chmod +x "$ofile"
7419
fi
7420
7421
7422
7423
7424
7425
# This can be used to rebuild libtool when needed
7426
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7427
7428
# Always use our own libtool.
7429
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7430
7431
# Prevent multiple expansion
7432
7433
7434
7435
# Extract the first word of "perl", so it can be a program name with args.
7436
set dummy perl; ac_word=$2
7437
echo "$as_me:$LINENO: checking for $ac_word" >&5
7438
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7439
if test "${ac_cv_path_PERL+set}" = set; then
7440
  echo $ECHO_N "(cached) $ECHO_C" >&6
7441
else
7442
  case $PERL in
7443
  [\\/]* | ?:[\\/]*)
7444
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7445
  ;;
7446
  *)
7447
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448
for as_dir in $PATH
7449
do
7450
  IFS=$as_save_IFS
7451
  test -z "$as_dir" && as_dir=.
7452
  for ac_exec_ext in '' $ac_executable_extensions; do
7453
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7455
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456
    break 2
7457
  fi
7458
done
7459
done
7460
7461
  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
7462
  ;;
7463
esac
7464
fi
7465
PERL=$ac_cv_path_PERL
7466
7467
if test -n "$PERL"; then
7468
  echo "$as_me:$LINENO: result: $PERL" >&5
7469
echo "${ECHO_T}$PERL" >&6
7470
else
7471
  echo "$as_me:$LINENO: result: no" >&5
7472
echo "${ECHO_T}no" >&6
7473
fi
7474
7475
# Extract the first word of "sh", so it can be a program name with args.
7476
set dummy sh; ac_word=$2
7477
echo "$as_me:$LINENO: checking for $ac_word" >&5
7478
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7479
if test "${ac_cv_path_SH+set}" = set; then
7480
  echo $ECHO_N "(cached) $ECHO_C" >&6
7481
else
7482
  case $SH in
7483
  [\\/]* | ?:[\\/]*)
7484
  ac_cv_path_SH="$SH" # Let the user override the test with a path.
7485
  ;;
7486
  *)
7487
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488
for as_dir in $PATH
7489
do
7490
  IFS=$as_save_IFS
7491
  test -z "$as_dir" && as_dir=.
7492
  for ac_exec_ext in '' $ac_executable_extensions; do
7493
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7494
    ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
7495
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7496
    break 2
7497
  fi
7498
done
7499
done
7500
7501
  test -z "$ac_cv_path_SH" && ac_cv_path_SH="/bin/sh"
7502
  ;;
7503
esac
7504
fi
7505
SH=$ac_cv_path_SH
7506
7507
if test -n "$SH"; then
7508
  echo "$as_me:$LINENO: result: $SH" >&5
7509
echo "${ECHO_T}$SH" >&6
7510
else
7511
  echo "$as_me:$LINENO: result: no" >&5
7512
echo "${ECHO_T}no" >&6
7513
fi
7514
7515
7516
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
7517
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
7518
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7519
if test "${enable_maintainer_mode+set}" = set; then
7520
  enableval="$enable_maintainer_mode"
7521
  USE_MAINTAINER_MODE=$enableval
7522
else
7523
  USE_MAINTAINER_MODE=no
7524
fi;
7525
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
7526
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
7527
7528
7529
if test $USE_MAINTAINER_MODE = yes; then
7530
  MAINTAINER_MODE_TRUE=
7531
  MAINTAINER_MODE_FALSE='#'
7532
else
7533
  MAINTAINER_MODE_TRUE='#'
7534
  MAINTAINER_MODE_FALSE=
7535
fi
7536
  MAINT=$MAINTAINER_MODE_TRUE
7537
7538
7539
7540
7541
      if test "X$prefix" = "XNONE"; then
7542
    acl_final_prefix="$ac_default_prefix"
7543
  else
7544
    acl_final_prefix="$prefix"
7545
  fi
7546
  if test "X$exec_prefix" = "XNONE"; then
7547
    acl_final_exec_prefix='${prefix}'
7548
  else
7549
    acl_final_exec_prefix="$exec_prefix"
7550
  fi
7551
  acl_save_prefix="$prefix"
7552
  prefix="$acl_final_prefix"
7553
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7554
  prefix="$acl_save_prefix"
7555
7556
7557
# Check whether --with-gnu-ld or --without-gnu-ld was given.
7558
if test "${with_gnu_ld+set}" = set; then
7559
  withval="$with_gnu_ld"
7560
  test "$withval" = no || with_gnu_ld=yes
7561
else
7562
  with_gnu_ld=no
7563
fi;
7564
ac_prog=ld
7565
if test "$GCC" = yes; then
7566
  # Check if gcc -print-prog-name=ld gives a path.
7567
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7568
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7569
  case $host in
7570
  *-*-mingw*)
7571
    # gcc leaves a trailing carriage return which upsets mingw
7572
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7573
  *)
7574
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7575
  esac
7576
  case $ac_prog in
7577
    # Accept absolute paths.
7578
    [\\/]* | [A-Za-z]:[\\/]*)
7579
      re_direlt='/[^/][^/]*/\.\./'
7580
      # Canonicalize the path of ld
7581
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7582
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7583
  ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7584
      done
7585
      test -z "$LD" && LD="$ac_prog"
7586
      ;;
7587
  "")
7588
    # If it fails, then pretend we aren't using GCC.
7589
    ac_prog=ld
7590
    ;;
7591
  *)
7592
    # If it is relative, then search for the first ld in PATH.
7593
    with_gnu_ld=unknown
7594
    ;;
7595
  esac
7596
elif test "$with_gnu_ld" = yes; then
7597
  echo "$as_me:$LINENO: checking for GNU ld" >&5
7598
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7599
else
7600
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7601
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7602
fi
7603
if test "${acl_cv_path_LD+set}" = set; then
7604
  echo $ECHO_N "(cached) $ECHO_C" >&6
7605
else
7606
  if test -z "$LD"; then
7607
  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7608
  for ac_dir in $PATH; do
7609
    test -z "$ac_dir" && ac_dir=.
7610
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7611
      acl_cv_path_LD="$ac_dir/$ac_prog"
7612
      # Check to see if the program is GNU ld.  I'd rather use --version,
7613
      # but apparently some GNU ld's only accept -v.
7614
      # Break only if it was the GNU/non-GNU ld that we prefer.
7615
      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7616
  test "$with_gnu_ld" != no && break
7617
      else
7618
  test "$with_gnu_ld" != yes && break
7619
      fi
7620
    fi
7621
  done
7622
  IFS="$ac_save_ifs"
7623
else
7624
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
7625
fi
7626
fi
7627
7628
LD="$acl_cv_path_LD"
7629
if test -n "$LD"; then
7630
  echo "$as_me:$LINENO: result: $LD" >&5
7631
echo "${ECHO_T}$LD" >&6
7632
else
7633
  echo "$as_me:$LINENO: result: no" >&5
7634
echo "${ECHO_T}no" >&6
7635
fi
7636
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7637
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7638
   { (exit 1); exit 1; }; }
7639
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7640
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7641
if test "${acl_cv_prog_gnu_ld+set}" = set; then
7642
  echo $ECHO_N "(cached) $ECHO_C" >&6
7643
else
7644
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7645
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7646
  acl_cv_prog_gnu_ld=yes
7647
else
7648
  acl_cv_prog_gnu_ld=no
7649
fi
7650
fi
7651
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7652
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7653
with_gnu_ld=$acl_cv_prog_gnu_ld
7654
7655
7656
7657
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7658
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7659
if test "${acl_cv_rpath+set}" = set; then
7660
  echo $ECHO_N "(cached) $ECHO_C" >&6
7661
else
7662
7663
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7664
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7665
    . ./conftest.sh
7666
    rm -f ./conftest.sh
7667
    acl_cv_rpath=done
7668
7669
fi
7670
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7671
echo "${ECHO_T}$acl_cv_rpath" >&6
7672
  wl="$acl_cv_wl"
7673
  libext="$acl_cv_libext"
7674
  shlibext="$acl_cv_shlibext"
7675
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7676
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7677
  hardcode_direct="$acl_cv_hardcode_direct"
7678
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
7679
  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
7680
  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
7681
    # Check whether --enable-rpath or --disable-rpath was given.
7682
if test "${enable_rpath+set}" = set; then
7683
  enableval="$enable_rpath"
7684
  :
7685
else
7686
  enable_rpath=yes
7687
fi;
7688
7689
7690
7691
7692
7693
7694
7695
    use_additional=yes
7696
7697
  acl_save_prefix="$prefix"
7698
  prefix="$acl_final_prefix"
7699
  acl_save_exec_prefix="$exec_prefix"
7700
  exec_prefix="$acl_final_exec_prefix"
7701
7702
    eval additional_includedir=\"$includedir\"
7703
    eval additional_libdir=\"$libdir\"
7704
7705
  exec_prefix="$acl_save_exec_prefix"
7706
  prefix="$acl_save_prefix"
7707
7708
7709
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7710
if test "${with_libiconv_prefix+set}" = set; then
7711
  withval="$with_libiconv_prefix"
7712
7713
    if test "X$withval" = "Xno"; then
7714
      use_additional=no
7715
    else
7716
      if test "X$withval" = "X"; then
7717
7718
  acl_save_prefix="$prefix"
7719
  prefix="$acl_final_prefix"
7720
  acl_save_exec_prefix="$exec_prefix"
7721
  exec_prefix="$acl_final_exec_prefix"
7722
7723
          eval additional_includedir=\"$includedir\"
7724
          eval additional_libdir=\"$libdir\"
7725
7726
  exec_prefix="$acl_save_exec_prefix"
7727
  prefix="$acl_save_prefix"
7728
7729
      else
7730
        additional_includedir="$withval/include"
7731
        additional_libdir="$withval/lib"
7732
      fi
7733
    fi
7734
7735
fi;
7736
      LIBICONV=
7737
  LTLIBICONV=
7738
  INCICONV=
7739
  rpathdirs=
7740
  ltrpathdirs=
7741
  names_already_handled=
7742
  names_next_round='iconv '
7743
  while test -n "$names_next_round"; do
7744
    names_this_round="$names_next_round"
7745
    names_next_round=
7746
    for name in $names_this_round; do
7747
      already_handled=
7748
      for n in $names_already_handled; do
7749
        if test "$n" = "$name"; then
7750
          already_handled=yes
7751
          break
7752
        fi
7753
      done
7754
      if test -z "$already_handled"; then
7755
        names_already_handled="$names_already_handled $name"
7756
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7757
        eval value=\"\$HAVE_LIB$uppername\"
7758
        if test -n "$value"; then
7759
          if test "$value" = yes; then
7760
            eval value=\"\$LIB$uppername\"
7761
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7762
            eval value=\"\$LTLIB$uppername\"
7763
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7764
          else
7765
                                    :
7766
          fi
7767
        else
7768
                              found_dir=
7769
          found_la=
7770
          found_so=
7771
          found_a=
7772
          if test $use_additional = yes; then
7773
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7774
              found_dir="$additional_libdir"
7775
              found_so="$additional_libdir/lib$name.$shlibext"
7776
              if test -f "$additional_libdir/lib$name.la"; then
7777
                found_la="$additional_libdir/lib$name.la"
7778
              fi
7779
            else
7780
              if test -f "$additional_libdir/lib$name.$libext"; then
7781
                found_dir="$additional_libdir"
7782
                found_a="$additional_libdir/lib$name.$libext"
7783
                if test -f "$additional_libdir/lib$name.la"; then
7784
                  found_la="$additional_libdir/lib$name.la"
7785
                fi
7786
              fi
7787
            fi
7788
          fi
7789
          if test "X$found_dir" = "X"; then
7790
            for x in $LDFLAGS $LTLIBICONV; do
7791
7792
  acl_save_prefix="$prefix"
7793
  prefix="$acl_final_prefix"
7794
  acl_save_exec_prefix="$exec_prefix"
7795
  exec_prefix="$acl_final_exec_prefix"
7796
  eval x=\"$x\"
7797
  exec_prefix="$acl_save_exec_prefix"
7798
  prefix="$acl_save_prefix"
7799
7800
              case "$x" in
7801
                -L*)
7802
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7803
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7804
                    found_dir="$dir"
7805
                    found_so="$dir/lib$name.$shlibext"
7806
                    if test -f "$dir/lib$name.la"; then
7807
                      found_la="$dir/lib$name.la"
7808
                    fi
7809
                  else
7810
                    if test -f "$dir/lib$name.$libext"; then
7811
                      found_dir="$dir"
7812
                      found_a="$dir/lib$name.$libext"
7813
                      if test -f "$dir/lib$name.la"; then
7814
                        found_la="$dir/lib$name.la"
7815
                      fi
7816
                    fi
7817
                  fi
7818
                  ;;
7819
              esac
7820
              if test "X$found_dir" != "X"; then
7821
                break
7822
              fi
7823
            done
7824
          fi
7825
          if test "X$found_dir" != "X"; then
7826
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7827
            if test "X$found_so" != "X"; then
7828
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7829
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7830
              else
7831
                                                                                haveit=
7832
                for x in $ltrpathdirs; do
7833
                  if test "X$x" = "X$found_dir"; then
7834
                    haveit=yes
7835
                    break
7836
                  fi
7837
                done
7838
                if test -z "$haveit"; then
7839
                  ltrpathdirs="$ltrpathdirs $found_dir"
7840
                fi
7841
                                if test "$hardcode_direct" = yes; then
7842
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7843
                else
7844
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7845
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7846
                                                            haveit=
7847
                    for x in $rpathdirs; do
7848
                      if test "X$x" = "X$found_dir"; then
7849
                        haveit=yes
7850
                        break
7851
                      fi
7852
                    done
7853
                    if test -z "$haveit"; then
7854
                      rpathdirs="$rpathdirs $found_dir"
7855
                    fi
7856
                  else
7857
                                                                                haveit=
7858
                    for x in $LDFLAGS $LIBICONV; do
7859
7860
  acl_save_prefix="$prefix"
7861
  prefix="$acl_final_prefix"
7862
  acl_save_exec_prefix="$exec_prefix"
7863
  exec_prefix="$acl_final_exec_prefix"
7864
  eval x=\"$x\"
7865
  exec_prefix="$acl_save_exec_prefix"
7866
  prefix="$acl_save_prefix"
7867
7868
                      if test "X$x" = "X-L$found_dir"; then
7869
                        haveit=yes
7870
                        break
7871
                      fi
7872
                    done
7873
                    if test -z "$haveit"; then
7874
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7875
                    fi
7876
                    if test "$hardcode_minus_L" != no; then
7877
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7878
                    else
7879
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7880
                    fi
7881
                  fi
7882
                fi
7883
              fi
7884
            else
7885
              if test "X$found_a" != "X"; then
7886
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7887
              else
7888
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7889
              fi
7890
            fi
7891
                        additional_includedir=
7892
            case "$found_dir" in
7893
              */lib | */lib/)
7894
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7895
                additional_includedir="$basedir/include"
7896
                ;;
7897
            esac
7898
            if test "X$additional_includedir" != "X"; then
7899
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7900
                haveit=
7901
                if test "X$additional_includedir" = "X/usr/local/include"; then
7902
                  if test -n "$GCC"; then
7903
                    case $host_os in
7904
                      linux*) haveit=yes;;
7905
                    esac
7906
                  fi
7907
                fi
7908
                if test -z "$haveit"; then
7909
                  for x in $CPPFLAGS $INCICONV; do
7910
7911
  acl_save_prefix="$prefix"
7912
  prefix="$acl_final_prefix"
7913
  acl_save_exec_prefix="$exec_prefix"
7914
  exec_prefix="$acl_final_exec_prefix"
7915
  eval x=\"$x\"
7916
  exec_prefix="$acl_save_exec_prefix"
7917
  prefix="$acl_save_prefix"
7918
7919
                    if test "X$x" = "X-I$additional_includedir"; then
7920
                      haveit=yes
7921
                      break
7922
                    fi
7923
                  done
7924
                  if test -z "$haveit"; then
7925
                    if test -d "$additional_includedir"; then
7926
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7927
                    fi
7928
                  fi
7929
                fi
7930
              fi
7931
            fi
7932
                        if test -n "$found_la"; then
7933
                                                        save_libdir="$libdir"
7934
              case "$found_la" in
7935
                */* | *\\*) . "$found_la" ;;
7936
                *) . "./$found_la" ;;
7937
              esac
7938
              libdir="$save_libdir"
7939
                            for dep in $dependency_libs; do
7940
                case "$dep" in
7941
                  -L*)
7942
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7943
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
7944
                      haveit=
7945
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
7946
                        if test -n "$GCC"; then
7947
                          case $host_os in
7948
                            linux*) haveit=yes;;
7949
                          esac
7950
                        fi
7951
                      fi
7952
                      if test -z "$haveit"; then
7953
                        haveit=
7954
                        for x in $LDFLAGS $LIBICONV; do
7955
7956
  acl_save_prefix="$prefix"
7957
  prefix="$acl_final_prefix"
7958
  acl_save_exec_prefix="$exec_prefix"
7959
  exec_prefix="$acl_final_exec_prefix"
7960
  eval x=\"$x\"
7961
  exec_prefix="$acl_save_exec_prefix"
7962
  prefix="$acl_save_prefix"
7963
7964
                          if test "X$x" = "X-L$additional_libdir"; then
7965
                            haveit=yes
7966
                            break
7967
                          fi
7968
                        done
7969
                        if test -z "$haveit"; then
7970
                          if test -d "$additional_libdir"; then
7971
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7972
                          fi
7973
                        fi
7974
                        haveit=
7975
                        for x in $LDFLAGS $LTLIBICONV; do
7976
7977
  acl_save_prefix="$prefix"
7978
  prefix="$acl_final_prefix"
7979
  acl_save_exec_prefix="$exec_prefix"
7980
  exec_prefix="$acl_final_exec_prefix"
7981
  eval x=\"$x\"
7982
  exec_prefix="$acl_save_exec_prefix"
7983
  prefix="$acl_save_prefix"
7984
7985
                          if test "X$x" = "X-L$additional_libdir"; then
7986
                            haveit=yes
7987
                            break
7988
                          fi
7989
                        done
7990
                        if test -z "$haveit"; then
7991
                          if test -d "$additional_libdir"; then
7992
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7993
                          fi
7994
                        fi
7995
                      fi
7996
                    fi
7997
                    ;;
7998
                  -R*)
7999
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
8000
                    if test "$enable_rpath" != no; then
8001
                                                                  haveit=
8002
                      for x in $rpathdirs; do
8003
                        if test "X$x" = "X$dir"; then
8004
                          haveit=yes
8005
                          break
8006
                        fi
8007
                      done
8008
                      if test -z "$haveit"; then
8009
                        rpathdirs="$rpathdirs $dir"
8010
                      fi
8011
                                                                  haveit=
8012
                      for x in $ltrpathdirs; do
8013
                        if test "X$x" = "X$dir"; then
8014
                          haveit=yes
8015
                          break
8016
                        fi
8017
                      done
8018
                      if test -z "$haveit"; then
8019
                        ltrpathdirs="$ltrpathdirs $dir"
8020
                      fi
8021
                    fi
8022
                    ;;
8023
                  -l*)
8024
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8025
                    ;;
8026
                  *.la)
8027
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8028
                    ;;
8029
                  *)
8030
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8031
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8032
                    ;;
8033
                esac
8034
              done
8035
            fi
8036
          else
8037
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8038
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8039
          fi
8040
        fi
8041
      fi
8042
    done
8043
  done
8044
  if test "X$rpathdirs" != "X"; then
8045
    if test -n "$hardcode_libdir_separator"; then
8046
                        alldirs=
8047
      for found_dir in $rpathdirs; do
8048
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8049
      done
8050
            acl_save_libdir="$libdir"
8051
      libdir="$alldirs"
8052
      eval flag=\"$hardcode_libdir_flag_spec\"
8053
      libdir="$acl_save_libdir"
8054
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8055
    else
8056
            for found_dir in $rpathdirs; do
8057
        acl_save_libdir="$libdir"
8058
        libdir="$found_dir"
8059
        eval flag=\"$hardcode_libdir_flag_spec\"
8060
        libdir="$acl_save_libdir"
8061
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8062
      done
8063
    fi
8064
  fi
8065
  if test "X$ltrpathdirs" != "X"; then
8066
            for found_dir in $ltrpathdirs; do
8067
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8068
    done
8069
  fi
8070
8071
8072
8073
8074
8075
8076
8077
          am_save_CPPFLAGS="$CPPFLAGS"
8078
8079
  for element in $INCICONV; do
8080
    haveit=
8081
    for x in $CPPFLAGS; do
8082
8083
  acl_save_prefix="$prefix"
8084
  prefix="$acl_final_prefix"
8085
  acl_save_exec_prefix="$exec_prefix"
8086
  exec_prefix="$acl_final_exec_prefix"
8087
  eval x=\"$x\"
8088
  exec_prefix="$acl_save_exec_prefix"
8089
  prefix="$acl_save_prefix"
8090
8091
      if test "X$x" = "X$element"; then
8092
        haveit=yes
8093
        break
8094
      fi
8095
    done
8096
    if test -z "$haveit"; then
8097
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8098
    fi
8099
  done
8100
8101
8102
  echo "$as_me:$LINENO: checking for iconv" >&5
8103
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8104
if test "${am_cv_func_iconv+set}" = set; then
8105
  echo $ECHO_N "(cached) $ECHO_C" >&6
8106
else
8107
8108
    am_cv_func_iconv="no, consider installing GNU libiconv"
8109
    am_cv_lib_iconv=no
8110
    cat >conftest.$ac_ext <<_ACEOF
8111
#line $LINENO "configure"
8112
#include "confdefs.h"
8113
#include <stdlib.h>
8114
#include <iconv.h>
8115
#ifdef F77_DUMMY_MAIN
8116
#  ifdef __cplusplus
8117
     extern "C"
8118
#  endif
8119
   int F77_DUMMY_MAIN() { return 1; }
8120
#endif
8121
int
8122
main ()
8123
{
8124
iconv_t cd = iconv_open("","");
8125
       iconv(cd,NULL,NULL,NULL,NULL);
8126
       iconv_close(cd);
8127
  ;
8128
  return 0;
8129
}
8130
_ACEOF
8131
rm -f conftest.$ac_objext conftest$ac_exeext
8132
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8133
  (eval $ac_link) 2>&5
8134
  ac_status=$?
8135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136
  (exit $ac_status); } &&
8137
         { ac_try='test -s conftest$ac_exeext'
8138
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139
  (eval $ac_try) 2>&5
8140
  ac_status=$?
8141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142
  (exit $ac_status); }; }; then
8143
  am_cv_func_iconv=yes
8144
else
8145
  echo "$as_me: failed program was:" >&5
8146
cat conftest.$ac_ext >&5
8147
fi
8148
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8149
    if test "$am_cv_func_iconv" != yes; then
8150
      am_save_LIBS="$LIBS"
8151
      LIBS="$LIBS $LIBICONV"
8152
      cat >conftest.$ac_ext <<_ACEOF
8153
#line $LINENO "configure"
8154
#include "confdefs.h"
8155
#include <stdlib.h>
8156
#include <iconv.h>
8157
#ifdef F77_DUMMY_MAIN
8158
#  ifdef __cplusplus
8159
     extern "C"
8160
#  endif
8161
   int F77_DUMMY_MAIN() { return 1; }
8162
#endif
8163
int
8164
main ()
8165
{
8166
iconv_t cd = iconv_open("","");
8167
         iconv(cd,NULL,NULL,NULL,NULL);
8168
         iconv_close(cd);
8169
  ;
8170
  return 0;
8171
}
8172
_ACEOF
8173
rm -f conftest.$ac_objext conftest$ac_exeext
8174
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175
  (eval $ac_link) 2>&5
8176
  ac_status=$?
8177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178
  (exit $ac_status); } &&
8179
         { ac_try='test -s conftest$ac_exeext'
8180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181
  (eval $ac_try) 2>&5
8182
  ac_status=$?
8183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184
  (exit $ac_status); }; }; then
8185
  am_cv_lib_iconv=yes
8186
        am_cv_func_iconv=yes
8187
else
8188
  echo "$as_me: failed program was:" >&5
8189
cat conftest.$ac_ext >&5
8190
fi
8191
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8192
      LIBS="$am_save_LIBS"
8193
    fi
8194
8195
fi
8196
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8197
echo "${ECHO_T}$am_cv_func_iconv" >&6
8198
  if test "$am_cv_func_iconv" = yes; then
8199
8200
cat >>confdefs.h <<\_ACEOF
8201
#define HAVE_ICONV 1
8202
_ACEOF
8203
8204
  fi
8205
  if test "$am_cv_lib_iconv" = yes; then
8206
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8207
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8208
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
8209
echo "${ECHO_T}$LIBICONV" >&6
8210
  else
8211
            CPPFLAGS="$am_save_CPPFLAGS"
8212
    LIBICONV=
8213
    LTLIBICONV=
8214
  fi
8215
8216
8217
8218
  if test "$am_cv_func_iconv" = yes; then
8219
    echo "$as_me:$LINENO: checking for iconv declaration" >&5
8220
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8221
    if test "${am_cv_proto_iconv+set}" = set; then
8222
  echo $ECHO_N "(cached) $ECHO_C" >&6
8223
else
8224
8225
      cat >conftest.$ac_ext <<_ACEOF
8226
#line $LINENO "configure"
8227
#include "confdefs.h"
8228
8229
#include <stdlib.h>
8230
#include <iconv.h>
8231
extern
8232
#ifdef __cplusplus
8233
"C"
8234
#endif
8235
#if defined(__STDC__) || defined(__cplusplus)
8236
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8237
#else
8238
size_t iconv();
8239
#endif
8240
8241
#ifdef F77_DUMMY_MAIN
8242
#  ifdef __cplusplus
8243
     extern "C"
8244
#  endif
8245
   int F77_DUMMY_MAIN() { return 1; }
8246
#endif
8247
int
8248
main ()
8249
{
8250
8251
  ;
8252
  return 0;
8253
}
8254
_ACEOF
8255
rm -f conftest.$ac_objext
8256
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8257
  (eval $ac_compile) 2>&5
8258
  ac_status=$?
8259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260
  (exit $ac_status); } &&
8261
         { ac_try='test -s conftest.$ac_objext'
8262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263
  (eval $ac_try) 2>&5
8264
  ac_status=$?
8265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266
  (exit $ac_status); }; }; then
8267
  am_cv_proto_iconv_arg1=""
8268
else
8269
  echo "$as_me: failed program was:" >&5
8270
cat conftest.$ac_ext >&5
8271
am_cv_proto_iconv_arg1="const"
8272
fi
8273
rm -f conftest.$ac_objext conftest.$ac_ext
8274
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8275
fi
8276
8277
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8278
    echo "$as_me:$LINENO: result: ${ac_t:-
8279
         }$am_cv_proto_iconv" >&5
8280
echo "${ECHO_T}${ac_t:-
8281
         }$am_cv_proto_iconv" >&6
8282
8283
cat >>confdefs.h <<_ACEOF
8284
#define ICONV_CONST $am_cv_proto_iconv_arg1
8285
_ACEOF
8286
8287
  fi
8288
8289
8290
8291
for ac_func in iconv_open
8292
do
8293
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8294
echo "$as_me:$LINENO: checking for $ac_func" >&5
8295
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8296
if eval "test \"\${$as_ac_var+set}\" = set"; then
8297
  echo $ECHO_N "(cached) $ECHO_C" >&6
8298
else
8299
  cat >conftest.$ac_ext <<_ACEOF
8300
#line $LINENO "configure"
8301
#include "confdefs.h"
8302
/* System header to define __stub macros and hopefully few prototypes,
8303
    which can conflict with char $ac_func (); below.  */
8304
#include <assert.h>
8305
/* Override any gcc2 internal prototype to avoid an error.  */
8306
#ifdef __cplusplus
8307
extern "C"
8308
#endif
8309
/* We use char because int might match the return type of a gcc2
8310
   builtin and then its argument prototype would still apply.  */
8311
char $ac_func ();
8312
char (*f) ();
8313
8314
#ifdef F77_DUMMY_MAIN
8315
#  ifdef __cplusplus
8316
     extern "C"
8317
#  endif
8318
   int F77_DUMMY_MAIN() { return 1; }
8319
#endif
8320
int
8321
main ()
8322
{
8323
/* The GNU C library defines this for functions which it implements
8324
    to always fail with ENOSYS.  Some functions are actually named
8325
    something starting with __ and the normal name is an alias.  */
8326
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8327
choke me
8328
#else
8329
f = $ac_func;
8330
#endif
8331
8332
  ;
8333
  return 0;
8334
}
8335
_ACEOF
8336
rm -f conftest.$ac_objext conftest$ac_exeext
8337
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8338
  (eval $ac_link) 2>&5
8339
  ac_status=$?
8340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341
  (exit $ac_status); } &&
8342
         { ac_try='test -s conftest$ac_exeext'
8343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344
  (eval $ac_try) 2>&5
8345
  ac_status=$?
8346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347
  (exit $ac_status); }; }; then
8348
  eval "$as_ac_var=yes"
8349
else
8350
  echo "$as_me: failed program was:" >&5
8351
cat conftest.$ac_ext >&5
8352
eval "$as_ac_var=no"
8353
fi
8354
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8355
fi
8356
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8357
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8358
if test `eval echo '${'$as_ac_var'}'` = yes; then
8359
  cat >>confdefs.h <<_ACEOF
8360
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8361
_ACEOF
8362
8363
else
8364
  { { echo "$as_me:$LINENO: error:
8365
iconv_open not found try to install replacement from
8366
http://www.gnu.org/software/libiconv/
8367
ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.8.tar.gz" >&5
8368
echo "$as_me: error:
8369
iconv_open not found try to install replacement from
8370
http://www.gnu.org/software/libiconv/
8371
ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.8.tar.gz" >&2;}
8372
   { (exit 1); exit 1; }; }
8373
fi
8374
done
8375
8376
8377
8378
for ac_func in vsnprintf
8379
do
8380
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8381
echo "$as_me:$LINENO: checking for $ac_func" >&5
8382
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8383
if eval "test \"\${$as_ac_var+set}\" = set"; then
8384
  echo $ECHO_N "(cached) $ECHO_C" >&6
8385
else
8386
  cat >conftest.$ac_ext <<_ACEOF
8387
#line $LINENO "configure"
8388
#include "confdefs.h"
8389
/* System header to define __stub macros and hopefully few prototypes,
8390
    which can conflict with char $ac_func (); below.  */
8391
#include <assert.h>
8392
/* Override any gcc2 internal prototype to avoid an error.  */
8393
#ifdef __cplusplus
8394
extern "C"
8395
#endif
8396
/* We use char because int might match the return type of a gcc2
8397
   builtin and then its argument prototype would still apply.  */
8398
char $ac_func ();
8399
char (*f) ();
8400
8401
#ifdef F77_DUMMY_MAIN
8402
#  ifdef __cplusplus
8403
     extern "C"
8404
#  endif
8405
   int F77_DUMMY_MAIN() { return 1; }
8406
#endif
8407
int
8408
main ()
8409
{
8410
/* The GNU C library defines this for functions which it implements
8411
    to always fail with ENOSYS.  Some functions are actually named
8412
    something starting with __ and the normal name is an alias.  */
8413
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8414
choke me
8415
#else
8416
f = $ac_func;
8417
#endif
8418
8419
  ;
8420
  return 0;
8421
}
8422
_ACEOF
8423
rm -f conftest.$ac_objext conftest$ac_exeext
8424
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8425
  (eval $ac_link) 2>&5
8426
  ac_status=$?
8427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428
  (exit $ac_status); } &&
8429
         { ac_try='test -s conftest$ac_exeext'
8430
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431
  (eval $ac_try) 2>&5
8432
  ac_status=$?
8433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434
  (exit $ac_status); }; }; then
8435
  eval "$as_ac_var=yes"
8436
else
8437
  echo "$as_me: failed program was:" >&5
8438
cat conftest.$ac_ext >&5
8439
eval "$as_ac_var=no"
8440
fi
8441
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8442
fi
8443
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8444
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8445
if test `eval echo '${'$as_ac_var'}'` = yes; then
8446
  cat >>confdefs.h <<_ACEOF
8447
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8448
_ACEOF
8449
8450
fi
8451
done
8452
8453
8454
8455
8456
for ac_func in getopt_long
8457
do
8458
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8459
echo "$as_me:$LINENO: checking for $ac_func" >&5
8460
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8461
if eval "test \"\${$as_ac_var+set}\" = set"; then
8462
  echo $ECHO_N "(cached) $ECHO_C" >&6
8463
else
8464
  cat >conftest.$ac_ext <<_ACEOF
8465
#line $LINENO "configure"
8466
#include "confdefs.h"
8467
/* System header to define __stub macros and hopefully few prototypes,
8468
    which can conflict with char $ac_func (); below.  */
8469
#include <assert.h>
8470
/* Override any gcc2 internal prototype to avoid an error.  */
8471
#ifdef __cplusplus
8472
extern "C"
8473
#endif
8474
/* We use char because int might match the return type of a gcc2
8475
   builtin and then its argument prototype would still apply.  */
8476
char $ac_func ();
8477
char (*f) ();
8478
8479
#ifdef F77_DUMMY_MAIN
8480
#  ifdef __cplusplus
8481
     extern "C"
8482
#  endif
8483
   int F77_DUMMY_MAIN() { return 1; }
8484
#endif
8485
int
8486
main ()
8487
{
8488
/* The GNU C library defines this for functions which it implements
8489
    to always fail with ENOSYS.  Some functions are actually named
8490
    something starting with __ and the normal name is an alias.  */
8491
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8492
choke me
8493
#else
8494
f = $ac_func;
8495
#endif
8496
8497
  ;
8498
  return 0;
8499
}
8500
_ACEOF
8501
rm -f conftest.$ac_objext conftest$ac_exeext
8502
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8503
  (eval $ac_link) 2>&5
8504
  ac_status=$?
8505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506
  (exit $ac_status); } &&
8507
         { ac_try='test -s conftest$ac_exeext'
8508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509
  (eval $ac_try) 2>&5
8510
  ac_status=$?
8511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512
  (exit $ac_status); }; }; then
8513
  eval "$as_ac_var=yes"
8514
else
8515
  echo "$as_me: failed program was:" >&5
8516
cat conftest.$ac_ext >&5
8517
eval "$as_ac_var=no"
8518
fi
8519
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8520
fi
8521
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8522
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8523
if test `eval echo '${'$as_ac_var'}'` = yes; then
8524
  cat >>confdefs.h <<_ACEOF
8525
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8526
_ACEOF
8527
8528
else
8529
  LIBOBJS="$LIBOBJS getopt.$ac_objext"
8530
fi
8531
done
8532
8533
8534
ac_config_files="$ac_config_files Makefile unac.pc unac.spec t_unac builder"
8535
ac_config_commands="$ac_config_commands default"
8536
cat >confcache <<\_ACEOF
8537
# This file is a shell script that caches the results of configure
8538
# tests run on this system so they can be shared between configure
8539
# scripts and configure runs, see configure's option --config-cache.
8540
# It is not useful on other systems.  If it contains results you don't
8541
# want to keep, you may remove or edit it.
8542
#
8543
# config.status only pays attention to the cache file if you give it
8544
# the --recheck option to rerun configure.
8545
#
8546
# `ac_cv_env_foo' variables (set or unset) will be overriden when
8547
# loading this file, other *unset* `ac_cv_foo' will be assigned the
8548
# following values.
8549
8550
_ACEOF
8551
8552
# The following way of writing the cache mishandles newlines in values,
8553
# but we know of no workaround that is simple, portable, and efficient.
8554
# So, don't put newlines in cache variables' values.
8555
# Ultrix sh set writes to stderr and can't be redirected directly,
8556
# and sets the high bit in the cache file unless we assign to the vars.
8557
{
8558
  (set) 2>&1 |
8559
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8560
    *ac_space=\ *)
8561
      # `set' does not quote correctly, so add quotes (double-quote
8562
      # substitution turns \\\\ into \\, and sed turns \\ into \).
8563
      sed -n \
8564
        "s/'/'\\\\''/g;
8565
        s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8566
      ;;
8567
    *)
8568
      # `set' quotes correctly as required by POSIX, so do not add quotes.
8569
      sed -n \
8570
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8571
      ;;
8572
    esac;
8573
} |
8574
  sed '
8575
     t clear
8576
     : clear
8577
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8578
     t end
8579
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8580
     : end' >>confcache
8581
if cmp -s $cache_file confcache; then :; else
8582
  if test -w $cache_file; then
8583
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8584
    cat confcache >$cache_file
8585
  else
8586
    echo "not updating unwritable cache $cache_file"
8587
  fi
8588
fi
8589
rm -f confcache
8590
8591
test "x$prefix" = xNONE && prefix=$ac_default_prefix
8592
# Let make expand exec_prefix.
8593
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8594
8595
# VPATH may cause trouble with some makes, so we remove $(srcdir),
8596
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8597
# trailing colons and then remove the whole line if VPATH becomes empty
8598
# (actually we leave an empty line to preserve line numbers).
8599
if test "x$srcdir" = x.; then
8600
  ac_vpsub='/^[   ]*VPATH[    ]*=/{
8601
s/:*\$(srcdir):*/:/;
8602
s/:*\${srcdir}:*/:/;
8603
s/:*@srcdir@:*/:/;
8604
s/^\([^=]*=[  ]*\):*/\1/;
8605
s/:*$//;
8606
s/^[^=]*=[    ]*$//;
8607
}'
8608
fi
8609
8610
DEFS=-DHAVE_CONFIG_H
8611
8612
8613
: ${CONFIG_STATUS=./config.status}
8614
ac_clean_files_save=$ac_clean_files
8615
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8616
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8617
echo "$as_me: creating $CONFIG_STATUS" >&6;}
8618
cat >$CONFIG_STATUS <<_ACEOF
8619
#! $SHELL
8620
# Generated by $as_me.
8621
# Run this file to recreate the current configuration.
8622
# Compiler output produced by configure, useful for debugging
8623
# configure, is in config.log if it exists.
8624
8625
debug=false
8626
SHELL=\${CONFIG_SHELL-$SHELL}
8627
_ACEOF
8628
8629
cat >>$CONFIG_STATUS <<\_ACEOF
8630
8631
## --------------------- ##
8632
## M4sh Initialization.  ##
8633
## --------------------- ##
8634
8635
# Be Bourne compatible
8636
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8637
  emulate sh
8638
  NULLCMD=:
8639
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8640
  set -o posix
8641
fi
8642
8643
# NLS nuisances.
8644
# Support unset when possible.
8645
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8646
  as_unset=unset
8647
else
8648
  as_unset=false
8649
fi
8650
8651
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
8652
    { $as_unset LANG || test "${LANG+set}" != set; } ||
8653
      { LANG=C; export LANG; }
8654
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
8655
    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
8656
      { LC_ALL=C; export LC_ALL; }
8657
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
8658
    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
8659
      { LC_TIME=C; export LC_TIME; }
8660
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
8661
    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
8662
      { LC_CTYPE=C; export LC_CTYPE; }
8663
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
8664
    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
8665
      { LANGUAGE=C; export LANGUAGE; }
8666
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
8667
    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
8668
      { LC_COLLATE=C; export LC_COLLATE; }
8669
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
8670
    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
8671
      { LC_NUMERIC=C; export LC_NUMERIC; }
8672
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
8673
    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
8674
      { LC_MESSAGES=C; export LC_MESSAGES; }
8675
8676
8677
# Name of the executable.
8678
as_me=`(basename "$0") 2>/dev/null ||
8679
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8680
   X"$0" : 'X\(//\)$' \| \
8681
   X"$0" : 'X\(/\)$' \| \
8682
   .     : '\(.\)' 2>/dev/null ||
8683
echo X/"$0" |
8684
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8685
        /^X\/\(\/\/\)$/{ s//\1/; q; }
8686
        /^X\/\(\/\).*/{ s//\1/; q; }
8687
        s/.*/./; q'`
8688
8689
# PATH needs CR, and LINENO needs CR and PATH.
8690
# Avoid depending upon Character Ranges.
8691
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8692
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8693
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8694
as_cr_digits='0123456789'
8695
as_cr_alnum=$as_cr_Letters$as_cr_digits
8696
8697
# The user is always right.
8698
if test "${PATH_SEPARATOR+set}" != set; then
8699
  echo "#! /bin/sh" >conftest.sh
8700
  echo  "exit 0"   >>conftest.sh
8701
  chmod +x conftest.sh
8702
  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
8703
    PATH_SEPARATOR=';'
8704
  else
8705
    PATH_SEPARATOR=:
8706
  fi
8707
  rm -f conftest.sh
8708
fi
8709
8710
8711
  as_lineno_1=$LINENO
8712
  as_lineno_2=$LINENO
8713
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8714
  test "x$as_lineno_1" != "x$as_lineno_2" &&
8715
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8716
  # Find who we are.  Look in the path if we contain no path at all
8717
  # relative or not.
8718
  case $0 in
8719
    *[\\/]* ) as_myself=$0 ;;
8720
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721
for as_dir in $PATH
8722
do
8723
  IFS=$as_save_IFS
8724
  test -z "$as_dir" && as_dir=.
8725
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8726
done
8727
8728
       ;;
8729
  esac
8730
  # We did not find ourselves, most probably we were run as `sh COMMAND'
8731
  # in which case we are not to be found in the path.
8732
  if test "x$as_myself" = x; then
8733
    as_myself=$0
8734
  fi
8735
  if test ! -f "$as_myself"; then
8736
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8737
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8738
   { (exit 1); exit 1; }; }
8739
  fi
8740
  case $CONFIG_SHELL in
8741
  '')
8742
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8744
do
8745
  IFS=$as_save_IFS
8746
  test -z "$as_dir" && as_dir=.
8747
  for as_base in sh bash ksh sh5; do
8748
   case $as_dir in
8749
   /*)
8750
     if ("$as_dir/$as_base" -c '
8751
  as_lineno_1=$LINENO
8752
  as_lineno_2=$LINENO
8753
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8754
  test "x$as_lineno_1" != "x$as_lineno_2" &&
8755
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8756
       CONFIG_SHELL=$as_dir/$as_base
8757
       export CONFIG_SHELL
8758
       exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8759
     fi;;
8760
   esac
8761
       done
8762
done
8763
;;
8764
  esac
8765
8766
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8767
  # uniformly replaced by the line number.  The first 'sed' inserts a
8768
  # line-number line before each line; the second 'sed' does the real
8769
  # work.  The second script uses 'N' to pair each line-number line
8770
  # with the numbered line, and appends trailing '-' during
8771
  # substitution so that $LINENO is not a special case at line end.
8772
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8773
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8774
  sed '=' <$as_myself |
8775
    sed '
8776
      N
8777
      s,$,-,
8778
      : loop
8779
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8780
      t loop
8781
      s,-$,,
8782
      s,^['$as_cr_digits']*\n,,
8783
    ' >$as_me.lineno &&
8784
  chmod +x $as_me.lineno ||
8785
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8786
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8787
   { (exit 1); exit 1; }; }
8788
8789
  # Don't try to exec as it changes $[0], causing all sort of problems
8790
  # (the dirname of $[0] is not the place where we might find the
8791
  # original and so on.  Autoconf is especially sensible to this).
8792
  . ./$as_me.lineno
8793
  # Exit status is that of the last command.
8794
  exit
8795
}
8796
8797
8798
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8799
  *c*,-n*) ECHO_N= ECHO_C='
8800
' ECHO_T='    ' ;;
8801
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8802
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8803
esac
8804
8805
if expr a : '\(a\)' >/dev/null 2>&1; then
8806
  as_expr=expr
8807
else
8808
  as_expr=false
8809
fi
8810
8811
rm -f conf$$ conf$$.exe conf$$.file
8812
echo >conf$$.file
8813
if ln -s conf$$.file conf$$ 2>/dev/null; then
8814
  # We could just check for DJGPP; but this test a) works b) is more generic
8815
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8816
  if test -f conf$$.exe; then
8817
    # Don't use ln at all; we don't have any links
8818
    as_ln_s='cp -p'
8819
  else
8820
    as_ln_s='ln -s'
8821
  fi
8822
elif ln conf$$.file conf$$ 2>/dev/null; then
8823
  as_ln_s=ln
8824
else
8825
  as_ln_s='cp -p'
8826
fi
8827
rm -f conf$$ conf$$.exe conf$$.file
8828
8829
as_executable_p="test -f"
8830
8831
# Sed expression to map a string onto a valid CPP name.
8832
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8833
8834
# Sed expression to map a string onto a valid variable name.
8835
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8836
8837
8838
# IFS
8839
# We need space, tab and new line, in precisely that order.
8840
as_nl='
8841
'
8842
IFS="     $as_nl"
8843
8844
# CDPATH.
8845
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
8846
8847
exec 6>&1
8848
8849
# Open the log real soon, to keep \$[0] and so on meaningful, and to
8850
# report actual input values of CONFIG_FILES etc. instead of their
8851
# values after options handling.  Logging --version etc. is OK.
8852
exec 5>>config.log
8853
{
8854
  echo
8855
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8856
## Running $as_me. ##
8857
_ASBOX
8858
} >&5
8859
cat >&5 <<_CSEOF
8860
8861
This file was extended by $as_me, which was
8862
generated by GNU Autoconf 2.53.  Invocation command line was
8863
8864
  CONFIG_FILES    = $CONFIG_FILES
8865
  CONFIG_HEADERS  = $CONFIG_HEADERS
8866
  CONFIG_LINKS    = $CONFIG_LINKS
8867
  CONFIG_COMMANDS = $CONFIG_COMMANDS
8868
  $ $0 $@
8869
8870
_CSEOF
8871
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8872
echo >&5
8873
_ACEOF
8874
8875
# Files that config.status was made for.
8876
if test -n "$ac_config_files"; then
8877
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8878
fi
8879
8880
if test -n "$ac_config_headers"; then
8881
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8882
fi
8883
8884
if test -n "$ac_config_links"; then
8885
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8886
fi
8887
8888
if test -n "$ac_config_commands"; then
8889
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8890
fi
8891
8892
cat >>$CONFIG_STATUS <<\_ACEOF
8893
8894
ac_cs_usage="\
8895
\`$as_me' instantiates files from templates according to the
8896
current configuration.
8897
8898
Usage: $0 [OPTIONS] [FILE]...
8899
8900
  -h, --help       print this help, then exit
8901
  -V, --version    print version number, then exit
8902
  -d, --debug      don't remove temporary files
8903
      --recheck    update $as_me by reconfiguring in the same conditions
8904
  --file=FILE[:TEMPLATE]
8905
                   instantiate the configuration file FILE
8906
  --header=FILE[:TEMPLATE]
8907
                   instantiate the configuration header FILE
8908
8909
Configuration files:
8910
$config_files
8911
8912
Configuration headers:
8913
$config_headers
8914
8915
Configuration commands:
8916
$config_commands
8917
8918
Report bugs to <bug-autoconf@gnu.org>."
8919
_ACEOF
8920
8921
cat >>$CONFIG_STATUS <<_ACEOF
8922
ac_cs_version="\\
8923
config.status
8924
configured by $0, generated by GNU Autoconf 2.53,
8925
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8926
8927
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8928
Free Software Foundation, Inc.
8929
This config.status script is free software; the Free Software Foundation
8930
gives unlimited permission to copy, distribute and modify it."
8931
srcdir=$srcdir
8932
INSTALL="$INSTALL"
8933
_ACEOF
8934
8935
cat >>$CONFIG_STATUS <<\_ACEOF
8936
# If no file are specified by the user, then we need to provide default
8937
# value.  By we need to know if files were specified by the user.
8938
ac_need_defaults=:
8939
while test $# != 0
8940
do
8941
  case $1 in
8942
  --*=*)
8943
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8944
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8945
    shift
8946
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8947
    shift
8948
    ;;
8949
  -*);;
8950
  *) # This is not an option, so the user has probably given explicit
8951
     # arguments.
8952
     ac_need_defaults=false;;
8953
  esac
8954
8955
  case $1 in
8956
  # Handling of the options.
8957
_ACEOF
8958
cat >>$CONFIG_STATUS <<_ACEOF
8959
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8960
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8961
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8962
_ACEOF
8963
cat >>$CONFIG_STATUS <<\_ACEOF
8964
  --version | --vers* | -V )
8965
    echo "$ac_cs_version"; exit 0 ;;
8966
  --he | --h)
8967
    # Conflict between --help and --header
8968
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
8969
Try \`$0 --help' for more information." >&5
8970
echo "$as_me: error: ambiguous option: $1
8971
Try \`$0 --help' for more information." >&2;}
8972
   { (exit 1); exit 1; }; };;
8973
  --help | --hel | -h )
8974
    echo "$ac_cs_usage"; exit 0 ;;
8975
  --debug | --d* | -d )
8976
    debug=: ;;
8977
  --file | --fil | --fi | --f )
8978
    shift
8979
    CONFIG_FILES="$CONFIG_FILES $1"
8980
    ac_need_defaults=false;;
8981
  --header | --heade | --head | --hea )
8982
    shift
8983
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
8984
    ac_need_defaults=false;;
8985
8986
  # This is an error.
8987
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8988
Try \`$0 --help' for more information." >&5
8989
echo "$as_me: error: unrecognized option: $1
8990
Try \`$0 --help' for more information." >&2;}
8991
   { (exit 1); exit 1; }; } ;;
8992
8993
  *) ac_config_targets="$ac_config_targets $1" ;;
8994
8995
  esac
8996
  shift
8997
done
8998
8999
_ACEOF
9000
9001
cat >>$CONFIG_STATUS <<_ACEOF
9002
#
9003
# INIT-COMMANDS section.
9004
#
9005
9006
AMDEP_TRUE="$AMDEP_TRUE"
9007
ac_aux_dir="$ac_aux_dir"
9008
9009
_ACEOF
9010
9011
9012
9013
cat >>$CONFIG_STATUS <<\_ACEOF
9014
for ac_config_target in $ac_config_targets
9015
do
9016
  case "$ac_config_target" in
9017
  # Handling of arguments.
9018
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9019
  "unac.pc" ) CONFIG_FILES="$CONFIG_FILES unac.pc" ;;
9020
  "unac.spec" ) CONFIG_FILES="$CONFIG_FILES unac.spec" ;;
9021
  "t_unac" ) CONFIG_FILES="$CONFIG_FILES t_unac" ;;
9022
  "builder" ) CONFIG_FILES="$CONFIG_FILES builder" ;;
9023
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9024
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9025
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9026
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9027
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9028
   { (exit 1); exit 1; }; };;
9029
  esac
9030
done
9031
9032
# If the user did not use the arguments to specify the items to instantiate,
9033
# then the envvar interface is used.  Set only those that are not.
9034
# We use the long form for the default assignment because of an extremely
9035
# bizarre bug on SunOS 4.1.3.
9036
if $ac_need_defaults; then
9037
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9038
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9039
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9040
fi
9041
9042
# Create a temporary directory, and hook for its removal unless debugging.
9043
$debug ||
9044
{
9045
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9046
  trap '{ (exit 1); exit 1; }' 1 2 13 15
9047
}
9048
9049
# Create a (secure) tmp directory for tmp files.
9050
: ${TMPDIR=/tmp}
9051
{
9052
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9053
  test -n "$tmp" && test -d "$tmp"
9054
}  ||
9055
{
9056
  tmp=$TMPDIR/cs$$-$RANDOM
9057
  (umask 077 && mkdir $tmp)
9058
} ||
9059
{
9060
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9061
   { (exit 1); exit 1; }
9062
}
9063
9064
_ACEOF
9065
9066
cat >>$CONFIG_STATUS <<_ACEOF
9067
9068
#
9069
# CONFIG_FILES section.
9070
#
9071
9072
# No need to generate the scripts if there are no CONFIG_FILES.
9073
# This happens for instance when ./config.status config.h
9074
if test -n "\$CONFIG_FILES"; then
9075
  # Protect against being on the right side of a sed subst in config.status.
9076
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9077
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9078
s,@SHELL@,$SHELL,;t t
9079
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9080
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9081
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9082
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9083
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9084
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9085
s,@exec_prefix@,$exec_prefix,;t t
9086
s,@prefix@,$prefix,;t t
9087
s,@program_transform_name@,$program_transform_name,;t t
9088
s,@bindir@,$bindir,;t t
9089
s,@sbindir@,$sbindir,;t t
9090
s,@libexecdir@,$libexecdir,;t t
9091
s,@datadir@,$datadir,;t t
9092
s,@sysconfdir@,$sysconfdir,;t t
9093
s,@sharedstatedir@,$sharedstatedir,;t t
9094
s,@localstatedir@,$localstatedir,;t t
9095
s,@libdir@,$libdir,;t t
9096
s,@includedir@,$includedir,;t t
9097
s,@oldincludedir@,$oldincludedir,;t t
9098
s,@infodir@,$infodir,;t t
9099
s,@mandir@,$mandir,;t t
9100
s,@build_alias@,$build_alias,;t t
9101
s,@host_alias@,$host_alias,;t t
9102
s,@target_alias@,$target_alias,;t t
9103
s,@DEFS@,$DEFS,;t t
9104
s,@ECHO_C@,$ECHO_C,;t t
9105
s,@ECHO_N@,$ECHO_N,;t t
9106
s,@ECHO_T@,$ECHO_T,;t t
9107
s,@LIBS@,$LIBS,;t t
9108
s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
9109
s,@MINOR_VERSION@,$MINOR_VERSION,;t t
9110
s,@MICRO_VERSION@,$MICRO_VERSION,;t t
9111
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9112
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9113
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9114
s,@PACKAGE@,$PACKAGE,;t t
9115
s,@VERSION@,$VERSION,;t t
9116
s,@EXEEXT@,$EXEEXT,;t t
9117
s,@OBJEXT@,$OBJEXT,;t t
9118
s,@ACLOCAL@,$ACLOCAL,;t t
9119
s,@AUTOCONF@,$AUTOCONF,;t t
9120
s,@AUTOMAKE@,$AUTOMAKE,;t t
9121
s,@AUTOHEADER@,$AUTOHEADER,;t t
9122
s,@MAKEINFO@,$MAKEINFO,;t t
9123
s,@AMTAR@,$AMTAR,;t t
9124
s,@install_sh@,$install_sh,;t t
9125
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9126
s,@AWK@,$AWK,;t t
9127
s,@SET_MAKE@,$SET_MAKE,;t t
9128
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9129
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9130
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9131
s,@DEPDIR@,$DEPDIR,;t t
9132
s,@UNICODE_VERSION@,$UNICODE_VERSION,;t t
9133
s,@CC@,$CC,;t t
9134
s,@CFLAGS@,$CFLAGS,;t t
9135
s,@LDFLAGS@,$LDFLAGS,;t t
9136
s,@CPPFLAGS@,$CPPFLAGS,;t t
9137
s,@ac_ct_CC@,$ac_ct_CC,;t t
9138
s,@am__include@,$am__include,;t t
9139
s,@am__quote@,$am__quote,;t t
9140
s,@CCDEPMODE@,$CCDEPMODE,;t t
9141
s,@CPP@,$CPP,;t t
9142
s,@build@,$build,;t t
9143
s,@build_cpu@,$build_cpu,;t t
9144
s,@build_vendor@,$build_vendor,;t t
9145
s,@build_os@,$build_os,;t t
9146
s,@host@,$host,;t t
9147
s,@host_cpu@,$host_cpu,;t t
9148
s,@host_vendor@,$host_vendor,;t t
9149
s,@host_os@,$host_os,;t t
9150
s,@LN_S@,$LN_S,;t t
9151
s,@ECHO@,$ECHO,;t t
9152
s,@RANLIB@,$RANLIB,;t t
9153
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9154
s,@STRIP@,$STRIP,;t t
9155
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9156
s,@LIBTOOL@,$LIBTOOL,;t t
9157
s,@PERL@,$PERL,;t t
9158
s,@SH@,$SH,;t t
9159
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9160
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9161
s,@MAINT@,$MAINT,;t t
9162
s,@LIBICONV@,$LIBICONV,;t t
9163
s,@LTLIBICONV@,$LTLIBICONV,;t t
9164
s,@LIBOBJS@,$LIBOBJS,;t t
9165
CEOF
9166
9167
_ACEOF
9168
9169
  cat >>$CONFIG_STATUS <<\_ACEOF
9170
  # Split the substitutions into bite-sized pieces for seds with
9171
  # small command number limits, like on Digital OSF/1 and HP-UX.
9172
  ac_max_sed_lines=48
9173
  ac_sed_frag=1 # Number of current file.
9174
  ac_beg=1 # First line for current file.
9175
  ac_end=$ac_max_sed_lines # Line after last line for current file.
9176
  ac_more_lines=:
9177
  ac_sed_cmds=
9178
  while $ac_more_lines; do
9179
    if test $ac_beg -gt 1; then
9180
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9181
    else
9182
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9183
    fi
9184
    if test ! -s $tmp/subs.frag; then
9185
      ac_more_lines=false
9186
    else
9187
      # The purpose of the label and of the branching condition is to
9188
      # speed up the sed processing (if there are no `@' at all, there
9189
      # is no need to browse any of the substitutions).
9190
      # These are the two extra sed commands mentioned above.
9191
      (echo ':t
9192
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9193
      if test -z "$ac_sed_cmds"; then
9194
      ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9195
      else
9196
      ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9197
      fi
9198
      ac_sed_frag=`expr $ac_sed_frag + 1`
9199
      ac_beg=$ac_end
9200
      ac_end=`expr $ac_end + $ac_max_sed_lines`
9201
    fi
9202
  done
9203
  if test -z "$ac_sed_cmds"; then
9204
    ac_sed_cmds=cat
9205
  fi
9206
fi # test -n "$CONFIG_FILES"
9207
9208
_ACEOF
9209
cat >>$CONFIG_STATUS <<\_ACEOF
9210
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9211
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9212
  case $ac_file in
9213
  - | *:- | *:-:* ) # input from stdin
9214
        cat >$tmp/stdin
9215
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9216
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9217
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9218
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9219
  * )   ac_file_in=$ac_file.in ;;
9220
  esac
9221
9222
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9223
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9224
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9225
         X"$ac_file" : 'X\(//\)[^/]' \| \
9226
         X"$ac_file" : 'X\(//\)$' \| \
9227
         X"$ac_file" : 'X\(/\)' \| \
9228
         .     : '\(.\)' 2>/dev/null ||
9229
echo X"$ac_file" |
9230
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9231
        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9232
        /^X\(\/\/\)$/{ s//\1/; q; }
9233
        /^X\(\/\).*/{ s//\1/; q; }
9234
        s/.*/./; q'`
9235
  { case "$ac_dir" in
9236
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9237
  *)                      as_incr_dir=.;;
9238
esac
9239
as_dummy="$ac_dir"
9240
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9241
  case $as_mkdir_dir in
9242
    # Skip DOS drivespec
9243
    ?:) as_incr_dir=$as_mkdir_dir ;;
9244
    *)
9245
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
9246
      test -d "$as_incr_dir" ||
9247
        mkdir "$as_incr_dir" ||
9248
  { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9249
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9250
   { (exit 1); exit 1; }; }
9251
    ;;
9252
  esac
9253
done; }
9254
9255
  ac_builddir=.
9256
9257
if test "$ac_dir" != .; then
9258
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9259
  # A "../" for each directory in $ac_dir_suffix.
9260
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9261
else
9262
  ac_dir_suffix= ac_top_builddir=
9263
fi
9264
9265
case $srcdir in
9266
  .)  # No --srcdir option.  We are building in place.
9267
    ac_srcdir=.
9268
    if test -z "$ac_top_builddir"; then
9269
       ac_top_srcdir=.
9270
    else
9271
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9272
    fi ;;
9273
  [\\/]* | ?:[\\/]* )  # Absolute path.
9274
    ac_srcdir=$srcdir$ac_dir_suffix;
9275
    ac_top_srcdir=$srcdir ;;
9276
  *) # Relative path.
9277
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9278
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9279
esac
9280
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9281
# absolute.
9282
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9283
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9284
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9285
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9286
9287
9288
  case $INSTALL in
9289
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9290
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9291
  esac
9292
9293
  if test x"$ac_file" != x-; then
9294
    { echo "$as_me:$LINENO: creating $ac_file" >&5
9295
echo "$as_me: creating $ac_file" >&6;}
9296
    rm -f "$ac_file"
9297
  fi
9298
  # Let's still pretend it is `configure' which instantiates (i.e., don't
9299
  # use $as_me), people would be surprised to read:
9300
  #    /* config.h.  Generated by config.status.  */
9301
  if test x"$ac_file" = x-; then
9302
    configure_input=
9303
  else
9304
    configure_input="$ac_file.  "
9305
  fi
9306
  configure_input=$configure_input"Generated from `echo $ac_file_in |
9307
                                     sed 's,.*/,,'` by configure."
9308
9309
  # First look for the input files in the build tree, otherwise in the
9310
  # src tree.
9311
  ac_file_inputs=`IFS=:
9312
    for f in $ac_file_in; do
9313
      case $f in
9314
      -) echo $tmp/stdin ;;
9315
      [\\/$]*)
9316
         # Absolute (can't be DOS-style, as IFS=:)
9317
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9318
echo "$as_me: error: cannot find input file: $f" >&2;}
9319
   { (exit 1); exit 1; }; }
9320
         echo $f;;
9321
      *) # Relative
9322
         if test -f "$f"; then
9323
           # Build tree
9324
           echo $f
9325
         elif test -f "$srcdir/$f"; then
9326
           # Source tree
9327
           echo $srcdir/$f
9328
         else
9329
           # /dev/null tree
9330
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9331
echo "$as_me: error: cannot find input file: $f" >&2;}
9332
   { (exit 1); exit 1; }; }
9333
         fi;;
9334
      esac
9335
    done` || { (exit 1); exit 1; }
9336
_ACEOF
9337
cat >>$CONFIG_STATUS <<_ACEOF
9338
  sed "$ac_vpsub
9339
$extrasub
9340
_ACEOF
9341
cat >>$CONFIG_STATUS <<\_ACEOF
9342
:t
9343
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9344
s,@configure_input@,$configure_input,;t t
9345
s,@srcdir@,$ac_srcdir,;t t
9346
s,@abs_srcdir@,$ac_abs_srcdir,;t t
9347
s,@top_srcdir@,$ac_top_srcdir,;t t
9348
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9349
s,@builddir@,$ac_builddir,;t t
9350
s,@abs_builddir@,$ac_abs_builddir,;t t
9351
s,@top_builddir@,$ac_top_builddir,;t t
9352
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9353
s,@INSTALL@,$ac_INSTALL,;t t
9354
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9355
  rm -f $tmp/stdin
9356
  if test x"$ac_file" != x-; then
9357
    mv $tmp/out $ac_file
9358
  else
9359
    cat $tmp/out
9360
    rm -f $tmp/out
9361
  fi
9362
9363
done
9364
_ACEOF
9365
cat >>$CONFIG_STATUS <<\_ACEOF
9366
9367
#
9368
# CONFIG_HEADER section.
9369
#
9370
9371
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9372
# NAME is the cpp macro being defined and VALUE is the value it is being given.
9373
#
9374
# ac_d sets the value in "#define NAME VALUE" lines.
9375
ac_dA='s,^\([     ]*\)#\([    ]*define[   ][  ]*\)'
9376
ac_dB='[  ].*$,\1#\2'
9377
ac_dC=' '
9378
ac_dD=',;t'
9379
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9380
ac_uA='s,^\([     ]*\)#\([    ]*\)undef\([    ][  ]*\)'
9381
ac_uB='$,\1#\2define\3'
9382
ac_uC=' '
9383
ac_uD=',;t'
9384
9385
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9386
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9387
  case $ac_file in
9388
  - | *:- | *:-:* ) # input from stdin
9389
        cat >$tmp/stdin
9390
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9391
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9392
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9393
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9394
  * )   ac_file_in=$ac_file.in ;;
9395
  esac
9396
9397
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9398
echo "$as_me: creating $ac_file" >&6;}
9399
9400
  # First look for the input files in the build tree, otherwise in the
9401
  # src tree.
9402
  ac_file_inputs=`IFS=:
9403
    for f in $ac_file_in; do
9404
      case $f in
9405
      -) echo $tmp/stdin ;;
9406
      [\\/$]*)
9407
         # Absolute (can't be DOS-style, as IFS=:)
9408
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9409
echo "$as_me: error: cannot find input file: $f" >&2;}
9410
   { (exit 1); exit 1; }; }
9411
         echo $f;;
9412
      *) # Relative
9413
         if test -f "$f"; then
9414
           # Build tree
9415
           echo $f
9416
         elif test -f "$srcdir/$f"; then
9417
           # Source tree
9418
           echo $srcdir/$f
9419
         else
9420
           # /dev/null tree
9421
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9422
echo "$as_me: error: cannot find input file: $f" >&2;}
9423
   { (exit 1); exit 1; }; }
9424
         fi;;
9425
      esac
9426
    done` || { (exit 1); exit 1; }
9427
  # Remove the trailing spaces.
9428
  sed 's/[    ]*$//' $ac_file_inputs >$tmp/in
9429
9430
_ACEOF
9431
9432
# Transform confdefs.h into two sed scripts, `conftest.defines' and
9433
# `conftest.undefs', that substitutes the proper values into
9434
# config.h.in to produce config.h.  The first handles `#define'
9435
# templates, and the second `#undef' templates.
9436
# And first: Protect against being on the right side of a sed subst in
9437
# config.status.  Protect against being in an unquoted here document
9438
# in config.status.
9439
rm -f conftest.defines conftest.undefs
9440
# Using a here document instead of a string reduces the quoting nightmare.
9441
# Putting comments in sed scripts is not portable.
9442
#
9443
# `end' is used to avoid that the second main sed command (meant for
9444
# 0-ary CPP macros) applies to n-ary macro definitions.
9445
# See the Autoconf documentation for `clear'.
9446
cat >confdef2sed.sed <<\_ACEOF
9447
s/[\\&,]/\\&/g
9448
s,[\\$`],\\&,g
9449
t clear
9450
: clear
9451
s,^[  ]*#[    ]*define[   ][  ]*\([^  (][^    (]*\)\(([^)]*)\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9452
t end
9453
s,^[  ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9454
: end
9455
_ACEOF
9456
# If some macros were called several times there might be several times
9457
# the same #defines, which is useless.  Nevertheless, we may not want to
9458
# sort them, since we want the *last* AC-DEFINE to be honored.
9459
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9460
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9461
rm -f confdef2sed.sed
9462
9463
# This sed command replaces #undef with comments.  This is necessary, for
9464
# example, in the case of _POSIX_SOURCE, which is predefined and required
9465
# on some systems where configure will not decide to define it.
9466
cat >>conftest.undefs <<\_ACEOF
9467
s,^[  ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9468
_ACEOF
9469
9470
# Break up conftest.defines because some shells have a limit on the size
9471
# of here documents, and old seds have small limits too (100 cmds).
9472
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9473
echo '  if egrep "^[  ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9474
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9475
echo '  :' >>$CONFIG_STATUS
9476
rm -f conftest.tail
9477
while grep . conftest.defines >/dev/null
9478
do
9479
  # Write a limited-size here document to $tmp/defines.sed.
9480
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9481
  # Speed up: don't consider the non `#define' lines.
9482
  echo '/^[   ]*#[    ]*define/!b' >>$CONFIG_STATUS
9483
  # Work around the forget-to-reset-the-flag bug.
9484
  echo 't clr' >>$CONFIG_STATUS
9485
  echo ': clr' >>$CONFIG_STATUS
9486
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9487
  echo 'CEOF
9488
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9489
  rm -f $tmp/in
9490
  mv $tmp/out $tmp/in
9491
' >>$CONFIG_STATUS
9492
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9493
  rm -f conftest.defines
9494
  mv conftest.tail conftest.defines
9495
done
9496
rm -f conftest.defines
9497
echo '  fi # egrep' >>$CONFIG_STATUS
9498
echo >>$CONFIG_STATUS
9499
9500
# Break up conftest.undefs because some shells have a limit on the size
9501
# of here documents, and old seds have small limits too (100 cmds).
9502
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9503
rm -f conftest.tail
9504
while grep . conftest.undefs >/dev/null
9505
do
9506
  # Write a limited-size here document to $tmp/undefs.sed.
9507
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9508
  # Speed up: don't consider the non `#undef'
9509
  echo '/^[   ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9510
  # Work around the forget-to-reset-the-flag bug.
9511
  echo 't clr' >>$CONFIG_STATUS
9512
  echo ': clr' >>$CONFIG_STATUS
9513
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9514
  echo 'CEOF
9515
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9516
  rm -f $tmp/in
9517
  mv $tmp/out $tmp/in
9518
' >>$CONFIG_STATUS
9519
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9520
  rm -f conftest.undefs
9521
  mv conftest.tail conftest.undefs
9522
done
9523
rm -f conftest.undefs
9524
9525
cat >>$CONFIG_STATUS <<\_ACEOF
9526
  # Let's still pretend it is `configure' which instantiates (i.e., don't
9527
  # use $as_me), people would be surprised to read:
9528
  #    /* config.h.  Generated by config.status.  */
9529
  if test x"$ac_file" = x-; then
9530
    echo "/* Generated by configure.  */" >$tmp/config.h
9531
  else
9532
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9533
  fi
9534
  cat $tmp/in >>$tmp/config.h
9535
  rm -f $tmp/in
9536
  if test x"$ac_file" != x-; then
9537
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
9538
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9539
echo "$as_me: $ac_file is unchanged" >&6;}
9540
    else
9541
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9542
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9543
         X"$ac_file" : 'X\(//\)[^/]' \| \
9544
         X"$ac_file" : 'X\(//\)$' \| \
9545
         X"$ac_file" : 'X\(/\)' \| \
9546
         .     : '\(.\)' 2>/dev/null ||
9547
echo X"$ac_file" |
9548
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9549
        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9550
        /^X\(\/\/\)$/{ s//\1/; q; }
9551
        /^X\(\/\).*/{ s//\1/; q; }
9552
        s/.*/./; q'`
9553
      { case "$ac_dir" in
9554
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9555
  *)                      as_incr_dir=.;;
9556
esac
9557
as_dummy="$ac_dir"
9558
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9559
  case $as_mkdir_dir in
9560
    # Skip DOS drivespec
9561
    ?:) as_incr_dir=$as_mkdir_dir ;;
9562
    *)
9563
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
9564
      test -d "$as_incr_dir" ||
9565
        mkdir "$as_incr_dir" ||
9566
  { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9567
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9568
   { (exit 1); exit 1; }; }
9569
    ;;
9570
  esac
9571
done; }
9572
9573
      rm -f $ac_file
9574
      mv $tmp/config.h $ac_file
9575
    fi
9576
  else
9577
    cat $tmp/config.h
9578
    rm -f $tmp/config.h
9579
  fi
9580
  # Run the commands associated with the file.
9581
  case $ac_file in
9582
    config.h ) # update the timestamp
9583
echo timestamp >"./stamp-h1"
9584
 ;;
9585
  esac
9586
done
9587
_ACEOF
9588
cat >>$CONFIG_STATUS <<\_ACEOF
9589
9590
#
9591
# CONFIG_COMMANDS section.
9592
#
9593
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9594
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9595
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9596
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9597
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9598
         X"$ac_dest" : 'X\(//\)[^/]' \| \
9599
         X"$ac_dest" : 'X\(//\)$' \| \
9600
         X"$ac_dest" : 'X\(/\)' \| \
9601
         .     : '\(.\)' 2>/dev/null ||
9602
echo X"$ac_dest" |
9603
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9604
        /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9605
        /^X\(\/\/\)$/{ s//\1/; q; }
9606
        /^X\(\/\).*/{ s//\1/; q; }
9607
        s/.*/./; q'`
9608
  ac_builddir=.
9609
9610
if test "$ac_dir" != .; then
9611
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9612
  # A "../" for each directory in $ac_dir_suffix.
9613
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9614
else
9615
  ac_dir_suffix= ac_top_builddir=
9616
fi
9617
9618
case $srcdir in
9619
  .)  # No --srcdir option.  We are building in place.
9620
    ac_srcdir=.
9621
    if test -z "$ac_top_builddir"; then
9622
       ac_top_srcdir=.
9623
    else
9624
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9625
    fi ;;
9626
  [\\/]* | ?:[\\/]* )  # Absolute path.
9627
    ac_srcdir=$srcdir$ac_dir_suffix;
9628
    ac_top_srcdir=$srcdir ;;
9629
  *) # Relative path.
9630
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9631
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9632
esac
9633
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9634
# absolute.
9635
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9636
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9637
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9638
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9639
9640
9641
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9642
echo "$as_me: executing $ac_dest commands" >&6;}
9643
  case $ac_dest in
9644
    default-1 )
9645
test x"$AMDEP_TRUE" != x"" ||
9646
for mf in $CONFIG_FILES; do
9647
  case "$mf" in
9648
  Makefile) dirpart=.;;
9649
  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
9650
  *) continue;;
9651
  esac
9652
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9653
  # Extract the definition of DEP_FILES from the Makefile without
9654
  # running `make'.
9655
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9656
  test -z "$DEPDIR" && continue
9657
  # When using ansi2knr, U may be empty or an underscore; expand it
9658
  U=`sed -n -e '/^U = / s///p' < "$mf"`
9659
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9660
  # We invoke sed twice because it is the simplest approach to
9661
  # changing $(DEPDIR) to its actual value in the expansion.
9662
  for file in `sed -n -e '
9663
    /^DEP_FILES = .*\\\\$/ {
9664
      s/^DEP_FILES = //
9665
      :loop
9666
  s/\\\\$//
9667
  p
9668
  n
9669
  /\\\\$/ b loop
9670
      p
9671
    }
9672
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9673
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9674
    # Make sure the directory exists.
9675
    test -f "$dirpart/$file" && continue
9676
    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
9677
    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
9678
    # echo "creating $dirpart/$file"
9679
    echo '# dummy' > "$dirpart/$file"
9680
  done
9681
done
9682
 ;;
9683
    default ) chmod +x t_unac ;;
9684
  esac
9685
done
9686
_ACEOF
9687
9688
cat >>$CONFIG_STATUS <<\_ACEOF
9689
9690
{ (exit 0); exit 0; }
9691
_ACEOF
9692
chmod +x $CONFIG_STATUS
9693
ac_clean_files=$ac_clean_files_save
9694
9695
9696
# configure is writing to config.log, and then calls config.status.
9697
# config.status does its own redirection, appending to config.log.
9698
# Unfortunately, on DOS this fails, as config.log is still kept open
9699
# by configure, so config.status won't be able to write to it; its
9700
# output is simply discarded.  So we exec the FD to /dev/null,
9701
# effectively closing config.log, so it can be properly (re)opened and
9702
# appended to by config.status.  When coming back to configure, we
9703
# need to make the FD available again.
9704
if test "$no_create" != yes; then
9705
  ac_cs_success=:
9706
  exec 5>/dev/null
9707
  $SHELL $CONFIG_STATUS || ac_cs_success=false
9708
  exec 5>>config.log
9709
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9710
  # would make configure fail if this is the last instruction.
9711
  $ac_cs_success || { (exit 1); exit 1; }
9712
fi
9713